@heddleagent/execution-host-client 7.0.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +48 -34
  2. package/dist/cli/hostctl.d.ts +11 -0
  3. package/dist/cli/hostctl.d.ts.map +1 -0
  4. package/dist/cli/hostctl.js +49 -0
  5. package/dist/cli/hostctl.js.map +1 -0
  6. package/dist/contracts/index.d.ts +2 -0
  7. package/dist/contracts/index.d.ts.map +1 -1
  8. package/dist/contracts/index.js +9 -0
  9. package/dist/contracts/index.js.map +1 -1
  10. package/dist/coordinator/contracts.d.ts +148 -5
  11. package/dist/coordinator/contracts.d.ts.map +1 -1
  12. package/dist/coordinator/contracts.js +74 -3
  13. package/dist/coordinator/contracts.js.map +1 -1
  14. package/dist/coordinator/hosted-heartbeat-execution-client.d.ts +30 -0
  15. package/dist/coordinator/hosted-heartbeat-execution-client.d.ts.map +1 -0
  16. package/dist/coordinator/hosted-heartbeat-execution-client.js +240 -0
  17. package/dist/coordinator/hosted-heartbeat-execution-client.js.map +1 -0
  18. package/dist/coordinator/hosted-heartbeat-execution-service.d.ts +14 -0
  19. package/dist/coordinator/hosted-heartbeat-execution-service.d.ts.map +1 -0
  20. package/dist/coordinator/hosted-heartbeat-execution-service.js +100 -0
  21. package/dist/coordinator/hosted-heartbeat-execution-service.js.map +1 -0
  22. package/dist/coordinator/index.d.ts +5 -5
  23. package/dist/coordinator/index.d.ts.map +1 -1
  24. package/dist/coordinator/index.js +3 -3
  25. package/dist/coordinator/index.js.map +1 -1
  26. package/dist/coordinator/node/execution-http-service.d.ts +11 -0
  27. package/dist/coordinator/node/execution-http-service.d.ts.map +1 -0
  28. package/dist/coordinator/node/{delegation-http-service.js → execution-http-service.js} +52 -39
  29. package/dist/coordinator/node/execution-http-service.js.map +1 -0
  30. package/dist/coordinator/node/index.d.ts +2 -2
  31. package/dist/coordinator/node/index.d.ts.map +1 -1
  32. package/dist/coordinator/node/index.js +1 -1
  33. package/dist/coordinator/node/index.js.map +1 -1
  34. package/dist/coordinator/node/types.d.ts +10 -9
  35. package/dist/coordinator/node/types.d.ts.map +1 -1
  36. package/dist/coordinator/node/types.js.map +1 -1
  37. package/dist/coordinator/types.d.ts +51 -13
  38. package/dist/coordinator/types.d.ts.map +1 -1
  39. package/dist/coordinator/types.js.map +1 -1
  40. package/dist/host/schemas.d.ts.map +1 -1
  41. package/dist/host/schemas.js +2 -7
  42. package/dist/host/schemas.js.map +1 -1
  43. package/dist/http-sse/direct-http-execution-host.d.ts.map +1 -1
  44. package/dist/http-sse/direct-http-execution-host.js +6 -5
  45. package/dist/http-sse/direct-http-execution-host.js.map +1 -1
  46. package/dist/http-sse/types.d.ts +2 -0
  47. package/dist/http-sse/types.d.ts.map +1 -1
  48. package/dist/http-sse/types.js.map +1 -1
  49. package/dist/node/authority-key.d.ts.map +1 -1
  50. package/dist/node/authority-key.js +24 -49
  51. package/dist/node/authority-key.js.map +1 -1
  52. package/dist/node/environment-value.d.ts +17 -0
  53. package/dist/node/environment-value.d.ts.map +1 -0
  54. package/dist/node/environment-value.js +78 -0
  55. package/dist/node/environment-value.js.map +1 -0
  56. package/dist/node/index.d.ts +4 -0
  57. package/dist/node/index.d.ts.map +1 -1
  58. package/dist/node/index.js +2 -0
  59. package/dist/node/index.js.map +1 -1
  60. package/dist/node/local-credential-bundle.d.ts +33 -0
  61. package/dist/node/local-credential-bundle.d.ts.map +1 -0
  62. package/dist/node/local-credential-bundle.js +196 -0
  63. package/dist/node/local-credential-bundle.js.map +1 -0
  64. package/dist/node/owner-only-file.d.ts +17 -0
  65. package/dist/node/owner-only-file.d.ts.map +1 -0
  66. package/dist/node/owner-only-file.js +59 -0
  67. package/dist/node/owner-only-file.js.map +1 -0
  68. package/package.json +5 -1
  69. package/dist/coordinator/hosted-heartbeat-delegation-client.d.ts +0 -21
  70. package/dist/coordinator/hosted-heartbeat-delegation-client.d.ts.map +0 -1
  71. package/dist/coordinator/hosted-heartbeat-delegation-client.js +0 -117
  72. package/dist/coordinator/hosted-heartbeat-delegation-client.js.map +0 -1
  73. package/dist/coordinator/hosted-heartbeat-delegation-service.d.ts +0 -15
  74. package/dist/coordinator/hosted-heartbeat-delegation-service.d.ts.map +0 -1
  75. package/dist/coordinator/hosted-heartbeat-delegation-service.js +0 -81
  76. package/dist/coordinator/hosted-heartbeat-delegation-service.js.map +0 -1
  77. package/dist/coordinator/node/delegation-http-service.d.ts +0 -11
  78. package/dist/coordinator/node/delegation-http-service.d.ts.map +0 -1
  79. package/dist/coordinator/node/delegation-http-service.js.map +0 -1
package/README.md CHANGED
@@ -5,8 +5,8 @@ invoke a separately deployed Heddle Execution Host. It lets an
5
5
  adopter keep its own language stack, authentication, database, product policy,
6
6
  MCP tools, and UI while reusing the security-sensitive v1 contract machinery.
7
7
 
8
- > **Current availability:** `6.7.0` is the current package version as of
9
- > 2026-08-27. The former
8
+ > **Current availability:** package availability is published through the
9
+ > repository release process. The former
10
10
  > `@roackb2/heddle-adopter@5.13.0` coordinate is deprecated and remains
11
11
  > installable only for existing consumers. The compatible Execution Host source
12
12
  > is maintained in this private-first repository; Heddle does not yet offer a
@@ -39,7 +39,7 @@ modular AWS SDK for its AgentCore transport and the official MCP SDK, plus
39
39
  | `@heddleagent/execution-host-client/authority` | ES256 execution assertion and optional MCP capability issuance plus public JWKS projection |
40
40
  | `@heddleagent/execution-host-client/conversation` | Turn orchestration across authority, model credentials, optional MCP policy, an `ExecutionHost`, and an optional adopter-implemented durable lifecycle store |
41
41
  | `@heddleagent/execution-host-client/heartbeat` | Remote heartbeat orchestration that keeps durable task authority in a coordinator while a compatible Execution Host runs the agent cycle |
42
- | `@heddleagent/execution-host-client/coordinator` | Authenticated task publication, pause-first desired-state reconciliation, product delegation, and delegated heartbeat execution |
42
+ | `@heddleagent/execution-host-client/coordinator` | Authenticated task publication, pause-first desired-state reconciliation, product-work preparation and settlement, and delegated heartbeat execution |
43
43
  | `@heddleagent/execution-host-client/coordinator/node` | Standard authenticated Node HTTP edge for product-owned heartbeat authorization |
44
44
  | `@heddleagent/execution-host-client/mcp` | Independent capability verification at the adopter's MCP edge |
45
45
  | `@heddleagent/execution-host-client/mcp/node` | Stateless official-SDK Streamable HTTP lifecycle around adopter-defined toolsets |
@@ -47,7 +47,7 @@ modular AWS SDK for its AgentCore transport and the official MCP SDK, plus
47
47
  | `@heddleagent/execution-host-client/agentcore` | Canonical AgentCore deployment-target validation plus the official AWS AgentCore/SigV4 implementation of the conversation and heartbeat ports |
48
48
  | `@heddleagent/execution-host-client/host` | Invocation-bound authority verification plus provider-neutral Runtime-session scope binding, admission, deadlines, cancellation, status, and workflow dispatch shared by compatible Execution Host implementations |
49
49
  | `@heddleagent/execution-host-client/testing` | Node-only loopback v1 fixture plus durable-turn store conformance for real adapters |
50
- | `@heddleagent/execution-host-client/node` | Optional Node JWKS/conversation HTTP edge plus safe local signing-key helpers |
50
+ | `@heddleagent/execution-host-client/node` | Optional Node JWKS/conversation HTTP edge, conventional `NAME_FILE` loading, safe local signing-key helpers, and the local credential-bundle initializer used by `heddle-hostctl` |
51
51
 
52
52
  Non-TypeScript adopters can consume the versioned
53
53
  [`spec/v1`](spec/v1/README.md) OpenAPI 3.1.1 document, JSON Schema bundle, and
@@ -176,6 +176,17 @@ owner-only JWK without overwriting an existing file. The loader imports its
176
176
  private key as non-exportable. Production KMS/HSM or secret-manager storage,
177
177
  rotation, revocation, and Windows ACL policy still belong to deployment.
178
178
 
179
+ For a complete local hosted-service composition, install the package's narrow
180
+ operator CLI and initialize one generic credential bundle:
181
+
182
+ ```bash
183
+ heddle-hostctl credentials init --output .local/heddle-credentials
184
+ ```
185
+
186
+ The command owns only credential generation and bundle validation. The adopter
187
+ deployment owns Compose or Helm, ports, URLs, database and model inputs,
188
+ migration ordering, service lifecycle, and secret-file mounting.
189
+
179
190
  ## Verify product authority again at MCP
180
191
 
181
192
  The adopter MCP service must independently verify the bearer. Do not trust
@@ -347,18 +358,19 @@ terminal event until clean EOF. It never retries an ambiguous invocation.
347
358
 
348
359
  ## Connect a product to the heartbeat coordinator
349
360
 
350
- The product publishes only its desired task state and authorizes individual
351
- runs. Heddle owns the coordinator protocol, safe reconciliation order, Runtime
352
- session derivation, short-lived authority bundle, and execution composition.
361
+ The product publishes desired task state and owns a durable product-work
362
+ lifecycle around each Coordinator execution. Heddle owns the coordinator
363
+ protocol, safe reconciliation order, Runtime-session derivation, short-lived
364
+ authority bundle, and execution composition.
353
365
 
354
366
  ```ts
355
367
  import {
356
368
  HostedHeartbeatCoordinatorClient,
357
- HostedHeartbeatDelegationService,
369
+ HostedHeartbeatExecutionService,
358
370
  HostedHeartbeatTaskReconciler,
359
371
  } from '@heddleagent/execution-host-client/coordinator'
360
372
  import {
361
- NodeHostedHeartbeatDelegationHttpService,
373
+ NodeHostedHeartbeatExecutionHttpService,
362
374
  } from '@heddleagent/execution-host-client/coordinator/node'
363
375
 
364
376
  const coordinator = new HostedHeartbeatCoordinatorClient({
@@ -370,30 +382,31 @@ await new HostedHeartbeatTaskReconciler({ coordinator }).reconcile({
370
382
  resume: backgroundChecksEnabled,
371
383
  })
372
384
 
373
- const delegations = new HostedHeartbeatDelegationService({
385
+ const executions = new HostedHeartbeatExecutionService({
374
386
  authority,
375
387
  runtimeSessionNamespace: 'example-product',
376
388
  maxExecutionMs: 300_000,
377
- authorizer: {
378
- authorize: ({ taskId, signal }) =>
379
- authorizeProductHeartbeat({ taskId, signal }),
389
+ lifecycle: {
390
+ prepare: ({ taskId, executionId, signal }) =>
391
+ productWork.claim({ taskId, executionId, signal }),
392
+ settle: (result) => productWork.settle(result),
380
393
  },
381
394
  })
382
- const delegationHttp = new NodeHostedHeartbeatDelegationHttpService({
383
- delegations,
384
- apiToken: coordinatorDelegationToken,
395
+ const executionHttp = new NodeHostedHeartbeatExecutionHttpService({
396
+ executions,
397
+ apiToken: coordinatorProductExecutionToken,
385
398
  })
386
399
  ```
387
400
 
388
401
  `projectDesiredHeartbeatTasks` remains product-owned because it translates
389
- product records into desired Heddle tasks. `authorizeProductHeartbeat` remains
390
- product-owned because it decides whether the task may run and returns only the
391
- authorized tenant/subject/product-session scope and exact MCP tool set. Product
392
- code does not construct coordinator requests, Runtime-session IDs, deadlines,
393
- JWTs, or delegation response objects.
402
+ product records into desired Heddle tasks. The product lifecycle remains
403
+ product-owned because it claims a fixed work horizon, returns only the
404
+ authorized tenant/subject/product-session scope and exact MCP tool set, and
405
+ validates durable effects before accepting completion. Product code does not
406
+ construct coordinator requests, Runtime-session IDs, deadlines, or JWTs.
394
407
 
395
408
  The Node handler can be mounted before an existing router through
396
- `delegationHttp.handle(request, response)`. See the
409
+ `executionHttp.handle(request, response)`. See the
397
410
  [coordinator boundary](src/coordinator/README.md) for the corresponding
398
411
  coordinator-side client and execution transport.
399
412
 
@@ -402,29 +415,30 @@ coordinator-side client and execution transport.
402
415
  For autonomous work, keep the durable task store and scheduler in one
403
416
  long-running coordinator. Inject the hosted transport only at the point where
404
417
  the scheduler would otherwise run the local heartbeat agent. The coordinator
405
- uses the product delegation endpoint rather than receiving product signing
406
- keys or reimplementing its authority shape:
418
+ uses the product execution-lifecycle endpoint rather than receiving product
419
+ signing keys or reimplementing its authority shape:
407
420
 
408
421
  ```ts
409
422
  import { HeartbeatSchedulerService } from '@heddleagent/runtime/advanced'
410
423
  import {
411
- HostedHeartbeatDelegatedExecutionTransport,
412
- HostedHeartbeatDelegationClient,
424
+ HostedHeartbeatDelegatedExecution,
425
+ HostedHeartbeatExecutionClient,
413
426
  } from '@heddleagent/execution-host-client/coordinator'
414
427
 
415
- const delegations = new HostedHeartbeatDelegationClient({
428
+ const executions = new HostedHeartbeatExecutionClient({
416
429
  baseUrl: productBackendUrl,
417
- apiToken: productDelegationToken,
430
+ apiToken: productExecutionToken,
418
431
  })
419
- const agentExecutionTransport = new HostedHeartbeatDelegatedExecutionTransport({
420
- delegations,
432
+ const delegatedExecution = new HostedHeartbeatDelegatedExecution({
433
+ executions,
421
434
  executionHost: agentCoreExecutionHost,
422
435
  modelCredentials,
423
436
  })
424
437
 
425
438
  const scheduler = HeartbeatSchedulerService.start({
426
439
  store: heddleHeartbeatStore,
427
- agentExecutionTransport,
440
+ handler: (context) => delegatedExecution.handle(context),
441
+ agentExecutionTransport: delegatedExecution,
428
442
  })
429
443
  ```
430
444
 
@@ -432,9 +446,9 @@ The coordinator still owns task lookup, claims, checkpoint loading,
432
446
  cancellation, claim-fenced settlement, history, and recovery. The Runtime
433
447
  receives a bounded task/checkpoint request plus invocation-scoped authority and
434
448
  model credentials; it receives no Heddle database credential. Omitting
435
- `agentExecutionTransport` preserves the existing in-process runner. The lower
436
- level `/heartbeat` composition remains available for deployments whose
437
- coordinator and product authority live in the same process.
449
+ the hosted execution composition preserves the existing in-process runner.
450
+ The lower-level `/heartbeat` composition remains available for deployments
451
+ whose Coordinator and product authority live in the same process.
438
452
 
439
453
  ## Verify an adopter integration locally
440
454
 
@@ -0,0 +1,11 @@
1
+ #!/usr/bin/env node
2
+ export type HostctlIo = {
3
+ stdout: {
4
+ write(value: string): unknown;
5
+ };
6
+ stderr: {
7
+ write(value: string): unknown;
8
+ };
9
+ };
10
+ export declare function runHostctl(args: readonly string[], io?: HostctlIo): Promise<number>;
11
+ //# sourceMappingURL=hostctl.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hostctl.d.ts","sourceRoot":"","sources":["../../src/cli/hostctl.ts"],"names":[],"mappings":";AAMA,MAAM,MAAM,SAAS,GAAG;IACtB,MAAM,EAAE;QAAE,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;IAC1C,MAAM,EAAE;QAAE,KAAK,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAAA;KAAE,CAAC;CAC3C,CAAC;AAEF,wBAAsB,UAAU,CAC9B,IAAI,EAAE,SAAS,MAAM,EAAE,EACvB,EAAE,GAAE,SAAmB,GACtB,OAAO,CAAC,MAAM,CAAC,CAajB"}
@@ -0,0 +1,49 @@
1
+ #!/usr/bin/env node
2
+ import { resolve } from 'node:path';
3
+ import { fileURLToPath } from 'node:url';
4
+ import { Command, CommanderError } from 'commander';
5
+ import { initializeLocalCredentialBundle } from '../node/local-credential-bundle.js';
6
+ export async function runHostctl(args, io = process) {
7
+ const program = createHostctl(io);
8
+ try {
9
+ await program.parseAsync([...args], { from: 'user' });
10
+ return 0;
11
+ }
12
+ catch (error) {
13
+ if (error instanceof CommanderError) {
14
+ return error.exitCode;
15
+ }
16
+ const message = error instanceof Error ? error.message : String(error);
17
+ io.stderr.write(`heddle-hostctl: ${message}\n`);
18
+ return 1;
19
+ }
20
+ }
21
+ function createHostctl(io) {
22
+ const program = new Command()
23
+ .name('heddle-hostctl')
24
+ .description('Operate a self-hosted Heddle Execution Host.')
25
+ .configureOutput({
26
+ writeOut: (value) => { io.stdout.write(value); },
27
+ writeErr: (value) => { io.stderr.write(value); },
28
+ })
29
+ .exitOverride()
30
+ .showHelpAfterError()
31
+ .allowExcessArguments(false);
32
+ program.command('credentials')
33
+ .description('Manage generic local host credentials.')
34
+ .command('init')
35
+ .description('Create or validate an owner-only credential bundle.')
36
+ .requiredOption('-o, --output <directory>', 'credential bundle directory')
37
+ .action(async ({ output }) => {
38
+ const initialized = await initializeLocalCredentialBundle(output);
39
+ io.stdout.write(`${initialized.created ? 'Initialized' : 'Validated'} Heddle local hosted credentials.\n`);
40
+ io.stdout.write(`Directory: ${initialized.paths.directory}\n`);
41
+ io.stdout.write(`Manifest: ${initialized.paths.manifest}\n`);
42
+ });
43
+ return program;
44
+ }
45
+ if (process.argv[1]
46
+ && resolve(process.argv[1]) === fileURLToPath(import.meta.url)) {
47
+ process.exitCode = await runHostctl(process.argv.slice(2));
48
+ }
49
+ //# sourceMappingURL=hostctl.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hostctl.js","sourceRoot":"","sources":["../../src/cli/hostctl.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,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E;SACd,kBAAkB,EAAE;SACpB,oBAAoB,CAAC,KAAK,CAAC,CAAC;IAE/B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC;SAC3B,WAAW,CAAC,wCAAwC,CAAC;SACrD,OAAO,CAAC,MAAM,CAAC;SACf,WAAW,CAAC,qDAAqD,CAAC;SAClE,cAAc,CAAC,0BAA0B,EAAE,6BAA6B,CAAC;SACzE,MAAM,CAAC,KAAK,EAAE,EAAE,MAAM,EAAsB,EAAE,EAAE;QAC/C,MAAM,WAAW,GAAG,MAAM,+BAA+B,CAAC,MAAM,CAAC,CAAC;QAClE,EAAE,CAAC,MAAM,CAAC,KAAK,CACb,GAAG,WAAW,CAAC,OAAO,CAAC,CAAC,CAAC,aAAa,CAAC,CAAC,CAAC,WAAW,qCAAqC,CAC1F,CAAC;QACF,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,cAAc,WAAW,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,CAAC;QAC/D,EAAE,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,WAAW,CAAC,KAAK,CAAC,QAAQ,IAAI,CAAC,CAAC;IAC/D,CAAC,CAAC,CAAC;IAEL,OAAO,OAAO,CAAC;AACjB,CAAC;AAED,IACE,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC;OACZ,OAAO,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,KAAK,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAC9D,CAAC;IACD,OAAO,CAAC,QAAQ,GAAG,MAAM,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7D,CAAC","sourcesContent":["#!/usr/bin/env node\nimport { resolve } from 'node:path';\nimport { fileURLToPath } from 'node:url';\nimport { Command, CommanderError } from 'commander';\nimport { initializeLocalCredentialBundle } from '../node/local-credential-bundle.js';\n\nexport type HostctlIo = {\n stdout: { write(value: string): unknown };\n stderr: { write(value: string): unknown };\n};\n\nexport async function runHostctl(\n args: readonly string[],\n io: HostctlIo = process,\n): Promise<number> {\n const program = createHostctl(io);\n try {\n await program.parseAsync([...args], { from: 'user' });\n return 0;\n } catch (error) {\n if (error instanceof CommanderError) {\n return error.exitCode;\n }\n const message = error instanceof Error ? error.message : String(error);\n io.stderr.write(`heddle-hostctl: ${message}\\n`);\n return 1;\n }\n}\n\nfunction createHostctl(io: HostctlIo): Command {\n const program = new Command()\n .name('heddle-hostctl')\n .description('Operate a self-hosted Heddle Execution Host.')\n .configureOutput({\n writeOut: (value) => { io.stdout.write(value); },\n writeErr: (value) => { io.stderr.write(value); },\n })\n .exitOverride()\n .showHelpAfterError()\n .allowExcessArguments(false);\n\n program.command('credentials')\n .description('Manage generic local host credentials.')\n .command('init')\n .description('Create or validate an owner-only credential bundle.')\n .requiredOption('-o, --output <directory>', 'credential bundle directory')\n .action(async ({ output }: { output: string }) => {\n const initialized = await initializeLocalCredentialBundle(output);\n io.stdout.write(\n `${initialized.created ? 'Initialized' : 'Validated'} Heddle local hosted credentials.\\n`,\n );\n io.stdout.write(`Directory: ${initialized.paths.directory}\\n`);\n io.stdout.write(`Manifest: ${initialized.paths.manifest}\\n`);\n });\n\n return program;\n}\n\nif (\n process.argv[1]\n && resolve(process.argv[1]) === fileURLToPath(import.meta.url)\n) {\n process.exitCode = await runHostctl(process.argv.slice(2));\n}\n"]}
@@ -278,4 +278,6 @@ export type HostedExecutionWorkflow = z.infer<typeof HostedExecutionWorkflowSche
278
278
  export declare function isExecutionHostTerminalEvent(event: ExecutionHostStreamEvent): event is ExecutionHostTerminalEvent;
279
279
  export declare function isExecutionHostHeartbeatTerminalEvent(event: ExecutionHostHeartbeatStreamEvent): event is ExecutionHostHeartbeatTerminalEvent;
280
280
  export declare function isSafeWebUrl(url: URL): boolean;
281
+ /** Explicit Docker Desktop bridge exception for isolated local composition. */
282
+ export declare function isDockerLocalWebUrl(url: URL): boolean;
281
283
  //# sourceMappingURL=index.d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AAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,0BAA0B,GAAG,OAAO,CAC9C,wBAAwB,EACxB;IAAE,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAA;CAAE,CAC3C,CAAC;AACF,MAAM,MAAM,iCAAiC,GAAG,CAAC,CAAC,KAAK,CACrD,OAAO,uCAAuC,CAC/C,CAAC;AACF,MAAM,MAAM,mCAAmC,GAAG,OAAO,CACvD,iCAAiC,EACjC;IAAE,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,OAAO,CAAA;CAAE,CAC3C,CAAC;AACF,MAAM,MAAM,wBAAwB,GAAG,CAAC,CAAC,KAAK,CAC5C,OAAO,8BAA8B,CACtC,CAAC;AACF,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAC5E,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAC3C,OAAO,6BAA6B,CACrC,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,KAAK,EAAE,wBAAwB,GAC9B,KAAK,IAAI,0BAA0B,CAIrC;AAED,wBAAgB,qCAAqC,CACnD,KAAK,EAAE,iCAAiC,GACvC,KAAK,IAAI,mCAAmC,CAI9C;AAED,wBAAgB,YAAY,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAO9C;AAED,+EAA+E;AAC/E,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,GAAG,GAAG,OAAO,CAOrD"}
@@ -229,4 +229,13 @@ export function isSafeWebUrl(url) {
229
229
  && !url.search
230
230
  && !url.hash;
231
231
  }
232
+ /** Explicit Docker Desktop bridge exception for isolated local composition. */
233
+ export function isDockerLocalWebUrl(url) {
234
+ return url.protocol === 'http:'
235
+ && url.hostname === 'host.docker.internal'
236
+ && !url.username
237
+ && !url.password
238
+ && !url.search
239
+ && !url.hash;
240
+ }
232
241
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAU,CAAC;AACrD,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAA4B,CAAC;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAyB,CAAC;AACjE,MAAM,CAAC,MAAM,wBAAwB,GAAG,sBAA+B,CAAC;AACxE,MAAM,CAAC,MAAM,mBAAmB,GAAG,2BAAoC,CAAC;AAExE,MAAM,CAAC,MAAM,gCAAgC,GAC3C,6CAAsD,CAAC;AACzD,MAAM,CAAC,MAAM,iCAAiC,GAC5C,qCAA8C,CAAC;AACjD,MAAM,CAAC,MAAM,0BAA0B,GACrC,mCAA4C,CAAC;AAC/C,MAAM,CAAC,MAAM,qBAAqB,GAChC,wCAAiD,CAAC;AACpD,MAAM,CAAC,MAAM,uBAAuB,GAClC,0CAAmD,CAAC;AAEtD,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC;KAC5B,MAAM,EAAE;KACR,GAAG,CAAC,CAAC,CAAC;KACN,GAAG,CAAC,GAAG,CAAC;KACR,KAAK,CACJ,gCAAgC,EAChC,yCAAyC,CAC1C,CAAC;AAEJ,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,MAAM,CAC3C,CAAC,KAAK,EAAE,EAAE,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC,KAAK,CAAC,CAAC,EACvC,gFAAgF,CACjF,CAAC;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC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_WORKFLOW = 'heartbeat-task' as const;\nexport const EXECUTION_ASSERTION_TYPE = 'heddle-execution+jwt' as const;\nexport const MCP_CAPABILITY_TYPE = 'heddle-mcp-capability+jwt' as const;\n\nexport const AGENTCORE_RUNTIME_SESSION_HEADER =\n 'x-amzn-bedrock-agentcore-runtime-session-id' as const;\nexport const EXECUTION_HOST_LOCAL_TOKEN_HEADER =\n 'x-heddle-execution-host-local-token' as const;\nexport const EXECUTION_ASSERTION_HEADER =\n 'x-heddle-execution-host-assertion' as const;\nexport const MCP_CAPABILITY_HEADER =\n 'x-heddle-execution-host-mcp-capability' as const;\nexport const MODEL_CREDENTIAL_HEADER =\n 'x-heddle-execution-host-model-credential' as const;\n\nexport const OpaqueIdSchema = z\n .string()\n .min(1)\n .max(128)\n .regex(\n /^[A-Za-z0-9][A-Za-z0-9._:@-]*$/,\n 'must be an opaque, path-free identifier',\n );\n\nexport const JwtIssuerSchema = z.url().refine(\n (value) => isSafeWebUrl(new URL(value)),\n 'must use HTTPS or loopback HTTP and contain no credentials, query, or fragment',\n);\n\nexport const JwtAudienceSchema = z.string().min(1).max(512);\n\nexport const RuntimeSessionIdSchema = z\n .string()\n .min(33)\n .max(256)\n .refine((value) => value === value.trim(), 'must not contain outer whitespace');\n\nexport const TimestampSchema = z.iso.datetime({ offset: true });\n\nconst ModelSecretSchema = z.string().trim().min(8).max(4_096);\n\n/**\n * One invocation-scoped model credential. OAuth refresh material is\n * deliberately absent from the wire contract.\n */\nexport const ExecutionHostModelCredentialSchema = z.discriminatedUnion(\n 'type',\n [\n z.object({\n type: z.literal('api-key'),\n apiKey: ModelSecretSchema,\n }).strict(),\n z.object({\n type: z.literal('oauth-access-token'),\n provider: z.literal('openai'),\n accessToken: ModelSecretSchema,\n expiresAt: z.number().int().positive(),\n accountId: z.string().trim().min(1).max(512).optional(),\n }).strict(),\n ],\n);\n\nexport const McpServerIdSchema = z\n .string()\n .min(1)\n .max(64)\n .regex(\n /^[A-Za-z0-9_-]+$/,\n 'must be a Heddle-compatible MCP server identifier',\n );\n\nexport const McpToolNameSchema = z\n .string()\n .min(1)\n .max(64)\n .regex(\n /^[A-Za-z][A-Za-z0-9_]*$/,\n 'must be a collision-free MCP tool name',\n );\n\nexport const McpAllowedToolsSchema = z\n .array(McpToolNameSchema)\n .min(1)\n .max(16)\n .refine((tools) => new Set(tools).size === tools.length, {\n message: 'must contain unique MCP tool names',\n })\n .refine(\n (tools) => tools.reduce(\n (characterCount, toolName) => characterCount + toolName.length,\n 0,\n ) <= 512,\n { message: 'contains too many aggregate tool-name characters' },\n );\n\nexport const ExecutionScopeSchema = z.object({\n adopterId: OpaqueIdSchema,\n tenantId: OpaqueIdSchema,\n subjectId: OpaqueIdSchema,\n productSessionId: OpaqueIdSchema,\n}).strict();\n\nexport const ExecutionHostConversationTurnRequestSchema = z.object({\n schemaVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n kind: z.literal(CONVERSATION_TURN_WORKFLOW),\n invocationId: OpaqueIdSchema,\n prompt: z.string().trim().min(1).max(200_000),\n deadlineAt: TimestampSchema.optional(),\n}).strict();\n\nexport const HeartbeatRunContextSchema = z.object({\n currentDateTime: TimestampSchema,\n intervalMs: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),\n continuationMode: z.enum(['operator', 'agent']).optional(),\n nextRunAt: TimestampSchema.optional(),\n previousRunAt: TimestampSchema.optional(),\n previousRunId: OpaqueIdSchema.optional(),\n}).strict();\n\nexport const ExecutionHostHeartbeatTaskRequestSchema = z.object({\n schemaVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n kind: z.literal(HEARTBEAT_TASK_WORKFLOW),\n invocationId: OpaqueIdSchema,\n taskId: OpaqueIdSchema,\n task: z.string().trim().min(1).max(200_000),\n checkpoint: z.record(z.string(), z.json()).optional(),\n runContext: HeartbeatRunContextSchema,\n model: z.string().trim().min(1).max(512).optional(),\n reasoningEffort: z.enum([\n 'none',\n 'low',\n 'medium',\n 'high',\n 'ultrahigh',\n 'max',\n ]).optional(),\n maxSteps: z.number().int().positive().max(10_000).optional(),\n searchIgnoreDirs: z.array(z.string().min(1).max(1_024)).max(1_000).optional(),\n systemContext: z.string().max(200_000).optional(),\n deadlineAt: TimestampSchema.optional(),\n}).strict();\n\nexport const RuntimePublicResultSchema = z.object({\n outcome: z.enum(['done', 'max_steps', 'error', 'interrupted']),\n summary: z.string().optional(),\n failure: z.object({\n source: z.literal('model'),\n code: z.enum([\n 'authentication',\n 'permission',\n 'quota',\n 'rate_limit',\n 'context_window',\n 'request',\n 'transport',\n 'empty_response',\n 'unknown',\n ]),\n }).strict().optional(),\n}).strict();\n\nconst StreamEnvelopeSchema = z.object({\n schemaVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n invocationId: OpaqueIdSchema,\n runId: OpaqueIdSchema,\n sequence: z.number().int().nonnegative(),\n timestamp: TimestampSchema,\n});\n\nexport const ExecutionHostStreamEventSchema = z.discriminatedUnion('kind', [\n StreamEnvelopeSchema.extend({\n sequence: z.literal(0),\n kind: z.literal('accepted'),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('activity'),\n activity: z.unknown(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('result'),\n result: RuntimePublicResultSchema,\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('cancelled'),\n reason: z.string(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('error'),\n error: z.object({\n code: z.string().min(1).max(128).regex(/^[a-z0-9_]+$/),\n message: z.string().min(1).max(1_600),\n }).strict(),\n }).strict(),\n]);\n\nexport const ExecutionHostHeartbeatStreamEventSchema = z.discriminatedUnion(\n 'kind',\n [\n StreamEnvelopeSchema.extend({\n sequence: z.literal(0),\n kind: z.literal('accepted'),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('activity'),\n activity: z.json(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('result'),\n result: z.record(z.string(), z.json()),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('cancelled'),\n reason: z.string(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('error'),\n error: z.object({\n code: z.string().min(1).max(128).regex(/^[a-z0-9_]+$/),\n message: z.string().min(1).max(1_600),\n }).strict(),\n }).strict(),\n ],\n);\n\nexport const HostedExecutionWorkflowSchema = z.enum([\n CONVERSATION_TURN_WORKFLOW,\n HEARTBEAT_TASK_WORKFLOW,\n]);\n\nexport const ExecutionAssertionClaimsSchema = z.object({\n iss: JwtIssuerSchema,\n aud: JwtAudienceSchema,\n contractVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n adopterId: OpaqueIdSchema,\n tenantId: OpaqueIdSchema,\n productSessionId: OpaqueIdSchema,\n runtimeSessionId: RuntimeSessionIdSchema,\n workflow: HostedExecutionWorkflowSchema,\n sub: OpaqueIdSchema,\n jti: OpaqueIdSchema,\n iat: z.number().int().nonnegative(),\n exp: z.number().int().positive(),\n}).passthrough();\n\nexport const McpCapabilityClaimsSchema = z.object({\n iss: JwtIssuerSchema,\n aud: JwtAudienceSchema,\n contractVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n adopterId: OpaqueIdSchema,\n tenantId: OpaqueIdSchema,\n productSessionId: OpaqueIdSchema,\n runtimeSessionId: RuntimeSessionIdSchema,\n invocationId: OpaqueIdSchema,\n workflow: HostedExecutionWorkflowSchema,\n serverId: McpServerIdSchema,\n allowedTools: McpAllowedToolsSchema,\n sub: OpaqueIdSchema,\n jti: OpaqueIdSchema,\n iat: z.number().int().nonnegative(),\n exp: z.number().int().positive(),\n}).passthrough();\n\nexport type ExecutionScope = z.infer<typeof ExecutionScopeSchema>;\nexport type ExecutionHostModelCredential = z.infer<\n typeof ExecutionHostModelCredentialSchema\n>;\nexport type ExecutionHostConversationTurnRequest = z.infer<\n typeof ExecutionHostConversationTurnRequestSchema\n>;\nexport type ExecutionHostHeartbeatTaskRequest = z.infer<\n typeof ExecutionHostHeartbeatTaskRequestSchema\n>;\nexport type RuntimePublicResult = z.infer<typeof RuntimePublicResultSchema>;\nexport type ExecutionHostStreamEvent = z.infer<\n typeof ExecutionHostStreamEventSchema\n>;\nexport type ExecutionHostTerminalEvent = Extract<\n ExecutionHostStreamEvent,\n { kind: 'result' | 'cancelled' | 'error' }\n>;\nexport type ExecutionHostHeartbeatStreamEvent = z.infer<\n typeof ExecutionHostHeartbeatStreamEventSchema\n>;\nexport type ExecutionHostHeartbeatTerminalEvent = Extract<\n ExecutionHostHeartbeatStreamEvent,\n { kind: 'result' | 'cancelled' | 'error' }\n>;\nexport type ExecutionAssertionClaims = z.infer<\n typeof ExecutionAssertionClaimsSchema\n>;\nexport type McpCapabilityClaims = z.infer<typeof McpCapabilityClaimsSchema>;\nexport type HostedExecutionWorkflow = z.infer<\n typeof HostedExecutionWorkflowSchema\n>;\n\nexport function isExecutionHostTerminalEvent(\n event: ExecutionHostStreamEvent,\n): event is ExecutionHostTerminalEvent {\n return event.kind === 'result'\n || event.kind === 'cancelled'\n || event.kind === 'error';\n}\n\nexport function isExecutionHostHeartbeatTerminalEvent(\n event: ExecutionHostHeartbeatStreamEvent,\n): event is ExecutionHostHeartbeatTerminalEvent {\n return event.kind === 'result'\n || event.kind === 'cancelled'\n || event.kind === 'error';\n}\n\nexport function isSafeWebUrl(url: URL): boolean {\n const loopback = ['127.0.0.1', '[::1]', 'localhost'].includes(url.hostname);\n return (url.protocol === 'https:' || (url.protocol === 'http:' && loopback))\n && !url.username\n && !url.password\n && !url.search\n && !url.hash;\n}\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/contracts/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAU,CAAC;AACrD,MAAM,CAAC,MAAM,0BAA0B,GAAG,mBAA4B,CAAC;AACvE,MAAM,CAAC,MAAM,uBAAuB,GAAG,gBAAyB,CAAC;AACjE,MAAM,C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;WAC1B,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,KAAwC;IAExC,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ;WACzB,KAAK,CAAC,IAAI,KAAK,WAAW;WAC1B,KAAK,CAAC,IAAI,KAAK,OAAO,CAAC;AAC9B,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,GAAQ;IACnC,MAAM,QAAQ,GAAG,CAAC,WAAW,EAAE,OAAO,EAAE,WAAW,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,QAAQ,CAAC,CAAC;IAC5E,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,QAAQ,IAAI,CAAC,GAAG,CAAC,QAAQ,KAAK,OAAO,IAAI,QAAQ,CAAC,CAAC;WACvE,CAAC,GAAG,CAAC,QAAQ;WACb,CAAC,GAAG,CAAC,QAAQ;WACb,CAAC,GAAG,CAAC,MAAM;WACX,CAAC,GAAG,CAAC,IAAI,CAAC;AACjB,CAAC;AAED,+EAA+E;AAC/E,MAAM,UAAU,mBAAmB,CAAC,GAAQ;IAC1C,OAAO,GAAG,CAAC,QAAQ,KAAK,OAAO;WAC1B,GAAG,CAAC,QAAQ,KAAK,sBAAsB;WACvC,CAAC,GAAG,CAAC,QAAQ;WACb,CAAC,GAAG,CAAC,QAAQ;WACb,CAAC,GAAG,CAAC,MAAM;WACX,CAAC,GAAG,CAAC,IAAI,CAAC;AACjB,CAAC","sourcesContent":["import { z } from 'zod';\n\nexport const EXECUTION_CONTRACT_VERSION = 1 as const;\nexport const CONVERSATION_TURN_WORKFLOW = 'conversation-turn' as const;\nexport const HEARTBEAT_TASK_WORKFLOW = 'heartbeat-task' as const;\nexport const EXECUTION_ASSERTION_TYPE = 'heddle-execution+jwt' as const;\nexport const MCP_CAPABILITY_TYPE = 'heddle-mcp-capability+jwt' as const;\n\nexport const AGENTCORE_RUNTIME_SESSION_HEADER =\n 'x-amzn-bedrock-agentcore-runtime-session-id' as const;\nexport const EXECUTION_HOST_LOCAL_TOKEN_HEADER =\n 'x-heddle-execution-host-local-token' as const;\nexport const EXECUTION_ASSERTION_HEADER =\n 'x-heddle-execution-host-assertion' as const;\nexport const MCP_CAPABILITY_HEADER =\n 'x-heddle-execution-host-mcp-capability' as const;\nexport const MODEL_CREDENTIAL_HEADER =\n 'x-heddle-execution-host-model-credential' as const;\n\nexport const OpaqueIdSchema = z\n .string()\n .min(1)\n .max(128)\n .regex(\n /^[A-Za-z0-9][A-Za-z0-9._:@-]*$/,\n 'must be an opaque, path-free identifier',\n );\n\nexport const JwtIssuerSchema = z.url().refine(\n (value) => isSafeWebUrl(new URL(value)),\n 'must use HTTPS or loopback HTTP and contain no credentials, query, or fragment',\n);\n\nexport const JwtAudienceSchema = z.string().min(1).max(512);\n\nexport const RuntimeSessionIdSchema = z\n .string()\n .min(33)\n .max(256)\n .refine((value) => value === value.trim(), 'must not contain outer whitespace');\n\nexport const TimestampSchema = z.iso.datetime({ offset: true });\n\nconst ModelSecretSchema = z.string().trim().min(8).max(4_096);\n\n/**\n * One invocation-scoped model credential. OAuth refresh material is\n * deliberately absent from the wire contract.\n */\nexport const ExecutionHostModelCredentialSchema = z.discriminatedUnion(\n 'type',\n [\n z.object({\n type: z.literal('api-key'),\n apiKey: ModelSecretSchema,\n }).strict(),\n z.object({\n type: z.literal('oauth-access-token'),\n provider: z.literal('openai'),\n accessToken: ModelSecretSchema,\n expiresAt: z.number().int().positive(),\n accountId: z.string().trim().min(1).max(512).optional(),\n }).strict(),\n ],\n);\n\nexport const McpServerIdSchema = z\n .string()\n .min(1)\n .max(64)\n .regex(\n /^[A-Za-z0-9_-]+$/,\n 'must be a Heddle-compatible MCP server identifier',\n );\n\nexport const McpToolNameSchema = z\n .string()\n .min(1)\n .max(64)\n .regex(\n /^[A-Za-z][A-Za-z0-9_]*$/,\n 'must be a collision-free MCP tool name',\n );\n\nexport const McpAllowedToolsSchema = z\n .array(McpToolNameSchema)\n .min(1)\n .max(16)\n .refine((tools) => new Set(tools).size === tools.length, {\n message: 'must contain unique MCP tool names',\n })\n .refine(\n (tools) => tools.reduce(\n (characterCount, toolName) => characterCount + toolName.length,\n 0,\n ) <= 512,\n { message: 'contains too many aggregate tool-name characters' },\n );\n\nexport const ExecutionScopeSchema = z.object({\n adopterId: OpaqueIdSchema,\n tenantId: OpaqueIdSchema,\n subjectId: OpaqueIdSchema,\n productSessionId: OpaqueIdSchema,\n}).strict();\n\nexport const ExecutionHostConversationTurnRequestSchema = z.object({\n schemaVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n kind: z.literal(CONVERSATION_TURN_WORKFLOW),\n invocationId: OpaqueIdSchema,\n prompt: z.string().trim().min(1).max(200_000),\n deadlineAt: TimestampSchema.optional(),\n}).strict();\n\nexport const HeartbeatRunContextSchema = z.object({\n currentDateTime: TimestampSchema,\n intervalMs: z.number().int().positive().max(Number.MAX_SAFE_INTEGER),\n continuationMode: z.enum(['operator', 'agent']).optional(),\n nextRunAt: TimestampSchema.optional(),\n previousRunAt: TimestampSchema.optional(),\n previousRunId: OpaqueIdSchema.optional(),\n}).strict();\n\nexport const ExecutionHostHeartbeatTaskRequestSchema = z.object({\n schemaVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n kind: z.literal(HEARTBEAT_TASK_WORKFLOW),\n invocationId: OpaqueIdSchema,\n taskId: OpaqueIdSchema,\n task: z.string().trim().min(1).max(200_000),\n checkpoint: z.record(z.string(), z.json()).optional(),\n runContext: HeartbeatRunContextSchema,\n model: z.string().trim().min(1).max(512).optional(),\n reasoningEffort: z.enum([\n 'none',\n 'low',\n 'medium',\n 'high',\n 'ultrahigh',\n 'max',\n ]).optional(),\n maxSteps: z.number().int().positive().max(10_000).optional(),\n searchIgnoreDirs: z.array(z.string().min(1).max(1_024)).max(1_000).optional(),\n systemContext: z.string().max(200_000).optional(),\n deadlineAt: TimestampSchema.optional(),\n}).strict();\n\nexport const RuntimePublicResultSchema = z.object({\n outcome: z.enum(['done', 'max_steps', 'error', 'interrupted']),\n summary: z.string().optional(),\n failure: z.object({\n source: z.literal('model'),\n code: z.enum([\n 'authentication',\n 'permission',\n 'quota',\n 'rate_limit',\n 'context_window',\n 'request',\n 'transport',\n 'empty_response',\n 'unknown',\n ]),\n }).strict().optional(),\n}).strict();\n\nconst StreamEnvelopeSchema = z.object({\n schemaVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n invocationId: OpaqueIdSchema,\n runId: OpaqueIdSchema,\n sequence: z.number().int().nonnegative(),\n timestamp: TimestampSchema,\n});\n\nexport const ExecutionHostStreamEventSchema = z.discriminatedUnion('kind', [\n StreamEnvelopeSchema.extend({\n sequence: z.literal(0),\n kind: z.literal('accepted'),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('activity'),\n activity: z.unknown(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('result'),\n result: RuntimePublicResultSchema,\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('cancelled'),\n reason: z.string(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('error'),\n error: z.object({\n code: z.string().min(1).max(128).regex(/^[a-z0-9_]+$/),\n message: z.string().min(1).max(1_600),\n }).strict(),\n }).strict(),\n]);\n\nexport const ExecutionHostHeartbeatStreamEventSchema = z.discriminatedUnion(\n 'kind',\n [\n StreamEnvelopeSchema.extend({\n sequence: z.literal(0),\n kind: z.literal('accepted'),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('activity'),\n activity: z.json(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('result'),\n result: z.record(z.string(), z.json()),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('cancelled'),\n reason: z.string(),\n }).strict(),\n StreamEnvelopeSchema.extend({\n kind: z.literal('error'),\n error: z.object({\n code: z.string().min(1).max(128).regex(/^[a-z0-9_]+$/),\n message: z.string().min(1).max(1_600),\n }).strict(),\n }).strict(),\n ],\n);\n\nexport const HostedExecutionWorkflowSchema = z.enum([\n CONVERSATION_TURN_WORKFLOW,\n HEARTBEAT_TASK_WORKFLOW,\n]);\n\nexport const ExecutionAssertionClaimsSchema = z.object({\n iss: JwtIssuerSchema,\n aud: JwtAudienceSchema,\n contractVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n adopterId: OpaqueIdSchema,\n tenantId: OpaqueIdSchema,\n productSessionId: OpaqueIdSchema,\n runtimeSessionId: RuntimeSessionIdSchema,\n workflow: HostedExecutionWorkflowSchema,\n sub: OpaqueIdSchema,\n jti: OpaqueIdSchema,\n iat: z.number().int().nonnegative(),\n exp: z.number().int().positive(),\n}).passthrough();\n\nexport const McpCapabilityClaimsSchema = z.object({\n iss: JwtIssuerSchema,\n aud: JwtAudienceSchema,\n contractVersion: z.literal(EXECUTION_CONTRACT_VERSION),\n adopterId: OpaqueIdSchema,\n tenantId: OpaqueIdSchema,\n productSessionId: OpaqueIdSchema,\n runtimeSessionId: RuntimeSessionIdSchema,\n invocationId: OpaqueIdSchema,\n workflow: HostedExecutionWorkflowSchema,\n serverId: McpServerIdSchema,\n allowedTools: McpAllowedToolsSchema,\n sub: OpaqueIdSchema,\n jti: OpaqueIdSchema,\n iat: z.number().int().nonnegative(),\n exp: z.number().int().positive(),\n}).passthrough();\n\nexport type ExecutionScope = z.infer<typeof ExecutionScopeSchema>;\nexport type ExecutionHostModelCredential = z.infer<\n typeof ExecutionHostModelCredentialSchema\n>;\nexport type ExecutionHostConversationTurnRequest = z.infer<\n typeof ExecutionHostConversationTurnRequestSchema\n>;\nexport type ExecutionHostHeartbeatTaskRequest = z.infer<\n typeof ExecutionHostHeartbeatTaskRequestSchema\n>;\nexport type RuntimePublicResult = z.infer<typeof RuntimePublicResultSchema>;\nexport type ExecutionHostStreamEvent = z.infer<\n typeof ExecutionHostStreamEventSchema\n>;\nexport type ExecutionHostTerminalEvent = Extract<\n ExecutionHostStreamEvent,\n { kind: 'result' | 'cancelled' | 'error' }\n>;\nexport type ExecutionHostHeartbeatStreamEvent = z.infer<\n typeof ExecutionHostHeartbeatStreamEventSchema\n>;\nexport type ExecutionHostHeartbeatTerminalEvent = Extract<\n ExecutionHostHeartbeatStreamEvent,\n { kind: 'result' | 'cancelled' | 'error' }\n>;\nexport type ExecutionAssertionClaims = z.infer<\n typeof ExecutionAssertionClaimsSchema\n>;\nexport type McpCapabilityClaims = z.infer<typeof McpCapabilityClaimsSchema>;\nexport type HostedExecutionWorkflow = z.infer<\n typeof HostedExecutionWorkflowSchema\n>;\n\nexport function isExecutionHostTerminalEvent(\n event: ExecutionHostStreamEvent,\n): event is ExecutionHostTerminalEvent {\n return event.kind === 'result'\n || event.kind === 'cancelled'\n || event.kind === 'error';\n}\n\nexport function isExecutionHostHeartbeatTerminalEvent(\n event: ExecutionHostHeartbeatStreamEvent,\n): event is ExecutionHostHeartbeatTerminalEvent {\n return event.kind === 'result'\n || event.kind === 'cancelled'\n || event.kind === 'error';\n}\n\nexport function isSafeWebUrl(url: URL): boolean {\n const loopback = ['127.0.0.1', '[::1]', 'localhost'].includes(url.hostname);\n return (url.protocol === 'https:' || (url.protocol === 'http:' && loopback))\n && !url.username\n && !url.password\n && !url.search\n && !url.hash;\n}\n\n/** Explicit Docker Desktop bridge exception for isolated local composition. */\nexport function isDockerLocalWebUrl(url: URL): boolean {\n return url.protocol === 'http:'\n && url.hostname === 'host.docker.internal'\n && !url.username\n && !url.password\n && !url.search\n && !url.hash;\n}\n"]}
@@ -6,7 +6,10 @@ export declare const HOSTED_HEARTBEAT_COORDINATOR_PATHS: Readonly<{
6
6
  resume: "/v1/control/resume";
7
7
  drain: "/v1/control/drain";
8
8
  }>;
9
- export declare const HOSTED_HEARTBEAT_DELEGATIONS_PATH = "/hosted-execution/internal/heartbeat-delegations";
9
+ export declare const HOSTED_HEARTBEAT_EXECUTION_PATHS: Readonly<{
10
+ prepare: "/hosted-execution/internal/heartbeat-executions/prepare";
11
+ settle: "/hosted-execution/internal/heartbeat-executions/settle";
12
+ }>;
10
13
  export declare const HostedHeartbeatCoordinatorTaskInputSchema: z.ZodObject<{
11
14
  workspaceId: z.ZodOptional<z.ZodString>;
12
15
  name: z.ZodOptional<z.ZodString>;
@@ -434,10 +437,11 @@ export declare const HostedHeartbeatDesiredTaskCatalogSchema: z.ZodObject<{
434
437
  }, z.core.$strict>>;
435
438
  resume: z.ZodBoolean;
436
439
  }, z.core.$strict>;
437
- export declare const HostedHeartbeatDelegationRequestSchema: z.ZodObject<{
440
+ export declare const HostedHeartbeatExecutionPreparationRequestSchema: z.ZodObject<{
438
441
  schemaVersion: z.ZodLiteral<1>;
439
442
  taskId: z.ZodString;
440
443
  executionId: z.ZodString;
444
+ interruptedExecutionId: z.ZodOptional<z.ZodString>;
441
445
  }, z.core.$strict>;
442
446
  export declare const HostedHeartbeatDelegationSchema: z.ZodObject<{
443
447
  schemaVersion: z.ZodLiteral<1>;
@@ -474,7 +478,7 @@ export declare const HostedHeartbeatDelegationSchema: z.ZodObject<{
474
478
  mcpCapability: z.ZodString;
475
479
  }, z.core.$strict>;
476
480
  }, z.core.$strict>;
477
- export declare const HostedHeartbeatDelegationAuthorizationSchema: z.ZodObject<{
481
+ export declare const HostedHeartbeatExecutionAuthorizationSchema: z.ZodObject<{
478
482
  scope: z.ZodObject<{
479
483
  tenantId: z.ZodString;
480
484
  subjectId: z.ZodString;
@@ -482,6 +486,139 @@ export declare const HostedHeartbeatDelegationAuthorizationSchema: z.ZodObject<{
482
486
  }, z.core.$strict>;
483
487
  allowedTools: z.ZodArray<z.ZodString>;
484
488
  }, z.core.$strict>;
489
+ export declare const HostedHeartbeatExecutionPreparationDecisionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
490
+ kind: z.ZodLiteral<"execute">;
491
+ authorization: z.ZodObject<{
492
+ scope: z.ZodObject<{
493
+ tenantId: z.ZodString;
494
+ subjectId: z.ZodString;
495
+ productSessionId: z.ZodString;
496
+ }, z.core.$strict>;
497
+ allowedTools: z.ZodArray<z.ZodString>;
498
+ }, z.core.$strict>;
499
+ }, z.core.$strict>, z.ZodObject<{
500
+ kind: z.ZodLiteral<"skip">;
501
+ summary: z.ZodString;
502
+ }, z.core.$strict>], "kind">;
503
+ export declare const HostedHeartbeatExecutionPreparationSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
504
+ schemaVersion: z.ZodLiteral<1>;
505
+ kind: z.ZodLiteral<"execute">;
506
+ delegation: z.ZodObject<{
507
+ schemaVersion: z.ZodLiteral<1>;
508
+ taskId: z.ZodString;
509
+ executionId: z.ZodString;
510
+ scope: z.ZodObject<{
511
+ tenantId: z.ZodString;
512
+ subjectId: z.ZodString;
513
+ productSessionId: z.ZodString;
514
+ }, z.core.$strict>;
515
+ runtimeSessionId: z.ZodString;
516
+ deadlineAt: z.ZodISODateTime;
517
+ authority: z.ZodObject<{
518
+ metadata: z.ZodObject<{
519
+ scope: z.ZodObject<{
520
+ adopterId: z.ZodString;
521
+ tenantId: z.ZodString;
522
+ subjectId: z.ZodString;
523
+ productSessionId: z.ZodString;
524
+ }, z.core.$strict>;
525
+ runtimeSessionId: z.ZodString;
526
+ invocationId: z.ZodString;
527
+ workflow: z.ZodLiteral<"heartbeat-task">;
528
+ issuedAt: z.ZodISODateTime;
529
+ executionExpiresAt: z.ZodISODateTime;
530
+ mcp: z.ZodObject<{
531
+ capabilityId: z.ZodString;
532
+ serverId: z.ZodString;
533
+ allowedTools: z.ZodArray<z.ZodString>;
534
+ expiresAt: z.ZodISODateTime;
535
+ }, z.core.$strict>;
536
+ }, z.core.$strict>;
537
+ executionAssertion: z.ZodString;
538
+ mcpCapability: z.ZodString;
539
+ }, z.core.$strict>;
540
+ }, z.core.$strict>;
541
+ }, z.core.$strict>, z.ZodObject<{
542
+ schemaVersion: z.ZodLiteral<1>;
543
+ kind: z.ZodLiteral<"skip">;
544
+ taskId: z.ZodString;
545
+ executionId: z.ZodString;
546
+ summary: z.ZodString;
547
+ }, z.core.$strict>], "kind">;
548
+ export declare const HostedHeartbeatExecutionResultSchema: z.ZodObject<{
549
+ decision: z.ZodEnum<{
550
+ continue: "continue";
551
+ pause: "pause";
552
+ complete: "complete";
553
+ escalate: "escalate";
554
+ }>;
555
+ summary: z.ZodString;
556
+ runId: z.ZodString;
557
+ outcome: z.ZodEnum<{
558
+ error: "error";
559
+ done: "done";
560
+ max_steps: "max_steps";
561
+ interrupted: "interrupted";
562
+ }>;
563
+ }, z.core.$strict>;
564
+ export declare const HostedHeartbeatExecutionSettlementRequestSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
565
+ schemaVersion: z.ZodLiteral<1>;
566
+ taskId: z.ZodString;
567
+ executionId: z.ZodString;
568
+ kind: z.ZodLiteral<"completed">;
569
+ result: z.ZodObject<{
570
+ decision: z.ZodEnum<{
571
+ continue: "continue";
572
+ pause: "pause";
573
+ complete: "complete";
574
+ escalate: "escalate";
575
+ }>;
576
+ summary: z.ZodString;
577
+ runId: z.ZodString;
578
+ outcome: z.ZodEnum<{
579
+ error: "error";
580
+ done: "done";
581
+ max_steps: "max_steps";
582
+ interrupted: "interrupted";
583
+ }>;
584
+ }, z.core.$strict>;
585
+ }, z.core.$strict>, z.ZodObject<{
586
+ schemaVersion: z.ZodLiteral<1>;
587
+ taskId: z.ZodString;
588
+ executionId: z.ZodString;
589
+ kind: z.ZodLiteral<"failed">;
590
+ errorType: z.ZodString;
591
+ }, z.core.$strict>, z.ZodObject<{
592
+ schemaVersion: z.ZodLiteral<1>;
593
+ taskId: z.ZodString;
594
+ executionId: z.ZodString;
595
+ kind: z.ZodLiteral<"interrupted">;
596
+ }, z.core.$strict>], "kind">;
597
+ export declare const HostedHeartbeatExecutionDispositionSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
598
+ kind: z.ZodLiteral<"accepted">;
599
+ }, z.core.$strict>, z.ZodObject<{
600
+ kind: z.ZodLiteral<"retry">;
601
+ summary: z.ZodString;
602
+ delayMs: z.ZodOptional<z.ZodNumber>;
603
+ }, z.core.$strict>, z.ZodObject<{
604
+ kind: z.ZodLiteral<"blocked">;
605
+ summary: z.ZodString;
606
+ }, z.core.$strict>], "kind">;
607
+ export declare const HostedHeartbeatExecutionSettlementSchema: z.ZodObject<{
608
+ schemaVersion: z.ZodLiteral<1>;
609
+ taskId: z.ZodString;
610
+ executionId: z.ZodString;
611
+ disposition: z.ZodDiscriminatedUnion<[z.ZodObject<{
612
+ kind: z.ZodLiteral<"accepted">;
613
+ }, z.core.$strict>, z.ZodObject<{
614
+ kind: z.ZodLiteral<"retry">;
615
+ summary: z.ZodString;
616
+ delayMs: z.ZodOptional<z.ZodNumber>;
617
+ }, z.core.$strict>, z.ZodObject<{
618
+ kind: z.ZodLiteral<"blocked">;
619
+ summary: z.ZodString;
620
+ }, z.core.$strict>], "kind">;
621
+ }, z.core.$strict>;
485
622
  export type HostedHeartbeatCoordinatorTaskInput = z.infer<typeof HostedHeartbeatCoordinatorTaskInputSchema>;
486
623
  export type HostedHeartbeatCoordinatorState = z.infer<typeof HostedHeartbeatCoordinatorStateSchema>;
487
624
  export type HostedHeartbeatCoordinatorTaskView = z.infer<typeof HostedHeartbeatCoordinatorTaskViewSchema>;
@@ -489,7 +626,13 @@ export type HostedHeartbeatCoordinatorRunView = z.infer<typeof HostedHeartbeatCo
489
626
  export type HostedHeartbeatCoordinatorTaskDetail = z.infer<typeof HostedHeartbeatCoordinatorTaskDetailSchema>;
490
627
  export type HostedHeartbeatDesiredTask = z.infer<typeof HostedHeartbeatDesiredTaskSchema>;
491
628
  export type HostedHeartbeatDesiredTaskCatalog = z.infer<typeof HostedHeartbeatDesiredTaskCatalogSchema>;
492
- export type HostedHeartbeatDelegationRequest = z.infer<typeof HostedHeartbeatDelegationRequestSchema>;
629
+ export type HostedHeartbeatExecutionPreparationRequest = z.infer<typeof HostedHeartbeatExecutionPreparationRequestSchema>;
493
630
  export type HostedHeartbeatDelegation = z.infer<typeof HostedHeartbeatDelegationSchema>;
494
- export type HostedHeartbeatDelegationAuthorization = z.infer<typeof HostedHeartbeatDelegationAuthorizationSchema>;
631
+ export type HostedHeartbeatExecutionAuthorization = z.infer<typeof HostedHeartbeatExecutionAuthorizationSchema>;
632
+ export type HostedHeartbeatExecutionPreparationDecision = z.infer<typeof HostedHeartbeatExecutionPreparationDecisionSchema>;
633
+ export type HostedHeartbeatExecutionPreparation = z.infer<typeof HostedHeartbeatExecutionPreparationSchema>;
634
+ export type HostedHeartbeatExecutionResult = z.infer<typeof HostedHeartbeatExecutionResultSchema>;
635
+ export type HostedHeartbeatExecutionSettlementRequest = z.infer<typeof HostedHeartbeatExecutionSettlementRequestSchema>;
636
+ export type HostedHeartbeatExecutionDisposition = z.infer<typeof HostedHeartbeatExecutionDispositionSchema>;
637
+ export type HostedHeartbeatExecutionSettlement = z.infer<typeof HostedHeartbeatExecutionSettlementSchema>;
495
638
  //# sourceMappingURL=contracts.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"contracts.d.ts","sourceRoot":"","sources":["../../src/coordinator/contracts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAexB,eAAO,MAAM,kCAAkC;;;;;;EAM7C,CAAC;AAEH,eAAO,MAAM,iCAAiC,qDACM,CAAC;AAErD,eAAO,MAAM,yCAAyC;;;;;;;;;;;;;;;kBAc3C,CAAC;AAEZ,eAAO,MAAM,qCAAqC;;;;;EAKhD,CAAC;AAEH,eAAO,MAAM,6CAA6C;;;;;;;kBAE/C,CAAC;AAEZ,eAAO,MAAM,0CAA0C;;;;;;;EAOrD,CAAC;AAEH,eAAO,MAAM,0CAA0C;;;;;;;;;;;;;;;;;;;iBAcvC,CAAC;AAEjB,0EAA0E;AAC1E,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuBrC,CAAC;AAEjB,eAAO,MAAM,wCAAwC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kBAE1C,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