@agentdock/wire 0.0.93 → 0.0.95
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/accountLanguage.d.ts +26 -0
- package/dist/accountLanguage.js +1 -0
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +20 -24
- package/dist/agentCapabilities.js +1 -1
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +139 -0
- package/dist/agentRuntimeSettings.js +1 -0
- package/dist/bgTask.d.ts +13 -24
- package/dist/checkpointSchemas.d.ts +1 -2
- package/dist/controlLevel.d.ts +1 -9
- package/dist/edition.d.ts +0 -1
- package/dist/enterpriseGateway.d.ts +214 -0
- package/dist/enterpriseGateway.js +1 -0
- package/dist/enterprisePolicy.d.ts +1599 -0
- package/dist/enterprisePolicy.js +1 -0
- package/dist/enterprisePolicyExports.d.ts +2 -0
- package/dist/enterprisePolicyExports.js +1 -0
- package/dist/enterpriseRuntime.d.ts +317 -0
- package/dist/enterpriseRuntime.js +1 -0
- package/dist/envelope.d.ts +63 -60
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +73 -77
- package/dist/events.js +1 -1
- package/dist/features.d.ts +19 -30
- package/dist/features.js +1 -1
- package/dist/feedback.d.ts +21 -22
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +1184 -0
- package/dist/gateway.js +1 -0
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +13 -0
- package/dist/handoffBrief.js +52 -0
- package/dist/inboundEvents.d.ts +83 -56
- package/dist/inboundEvents.js +1 -1
- package/dist/index.d.ts +25 -16
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +51 -59
- package/dist/legacyProtocol.d.ts +36 -42
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +54 -53
- package/dist/machine.js +1 -1
- package/dist/messageMeta.d.ts +20 -20
- package/dist/messageMeta.js +1 -1
- package/dist/messages.d.ts +338 -223
- package/dist/messages.js +1 -1
- package/dist/notification.d.ts +2 -3
- package/dist/ops.d.ts +9 -27
- package/dist/pairing.d.ts +9 -49
- package/dist/permissionSubject.d.ts +3 -26
- package/dist/protocol.d.ts +0 -6
- package/dist/rpc.d.ts +957 -196
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +59 -60
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +152 -0
- package/dist/sessionBtw.js +1 -0
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +9 -0
- package/dist/sessionTitle.js +1 -0
- package/dist/socketEvents.d.ts +12 -4
- package/dist/socketEvents.js +1 -1
- package/dist/sourceMetadata.d.ts +3 -16
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +99 -68
- package/dist/stats.js +1 -1
- package/dist/sync.d.ts +285 -51
- package/dist/sync.js +1 -1
- package/dist/taskResult.d.ts +3 -20
- package/dist/telemetry.d.ts +1 -11
- package/dist/utils.d.ts +0 -1
- package/dist/workItems.d.ts +321 -0
- package/dist/workItems.js +1 -0
- package/package.json +1 -1
package/dist/license.d.ts
CHANGED
|
@@ -8,17 +8,17 @@ export declare const EnterpriseLicenseSchema: z.ZodObject<{
|
|
|
8
8
|
maxUsers: z.ZodNumber;
|
|
9
9
|
suffix: z.ZodString;
|
|
10
10
|
}, "strip", z.ZodTypeAny, {
|
|
11
|
-
licensee: string;
|
|
12
|
-
expiresAt: string;
|
|
13
|
-
issuedAt: string;
|
|
14
11
|
edition: "enterprise";
|
|
12
|
+
issuedAt: string;
|
|
13
|
+
expiresAt: string;
|
|
14
|
+
licensee: string;
|
|
15
15
|
maxUsers: number;
|
|
16
16
|
suffix: string;
|
|
17
17
|
}, {
|
|
18
|
-
licensee: string;
|
|
19
|
-
expiresAt: string;
|
|
20
|
-
issuedAt: string;
|
|
21
18
|
edition: "enterprise";
|
|
19
|
+
issuedAt: string;
|
|
20
|
+
expiresAt: string;
|
|
21
|
+
licensee: string;
|
|
22
22
|
maxUsers: number;
|
|
23
23
|
suffix: string;
|
|
24
24
|
}>;
|
|
@@ -30,16 +30,16 @@ export declare const PrivateLicenseSchema: z.ZodObject<{
|
|
|
30
30
|
edition: z.ZodLiteral<"personal">;
|
|
31
31
|
domain: z.ZodString;
|
|
32
32
|
}, "strip", z.ZodTypeAny, {
|
|
33
|
-
licensee: string;
|
|
34
|
-
expiresAt: string;
|
|
35
|
-
issuedAt: string;
|
|
36
33
|
edition: "personal";
|
|
34
|
+
issuedAt: string;
|
|
35
|
+
expiresAt: string;
|
|
36
|
+
licensee: string;
|
|
37
37
|
domain: string;
|
|
38
38
|
}, {
|
|
39
|
-
licensee: string;
|
|
40
|
-
expiresAt: string;
|
|
41
|
-
issuedAt: string;
|
|
42
39
|
edition: "personal";
|
|
40
|
+
issuedAt: string;
|
|
41
|
+
expiresAt: string;
|
|
42
|
+
licensee: string;
|
|
43
43
|
domain: string;
|
|
44
44
|
}>;
|
|
45
45
|
export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z.ZodObject<{
|
|
@@ -51,17 +51,17 @@ export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z
|
|
|
51
51
|
maxUsers: z.ZodNumber;
|
|
52
52
|
suffix: z.ZodString;
|
|
53
53
|
}, "strip", z.ZodTypeAny, {
|
|
54
|
-
licensee: string;
|
|
55
|
-
expiresAt: string;
|
|
56
|
-
issuedAt: string;
|
|
57
54
|
edition: "enterprise";
|
|
55
|
+
issuedAt: string;
|
|
56
|
+
expiresAt: string;
|
|
57
|
+
licensee: string;
|
|
58
58
|
maxUsers: number;
|
|
59
59
|
suffix: string;
|
|
60
60
|
}, {
|
|
61
|
-
licensee: string;
|
|
62
|
-
expiresAt: string;
|
|
63
|
-
issuedAt: string;
|
|
64
61
|
edition: "enterprise";
|
|
62
|
+
issuedAt: string;
|
|
63
|
+
expiresAt: string;
|
|
64
|
+
licensee: string;
|
|
65
65
|
maxUsers: number;
|
|
66
66
|
suffix: string;
|
|
67
67
|
}>, z.ZodObject<{
|
|
@@ -72,16 +72,16 @@ export declare const LicensePayloadSchema: z.ZodDiscriminatedUnion<"edition", [z
|
|
|
72
72
|
edition: z.ZodLiteral<"personal">;
|
|
73
73
|
domain: z.ZodString;
|
|
74
74
|
}, "strip", z.ZodTypeAny, {
|
|
75
|
-
licensee: string;
|
|
76
|
-
expiresAt: string;
|
|
77
|
-
issuedAt: string;
|
|
78
75
|
edition: "personal";
|
|
76
|
+
issuedAt: string;
|
|
77
|
+
expiresAt: string;
|
|
78
|
+
licensee: string;
|
|
79
79
|
domain: string;
|
|
80
80
|
}, {
|
|
81
|
-
licensee: string;
|
|
82
|
-
expiresAt: string;
|
|
83
|
-
issuedAt: string;
|
|
84
81
|
edition: "personal";
|
|
82
|
+
issuedAt: string;
|
|
83
|
+
expiresAt: string;
|
|
84
|
+
licensee: string;
|
|
85
85
|
domain: string;
|
|
86
86
|
}>]>;
|
|
87
87
|
export type LicensePayload = z.infer<typeof LicensePayloadSchema>;
|
|
@@ -98,18 +98,18 @@ export declare const LicenseFileSchema: z.ZodDiscriminatedUnion<"edition", [z.Zo
|
|
|
98
98
|
} & {
|
|
99
99
|
signature: z.ZodString;
|
|
100
100
|
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
licensee: string;
|
|
102
|
-
expiresAt: string;
|
|
103
|
-
issuedAt: string;
|
|
104
101
|
edition: "enterprise";
|
|
102
|
+
issuedAt: string;
|
|
103
|
+
expiresAt: string;
|
|
104
|
+
licensee: string;
|
|
105
105
|
maxUsers: number;
|
|
106
106
|
suffix: string;
|
|
107
107
|
signature: string;
|
|
108
108
|
}, {
|
|
109
|
-
licensee: string;
|
|
110
|
-
expiresAt: string;
|
|
111
|
-
issuedAt: string;
|
|
112
109
|
edition: "enterprise";
|
|
110
|
+
issuedAt: string;
|
|
111
|
+
expiresAt: string;
|
|
112
|
+
licensee: string;
|
|
113
113
|
maxUsers: number;
|
|
114
114
|
suffix: string;
|
|
115
115
|
signature: string;
|
|
@@ -123,19 +123,18 @@ export declare const LicenseFileSchema: z.ZodDiscriminatedUnion<"edition", [z.Zo
|
|
|
123
123
|
} & {
|
|
124
124
|
signature: z.ZodString;
|
|
125
125
|
}, "strip", z.ZodTypeAny, {
|
|
126
|
-
licensee: string;
|
|
127
|
-
expiresAt: string;
|
|
128
|
-
issuedAt: string;
|
|
129
126
|
edition: "personal";
|
|
127
|
+
issuedAt: string;
|
|
128
|
+
expiresAt: string;
|
|
129
|
+
licensee: string;
|
|
130
130
|
domain: string;
|
|
131
131
|
signature: string;
|
|
132
132
|
}, {
|
|
133
|
-
licensee: string;
|
|
134
|
-
expiresAt: string;
|
|
135
|
-
issuedAt: string;
|
|
136
133
|
edition: "personal";
|
|
134
|
+
issuedAt: string;
|
|
135
|
+
expiresAt: string;
|
|
136
|
+
licensee: string;
|
|
137
137
|
domain: string;
|
|
138
138
|
signature: string;
|
|
139
139
|
}>]>;
|
|
140
140
|
export type LicenseFile = z.infer<typeof LicenseFileSchema>;
|
|
141
|
-
//# sourceMappingURL=license.d.ts.map
|
package/dist/machine.d.ts
CHANGED
|
@@ -1,10 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Machine and session status schemas for Dashboard & Machine Management.
|
|
3
|
-
*
|
|
4
|
-
* MachineSummary — device info returned by GET /v1/machines.
|
|
5
|
-
* SessionStatus — real-time session state indicator.
|
|
6
|
-
* Platform — OS platform enum matching Node's process.platform.
|
|
7
|
-
*/
|
|
8
1
|
import { z } from 'zod';
|
|
9
2
|
export declare const PlatformSchema: z.ZodEnum<["darwin", "linux", "win32"]>;
|
|
10
3
|
export type Platform = z.infer<typeof PlatformSchema>;
|
|
@@ -20,35 +13,35 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
20
13
|
active: z.ZodBoolean;
|
|
21
14
|
activeAt: z.ZodNumber;
|
|
22
15
|
createdAt: z.ZodNumber;
|
|
23
|
-
|
|
16
|
+
|
|
24
17
|
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
25
|
-
|
|
18
|
+
|
|
26
19
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
27
|
-
|
|
20
|
+
|
|
28
21
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
29
|
-
|
|
22
|
+
|
|
30
23
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
31
|
-
|
|
24
|
+
|
|
32
25
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
33
|
-
|
|
26
|
+
|
|
34
27
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
35
|
-
|
|
28
|
+
|
|
36
29
|
disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
|
|
37
|
-
|
|
30
|
+
|
|
38
31
|
upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
|
|
39
|
-
|
|
32
|
+
|
|
40
33
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
41
|
-
|
|
34
|
+
|
|
42
35
|
superseded: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
-
|
|
36
|
+
|
|
44
37
|
derivationVersion: z.ZodOptional<z.ZodNumber>;
|
|
45
|
-
|
|
38
|
+
|
|
46
39
|
autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
|
|
47
|
-
|
|
40
|
+
|
|
48
41
|
notifyFeishu: z.ZodOptional<z.ZodBoolean>;
|
|
49
|
-
|
|
42
|
+
|
|
50
43
|
notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
-
|
|
44
|
+
|
|
52
45
|
lastHeartbeat: z.ZodOptional<z.ZodNumber>;
|
|
53
46
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
54
47
|
id: z.ZodString;
|
|
@@ -60,35 +53,35 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
60
53
|
active: z.ZodBoolean;
|
|
61
54
|
activeAt: z.ZodNumber;
|
|
62
55
|
createdAt: z.ZodNumber;
|
|
63
|
-
|
|
56
|
+
|
|
64
57
|
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
65
|
-
|
|
58
|
+
|
|
66
59
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
67
|
-
|
|
60
|
+
|
|
68
61
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
69
|
-
|
|
62
|
+
|
|
70
63
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
71
|
-
|
|
64
|
+
|
|
72
65
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
73
|
-
|
|
66
|
+
|
|
74
67
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
75
|
-
|
|
68
|
+
|
|
76
69
|
disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
|
|
77
|
-
|
|
70
|
+
|
|
78
71
|
upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
|
|
79
|
-
|
|
72
|
+
|
|
80
73
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
81
|
-
|
|
74
|
+
|
|
82
75
|
superseded: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
-
|
|
76
|
+
|
|
84
77
|
derivationVersion: z.ZodOptional<z.ZodNumber>;
|
|
85
|
-
|
|
78
|
+
|
|
86
79
|
autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
|
|
87
|
-
|
|
80
|
+
|
|
88
81
|
notifyFeishu: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
-
|
|
82
|
+
|
|
90
83
|
notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
|
|
91
|
-
|
|
84
|
+
|
|
92
85
|
lastHeartbeat: z.ZodOptional<z.ZodNumber>;
|
|
93
86
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
94
87
|
id: z.ZodString;
|
|
@@ -100,41 +93,43 @@ export declare const MachineSummarySchema: z.ZodObject<{
|
|
|
100
93
|
active: z.ZodBoolean;
|
|
101
94
|
activeAt: z.ZodNumber;
|
|
102
95
|
createdAt: z.ZodNumber;
|
|
103
|
-
|
|
96
|
+
|
|
104
97
|
hasTerminal: z.ZodOptional<z.ZodBoolean>;
|
|
105
|
-
|
|
98
|
+
|
|
106
99
|
activeSessions: z.ZodOptional<z.ZodNumber>;
|
|
107
|
-
|
|
100
|
+
|
|
108
101
|
totalSessions: z.ZodOptional<z.ZodNumber>;
|
|
109
|
-
|
|
102
|
+
|
|
110
103
|
availableAgents: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
111
|
-
|
|
104
|
+
|
|
112
105
|
agentVersions: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
113
|
-
|
|
106
|
+
|
|
114
107
|
supportedMethods: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
115
|
-
|
|
108
|
+
|
|
116
109
|
disconnectReason: z.ZodOptional<z.ZodEnum<["normal", "upgrade-required"]>>;
|
|
117
|
-
|
|
110
|
+
|
|
118
111
|
upgradeStatus: z.ZodOptional<z.ZodEnum<["idle", "preflight", "downloading", "ready", "switching", "failed"]>>;
|
|
119
|
-
|
|
112
|
+
|
|
120
113
|
upgradeError: z.ZodOptional<z.ZodString>;
|
|
121
|
-
|
|
114
|
+
|
|
122
115
|
superseded: z.ZodOptional<z.ZodBoolean>;
|
|
123
|
-
|
|
116
|
+
|
|
124
117
|
derivationVersion: z.ZodOptional<z.ZodNumber>;
|
|
125
|
-
|
|
118
|
+
|
|
126
119
|
autoUpgradeDaemon: z.ZodOptional<z.ZodBoolean>;
|
|
127
|
-
|
|
120
|
+
|
|
128
121
|
notifyFeishu: z.ZodOptional<z.ZodBoolean>;
|
|
129
|
-
|
|
122
|
+
|
|
130
123
|
notifyDingtalk: z.ZodOptional<z.ZodBoolean>;
|
|
131
|
-
|
|
124
|
+
|
|
132
125
|
lastHeartbeat: z.ZodOptional<z.ZodNumber>;
|
|
133
126
|
}, z.ZodTypeAny, "passthrough">>;
|
|
134
127
|
export type MachineSummary = z.infer<typeof MachineSummarySchema>;
|
|
135
128
|
export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
136
129
|
ok: z.ZodBoolean;
|
|
137
130
|
error: z.ZodOptional<z.ZodString>;
|
|
131
|
+
|
|
132
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
138
133
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
139
134
|
labsSettings: z.ZodOptional<z.ZodObject<{
|
|
140
135
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -143,9 +138,12 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
|
143
138
|
}, {
|
|
144
139
|
historySessionSync?: boolean | undefined;
|
|
145
140
|
}>>;
|
|
141
|
+
preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
|
|
146
142
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
147
143
|
ok: z.ZodBoolean;
|
|
148
144
|
error: z.ZodOptional<z.ZodString>;
|
|
145
|
+
|
|
146
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
149
147
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
150
148
|
labsSettings: z.ZodOptional<z.ZodObject<{
|
|
151
149
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -154,9 +152,12 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
|
154
152
|
}, {
|
|
155
153
|
historySessionSync?: boolean | undefined;
|
|
156
154
|
}>>;
|
|
155
|
+
preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
|
|
157
156
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
158
157
|
ok: z.ZodBoolean;
|
|
159
158
|
error: z.ZodOptional<z.ZodString>;
|
|
159
|
+
|
|
160
|
+
accountId: z.ZodOptional<z.ZodString>;
|
|
160
161
|
latestVersion: z.ZodOptional<z.ZodString>;
|
|
161
162
|
labsSettings: z.ZodOptional<z.ZodObject<{
|
|
162
163
|
historySessionSync: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -165,6 +166,7 @@ export declare const MachineRegisterResultSchema: z.ZodObject<{
|
|
|
165
166
|
}, {
|
|
166
167
|
historySessionSync?: boolean | undefined;
|
|
167
168
|
}>>;
|
|
169
|
+
preferredLanguage: z.ZodOptional<z.ZodEnum<["en", "zh-Hans"]>>;
|
|
168
170
|
}, z.ZodTypeAny, "passthrough">>;
|
|
169
171
|
export type MachineRegisterResult = z.infer<typeof MachineRegisterResultSchema>;
|
|
170
172
|
export declare const SetDefaultMachineBodySchema: z.ZodObject<{
|
|
@@ -175,4 +177,3 @@ export declare const SetDefaultMachineBodySchema: z.ZodObject<{
|
|
|
175
177
|
machineId: string | null;
|
|
176
178
|
}>;
|
|
177
179
|
export type SetDefaultMachineBody = z.infer<typeof SetDefaultMachineBodySchema>;
|
|
178
|
-
//# sourceMappingURL=machine.d.ts.map
|
package/dist/machine.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";export const PlatformSchema=o.enum(["darwin","linux","win32"]),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),hasTerminal:o.boolean().optional(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),latestVersion:o.string().optional(),labsSettings:n.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
|
|
1
|
+
"use strict";import{z as o}from"zod";import{LabsSettingsSchema as n}from"./rpc.js";import{AccountLanguageSchema as t}from"./accountLanguage.js";export const PlatformSchema=o.enum(["darwin","linux","win32"]),SessionStatusSchema=o.enum(["idle","thinking","tool_running","permission_required","disconnected"]),MachineSummarySchema=o.object({id:o.string(),hostname:o.string(),platform:PlatformSchema,arch:o.string().optional(),displayName:o.string().optional(),daemonVersion:o.string().optional(),active:o.boolean(),activeAt:o.number(),createdAt:o.number(),hasTerminal:o.boolean().optional(),activeSessions:o.number().optional(),totalSessions:o.number().optional(),availableAgents:o.array(o.string()).optional(),agentVersions:o.record(o.string()).optional(),supportedMethods:o.array(o.string()).optional(),disconnectReason:o.enum(["normal","upgrade-required"]).optional(),upgradeStatus:o.enum(["idle","preflight","downloading","ready","switching","failed"]).optional(),upgradeError:o.string().optional(),superseded:o.boolean().optional(),derivationVersion:o.number().int().min(0).optional(),autoUpgradeDaemon:o.boolean().optional(),notifyFeishu:o.boolean().optional(),notifyDingtalk:o.boolean().optional(),lastHeartbeat:o.number().optional()}).passthrough(),MachineRegisterResultSchema=o.object({ok:o.boolean(),error:o.string().optional(),accountId:o.string().min(1).optional(),latestVersion:o.string().optional(),labsSettings:n.optional(),preferredLanguage:t.optional()}).passthrough(),SetDefaultMachineBodySchema=o.object({machineId:o.string().nullable()}).strict();
|
package/dist/messageMeta.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
2
|
+
|
|
3
3
|
export declare const AgentTypeSchema: z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>;
|
|
4
4
|
export type AgentType = z.infer<typeof AgentTypeSchema>;
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
export declare const AGENT_TYPES: ["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"];
|
|
7
|
-
|
|
8
|
-
export declare const SPAWNABLE_AGENTS: ("
|
|
9
|
-
|
|
7
|
+
|
|
8
|
+
export declare const SPAWNABLE_AGENTS: ("hermes" | "codex" | "claude" | "copilot" | "opencode" | "gemini" | "openclaw")[];
|
|
9
|
+
|
|
10
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>;
|
|
14
|
-
permissionMode: z.ZodOptional<z.
|
|
14
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
15
15
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
16
16
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
17
17
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -19,15 +19,15 @@ export declare const MessageMetaSchema: z.ZodObject<{
|
|
|
19
19
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
20
20
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
21
21
|
displayText: z.ZodOptional<z.ZodString>;
|
|
22
|
-
|
|
22
|
+
|
|
23
23
|
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
|
|
24
|
-
|
|
24
|
+
|
|
25
25
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
28
28
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
29
29
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
30
|
-
permissionMode: z.ZodOptional<z.
|
|
30
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
31
31
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
32
32
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
33
33
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -35,15 +35,15 @@ export declare const MessageMetaSchema: z.ZodObject<{
|
|
|
35
35
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
36
36
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
37
37
|
displayText: z.ZodOptional<z.ZodString>;
|
|
38
|
-
|
|
38
|
+
|
|
39
39
|
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
42
|
-
|
|
42
|
+
|
|
43
43
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
44
44
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
45
45
|
sentFrom: z.ZodOptional<z.ZodString>;
|
|
46
|
-
permissionMode: z.ZodOptional<z.
|
|
46
|
+
permissionMode: z.ZodOptional<z.ZodString>;
|
|
47
47
|
model: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
48
48
|
fallbackModel: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
49
49
|
customSystemPrompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
@@ -51,15 +51,15 @@ export declare const MessageMetaSchema: z.ZodObject<{
|
|
|
51
51
|
allowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
52
52
|
disallowedTools: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodString, "many">>>;
|
|
53
53
|
displayText: z.ZodOptional<z.ZodString>;
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
agentType: z.ZodOptional<z.ZodNullable<z.ZodEnum<["claude", "copilot", "codex", "gemini", "opencode", "hermes", "openclaw", "custom"]>>>;
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
startedAt: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
sessionStatus: z.ZodOptional<z.ZodNullable<z.ZodEnum<["running", "idle", "completed", "failed", "cancelled"]>>>;
|
|
60
60
|
}, z.ZodTypeAny, "passthrough">>;
|
|
61
61
|
export type MessageMeta = z.infer<typeof MessageMetaSchema>;
|
|
62
|
-
|
|
63
|
-
* Updated when agents add ACP promptCapabilities.image support. */
|
|
62
|
+
|
|
64
63
|
export declare const AGENT_SUPPORTS_IMAGES: Readonly<Record<AgentType, boolean>>;
|
|
65
|
-
|
|
64
|
+
|
|
65
|
+
export declare const AGENT_DISPLAY_NAMES: Readonly<Record<AgentType, string>>;
|
package/dist/messageMeta.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";import{z as e}from"zod";
|
|
1
|
+
"use strict";import{z as e}from"zod";export const AgentTypeSchema=e.enum(["claude","copilot","codex","gemini","opencode","hermes","openclaw","custom"]),AGENT_TYPES=AgentTypeSchema.options,SPAWNABLE_AGENTS=AGENT_TYPES.filter(o=>o!=="custom"),CLI_AGENT_TYPES=["claude","copilot","opencode","codex","gemini","hermes","openclaw"],MessageMetaSchema=e.object({sentFrom:e.string().optional(),permissionMode:e.string().optional(),model:e.string().nullable().optional(),fallbackModel:e.string().nullable().optional(),customSystemPrompt:e.string().nullable().optional(),appendSystemPrompt:e.string().nullable().optional(),allowedTools:e.array(e.string()).nullable().optional(),disallowedTools:e.array(e.string()).nullable().optional(),displayText:e.string().optional(),agentType:AgentTypeSchema.nullable().optional(),startedAt:e.number().nullable().optional(),sessionStatus:e.enum(["running","idle","completed","failed","cancelled"]).nullable().optional()}).passthrough(),AGENT_SUPPORTS_IMAGES={claude:!0,copilot:!0,codex:!1,gemini:!0,opencode:!0,hermes:!1,openclaw:!1,custom:!0},AGENT_DISPLAY_NAMES={claude:"Claude",copilot:"Copilot",codex:"Codex",gemini:"Gemini",opencode:"OpenCode",hermes:"Hermes",openclaw:"OpenClaw",custom:"Custom"};
|