@agentconnect.md/daemon 1.0.0-rc.26 → 1.0.0-rc.27
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.
- package/dist/index.js +17 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17192,6 +17192,22 @@ const NormalizedMessageRef = object({
|
|
|
17192
17192
|
seenUpToSeq: number().int()
|
|
17193
17193
|
});
|
|
17194
17194
|
/**
|
|
17195
|
+
* Where the agent runs. Two modes; the **path is always daemon-generated** —
|
|
17196
|
+
* never specified by the caller (UX picks the mode, the machine owns the dir).
|
|
17197
|
+
*
|
|
17198
|
+
* - `scratch`: a fresh empty working dir on the machine, no repo.
|
|
17199
|
+
* - `github`: the daemon clones `gitRepo` @ `branch` and runs the agent in
|
|
17200
|
+
* `agentDir` (a subdir of the repo, repo-root if omitted). **Multiple agents
|
|
17201
|
+
* may share one repo** — they differ by `agentDir`, so the repo is not an
|
|
17202
|
+
* owned entity, just shared config on each agent.
|
|
17203
|
+
*/
|
|
17204
|
+
const AgentWorkspace = discriminatedUnion("mode", [object({ mode: literal("scratch") }), object({
|
|
17205
|
+
mode: literal("github"),
|
|
17206
|
+
gitRepo: string(),
|
|
17207
|
+
branch: string().default("main"),
|
|
17208
|
+
agentDir: string().optional()
|
|
17209
|
+
})]);
|
|
17210
|
+
/**
|
|
17195
17211
|
* The editable agent definition the CP owns and the daemon needs to run it:
|
|
17196
17212
|
* prompt + runtime selection. Raft ships this in the launch config and the
|
|
17197
17213
|
* daemon synthesizes the system prompt locally; `description` IS the prompt.
|
|
@@ -17202,6 +17218,7 @@ const AgentSpec = object({
|
|
|
17202
17218
|
model: string().optional(),
|
|
17203
17219
|
reasoningEffort: string().optional(),
|
|
17204
17220
|
executionMode: string().optional(),
|
|
17221
|
+
workspace: AgentWorkspace.optional(),
|
|
17205
17222
|
env: record(string(), string()).optional()
|
|
17206
17223
|
});
|
|
17207
17224
|
const AgentLaunch = object({
|