@vibesdotdev/agent-execution 0.0.0-stage → 1.0.0-rc.1

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 (191) hide show
  1. package/LICENSE +18 -0
  2. package/README.md +53 -2
  3. package/dist/code-session/agent-code-session.consumer.descriptor.d.ts +68 -0
  4. package/dist/code-session/agent-code-session.consumer.descriptor.d.ts.map +1 -0
  5. package/dist/code-session/agent-code-session.consumer.descriptor.js +31 -0
  6. package/dist/code-session/agent-code-session.consumer.descriptor.js.map +1 -0
  7. package/dist/code-session/agent-code-session.consumer.plugin.d.ts +18 -0
  8. package/dist/code-session/agent-code-session.consumer.plugin.d.ts.map +1 -0
  9. package/dist/code-session/agent-code-session.consumer.plugin.js +47 -0
  10. package/dist/code-session/agent-code-session.consumer.plugin.js.map +1 -0
  11. package/dist/code-session/agent-code-session.descriptor.d.ts +163 -0
  12. package/dist/code-session/agent-code-session.descriptor.d.ts.map +1 -0
  13. package/dist/code-session/agent-code-session.descriptor.js +129 -0
  14. package/dist/code-session/agent-code-session.descriptor.js.map +1 -0
  15. package/dist/code-session/agent-code-session.impl.consumer.d.ts +224 -0
  16. package/dist/code-session/agent-code-session.impl.consumer.d.ts.map +1 -0
  17. package/dist/code-session/agent-code-session.impl.consumer.js +2131 -0
  18. package/dist/code-session/agent-code-session.impl.consumer.js.map +1 -0
  19. package/dist/code-session/agent-code-session.kind.d.ts +15 -0
  20. package/dist/code-session/agent-code-session.kind.d.ts.map +1 -0
  21. package/dist/code-session/agent-code-session.kind.js +17 -0
  22. package/dist/code-session/agent-code-session.kind.js.map +1 -0
  23. package/dist/code-session/agent-code-session.plugin.d.ts +17 -0
  24. package/dist/code-session/agent-code-session.plugin.d.ts.map +1 -0
  25. package/dist/code-session/agent-code-session.plugin.js +28 -0
  26. package/dist/code-session/agent-code-session.plugin.js.map +1 -0
  27. package/dist/code-session/billing/gates.d.ts +52 -0
  28. package/dist/code-session/billing/gates.d.ts.map +1 -0
  29. package/dist/code-session/billing/gates.js +75 -0
  30. package/dist/code-session/billing/gates.js.map +1 -0
  31. package/dist/code-session/client/index.d.ts +2 -0
  32. package/dist/code-session/client/index.d.ts.map +1 -0
  33. package/dist/code-session/client/index.js +2 -0
  34. package/dist/code-session/client/index.js.map +1 -0
  35. package/dist/code-session/client/resolve.d.ts +20 -0
  36. package/dist/code-session/client/resolve.d.ts.map +1 -0
  37. package/dist/code-session/client/resolve.js +145 -0
  38. package/dist/code-session/client/resolve.js.map +1 -0
  39. package/dist/code-session/docs/agent-code-session.docs.descriptor.d.ts +4 -0
  40. package/dist/code-session/docs/agent-code-session.docs.descriptor.d.ts.map +1 -0
  41. package/dist/code-session/docs/agent-code-session.docs.descriptor.js +109 -0
  42. package/dist/code-session/docs/agent-code-session.docs.descriptor.js.map +1 -0
  43. package/dist/code-session/git-credential.d.ts +87 -0
  44. package/dist/code-session/git-credential.d.ts.map +1 -0
  45. package/dist/code-session/git-credential.js +107 -0
  46. package/dist/code-session/git-credential.js.map +1 -0
  47. package/dist/code-session/host-target.d.ts +76 -0
  48. package/dist/code-session/host-target.d.ts.map +1 -0
  49. package/dist/code-session/host-target.js +81 -0
  50. package/dist/code-session/host-target.js.map +1 -0
  51. package/dist/code-session/index.d.ts +20 -0
  52. package/dist/code-session/index.d.ts.map +1 -0
  53. package/dist/code-session/index.js +20 -0
  54. package/dist/code-session/index.js.map +1 -0
  55. package/dist/code-session/interfaces/code-session.d.ts +448 -0
  56. package/dist/code-session/interfaces/code-session.d.ts.map +1 -0
  57. package/dist/code-session/interfaces/code-session.js +373 -0
  58. package/dist/code-session/interfaces/code-session.js.map +1 -0
  59. package/dist/code-session/operation-lease.d.ts +48 -0
  60. package/dist/code-session/operation-lease.d.ts.map +1 -0
  61. package/dist/code-session/operation-lease.js +73 -0
  62. package/dist/code-session/operation-lease.js.map +1 -0
  63. package/dist/code-session/remote-setup-custody.d.ts +59 -0
  64. package/dist/code-session/remote-setup-custody.d.ts.map +1 -0
  65. package/dist/code-session/remote-setup-custody.js +78 -0
  66. package/dist/code-session/remote-setup-custody.js.map +1 -0
  67. package/dist/code-session/remote-workspace-fs.d.ts +119 -0
  68. package/dist/code-session/remote-workspace-fs.d.ts.map +1 -0
  69. package/dist/code-session/remote-workspace-fs.js +257 -0
  70. package/dist/code-session/remote-workspace-fs.js.map +1 -0
  71. package/dist/code-session/session-metadata.d.ts +40 -0
  72. package/dist/code-session/session-metadata.d.ts.map +1 -0
  73. package/dist/code-session/session-metadata.js +69 -0
  74. package/dist/code-session/session-metadata.js.map +1 -0
  75. package/dist/code-session-relay/agent-code-session-relay.descriptor.d.ts +78 -0
  76. package/dist/code-session-relay/agent-code-session-relay.descriptor.d.ts.map +1 -0
  77. package/dist/code-session-relay/agent-code-session-relay.descriptor.js +38 -0
  78. package/dist/code-session-relay/agent-code-session-relay.descriptor.js.map +1 -0
  79. package/dist/code-session-relay/agent-code-session-relay.impl.d.ts +120 -0
  80. package/dist/code-session-relay/agent-code-session-relay.impl.d.ts.map +1 -0
  81. package/dist/code-session-relay/agent-code-session-relay.impl.js +1392 -0
  82. package/dist/code-session-relay/agent-code-session-relay.impl.js.map +1 -0
  83. package/dist/code-session-relay/agent-code-session-relay.plugin.d.ts +14 -0
  84. package/dist/code-session-relay/agent-code-session-relay.plugin.d.ts.map +1 -0
  85. package/dist/code-session-relay/agent-code-session-relay.plugin.js +25 -0
  86. package/dist/code-session-relay/agent-code-session-relay.plugin.js.map +1 -0
  87. package/dist/code-session-relay/index.d.ts +13 -0
  88. package/dist/code-session-relay/index.d.ts.map +1 -0
  89. package/dist/code-session-relay/index.js +13 -0
  90. package/dist/code-session-relay/index.js.map +1 -0
  91. package/dist/code-session-relay/relay-dial.d.ts +72 -0
  92. package/dist/code-session-relay/relay-dial.d.ts.map +1 -0
  93. package/dist/code-session-relay/relay-dial.js +177 -0
  94. package/dist/code-session-relay/relay-dial.js.map +1 -0
  95. package/dist/index.d.ts +10 -0
  96. package/dist/index.d.ts.map +1 -0
  97. package/dist/index.js +10 -0
  98. package/dist/index.js.map +1 -0
  99. package/dist/sandbox/agent-sandbox.consumer.descriptor.d.ts +35 -0
  100. package/dist/sandbox/agent-sandbox.consumer.descriptor.d.ts.map +1 -0
  101. package/dist/sandbox/agent-sandbox.consumer.descriptor.js +19 -0
  102. package/dist/sandbox/agent-sandbox.consumer.descriptor.js.map +1 -0
  103. package/dist/sandbox/agent-sandbox.consumer.plugin.d.ts +9 -0
  104. package/dist/sandbox/agent-sandbox.consumer.plugin.d.ts.map +1 -0
  105. package/dist/sandbox/agent-sandbox.consumer.plugin.js +33 -0
  106. package/dist/sandbox/agent-sandbox.consumer.plugin.js.map +1 -0
  107. package/dist/sandbox/agent-sandbox.descriptor.d.ts +76 -0
  108. package/dist/sandbox/agent-sandbox.descriptor.d.ts.map +1 -0
  109. package/dist/sandbox/agent-sandbox.descriptor.js +57 -0
  110. package/dist/sandbox/agent-sandbox.descriptor.js.map +1 -0
  111. package/dist/sandbox/agent-sandbox.impl.consumer.d.ts +15 -0
  112. package/dist/sandbox/agent-sandbox.impl.consumer.d.ts.map +1 -0
  113. package/dist/sandbox/agent-sandbox.impl.consumer.js +23 -0
  114. package/dist/sandbox/agent-sandbox.impl.consumer.js.map +1 -0
  115. package/dist/sandbox/agent-sandbox.kind.d.ts +14 -0
  116. package/dist/sandbox/agent-sandbox.kind.d.ts.map +1 -0
  117. package/dist/sandbox/agent-sandbox.kind.js +16 -0
  118. package/dist/sandbox/agent-sandbox.kind.js.map +1 -0
  119. package/dist/sandbox/agent-sandbox.plugin.d.ts +15 -0
  120. package/dist/sandbox/agent-sandbox.plugin.d.ts.map +1 -0
  121. package/dist/sandbox/agent-sandbox.plugin.js +25 -0
  122. package/dist/sandbox/agent-sandbox.plugin.js.map +1 -0
  123. package/dist/sandbox/client/resolve.d.ts +21 -0
  124. package/dist/sandbox/client/resolve.d.ts.map +1 -0
  125. package/dist/sandbox/client/resolve.js +103 -0
  126. package/dist/sandbox/client/resolve.js.map +1 -0
  127. package/dist/sandbox/docs/agent-sandbox.docs.descriptor.d.ts +4 -0
  128. package/dist/sandbox/docs/agent-sandbox.docs.descriptor.d.ts.map +1 -0
  129. package/dist/sandbox/docs/agent-sandbox.docs.descriptor.js +75 -0
  130. package/dist/sandbox/docs/agent-sandbox.docs.descriptor.js.map +1 -0
  131. package/dist/sandbox/index.d.ts +15 -0
  132. package/dist/sandbox/index.d.ts.map +1 -0
  133. package/dist/sandbox/index.js +14 -0
  134. package/dist/sandbox/index.js.map +1 -0
  135. package/dist/sandbox/interfaces/sandbox.d.ts +61 -0
  136. package/dist/sandbox/interfaces/sandbox.d.ts.map +1 -0
  137. package/dist/sandbox/interfaces/sandbox.js +54 -0
  138. package/dist/sandbox/interfaces/sandbox.js.map +1 -0
  139. package/dist/schemas/code-session-resolution.d.ts +20 -0
  140. package/dist/schemas/code-session-resolution.d.ts.map +1 -0
  141. package/dist/schemas/code-session-resolution.js +11 -0
  142. package/dist/schemas/code-session-resolution.js.map +1 -0
  143. package/dist/schemas/session-operation.d.ts +73 -0
  144. package/dist/schemas/session-operation.d.ts.map +1 -0
  145. package/dist/schemas/session-operation.js +47 -0
  146. package/dist/schemas/session-operation.js.map +1 -0
  147. package/dist/schemas/voice.d.ts +87 -0
  148. package/dist/schemas/voice.d.ts.map +1 -0
  149. package/dist/schemas/voice.js +70 -0
  150. package/dist/schemas/voice.js.map +1 -0
  151. package/dist/voice/agent-voice.consumer.descriptor.d.ts +43 -0
  152. package/dist/voice/agent-voice.consumer.descriptor.d.ts.map +1 -0
  153. package/dist/voice/agent-voice.consumer.descriptor.js +20 -0
  154. package/dist/voice/agent-voice.consumer.descriptor.js.map +1 -0
  155. package/dist/voice/agent-voice.consumer.plugin.d.ts +4 -0
  156. package/dist/voice/agent-voice.consumer.plugin.d.ts.map +1 -0
  157. package/dist/voice/agent-voice.consumer.plugin.js +13 -0
  158. package/dist/voice/agent-voice.consumer.plugin.js.map +1 -0
  159. package/dist/voice/agent-voice.descriptor.d.ts +82 -0
  160. package/dist/voice/agent-voice.descriptor.d.ts.map +1 -0
  161. package/dist/voice/agent-voice.descriptor.js +79 -0
  162. package/dist/voice/agent-voice.descriptor.js.map +1 -0
  163. package/dist/voice/agent-voice.impl.consumer.d.ts +35 -0
  164. package/dist/voice/agent-voice.impl.consumer.d.ts.map +1 -0
  165. package/dist/voice/agent-voice.impl.consumer.js +50 -0
  166. package/dist/voice/agent-voice.impl.consumer.js.map +1 -0
  167. package/dist/voice/agent-voice.kind.d.ts +67 -0
  168. package/dist/voice/agent-voice.kind.d.ts.map +1 -0
  169. package/dist/voice/agent-voice.kind.js +26 -0
  170. package/dist/voice/agent-voice.kind.js.map +1 -0
  171. package/dist/voice/agent-voice.plugin.d.ts +4 -0
  172. package/dist/voice/agent-voice.plugin.d.ts.map +1 -0
  173. package/dist/voice/agent-voice.plugin.js +18 -0
  174. package/dist/voice/agent-voice.plugin.js.map +1 -0
  175. package/dist/voice/client.d.ts +38 -0
  176. package/dist/voice/client.d.ts.map +1 -0
  177. package/dist/voice/client.js +29 -0
  178. package/dist/voice/client.js.map +1 -0
  179. package/dist/voice/index.d.ts +14 -0
  180. package/dist/voice/index.d.ts.map +1 -0
  181. package/dist/voice/index.js +14 -0
  182. package/dist/voice/index.js.map +1 -0
  183. package/dist/voice/pipeline.d.ts +66 -0
  184. package/dist/voice/pipeline.d.ts.map +1 -0
  185. package/dist/voice/pipeline.js +330 -0
  186. package/dist/voice/pipeline.js.map +1 -0
  187. package/dist/voice/session.d.ts +29 -0
  188. package/dist/voice/session.d.ts.map +1 -0
  189. package/dist/voice/session.js +78 -0
  190. package/dist/voice/session.js.map +1 -0
  191. package/package.json +279 -4
@@ -0,0 +1 @@
1
+ {"version":3,"file":"resolve.js","sourceRoot":"","sources":["../../../src/code-session/client/resolve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EACN,eAAe,E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,CAAC;gBAC9E,YAAY,IAAI,CAAC,CAAC;gBAClB,SAAS;YACV,CAAC;YACD,MAAM,eAAe,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACrC,CAAC;IACF,CAAC;IAED,MAAM,IAAI,eAAe,CACxB,yEAAyE,EACzE,aAAa,EACb;QACC,MAAM,EAAE,2BAA2B;QACnC,SAAS,EAAE,KAAK;QAChB,OAAO,EAAE,EAAE,cAAc,EAAE,QAAQ,CAAC,MAAM,EAAE,YAAY,EAAE;KAC1D,CACD,CAAC;AACH,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { DocsTopicDescriptor } from '@vibesdotdev/docs-contracts';
2
+ declare const descriptor: DocsTopicDescriptor;
3
+ export default descriptor;
4
+ //# sourceMappingURL=agent-code-session.docs.descriptor.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-code-session.docs.descriptor.d.ts","sourceRoot":"","sources":["../../../src/code-session/docs/agent-code-session.docs.descriptor.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,6BAA6B,CAAC;AAgFvE,QAAA,MAAM,UAAU,EAAE,mBA8BjB,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,109 @@
1
+ /**
2
+ * Docs/topic descriptor for @vibesdotdev/agent-execution/code-session (Rule 11).
3
+ * Registered by `agentCodeSessionPlugin`.
4
+ */
5
+ const markdown = `---
6
+ title: Agent Code Session
7
+ summary: Persistent repo-bound workspace for Build mode via the agent/code-session runtime kind
8
+ tags: [agent, code-session, build, repository, git, runtime]
9
+ parent: agents
10
+ order: 12
11
+ surfaces: [cli, web, in-app, mcp]
12
+ hardware: [consumer, cloud]
13
+ ---
14
+
15
+ # Agent Code Session
16
+
17
+ \`@vibesdotdev/agent-execution/code-session\` owns the \`agent/code-session\` runtime kind: a
18
+ *persistent* workspace bound to a repository + host target. It extends the
19
+ one-shot [\`agent/sandbox\`](agent.sandbox) contract into a long-lived session
20
+ that survives across tool calls — the runtime substrate of Build mode.
21
+
22
+ A session can clone a repo, run foreground/background commands, read/write/patch
23
+ files, perform git ops (status/commit/push), and expose a port for preview.
24
+
25
+ ## Host targets
26
+
27
+ A session resolves to one of two execution targets:
28
+
29
+ - \`{ kind: 'cloud' }\` — a per-session Cloudflare Sandbox (persistent FS,
30
+ background procs, native preview URLs), resolved by the cloud adapter.
31
+ - \`{ kind: 'host', hostId }\` — a platform Host daemon that advertises the
32
+ \`sandbox:code-execution\` capability. The default is the local host.
33
+
34
+ ## Consumer vs cloud
35
+
36
+ - **Consumer** (this package): clones under the active Vibes profile, runs
37
+ long-lived processes via \`Bun.spawn\`, git ops via the git CLI.
38
+ - **Cloud** ([\`agent.code-session.cloudflare\`](agent.code-session.cloudflare)):
39
+ routes through a host-composed provider sandbox-session capability.
40
+
41
+ ## Usage
42
+
43
+ \`\`\`ts
44
+ import { resolveCodeSession } from '@vibesdotdev/agent-execution/code-session';
45
+
46
+ const sessions = await resolveCodeSession(runtime);
47
+ const handle = await sessions.initialize({ cloneUrl, checkoutRef: 'main' });
48
+ await sessions.runCommand(handle.sessionId, { command: ['bun', 'install'] });
49
+ const status = await sessions.gitStatus(handle.sessionId);
50
+ \`\`\`
51
+
52
+ Register \`@vibesdotdev/agent-execution/code-session/plugin\` in an app's \`vibes.config.ts\`.
53
+ The agent loop reaches the session through the code-session \`ai/tool\`s
54
+ registered by \`@vibesdotdev/agents\`.
55
+
56
+ ## Pause and resume
57
+
58
+ \`pause(sessionId)\` stops the session's background processes and keeps its files; \`runCommand\` then refuses \`code-session-paused\` until \`resume(sessionId)\`. See [workspace.isolation](workspace.isolation) for isolated worktrees with the same lifecycle plus accept, purge and idle cleanup.
59
+
60
+ ## Relay teardown recovery
61
+
62
+ Fleet relay teardown records durable cleanup authorization outside the workspace
63
+ before moving it into quarantine. Legacy metadata without an operation identity
64
+ is adopted first. Pending cleanup refuses ordinary work; retry teardown after a
65
+ failure, including from a fresh runtime after the old operation lease expires.
66
+ Concurrent legacy adoption preserves already-published cleanup state. Unconfirmed removal refuses
67
+ \`UNAVAILABLE / code-session-cleanup-unconfirmed\`. Confirmed removal leaves an
68
+ idempotent tombstone; create-or-get cannot revive the operation.
69
+
70
+ ## Related
71
+
72
+ :::card{title="See also"}
73
+ - [\`agent.code-session.cloudflare\`](agent.code-session.cloudflare) — the cloud adapter
74
+ - [\`agent.sandbox\`](agent.sandbox) — the one-shot sandbox this extends
75
+ - [\`agents\`](agents) — the agent loop + code-session tools
76
+ :::
77
+ `;
78
+ const descriptor = {
79
+ kind: 'docs/topic',
80
+ id: 'agent.code-session',
81
+ title: 'Agent Code Session',
82
+ summary: 'Persistent repo-bound workspace for Build mode via the agent/code-session runtime kind',
83
+ body: {
84
+ type: 'markdown',
85
+ sourceType: 'raw',
86
+ source: markdown
87
+ },
88
+ parent: 'agents',
89
+ order: 12,
90
+ tags: ['agent', 'code-session', 'build', 'repository', 'git', 'runtime'],
91
+ surfaces: ['cli', 'web', 'in-app', 'mcp'],
92
+ hardware: ['consumer', 'cloud'],
93
+ enabled: true,
94
+ man: {
95
+ name: 'agent.code-session — persistent repo-bound agent workspace',
96
+ section: 1,
97
+ synopsis: 'vibes man agent.code-session',
98
+ options: [],
99
+ examples: [
100
+ {
101
+ description: 'Initialize a session and run a command',
102
+ command: "const s = await resolveCodeSession(runtime); const h = await s.initialize({ cloneUrl }); await s.runCommand(h.sessionId, { command: ['bun', 'install'] })"
103
+ }
104
+ ],
105
+ seeAlso: ['agent.code-session.cloudflare', 'agent.sandbox', 'agents']
106
+ }
107
+ };
108
+ export default descriptor;
109
+ //# sourceMappingURL=agent-code-session.docs.descriptor.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agent-code-session.docs.descriptor.js","sourceRoot":"","sources":["../../../src/code-session/docs/agent-code-session.docs.descriptor.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,QAAQ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwEhB,CAAC;AAEF,MAAM,UAAU,GAAwB;IACvC,IAAI,EAAE,YAAY;IAClB,EAAE,EAAE,oBAAoB;IACxB,KAAK,EAAE,oBAAoB;IAC3B,OAAO,EAAE,wFAAwF;IACjG,IAAI,EAAE;QACL,IAAI,EAAE,UAAU;QAChB,UAAU,EAAE,KAAK;QACjB,MAAM,EAAE,QAAQ;KAChB;IACD,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,EAAE;IACT,IAAI,EAAE,CAAC,OAAO,EAAE,cAAc,EAAE,OAAO,EAAE,YAAY,EAAE,KAAK,EAAE,SAAS,CAAC;IACxE,QAAQ,EAAE,CAAC,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,CAAC;IACzC,QAAQ,EAAE,CAAC,UAAU,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,IAAI;IACb,GAAG,EAAE;QACJ,IAAI,EAAE,4DAA4D;QAClE,OAAO,EAAE,CAAC;QACV,QAAQ,EAAE,8BAA8B;QACxC,OAAO,EAAE,EAAE;QACX,QAAQ,EAAE;YACT;gBACC,WAAW,EAAE,wCAAwC;gBACrD,OAAO,EACN,2JAA2J;aAC5J;SACD;QACD,OAAO,EAAE,CAAC,+BAA+B,EAAE,eAAe,EAAE,QAAQ,CAAC;KACrE;CACD,CAAC;AAEF,eAAe,UAAU,CAAC"}
@@ -0,0 +1,87 @@
1
+ /**
2
+ * The ONE place a code session turns a credential into git arguments.
3
+ *
4
+ * This exists because `buildCredentialArgs` had been reimplemented three times —
5
+ * here, in `code-sessions`' cloud transcript impl, and inline in the Cloudflare
6
+ * impl — and every copy kept the convenient half (a helper that answers with the
7
+ * token) while dropping the security-bearing half (binding that answer to one
8
+ * protocol+host+path with an expiry). Two of the copies said in their own
9
+ * comments that they "mirror `@vibesdotdev/git-operations`". A mirror that
10
+ * reflects half of a credential guard is not a mirror.
11
+ *
12
+ * So this module does not reimplement anything: it delegates to the canonical
13
+ * `buildCredentialArgs` and exists only to adapt the code-session credential
14
+ * shape to the git-operations one. When a session is ready to carry a
15
+ * `GitCredentialLease`, the lease branch is already live in the canonical
16
+ * implementation — it starts working here the moment a lease is passed in,
17
+ * with no further change to this file.
18
+ */
19
+ import type { GitCredential, GitNetworkOperation } from '@vibesdotdev/git-operations/interface';
20
+ import { type ValueFreeFailure } from '@vibesdotdev/kernel';
21
+ import type { CodeSessionCloneCredential } from './interfaces/code-session.ts';
22
+ export interface CodeSessionCredentialArgs {
23
+ readonly args: string[];
24
+ readonly env: Record<string, string>;
25
+ }
26
+ export interface CodeSessionCredentialLeaseInput {
27
+ readonly token: string;
28
+ readonly username?: string;
29
+ readonly repositoryId: string;
30
+ readonly remoteUrl: string | null | undefined;
31
+ readonly ttlSeconds: number;
32
+ readonly operations?: GitNetworkOperation[];
33
+ readonly nowEpochMs: number;
34
+ }
35
+ export type CodeSessionCredentialLeaseResult = {
36
+ readonly credential: CodeSessionCloneCredential;
37
+ readonly bound: true;
38
+ } | {
39
+ readonly credential: CodeSessionCloneCredential;
40
+ readonly bound: false;
41
+ readonly reason: 'repository-no-clone-url' | 'remote-not-canonical';
42
+ readonly failure?: ValueFreeFailure;
43
+ };
44
+ /**
45
+ * Adapt a code-session credential to the canonical git-operations shape.
46
+ *
47
+ * `kind: 'token'` is NOT decoration. The canonical builder returns
48
+ * `{args: [], env: {}}` for anything whose `kind` is not `'token'`, so a
49
+ * credential that arrives without the discriminant is silently dropped and the
50
+ * clone proceeds with no auth at all — which on a private repo surfaces as a
51
+ * confusing 403 far from its cause rather than as an error here. The test beside
52
+ * this file exists specifically to catch that.
53
+ */
54
+ export declare function toGitCredential(credential: CodeSessionCloneCredential): GitCredential;
55
+ /**
56
+ * Build the `-c credential.helper=...` args + child env that feed a token to git
57
+ * WITHOUT writing it into the remote URL or the persisted `.git/config`.
58
+ *
59
+ * The token lives only in the process env for a single invocation. Note what
60
+ * that does NOT promise on every backend: the Cloudflare Sandbox Bridge exec
61
+ * protocol has no env channel, so its transport folds env into argv and the
62
+ * token lands in the request body. That is a transport gap, measured in
63
+ * provider integration's "KNOWN EXPOSURE" tests, not something this function can
64
+ * fix — but a caller reasoning about where the token can be observed needs it.
65
+ */
66
+ export declare function codeSessionCredentialArgs(credential?: CodeSessionCloneCredential): CodeSessionCredentialArgs;
67
+ /**
68
+ * Turn a freshly minted token into a REPOSITORY-BOUND lease when the remote
69
+ * allows it, and fall back to the raw shape when it does not.
70
+ *
71
+ * Why the fallback rather than a throw. `parseCanonicalGitRemote` is
72
+ * deliberately unforgiving — it rejects anything but one exact canonical HTTPS
73
+ * spelling (no credentials in the URL, no query or hash, at least two path
74
+ * segments, a `.git` suffix, and `href` equal to the input). That strictness is
75
+ * correct for deciding what a token may be used for, but a caller minting a
76
+ * credential is on the critical path of "can this session start at all". If a
77
+ * stored `cloneUrl` is spelled any other way, throwing here would take out
78
+ * session creation for that repository entirely — trading a working clone for
79
+ * no clone, in the name of security that the raw path never had either.
80
+ *
81
+ * So a non-canonical remote degrades to exactly today's behaviour and says so
82
+ * through `bound: false`, which callers should log. Anything that parses gets
83
+ * the binding: the token stops answering for any other host or path, and stops
84
+ * answering at all once it expires.
85
+ */
86
+ export declare function codeSessionCredentialLease(input: CodeSessionCredentialLeaseInput): CodeSessionCredentialLeaseResult;
87
+ //# sourceMappingURL=git-credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-credential.d.ts","sourceRoot":"","sources":["../../src/code-session/git-credential.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAOH,OAAO,KAAK,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,uCAAuC,CAAC;AAChG,OAAO,EAAyC,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,KAAK,EAAE,0BAA0B,EAAE,MAAM,8BAA8B,CAAC;AAE/E,MAAM,WAAW,yBAAyB;IACzC,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,CAAC;IACxB,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,+BAA+B;IAC/C,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAC3B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,SAAS,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,UAAU,CAAC,EAAE,mBAAmB,EAAE,CAAC;IAC5C,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,MAAM,gCAAgC,GACzC;IAAE,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAA;CAAE,GACzE;IACA,QAAQ,CAAC,UAAU,EAAE,0BAA0B,CAAC;IAChD,QAAQ,CAAC,KAAK,EAAE,KAAK,CAAC;IACtB,QAAQ,CAAC,MAAM,EAAE,yBAAyB,GAAG,sBAAsB,CAAC;IACpE,QAAQ,CAAC,OAAO,CAAC,EAAE,gBAAgB,CAAC;CACnC,CAAC;AAEL;;;;;;;;;GASG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,0BAA0B,GAAG,aAAa,CAIrF;AACD;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,UAAU,CAAC,EAAE,0BAA0B,GAAG,yBAAyB,CAG5G;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,0BAA0B,CAAC,KAAK,EAAE,+BAA+B,GAAG,gCAAgC,CA6BnH"}
@@ -0,0 +1,107 @@
1
+ /**
2
+ * The ONE place a code session turns a credential into git arguments.
3
+ *
4
+ * This exists because `buildCredentialArgs` had been reimplemented three times —
5
+ * here, in `code-sessions`' cloud transcript impl, and inline in the Cloudflare
6
+ * impl — and every copy kept the convenient half (a helper that answers with the
7
+ * token) while dropping the security-bearing half (binding that answer to one
8
+ * protocol+host+path with an expiry). Two of the copies said in their own
9
+ * comments that they "mirror `@vibesdotdev/git-operations`". A mirror that
10
+ * reflects half of a credential guard is not a mirror.
11
+ *
12
+ * So this module does not reimplement anything: it delegates to the canonical
13
+ * `buildCredentialArgs` and exists only to adapt the code-session credential
14
+ * shape to the git-operations one. When a session is ready to carry a
15
+ * `GitCredentialLease`, the lease branch is already live in the canonical
16
+ * implementation — it starts working here the moment a lease is passed in,
17
+ * with no further change to this file.
18
+ */
19
+ // Narrow subpaths on purpose: the seam needs one pure function and one type,
20
+ // and the package root also exports the consumer impl. Importing `./core`
21
+ // keeps a worker bundle from pulling in a host-side git implementation it can
22
+ // never run.
23
+ import { buildCredentialArgs, parseCanonicalGitRemote } from '@vibesdotdev/git-operations/core';
24
+ import { CaughtFailureSchema, valueFreeFailure } from '@vibesdotdev/kernel';
25
+ /**
26
+ * Adapt a code-session credential to the canonical git-operations shape.
27
+ *
28
+ * `kind: 'token'` is NOT decoration. The canonical builder returns
29
+ * `{args: [], env: {}}` for anything whose `kind` is not `'token'`, so a
30
+ * credential that arrives without the discriminant is silently dropped and the
31
+ * clone proceeds with no auth at all — which on a private repo surfaces as a
32
+ * confusing 403 far from its cause rather than as an error here. The test beside
33
+ * this file exists specifically to catch that.
34
+ */
35
+ export function toGitCredential(credential) {
36
+ // A lease already carries `kind`; spreading last preserves it and every other
37
+ // lease field, so passing a lease through here binds it for free.
38
+ return { kind: 'token', ...credential };
39
+ }
40
+ /**
41
+ * Build the `-c credential.helper=...` args + child env that feed a token to git
42
+ * WITHOUT writing it into the remote URL or the persisted `.git/config`.
43
+ *
44
+ * The token lives only in the process env for a single invocation. Note what
45
+ * that does NOT promise on every backend: the Cloudflare Sandbox Bridge exec
46
+ * protocol has no env channel, so its transport folds env into argv and the
47
+ * token lands in the request body. That is a transport gap, measured in
48
+ * provider integration's "KNOWN EXPOSURE" tests, not something this function can
49
+ * fix — but a caller reasoning about where the token can be observed needs it.
50
+ */
51
+ export function codeSessionCredentialArgs(credential) {
52
+ if (!credential)
53
+ return { args: [], env: {} };
54
+ return buildCredentialArgs(toGitCredential(credential));
55
+ }
56
+ /**
57
+ * Turn a freshly minted token into a REPOSITORY-BOUND lease when the remote
58
+ * allows it, and fall back to the raw shape when it does not.
59
+ *
60
+ * Why the fallback rather than a throw. `parseCanonicalGitRemote` is
61
+ * deliberately unforgiving — it rejects anything but one exact canonical HTTPS
62
+ * spelling (no credentials in the URL, no query or hash, at least two path
63
+ * segments, a `.git` suffix, and `href` equal to the input). That strictness is
64
+ * correct for deciding what a token may be used for, but a caller minting a
65
+ * credential is on the critical path of "can this session start at all". If a
66
+ * stored `cloneUrl` is spelled any other way, throwing here would take out
67
+ * session creation for that repository entirely — trading a working clone for
68
+ * no clone, in the name of security that the raw path never had either.
69
+ *
70
+ * So a non-canonical remote degrades to exactly today's behaviour and says so
71
+ * through `bound: false`, which callers should log. Anything that parses gets
72
+ * the binding: the token stops answering for any other host or path, and stops
73
+ * answering at all once it expires.
74
+ */
75
+ export function codeSessionCredentialLease(input) {
76
+ const raw = {
77
+ token: input.token
78
+ };
79
+ if (input.username)
80
+ raw.username = input.username;
81
+ if (!input.remoteUrl) {
82
+ return { credential: raw, bound: false, reason: 'repository-no-clone-url' };
83
+ }
84
+ try {
85
+ parseCanonicalGitRemote(input.remoteUrl);
86
+ }
87
+ catch (caught) {
88
+ return {
89
+ credential: raw,
90
+ bound: false,
91
+ reason: 'remote-not-canonical',
92
+ failure: valueFreeFailure(CaughtFailureSchema.parse(caught))
93
+ };
94
+ }
95
+ return {
96
+ credential: {
97
+ ...raw,
98
+ kind: 'token',
99
+ repositoryId: input.repositoryId,
100
+ remoteUrl: input.remoteUrl,
101
+ operations: input.operations ?? ['clone', 'fetch'],
102
+ expiresAtEpochMs: input.nowEpochMs + input.ttlSeconds * 1_000
103
+ },
104
+ bound: true
105
+ };
106
+ }
107
+ //# sourceMappingURL=git-credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-credential.js","sourceRoot":"","sources":["../../src/code-session/git-credential.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,6EAA6E;AAC7E,0EAA0E;AAC1E,8EAA8E;AAC9E,aAAa;AACb,OAAO,EAAE,mBAAmB,EAAE,uBAAuB,EAAE,MAAM,kCAAkC,CAAC;AAEhG,OAAO,EAAE,mBAAmB,EAAE,gBAAgB,EAAyB,MAAM,qBAAqB,CAAC;AA2BnG;;;;;;;;;GASG;AACH,MAAM,UAAU,eAAe,CAAC,UAAsC;IACrE,8EAA8E;IAC9E,kEAAkE;IAClE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,GAAG,UAAU,EAAE,CAAC;AACzC,CAAC;AACD;;;;;;;;;;GAUG;AACH,MAAM,UAAU,yBAAyB,CAAC,UAAuC;IAChF,IAAI,CAAC,UAAU;QAAE,OAAO,EAAE,IAAI,EAAE,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC;IAC9C,OAAO,mBAAmB,CAAC,eAAe,CAAC,UAAU,CAAC,CAAC,CAAC;AACzD,CAAC;AAED;;;;;;;;;;;;;;;;;;GAkBG;AACH,MAAM,UAAU,0BAA0B,CAAC,KAAsC;IAChF,MAAM,GAAG,GAA+B;QACvC,KAAK,EAAE,KAAK,CAAC,KAAK;KAClB,CAAC;IACF,IAAI,KAAK,CAAC,QAAQ;QAAE,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC,QAAQ,CAAC;IAClD,IAAI,CAAC,KAAK,CAAC,SAAS,EAAE,CAAC;QACtB,OAAO,EAAE,UAAU,EAAE,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,MAAM,EAAE,yBAAyB,EAAE,CAAC;IAC7E,CAAC;IACD,IAAI,CAAC;QACJ,uBAAuB,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;IAC1C,CAAC;IAAC,OAAO,MAAM,EAAE,CAAC;QACjB,OAAO;YACN,UAAU,EAAE,GAAG;YACf,KAAK,EAAE,KAAK;YACZ,MAAM,EAAE,sBAAsB;YAC9B,OAAO,EAAE,gBAAgB,CAAC,mBAAmB,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;SAC5D,CAAC;IACH,CAAC;IACD,OAAO;QACN,UAAU,EAAE;YACX,GAAG,GAAG;YACN,IAAI,EAAE,OAAO;YACb,YAAY,EAAE,KAAK,CAAC,YAAY;YAChC,SAAS,EAAE,KAAK,CAAC,SAAS;YAC1B,UAAU,EAAE,KAAK,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE,OAAO,CAAC;YAClD,gBAAgB,EAAE,KAAK,CAAC,UAAU,GAAG,KAAK,CAAC,UAAU,GAAG,KAAK;SAC7D;QACD,KAAK,EAAE,IAAI;KACX,CAAC;AACH,CAAC"}
@@ -0,0 +1,76 @@
1
+ /**
2
+ * Session Host Target
3
+ *
4
+ * A code session resolves its execution environment to one of three targets:
5
+ *
6
+ * - `{ kind: 'cloud' }` — a per-session sandbox with a persistent
7
+ * filesystem, background processes, and native preview URLs.
8
+ *
9
+ * - `{ kind: 'host', hostId }` — an enrolled host whose daemon runs the
10
+ * session. `hostId: 'local'` addresses the current host.
11
+ *
12
+ * - `{ kind: 'provisioned', adapter, ... }` — a machine created on demand
13
+ * through a registered provisioning adapter. `adapter` is the required id
14
+ * of that adapter; `providerConfig` carries adapter-specific options, and
15
+ * the generic `region` / `size` / `image` / `repo` / `branch` / `ttlHours`
16
+ * fields cover the common placement, checkout, and lifecycle options.
17
+ *
18
+ * Resolution derives the allowed `requiredHostTargetKind` values from this
19
+ * schema's discriminator, so this file is the single owner of the target list.
20
+ */
21
+ import * as z from 'zod/v4';
22
+ /** Capability label a Host must advertise to run code sessions. */
23
+ export declare const CODE_SESSION_HOST_CAPABILITY_LABEL = "sandbox:code-execution";
24
+ export declare const CloudSessionHostTargetSchema: z.ZodObject<{
25
+ kind: z.ZodLiteral<"cloud">;
26
+ }, z.core.$strip>;
27
+ export declare const PlatformSessionHostTargetSchema: z.ZodObject<{
28
+ kind: z.ZodLiteral<"host">;
29
+ hostId: z.ZodString;
30
+ }, z.core.$strip>;
31
+ export declare const ProvisionedSessionHostTargetSchema: z.ZodObject<{
32
+ kind: z.ZodLiteral<"provisioned">;
33
+ adapter: z.ZodString;
34
+ region: z.ZodOptional<z.ZodString>;
35
+ size: z.ZodOptional<z.ZodString>;
36
+ image: z.ZodOptional<z.ZodString>;
37
+ repo: z.ZodOptional<z.ZodString>;
38
+ branch: z.ZodOptional<z.ZodString>;
39
+ ttlHours: z.ZodOptional<z.ZodNumber>;
40
+ providerConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
41
+ }, z.core.$strip>;
42
+ export declare const SessionHostTargetSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
43
+ kind: z.ZodLiteral<"cloud">;
44
+ }, z.core.$strip>, z.ZodObject<{
45
+ kind: z.ZodLiteral<"host">;
46
+ hostId: z.ZodString;
47
+ }, z.core.$strip>, z.ZodObject<{
48
+ kind: z.ZodLiteral<"provisioned">;
49
+ adapter: z.ZodString;
50
+ region: z.ZodOptional<z.ZodString>;
51
+ size: z.ZodOptional<z.ZodString>;
52
+ image: z.ZodOptional<z.ZodString>;
53
+ repo: z.ZodOptional<z.ZodString>;
54
+ branch: z.ZodOptional<z.ZodString>;
55
+ ttlHours: z.ZodOptional<z.ZodNumber>;
56
+ providerConfig: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
57
+ }, z.core.$strip>], "kind">;
58
+ export type CloudSessionHostTarget = z.infer<typeof CloudSessionHostTargetSchema>;
59
+ export type PlatformSessionHostTarget = z.infer<typeof PlatformSessionHostTargetSchema>;
60
+ export type ProvisionedSessionHostTarget = z.infer<typeof ProvisionedSessionHostTargetSchema>;
61
+ export type SessionHostTarget = z.infer<typeof SessionHostTargetSchema>;
62
+ export declare const SessionHostTargetKindSchema: z.ZodEnum<{
63
+ cloud: "cloud";
64
+ host: "host";
65
+ provisioned: "provisioned";
66
+ }>;
67
+ export type SessionHostTargetKind = z.infer<typeof SessionHostTargetKindSchema>;
68
+ /** The conventional default target when none is specified: the local Host. */
69
+ export declare const DEFAULT_SESSION_HOST_TARGET: SessionHostTarget;
70
+ /** Narrow a target to the platform-Host variant. */
71
+ export declare function isPlatformHostTarget(target: SessionHostTarget): target is PlatformSessionHostTarget;
72
+ /** Narrow a target to the cloud variant. */
73
+ export declare function isCloudHostTarget(target: SessionHostTarget): target is CloudSessionHostTarget;
74
+ /** Narrow a target to the generic provisioned variant. */
75
+ export declare function isProvisionedHostTarget(target: SessionHostTarget): target is ProvisionedSessionHostTarget;
76
+ //# sourceMappingURL=host-target.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-target.d.ts","sourceRoot":"","sources":["../../src/code-session/host-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,mEAAmE;AACnE,eAAO,MAAM,kCAAkC,2BAA2B,CAAC;AAE3E,eAAO,MAAM,4BAA4B;;iBAEvC,CAAC;AAEH,eAAO,MAAM,+BAA+B;;;iBAI1C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;;;;;;;;iBAkB7C,CAAC;AAEH,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;2BAIlC,CAAC;AAEH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AACxF,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAQxE,eAAO,MAAM,2BAA2B;;;;EAIvC,CAAC;AACF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,8EAA8E;AAC9E,eAAO,MAAM,2BAA2B,EAAE,iBAAqD,CAAC;AAEhG,oDAAoD;AACpD,wBAAgB,oBAAoB,CACnC,MAAM,EAAE,iBAAiB,GACvB,MAAM,IAAI,yBAAyB,CAErC;AAED,4CAA4C;AAC5C,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,iBAAiB,GAAG,MAAM,IAAI,sBAAsB,CAE7F;AAED,0DAA0D;AAC1D,wBAAgB,uBAAuB,CACtC,MAAM,EAAE,iBAAiB,GACvB,MAAM,IAAI,4BAA4B,CAExC"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Session Host Target
3
+ *
4
+ * A code session resolves its execution environment to one of three targets:
5
+ *
6
+ * - `{ kind: 'cloud' }` — a per-session sandbox with a persistent
7
+ * filesystem, background processes, and native preview URLs.
8
+ *
9
+ * - `{ kind: 'host', hostId }` — an enrolled host whose daemon runs the
10
+ * session. `hostId: 'local'` addresses the current host.
11
+ *
12
+ * - `{ kind: 'provisioned', adapter, ... }` — a machine created on demand
13
+ * through a registered provisioning adapter. `adapter` is the required id
14
+ * of that adapter; `providerConfig` carries adapter-specific options, and
15
+ * the generic `region` / `size` / `image` / `repo` / `branch` / `ttlHours`
16
+ * fields cover the common placement, checkout, and lifecycle options.
17
+ *
18
+ * Resolution derives the allowed `requiredHostTargetKind` values from this
19
+ * schema's discriminator, so this file is the single owner of the target list.
20
+ */
21
+ import * as z from 'zod/v4';
22
+ /** Capability label a Host must advertise to run code sessions. */
23
+ export const CODE_SESSION_HOST_CAPABILITY_LABEL = 'sandbox:code-execution';
24
+ export const CloudSessionHostTargetSchema = z.object({
25
+ kind: z.literal('cloud')
26
+ });
27
+ export const PlatformSessionHostTargetSchema = z.object({
28
+ kind: z.literal('host'),
29
+ /** The platform Host id whose daemon runs the session. */
30
+ hostId: z.string().min(1, 'hostId is required for a host target')
31
+ });
32
+ export const ProvisionedSessionHostTargetSchema = z.object({
33
+ kind: z.literal('provisioned'),
34
+ /** The id of a registered provisioning adapter. */
35
+ adapter: z.string().min(1),
36
+ /** Target region or zone. */
37
+ region: z.string().optional(),
38
+ /** Compute instance size or shape. */
39
+ size: z.string().optional(),
40
+ /** Custom OS image or snapshot ID. */
41
+ image: z.string().optional(),
42
+ /** Repository to checkout in the session workspace. */
43
+ repo: z.string().optional(),
44
+ /** Branch or commit SHA to checkout. */
45
+ branch: z.string().optional(),
46
+ /** Time-to-live in hours before automatic reaping. */
47
+ ttlHours: z.number().int().positive().max(168).optional(),
48
+ /** Provider-specific extra parameters. */
49
+ providerConfig: z.record(z.string(), z.unknown()).optional()
50
+ });
51
+ export const SessionHostTargetSchema = z.discriminatedUnion('kind', [
52
+ CloudSessionHostTargetSchema,
53
+ PlatformSessionHostTargetSchema,
54
+ ProvisionedSessionHostTargetSchema
55
+ ]);
56
+ /** The target kinds, derived from the owning union so there is one owner. */
57
+ const sessionHostTargetKinds = SessionHostTargetSchema.options.map((option) => {
58
+ const [kind] = [...option.shape.kind.values];
59
+ if (kind === undefined)
60
+ throw new Error('Each host-target kind literal holds exactly one value.');
61
+ return kind;
62
+ });
63
+ export const SessionHostTargetKindSchema = z.enum(
64
+ // SAFETY: the union above declares exactly the cloud, host, and provisioned
65
+ // options, so the derived array is a non-empty tuple of those kinds.
66
+ sessionHostTargetKinds);
67
+ /** The conventional default target when none is specified: the local Host. */
68
+ export const DEFAULT_SESSION_HOST_TARGET = { kind: 'host', hostId: 'local' };
69
+ /** Narrow a target to the platform-Host variant. */
70
+ export function isPlatformHostTarget(target) {
71
+ return target.kind === 'host';
72
+ }
73
+ /** Narrow a target to the cloud variant. */
74
+ export function isCloudHostTarget(target) {
75
+ return target.kind === 'cloud';
76
+ }
77
+ /** Narrow a target to the generic provisioned variant. */
78
+ export function isProvisionedHostTarget(target) {
79
+ return target.kind === 'provisioned';
80
+ }
81
+ //# sourceMappingURL=host-target.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host-target.js","sourceRoot":"","sources":["../../src/code-session/host-target.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,mEAAmE;AACnE,MAAM,CAAC,MAAM,kCAAkC,GAAG,wBAAwB,CAAC;AAE3E,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IACpD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACvD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACvB,0DAA0D;IAC1D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,sCAAsC,CAAC;CACjE,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1D,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,aAAa,CAAC;IAC9B,mDAAmD;IACnD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC1B,6BAA6B;IAC7B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7B,sCAAsC;IACtC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,sCAAsC;IACtC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,uDAAuD;IACvD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,wCAAwC;IACx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AyB;IAC1D,OAAO,MAAM,CAAC,IAAI,KAAK,OAAO,CAAC;AAChC,CAAC;AAED,0DAA0D;AAC1D,MAAM,UAAU,uBAAuB,CACtC,MAAyB;IAEzB,OAAO,MAAM,CAAC,IAAI,KAAK,aAAa,CAAC;AACtC,CAAC"}
@@ -0,0 +1,20 @@
1
+ /**
2
+ * @vibesdotdev/agent-execution/code-session
3
+ *
4
+ * The `agent/code-session` runtime kind (a persistent workspace bound to a
5
+ * repository + host target, extending the `agent/sandbox` one-shot contract) +
6
+ * its consumer (Bun-on-a-Host) impl, the session host-target model (WS2), the
7
+ * scope-aware resolver, and the session interface/types. The cloud impl lives
8
+ * in its provider-owned Integrations package.
9
+ */
10
+ export { AgentCodeSessionDescriptorSchema, CodeSessionTrustLevelSchema, CodeSessionSurfaceSchema, CodeSessionRuntimeConfigSchema, CodeSessionBillingGateSchema, CODE_SESSION_MIN_TRUST_LEVEL, createAgentCodeSessionDescriptor, type AgentCodeSessionDescriptor, type CodeSessionTrustLevel, type CodeSessionSurface, type CodeSessionRuntimeConfig, type CodeSessionBillingGate } from './agent-code-session.descriptor.ts';
11
+ export { enforceCodeSessionBillingGates, CodeSessionBillingDenied, CodeSessionBillingUnavailable, type BillingGateCheck } from './billing/gates.ts';
12
+ export { SessionHostTargetSchema, SessionHostTargetKindSchema, CloudSessionHostTargetSchema, PlatformSessionHostTargetSchema, ProvisionedSessionHostTargetSchema, CODE_SESSION_HOST_CAPABILITY_LABEL, DEFAULT_SESSION_HOST_TARGET, isPlatformHostTarget, isCloudHostTarget, isProvisionedHostTarget, type SessionHostTarget, type SessionHostTargetKind, type CloudSessionHostTarget, type PlatformSessionHostTarget, type ProvisionedSessionHostTarget } from './host-target.ts';
13
+ export { codeSessionCredentialArgs, codeSessionCredentialLease } from './git-credential.ts';
14
+ export { agentCodeSessionKind } from './agent-code-session.kind.ts';
15
+ export { default as consumerCodeSessionDescriptor } from './agent-code-session.consumer.descriptor.ts';
16
+ export { agentCodeSessionPlugin, default } from './agent-code-session.plugin.ts';
17
+ export { resolveCodeSession, type ResolveCodeSessionOptions } from './client/resolve.ts';
18
+ export { BackgroundProcessInfoSchema, BackgroundProcessOutputSchema, BackgroundProcessReadInputSchema, BackgroundProcessWaitInputSchema, CodeSessionCloneCredentialSchema, CodeSessionCreateOrGetInputSchema, CodeSessionHandleSchema, CodeSessionInitializeInputSchema, CodeSessionOperationCleanupSchema, CodeSessionOperationConfigurationSchema, CodeSessionOperationIdSchema, CodeSessionOperationStageSchema, ExposePortInputSchema, ExposePortResultSchema, GitApplyInputSchema, GitApplyResultSchema, GitCommitInputSchema, GitCommitOptionsSchema, GitCommitResultSchema, GitPushInputSchema, GitStatusResultSchema, PatchFileInputSchema, PersistedCodeSessionOperationSchema, RunCommandInputSchema, RunCommandResultSchema, codeSessionOperationFingerprint, codeSessionOperationKey, parseCodeSessionCreateOrGetInput, parseCodeSessionId, parseCodeSessionInitializeInput, parseCodeSessionPath, parseCodeSessionText, parseExposePortInput, parseGitApplyInput, parseGitCommitInput, parseGitCommitOptions, parseGitPushInput, parsePatchFileInput, parseProcessId, parseBackgroundProcessReadInput, parseBackgroundProcessWaitInput, parseProcessSignal, parsePushCredentialResolver, parseRunCommandInput, parseWriteFileInput, type BackgroundProcessInfo, type BackgroundProcessOutput, type BackgroundProcessReadInput, type BackgroundProcessWaitInput, type CodeSessionCloneCredential, type CodeSessionCreateOrGetInput, type CodeSessionInterface, type CodeSessionInitializeInput, type CodeSessionHandle, type RunCommandInput, type RunCommandResult, type PatchFileInput, type GitApplyInput, type GitApplyResult, type GitStatusResult, type GitCommitInput, type GitCommitOptions, type GitCommitResult, type GitPushInput, type ExposePortInput, type ExposePortResult, type CodeSessionOperationConfiguration, type CodeSessionOperationStage, type PersistedCodeSessionOperation, type PushCredentialResolver } from './interfaces/code-session.ts';
19
+ export { CODE_SESSION_METADATA_FILENAME, parseCodeSessionMetadata, serializeCodeSessionMetadata, type PersistedCodeSessionMetadata } from './session-metadata.ts';
20
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/code-session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACN,gCAAgC,EAChC,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAChC,KAAK,0BAA0B,EAC/B,KAAK,qBAAqB,EAC1B,KAAK,kBAAkB,EACvB,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACN,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,EAC7B,KAAK,gBAAgB,EACrB,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACN,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EACvB,KAAK,iBAAiB,EACtB,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,4BAA4B,EACjC,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACjF,OAAO,EAAE,kBAAkB,EAAE,KAAK,yBAAyB,EAAE,MAAM,qBAAqB,CAAC;AAEzF,OAAO,EACN,2BAA2B,EAC3B,6BAA6B,EAC7B,gCAAgC,EAChC,gCAAgC,EAChC,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,gCAA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
+ *
4
+ * The `agent/code-session` runtime kind (a persistent workspace bound to a
5
+ * repository + host target, extending the `agent/sandbox` one-shot contract) +
6
+ * its consumer (Bun-on-a-Host) impl, the session host-target model (WS2), the
7
+ * scope-aware resolver, and the session interface/types. The cloud impl lives
8
+ * in its provider-owned Integrations package.
9
+ */
10
+ export { AgentCodeSessionDescriptorSchema, CodeSessionTrustLevelSchema, CodeSessionSurfaceSchema, CodeSessionRuntimeConfigSchema, CodeSessionBillingGateSchema, CODE_SESSION_MIN_TRUST_LEVEL, createAgentCodeSessionDescriptor } from "./agent-code-session.descriptor.js";
11
+ export { enforceCodeSessionBillingGates, CodeSessionBillingDenied, CodeSessionBillingUnavailable } from "./billing/gates.js";
12
+ export { SessionHostTargetSchema, SessionHostTargetKindSchema, CloudSessionHostTargetSchema, PlatformSessionHostTargetSchema, ProvisionedSessionHostTargetSchema, CODE_SESSION_HOST_CAPABILITY_LABEL, DEFAULT_SESSION_HOST_TARGET, isPlatformHostTarget, isCloudHostTarget, isProvisionedHostTarget } from "./host-target.js";
13
+ export { codeSessionCredentialArgs, codeSessionCredentialLease } from "./git-credential.js";
14
+ export { agentCodeSessionKind } from "./agent-code-session.kind.js";
15
+ export { default as consumerCodeSessionDescriptor } from "./agent-code-session.consumer.descriptor.js";
16
+ export { agentCodeSessionPlugin, default } from "./agent-code-session.plugin.js";
17
+ export { resolveCodeSession } from "./client/resolve.js";
18
+ export { BackgroundProcessInfoSchema, BackgroundProcessOutputSchema, BackgroundProcessReadInputSchema, BackgroundProcessWaitInputSchema, CodeSessionCloneCredentialSchema, CodeSessionCreateOrGetInputSchema, CodeSessionHandleSchema, CodeSessionInitializeInputSchema, CodeSessionOperationCleanupSchema, CodeSessionOperationConfigurationSchema, CodeSessionOperationIdSchema, CodeSessionOperationStageSchema, ExposePortInputSchema, ExposePortResultSchema, GitApplyInputSchema, GitApplyResultSchema, GitCommitInputSchema, GitCommitOptionsSchema, GitCommitResultSchema, GitPushInputSchema, GitStatusResultSchema, PatchFileInputSchema, PersistedCodeSessionOperationSchema, RunCommandInputSchema, RunCommandResultSchema, codeSessionOperationFingerprint, codeSessionOperationKey, parseCodeSessionCreateOrGetInput, parseCodeSessionId, parseCodeSessionInitializeInput, parseCodeSessionPath, parseCodeSessionText, parseExposePortInput, parseGitApplyInput, parseGitCommitInput, parseGitCommitOptions, parseGitPushInput, parsePatchFileInput, parseProcessId, parseBackgroundProcessReadInput, parseBackgroundProcessWaitInput, parseProcessSignal, parsePushCredentialResolver, parseRunCommandInput, parseWriteFileInput } from "./interfaces/code-session.js";
19
+ export { CODE_SESSION_METADATA_FILENAME, parseCodeSessionMetadata, serializeCodeSessionMetadata } from "./session-metadata.js";
20
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/code-session/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,EACN,gCAAgC,EAChC,2BAA2B,EAC3B,wBAAwB,EACxB,8BAA8B,EAC9B,4BAA4B,EAC5B,4BAA4B,EAC5B,gCAAgC,EAMhC,MAAM,oCAAoC,CAAC;AAE5C,OAAO,EACN,8BAA8B,EAC9B,wBAAwB,EACxB,6BAA6B,EAE7B,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EACN,uBAAuB,EACvB,2BAA2B,EAC3B,4BAA4B,EAC5B,+BAA+B,EAC/B,kCAAkC,EAClC,kCAAkC,EAClC,2BAA2B,EAC3B,oBAAoB,EACpB,iBAAiB,EACjB,uBAAuB,EAMvB,MAAM,kBAAkB,CAAC;AAE1B,OAAO,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,MAAM,qBAAqB,CAAC;AAC5F,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,OAAO,IAAI,6BAA6B,EAAE,MAAM,6CAA6C,CAAC;AACvG,OAAO,EAAE,sBAAsB,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AAC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