@agentconnect.md/daemon 1.0.0-rc.26 → 1.0.0-rc.28
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 +18 -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.
|
|
@@ -17199,9 +17215,11 @@ const NormalizedMessageRef = object({
|
|
|
17199
17215
|
const AgentSpec = object({
|
|
17200
17216
|
name: string(),
|
|
17201
17217
|
description: string().optional(),
|
|
17218
|
+
runtime: string().optional(),
|
|
17202
17219
|
model: string().optional(),
|
|
17203
17220
|
reasoningEffort: string().optional(),
|
|
17204
17221
|
executionMode: string().optional(),
|
|
17222
|
+
workspace: AgentWorkspace.optional(),
|
|
17205
17223
|
env: record(string(), string()).optional()
|
|
17206
17224
|
});
|
|
17207
17225
|
const AgentLaunch = object({
|