@agentdock/wire 0.0.36 → 0.0.37
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/README.md +1 -1
- package/dist/messageMeta.d.ts +1 -1
- package/dist/messageMeta.d.ts.map +1 -1
- package/dist/messageMeta.js +0 -1
- package/dist/messageMeta.js.map +1 -1
- package/dist/rpc.d.ts +3 -3
- package/dist/scheduledTasks.d.ts +13 -13
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -128,7 +128,7 @@ import type { CoreUpdate } from '@agentdock/wire';
|
|
|
128
128
|
import { ControlLevelSchema, CliTypeSchema } from '@agentdock/wire';
|
|
129
129
|
|
|
130
130
|
// ControlLevel: 0(最低) | 1(仅监控) | 2(高控制) | 3(完全控制)
|
|
131
|
-
// CliType: 'claude' | 'copilot' | 'opencode' | 'codex' | 'gemini' | '
|
|
131
|
+
// CliType: 'claude' | 'copilot' | 'opencode' | 'codex' | 'gemini' | 'hermes' | 'openclaw'
|
|
132
132
|
```
|
|
133
133
|
|
|
134
134
|
## 开发
|
package/dist/messageMeta.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ export declare const AGENT_TYPES: ["claude", "copilot", "codex", "gemini", "open
|
|
|
7
7
|
/** Agent types that can be spawned as sessions (excludes 'custom'). */
|
|
8
8
|
export declare const SPAWNABLE_AGENTS: ("claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw")[];
|
|
9
9
|
/** CLI identifiers accepted by spawn-session RPC. */
|
|
10
|
-
export declare const CLI_AGENT_TYPES: readonly ["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"
|
|
10
|
+
export declare const CLI_AGENT_TYPES: readonly ["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"];
|
|
11
11
|
export type CliAgentType = (typeof CLI_AGENT_TYPES)[number];
|
|
12
12
|
export declare const MessageMetaSchema: z.ZodObject<{
|
|
13
13
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageMeta.d.ts","sourceRoot":"","sources":["../src/messageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,+DAA+D;AAC/D,eAAO,MAAM,eAAe,iGAS1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,8EAA8E;AAC9E,eAAO,MAAM,WAAW,sFAA0B,CAAC;AAEnD,uEAAuE;AACvE,eAAO,MAAM,gBAAgB,oFAE5B,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,eAAe,
|
|
1
|
+
{"version":3,"file":"messageMeta.d.ts","sourceRoot":"","sources":["../src/messageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,+DAA+D;AAC/D,eAAO,MAAM,eAAe,iGAS1B,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,8EAA8E;AAC9E,eAAO,MAAM,WAAW,sFAA0B,CAAC;AAEnD,uEAAuE;AACvE,eAAO,MAAM,gBAAgB,oFAE5B,CAAC;AAEF,qDAAqD;AACrD,eAAO,MAAM,eAAe,qFAQlB,CAAC;AACX,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,eAAe,CAAC,CAAC,MAAM,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;;;;;IAU5B,0DAA0D;;IAE1D,yCAAyC;;IAEzC,uCAAuC;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKvC,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;oEACoE;AACpE,eAAO,MAAM,qBAAqB,EAAE,QAAQ,CAAC,MAAM,CAAC,SAAS,EAAE,OAAO,CAAC,CAStE,CAAC"}
|
package/dist/messageMeta.js
CHANGED
package/dist/messageMeta.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"messageMeta.js","sourceRoot":"","sources":["../src/messageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,+DAA+D;AAC/D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,QAAQ;IACR,SAAS;IACT,OAAO;IACP,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAIH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,OAAO,CAAC;AAEnD,uEAAuE;AACvE,MAAM,CAAC,MAAM,gBAAgB,GAAG,WAAW,CAAC,MAAM,CAChD,CAAC,CAAC,EAAqC,EAAE,CAAC,CAAC,KAAK,QAAQ,CACzD,CAAC;AAEF,qDAAqD;AACrD,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,QAAQ;IACR,SAAS;IACT,UAAU;IACV,OAAO;IACP,QAAQ;IACR,QAAQ;IACR,UAAU;
|
|
1
|
+
{"version":3,"file":"messageMeta.js","sourceRoot":"","sources":["../src/messageMeta.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAE9D,+DAA+D;AAC/D,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,IAAI,CAAC;IACpC,QAAQ;IACR,SAAS;IACT,OAAO;IACP,QAAQ;IACR,UAAU;IACV,QAAQ;IACR,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAIH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,WAAW,GA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CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAC3C,uCAAuC;IACvC,aAAa,EAAE,CAAC;SACb,IAAI,CAAC,CAAC,SAAS,EAAE,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,WAAW,CAAC,CAAC;SAC7D,QAAQ,EAAE;SACV,QAAQ,EAAE;CACd,CAAC,CAAC;AAIH;oEACoE;AACpE,MAAM,CAAC,MAAM,qBAAqB,GAAyC;IACzE,MAAM,EAAE,IAAI;IACZ,OAAO,EAAE,IAAI;IACb,KAAK,EAAE,KAAK,EAAE,0CAA0C;IACxD,MAAM,EAAE,IAAI;IACZ,QAAQ,EAAE,IAAI;IACd,MAAM,EAAE,KAAK,EAAE,wCAAwC;IACvD,QAAQ,EAAE,KAAK,EAAE,wCAAwC;IACzD,MAAM,EAAE,IAAI,EAAE,sBAAsB;CACrC,CAAC"}
|
package/dist/rpc.d.ts
CHANGED
|
@@ -51,7 +51,7 @@ export declare const RpcResultSchema: z.ZodDiscriminatedUnion<"ok", [z.ZodObject
|
|
|
51
51
|
ok: false;
|
|
52
52
|
}>]>;
|
|
53
53
|
export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
54
|
-
agentType: z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"
|
|
54
|
+
agentType: z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>;
|
|
55
55
|
cwd: z.ZodString;
|
|
56
56
|
prompt: z.ZodOptional<z.ZodString>;
|
|
57
57
|
permissionMode: z.ZodDefault<z.ZodEnum<["default", "acceptEdits", "autoEdit", "bypassPermissions", "plan", "read-only", "safe-yolo", "yolo", "suggest", "auto-edit", "full-auto"]>>;
|
|
@@ -138,7 +138,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
138
138
|
background: z.ZodDefault<z.ZodBoolean>;
|
|
139
139
|
}, "strip", z.ZodTypeAny, {
|
|
140
140
|
permissionMode: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto";
|
|
141
|
-
agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw"
|
|
141
|
+
agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw";
|
|
142
142
|
cwd: string;
|
|
143
143
|
source: "managed" | "history" | "scheduled";
|
|
144
144
|
background: boolean;
|
|
@@ -184,7 +184,7 @@ export declare const SpawnSessionParamsSchema: z.ZodObject<{
|
|
|
184
184
|
allowDangerouslySkipPermissions?: boolean | undefined;
|
|
185
185
|
startupScripts?: string[] | undefined;
|
|
186
186
|
}, {
|
|
187
|
-
agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw"
|
|
187
|
+
agentType: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw";
|
|
188
188
|
cwd: string;
|
|
189
189
|
sessionId?: string | undefined;
|
|
190
190
|
permissionMode?: "default" | "acceptEdits" | "plan" | "bypassPermissions" | "autoEdit" | "read-only" | "safe-yolo" | "yolo" | "suggest" | "auto-edit" | "full-auto" | undefined;
|
package/dist/scheduledTasks.d.ts
CHANGED
|
@@ -14,7 +14,7 @@ export declare const MissedRunPolicySchema: z.ZodEnum<["skip", "run-once"]>;
|
|
|
14
14
|
export type MissedRunPolicy = z.infer<typeof MissedRunPolicySchema>;
|
|
15
15
|
export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
|
|
16
16
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17
|
-
agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"
|
|
17
|
+
agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
|
|
18
18
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
19
19
|
cwd: z.ZodOptional<z.ZodString>;
|
|
20
20
|
prompt: z.ZodString;
|
|
@@ -36,7 +36,7 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
|
|
|
36
36
|
}, "strip", z.ZodTypeAny, {
|
|
37
37
|
prompt: string;
|
|
38
38
|
model?: string | undefined;
|
|
39
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
39
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
40
40
|
agent?: string | undefined;
|
|
41
41
|
cwd?: string | undefined;
|
|
42
42
|
startupScripts?: string[] | undefined;
|
|
@@ -50,7 +50,7 @@ export declare const ScheduledSpawnParamsSchema: z.ZodObject<{
|
|
|
50
50
|
}, {
|
|
51
51
|
prompt: string;
|
|
52
52
|
model?: string | undefined;
|
|
53
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
53
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
54
54
|
agent?: string | undefined;
|
|
55
55
|
cwd?: string | undefined;
|
|
56
56
|
startupScripts?: string[] | undefined;
|
|
@@ -75,7 +75,7 @@ export declare const CreateScheduledTaskSchema: z.ZodObject<{
|
|
|
75
75
|
machineId: z.ZodOptional<z.ZodString>;
|
|
76
76
|
spawnParams: z.ZodObject<{
|
|
77
77
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
78
|
-
agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"
|
|
78
|
+
agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
|
|
79
79
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
80
80
|
cwd: z.ZodOptional<z.ZodString>;
|
|
81
81
|
prompt: z.ZodString;
|
|
@@ -97,7 +97,7 @@ export declare const CreateScheduledTaskSchema: z.ZodObject<{
|
|
|
97
97
|
}, "strip", z.ZodTypeAny, {
|
|
98
98
|
prompt: string;
|
|
99
99
|
model?: string | undefined;
|
|
100
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
100
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
101
101
|
agent?: string | undefined;
|
|
102
102
|
cwd?: string | undefined;
|
|
103
103
|
startupScripts?: string[] | undefined;
|
|
@@ -111,7 +111,7 @@ export declare const CreateScheduledTaskSchema: z.ZodObject<{
|
|
|
111
111
|
}, {
|
|
112
112
|
prompt: string;
|
|
113
113
|
model?: string | undefined;
|
|
114
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
114
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
115
115
|
agent?: string | undefined;
|
|
116
116
|
cwd?: string | undefined;
|
|
117
117
|
startupScripts?: string[] | undefined;
|
|
@@ -130,7 +130,7 @@ export declare const CreateScheduledTaskSchema: z.ZodObject<{
|
|
|
130
130
|
spawnParams: {
|
|
131
131
|
prompt: string;
|
|
132
132
|
model?: string | undefined;
|
|
133
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
133
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
134
134
|
agent?: string | undefined;
|
|
135
135
|
cwd?: string | undefined;
|
|
136
136
|
startupScripts?: string[] | undefined;
|
|
@@ -149,7 +149,7 @@ export declare const CreateScheduledTaskSchema: z.ZodObject<{
|
|
|
149
149
|
spawnParams: {
|
|
150
150
|
prompt: string;
|
|
151
151
|
model?: string | undefined;
|
|
152
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
152
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
153
153
|
agent?: string | undefined;
|
|
154
154
|
cwd?: string | undefined;
|
|
155
155
|
startupScripts?: string[] | undefined;
|
|
@@ -172,7 +172,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
|
|
|
172
172
|
machineId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
173
173
|
spawnParams: z.ZodOptional<z.ZodObject<{
|
|
174
174
|
model: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
175
|
-
agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"
|
|
175
|
+
agentType: z.ZodOptional<z.ZodEnum<["claude", "copilot", "opencode", "codex", "gemini", "hermes", "openclaw"]>>;
|
|
176
176
|
agent: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
177
177
|
cwd: z.ZodOptional<z.ZodString>;
|
|
178
178
|
prompt: z.ZodString;
|
|
@@ -194,7 +194,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
|
|
|
194
194
|
}, "strip", z.ZodTypeAny, {
|
|
195
195
|
prompt: string;
|
|
196
196
|
model?: string | undefined;
|
|
197
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
197
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
198
198
|
agent?: string | undefined;
|
|
199
199
|
cwd?: string | undefined;
|
|
200
200
|
startupScripts?: string[] | undefined;
|
|
@@ -208,7 +208,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
|
|
|
208
208
|
}, {
|
|
209
209
|
prompt: string;
|
|
210
210
|
model?: string | undefined;
|
|
211
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
211
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
212
212
|
agent?: string | undefined;
|
|
213
213
|
cwd?: string | undefined;
|
|
214
214
|
startupScripts?: string[] | undefined;
|
|
@@ -228,7 +228,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
|
|
|
228
228
|
spawnParams?: {
|
|
229
229
|
prompt: string;
|
|
230
230
|
model?: string | undefined;
|
|
231
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
231
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
232
232
|
agent?: string | undefined;
|
|
233
233
|
cwd?: string | undefined;
|
|
234
234
|
startupScripts?: string[] | undefined;
|
|
@@ -248,7 +248,7 @@ export declare const UpdateScheduledTaskSchema: z.ZodObject<{
|
|
|
248
248
|
spawnParams?: {
|
|
249
249
|
prompt: string;
|
|
250
250
|
model?: string | undefined;
|
|
251
|
-
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" |
|
|
251
|
+
agentType?: "claude" | "copilot" | "opencode" | "codex" | "gemini" | "hermes" | "openclaw" | undefined;
|
|
252
252
|
agent?: string | undefined;
|
|
253
253
|
cwd?: string | undefined;
|
|
254
254
|
startupScripts?: string[] | undefined;
|