Skip to content

Commit 4fcd5a9

Browse files
tonyxiaoclaude
andcommitted
Format unformatted files (cli/main.ts, temporal.md)
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com> Committed-By-Agent: claude
1 parent b3bb7b4 commit 4fcd5a9

2 files changed

Lines changed: 15 additions & 8 deletions

File tree

apps/service/src/cli/main.ts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ const webhookCmd = defineCommand({
168168
const port = Number(args.port)
169169
serve({ fetch: app.fetch, port }, () => {
170170
console.log(`Webhook server listening on http://localhost:${port}`)
171-
console.log(` Temporal: ${args['temporal-address']} (queue: ${args['temporal-task-queue'] || 'sync-engine'})`)
171+
console.log(
172+
` Temporal: ${args['temporal-address']} (queue: ${args['temporal-task-queue'] || 'sync-engine'})`
173+
)
172174
})
173175
},
174176
})
@@ -203,6 +205,11 @@ export async function createProgram(opts?: { dataDir?: string }) {
203205

204206
return defineCommand({
205207
...specCli,
206-
subCommands: { serve: serveCmd, worker: workerCmd, webhook: webhookCmd, ...specCli.subCommands },
208+
subCommands: {
209+
serve: serveCmd,
210+
worker: workerCmd,
211+
webhook: webhookCmd,
212+
...specCli.subCommands,
213+
},
207214
})
208215
}

docs/pages/service/temporal.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,12 +205,12 @@ stateDiagram-v2
205205

206206
Each server has a single, clearly scoped responsibility:
207207

208-
| | Webhook Server | Sync Service | Sync Engine |
209-
| ----------- | --------------------------------------------------- | --------------------------------------------------- | ------------------------------------------- |
210-
| **Purpose** | Public webhook ingress; fan out signals to Temporal | Config CRUD, credential management, config resolution | Stateless sync execution |
211-
| **State** | None — reads config store to locate matching syncs | Stores configs, credentials | Manages cursor state via `selectStateStore` |
212-
| **Routes** | `POST /webhooks/{credential_id}` | `/syncs`, `/credentials` | `/setup`, `/sync`, `/teardown` |
213-
| **Exposure**| Public (Stripe POSTs here) | Internal | Internal |
208+
| | Webhook Server | Sync Service | Sync Engine |
209+
| ------------ | --------------------------------------------------- | ----------------------------------------------------- | ------------------------------------------- |
210+
| **Purpose** | Public webhook ingress; fan out signals to Temporal | Config CRUD, credential management, config resolution | Stateless sync execution |
211+
| **State** | None — reads config store to locate matching syncs | Stores configs, credentials | Manages cursor state via `selectStateStore` |
212+
| **Routes** | `POST /webhooks/{credential_id}` | `/syncs`, `/credentials` | `/setup`, `/sync`, `/teardown` |
213+
| **Exposure** | Public (Stripe POSTs here) | Internal | Internal |
214214

215215
The webhook server requires only a Temporal client and the config store (read-only) to fan out signals. It never touches credentials or runs connectors.
216216

0 commit comments

Comments
 (0)