@agentdock/wire 0.0.94 → 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 +2 -8
- package/dist/activityPreferences.d.ts +0 -2
- package/dist/agentCapabilities.d.ts +16 -46
- package/dist/agentCommonEnv.d.ts +0 -9
- package/dist/agentInstallGuide.d.ts +0 -7
- package/dist/agentRuntimeSettings.d.ts +1 -2
- 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 +1 -2
- 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 +18 -30
- package/dist/errorMessage.d.ts +0 -1
- package/dist/events.d.ts +55 -71
- package/dist/features.d.ts +14 -29
- package/dist/feedback.d.ts +3 -4
- package/dist/fileWhitelist.d.ts +7 -39
- package/dist/gateway.d.ts +841 -43
- package/dist/gateway.js +1 -1
- package/dist/goals.d.ts +0 -1
- package/dist/handoffBrief.d.ts +1 -2
- package/dist/inboundEvents.d.ts +32 -75
- package/dist/index.d.ts +7 -6
- package/dist/index.js +1 -1
- package/dist/interactionEvents.d.ts +49 -57
- package/dist/legacyProtocol.d.ts +0 -6
- package/dist/license.d.ts +36 -37
- package/dist/machine.d.ts +48 -56
- package/dist/messageMeta.d.ts +15 -17
- package/dist/messages.d.ts +13 -20
- 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 +118 -162
- package/dist/rpc.js +1 -1
- package/dist/scheduledTasks.d.ts +9 -10
- package/dist/semver.d.ts +3 -22
- package/dist/sessionBtw.d.ts +4 -5
- package/dist/sessionBtw.js +1 -1
- package/dist/sessionResult.d.ts +21 -27
- package/dist/sessionTitle.d.ts +2 -9
- package/dist/socketEvents.d.ts +4 -5
- package/dist/sourceMetadata.d.ts +1 -14
- package/dist/spawnError.d.ts +7 -14
- package/dist/stats.d.ts +13 -20
- package/dist/sync.d.ts +75 -156
- 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 +6 -30
- package/package.json +1 -1
package/dist/sync.d.ts
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Sync update protocol.
|
|
3
|
-
*
|
|
4
|
-
* Defines CoreUpdateContainer and its body types for real-time state sync.
|
|
5
|
-
*/
|
|
6
1
|
import { z } from 'zod';
|
|
7
2
|
export declare const VersionedEncryptedValueSchema: z.ZodObject<{
|
|
8
3
|
version: z.ZodNumber;
|
|
@@ -258,20 +253,15 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
|
|
|
258
253
|
value: z.ZodNullable<z.ZodString>;
|
|
259
254
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
260
255
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
261
|
-
|
|
256
|
+
|
|
262
257
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
263
|
-
|
|
258
|
+
|
|
264
259
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
265
|
-
|
|
260
|
+
|
|
266
261
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
267
|
-
|
|
268
|
-
* broadcast so the web client's real-time session object has it without
|
|
269
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
262
|
+
|
|
270
263
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
271
|
-
|
|
272
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
273
|
-
* the web client's real-time session object has it without a full reload.
|
|
274
|
-
* list-sessions also returns it. */
|
|
264
|
+
|
|
275
265
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
276
266
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
277
267
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -300,20 +290,15 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
|
|
|
300
290
|
value: z.ZodNullable<z.ZodString>;
|
|
301
291
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
302
292
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
303
|
-
|
|
293
|
+
|
|
304
294
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
305
|
-
|
|
295
|
+
|
|
306
296
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
307
|
-
|
|
297
|
+
|
|
308
298
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
309
|
-
|
|
310
|
-
* broadcast so the web client's real-time session object has it without
|
|
311
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
299
|
+
|
|
312
300
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
313
|
-
|
|
314
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
315
|
-
* the web client's real-time session object has it without a full reload.
|
|
316
|
-
* list-sessions also returns it. */
|
|
301
|
+
|
|
317
302
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
318
303
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
319
304
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -342,20 +327,15 @@ export declare const UpdateSessionBodySchema: z.ZodObject<{
|
|
|
342
327
|
value: z.ZodNullable<z.ZodString>;
|
|
343
328
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
344
329
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
345
|
-
|
|
330
|
+
|
|
346
331
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
347
|
-
|
|
332
|
+
|
|
348
333
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
349
|
-
|
|
334
|
+
|
|
350
335
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
351
|
-
|
|
352
|
-
* broadcast so the web client's real-time session object has it without
|
|
353
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
336
|
+
|
|
354
337
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
-
|
|
356
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
357
|
-
* the web client's real-time session object has it without a full reload.
|
|
358
|
-
* list-sessions also returns it. */
|
|
338
|
+
|
|
359
339
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
360
340
|
}, z.ZodTypeAny, "passthrough">>;
|
|
361
341
|
export type UpdateSessionBody = z.infer<typeof UpdateSessionBodySchema>;
|
|
@@ -803,20 +783,15 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
|
|
|
803
783
|
value: z.ZodNullable<z.ZodString>;
|
|
804
784
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
805
785
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
806
|
-
|
|
786
|
+
|
|
807
787
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
808
|
-
|
|
788
|
+
|
|
809
789
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
810
|
-
|
|
790
|
+
|
|
811
791
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
812
|
-
|
|
813
|
-
* broadcast so the web client's real-time session object has it without
|
|
814
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
792
|
+
|
|
815
793
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
816
|
-
|
|
817
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
818
|
-
* the web client's real-time session object has it without a full reload.
|
|
819
|
-
* list-sessions also returns it. */
|
|
794
|
+
|
|
820
795
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
821
796
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
822
797
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -845,20 +820,15 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
|
|
|
845
820
|
value: z.ZodNullable<z.ZodString>;
|
|
846
821
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
847
822
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
848
|
-
|
|
823
|
+
|
|
849
824
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
850
|
-
|
|
825
|
+
|
|
851
826
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
852
|
-
|
|
827
|
+
|
|
853
828
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
854
|
-
|
|
855
|
-
* broadcast so the web client's real-time session object has it without
|
|
856
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
829
|
+
|
|
857
830
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
858
|
-
|
|
859
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
860
|
-
* the web client's real-time session object has it without a full reload.
|
|
861
|
-
* list-sessions also returns it. */
|
|
831
|
+
|
|
862
832
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
863
833
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
864
834
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -887,20 +857,15 @@ export declare const CoreUpdateBodySchema: z.ZodDiscriminatedUnion<"t", [z.ZodOb
|
|
|
887
857
|
value: z.ZodNullable<z.ZodString>;
|
|
888
858
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
889
859
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
890
|
-
|
|
860
|
+
|
|
891
861
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
892
|
-
|
|
862
|
+
|
|
893
863
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
894
|
-
|
|
864
|
+
|
|
895
865
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
896
|
-
|
|
897
|
-
* broadcast so the web client's real-time session object has it without
|
|
898
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
866
|
+
|
|
899
867
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
900
|
-
|
|
901
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
902
|
-
* the web client's real-time session object has it without a full reload.
|
|
903
|
-
* list-sessions also returns it. */
|
|
868
|
+
|
|
904
869
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
905
870
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
906
871
|
t: z.ZodLiteral<"update-machine">;
|
|
@@ -1345,20 +1310,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
1345
1310
|
value: z.ZodNullable<z.ZodString>;
|
|
1346
1311
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1347
1312
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1348
|
-
|
|
1313
|
+
|
|
1349
1314
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
1350
|
-
|
|
1315
|
+
|
|
1351
1316
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1352
|
-
|
|
1317
|
+
|
|
1353
1318
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1354
|
-
|
|
1355
|
-
* broadcast so the web client's real-time session object has it without
|
|
1356
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
1319
|
+
|
|
1357
1320
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1358
|
-
|
|
1359
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
1360
|
-
* the web client's real-time session object has it without a full reload.
|
|
1361
|
-
* list-sessions also returns it. */
|
|
1321
|
+
|
|
1362
1322
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1363
1323
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1364
1324
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -1387,20 +1347,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
1387
1347
|
value: z.ZodNullable<z.ZodString>;
|
|
1388
1348
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1389
1349
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1390
|
-
|
|
1350
|
+
|
|
1391
1351
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
1392
|
-
|
|
1352
|
+
|
|
1393
1353
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1394
|
-
|
|
1354
|
+
|
|
1395
1355
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1396
|
-
|
|
1397
|
-
* broadcast so the web client's real-time session object has it without
|
|
1398
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
1356
|
+
|
|
1399
1357
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1400
|
-
|
|
1401
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
1402
|
-
* the web client's real-time session object has it without a full reload.
|
|
1403
|
-
* list-sessions also returns it. */
|
|
1358
|
+
|
|
1404
1359
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1405
1360
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1406
1361
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -1429,20 +1384,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
1429
1384
|
value: z.ZodNullable<z.ZodString>;
|
|
1430
1385
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1431
1386
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1432
|
-
|
|
1387
|
+
|
|
1433
1388
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
1434
|
-
|
|
1389
|
+
|
|
1435
1390
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1436
|
-
|
|
1391
|
+
|
|
1437
1392
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1438
|
-
|
|
1439
|
-
* broadcast so the web client's real-time session object has it without
|
|
1440
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
1393
|
+
|
|
1441
1394
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1442
|
-
|
|
1443
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
1444
|
-
* the web client's real-time session object has it without a full reload.
|
|
1445
|
-
* list-sessions also returns it. */
|
|
1395
|
+
|
|
1446
1396
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1447
1397
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1448
1398
|
t: z.ZodLiteral<"update-machine">;
|
|
@@ -1887,20 +1837,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
1887
1837
|
value: z.ZodNullable<z.ZodString>;
|
|
1888
1838
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1889
1839
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1890
|
-
|
|
1840
|
+
|
|
1891
1841
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
1892
|
-
|
|
1842
|
+
|
|
1893
1843
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1894
|
-
|
|
1844
|
+
|
|
1895
1845
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1896
|
-
|
|
1897
|
-
* broadcast so the web client's real-time session object has it without
|
|
1898
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
1846
|
+
|
|
1899
1847
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1900
|
-
|
|
1901
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
1902
|
-
* the web client's real-time session object has it without a full reload.
|
|
1903
|
-
* list-sessions also returns it. */
|
|
1848
|
+
|
|
1904
1849
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1905
1850
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1906
1851
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -1929,20 +1874,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
1929
1874
|
value: z.ZodNullable<z.ZodString>;
|
|
1930
1875
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1931
1876
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1932
|
-
|
|
1877
|
+
|
|
1933
1878
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
1934
|
-
|
|
1879
|
+
|
|
1935
1880
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1936
|
-
|
|
1881
|
+
|
|
1937
1882
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1938
|
-
|
|
1939
|
-
* broadcast so the web client's real-time session object has it without
|
|
1940
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
1883
|
+
|
|
1941
1884
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1942
|
-
|
|
1943
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
1944
|
-
* the web client's real-time session object has it without a full reload.
|
|
1945
|
-
* list-sessions also returns it. */
|
|
1885
|
+
|
|
1946
1886
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1947
1887
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1948
1888
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -1971,20 +1911,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
1971
1911
|
value: z.ZodNullable<z.ZodString>;
|
|
1972
1912
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
1973
1913
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
1974
|
-
|
|
1914
|
+
|
|
1975
1915
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
1976
|
-
|
|
1916
|
+
|
|
1977
1917
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
1978
|
-
|
|
1918
|
+
|
|
1979
1919
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1980
|
-
|
|
1981
|
-
* broadcast so the web client's real-time session object has it without
|
|
1982
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
1920
|
+
|
|
1983
1921
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
1984
|
-
|
|
1985
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
1986
|
-
* the web client's real-time session object has it without a full reload.
|
|
1987
|
-
* list-sessions also returns it. */
|
|
1922
|
+
|
|
1988
1923
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1989
1924
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
1990
1925
|
t: z.ZodLiteral<"update-machine">;
|
|
@@ -2429,20 +2364,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
2429
2364
|
value: z.ZodNullable<z.ZodString>;
|
|
2430
2365
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
2431
2366
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
2432
|
-
|
|
2367
|
+
|
|
2433
2368
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
2434
|
-
|
|
2369
|
+
|
|
2435
2370
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2436
|
-
|
|
2371
|
+
|
|
2437
2372
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2438
|
-
|
|
2439
|
-
* broadcast so the web client's real-time session object has it without
|
|
2440
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
2373
|
+
|
|
2441
2374
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2442
|
-
|
|
2443
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
2444
|
-
* the web client's real-time session object has it without a full reload.
|
|
2445
|
-
* list-sessions also returns it. */
|
|
2375
|
+
|
|
2446
2376
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2447
2377
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2448
2378
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -2471,20 +2401,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
2471
2401
|
value: z.ZodNullable<z.ZodString>;
|
|
2472
2402
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
2473
2403
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
2474
|
-
|
|
2404
|
+
|
|
2475
2405
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
2476
|
-
|
|
2406
|
+
|
|
2477
2407
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2478
|
-
|
|
2408
|
+
|
|
2479
2409
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2480
|
-
|
|
2481
|
-
* broadcast so the web client's real-time session object has it without
|
|
2482
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
2410
|
+
|
|
2483
2411
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2484
|
-
|
|
2485
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
2486
|
-
* the web client's real-time session object has it without a full reload.
|
|
2487
|
-
* list-sessions also returns it. */
|
|
2412
|
+
|
|
2488
2413
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2489
2414
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2490
2415
|
t: z.ZodLiteral<"update-session">;
|
|
@@ -2513,20 +2438,15 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
2513
2438
|
value: z.ZodNullable<z.ZodString>;
|
|
2514
2439
|
}, z.ZodTypeAny, "passthrough">>>>;
|
|
2515
2440
|
active: z.ZodOptional<z.ZodBoolean>;
|
|
2516
|
-
|
|
2441
|
+
|
|
2517
2442
|
source: z.ZodOptional<z.ZodEnum<["managed", "history", "scheduled"]>>;
|
|
2518
|
-
|
|
2443
|
+
|
|
2519
2444
|
contextUsage: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
|
|
2520
|
-
|
|
2445
|
+
|
|
2521
2446
|
dataEncryptionKey: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
2522
|
-
|
|
2523
|
-
* broadcast so the web client's real-time session object has it without
|
|
2524
|
-
* waiting for a full reload (list-sessions also returns it). */
|
|
2447
|
+
|
|
2525
2448
|
handoffEnabled: z.ZodOptional<z.ZodBoolean>;
|
|
2526
|
-
|
|
2527
|
-
* rationale as handoffEnabled: carried on the session-create broadcast so
|
|
2528
|
-
* the web client's real-time session object has it without a full reload.
|
|
2529
|
-
* list-sessions also returns it. */
|
|
2449
|
+
|
|
2530
2450
|
inheritedFrom: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2531
2451
|
}, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
|
|
2532
2452
|
t: z.ZodLiteral<"update-machine">;
|
|
@@ -2751,4 +2671,3 @@ export declare const CoreUpdateContainerSchema: z.ZodObject<{
|
|
|
2751
2671
|
createdAt: z.ZodNumber;
|
|
2752
2672
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2753
2673
|
export type CoreUpdateContainer = z.infer<typeof CoreUpdateContainerSchema>;
|
|
2754
|
-
//# sourceMappingURL=sync.d.ts.map
|
package/dist/taskResult.d.ts
CHANGED
|
@@ -1,28 +1,11 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Task delivery protocol — serialize/parse the structured <task-result>
|
|
3
|
-
* agents emit at the end of a scheduled task.
|
|
4
|
-
*
|
|
5
|
-
* Transport reuses the existing summary string channel (sendSessionSummary),
|
|
6
|
-
* so this module is deliberately string-in/string-out with graceful
|
|
7
|
-
* degradation for legacy daemons and malformed agent output.
|
|
8
|
-
*/
|
|
9
1
|
import { type TaskResult } from './scheduledTasks.js';
|
|
10
2
|
export declare const TASK_RESULT_PREFIX = "[TASK_RESULT]";
|
|
11
|
-
|
|
3
|
+
|
|
12
4
|
export declare function serializeTaskResult(result: TaskResult): string;
|
|
13
|
-
|
|
14
|
-
* server ← daemon: parse a summary-channel payload into a TaskResult plus a
|
|
15
|
-
* flag telling the caller whether to treat this as a terminal failure.
|
|
16
|
-
* Never throws — always degrades to an unstructured result.
|
|
17
|
-
*/
|
|
5
|
+
|
|
18
6
|
export declare function parseTaskResultPayload(payload: string): {
|
|
19
7
|
result: TaskResult;
|
|
20
8
|
terminalFailure: boolean;
|
|
21
9
|
};
|
|
22
|
-
|
|
23
|
-
* daemon: tolerantly extract a <task-result> block from raw agent text.
|
|
24
|
-
* Returns null when no block is present (caller decides how to degrade).
|
|
25
|
-
* Handles: single/double quotes, missing closing tag, surrounding markdown.
|
|
26
|
-
*/
|
|
10
|
+
|
|
27
11
|
export declare function extractTaskResultFromText(text: string): TaskResult | null;
|
|
28
|
-
//# sourceMappingURL=taskResult.d.ts.map
|
package/dist/telemetry.d.ts
CHANGED
|
@@ -31,16 +31,7 @@ export declare const TelemetryEventSchema: z.ZodObject<{
|
|
|
31
31
|
context: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
32
32
|
}, z.ZodTypeAny, "passthrough">>;
|
|
33
33
|
export type TelemetryEvent = z.infer<typeof TelemetryEventSchema>;
|
|
34
|
-
|
|
35
|
-
* Strict telemetry-event type for internal construction/consumption.
|
|
36
|
-
*
|
|
37
|
-
* `TelemetryEventSchema` uses `.passthrough()` for runtime tolerance of extra
|
|
38
|
-
* daemon→server fields. But `z.infer` of a passthrough schema carries a
|
|
39
|
-
* `[k: string]: unknown` index signature, which erases required-field
|
|
40
|
-
* certainty through `Omit<...> + spread` (breaks `emit()` in telemetryCollector).
|
|
41
|
-
* This type is the schema's declared shape WITHOUT the passthrough index
|
|
42
|
-
* signature — use it when building or narrowing events in TypeScript.
|
|
43
|
-
*/
|
|
34
|
+
|
|
44
35
|
export type TelemetryEventStrict = {
|
|
45
36
|
type: TelemetryEventType;
|
|
46
37
|
timestamp: string;
|
|
@@ -143,4 +134,3 @@ export declare const TelemetryReportPayloadSchema: z.ZodObject<{
|
|
|
143
134
|
}, z.ZodTypeAny, "passthrough">>, "many">;
|
|
144
135
|
}, z.ZodTypeAny, "passthrough">>;
|
|
145
136
|
export type TelemetryReportPayload = z.infer<typeof TelemetryReportPayloadSchema>;
|
|
146
|
-
//# sourceMappingURL=telemetry.d.ts.map
|
package/dist/utils.d.ts
CHANGED
package/dist/workItems.d.ts
CHANGED
|
@@ -1,18 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
|
|
3
|
-
* Daemon capability flag (RFC-084 rolling-upgrade gate, same pattern as RFC-081
|
|
4
|
-
* `responseLanguage`). The server only forwards `handoffContext` into spawn-session
|
|
5
|
-
* RPC params when the target daemon declared this capability at machine-register.
|
|
6
|
-
* Older daemons whose `SpawnSessionParamsSchema` is `.strict()` reject the unknown
|
|
7
|
-
* field outright, so the field must never reach them; they get a plain session
|
|
8
|
-
* (session handoff degrades to a plain Q&A session) until they upgrade.
|
|
9
|
-
*/
|
|
2
|
+
|
|
10
3
|
export declare const SESSION_HANDOFF_CAPABILITY = "session-handoff";
|
|
11
|
-
|
|
12
|
-
* Session delivery content (format 4). A delivery is an immutable E2EE snapshot
|
|
13
|
-
* of a session's state at handoff time (RFC-084 decision 5): it carries no
|
|
14
|
-
* WorkItem base version — the delivery is session-anchored, not WorkItem-versioned.
|
|
15
|
-
*/
|
|
4
|
+
|
|
16
5
|
export declare const HandoffProposalContentSchema: z.ZodObject<{
|
|
17
6
|
format: z.ZodLiteral<4>;
|
|
18
7
|
summary: z.ZodEffects<z.ZodString, string, string>;
|
|
@@ -43,7 +32,7 @@ export declare const HandoffProposalContentEnvelopeSchema: z.ZodObject<{
|
|
|
43
32
|
export declare const HandoffProposalCreateSchema: z.ZodObject<{
|
|
44
33
|
proposalId: z.ZodString;
|
|
45
34
|
sessionId: z.ZodString;
|
|
46
|
-
|
|
35
|
+
|
|
47
36
|
title: z.ZodOptional<z.ZodString>;
|
|
48
37
|
content: z.ZodObject<{
|
|
49
38
|
c: z.ZodString;
|
|
@@ -89,8 +78,7 @@ export declare const HandoffProposalRecordSchema: z.ZodObject<{
|
|
|
89
78
|
c: string;
|
|
90
79
|
}>;
|
|
91
80
|
status: z.ZodEnum<["proposed"]>;
|
|
92
|
-
|
|
93
|
-
* (displayName is never overwritten by a handoff). Optional on submit. */
|
|
81
|
+
|
|
94
82
|
title: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
95
83
|
createdAt: z.ZodString;
|
|
96
84
|
discardedAt: z.ZodDefault<z.ZodNullable<z.ZodString>>;
|
|
@@ -117,13 +105,7 @@ export declare const HandoffProposalRecordSchema: z.ZodObject<{
|
|
|
117
105
|
title?: string | null | undefined;
|
|
118
106
|
discardedAt?: string | null | undefined;
|
|
119
107
|
}>;
|
|
120
|
-
|
|
121
|
-
* Inherited delivery carried in the new-session handoff context. The PWA
|
|
122
|
-
* (which holds the master secret) decrypts the delivery and passes its full
|
|
123
|
-
* plaintext content for one-time prompt injection; the daemon never decrypts.
|
|
124
|
-
* RFC-087: openQuestions/nextSteps removed (the brief already contains both
|
|
125
|
-
* sections — the injection no longer re-renders them); `brief` capped at 3000.
|
|
126
|
-
*/
|
|
108
|
+
|
|
127
109
|
export declare const InheritedDeliverySummarySchema: z.ZodObject<{
|
|
128
110
|
deliveryId: z.ZodString;
|
|
129
111
|
sourceSessionId: z.ZodString;
|
|
@@ -149,12 +131,7 @@ export declare const InheritedDeliverySummarySchema: z.ZodObject<{
|
|
|
149
131
|
brief?: string | undefined;
|
|
150
132
|
sourceReferences?: string[] | undefined;
|
|
151
133
|
}>;
|
|
152
|
-
|
|
153
|
-
* Session-level handoff context for a new session (RFC-084 decision 8).
|
|
154
|
-
* `enabled` is the sole trigger for `submit_handoff` MCP injection and the
|
|
155
|
-
* handoff guidance prompt; `inheritedDeliveries` is the fixed continuity
|
|
156
|
-
* context from the handoff-card entry (at most one in the current UI).
|
|
157
|
-
*/
|
|
134
|
+
|
|
158
135
|
export declare const SessionHandoffContextSchema: z.ZodObject<{
|
|
159
136
|
enabled: z.ZodBoolean;
|
|
160
137
|
inheritedDeliveries: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
@@ -342,4 +319,3 @@ export declare const DeliveryConsumerSchema: z.ZodObject<{
|
|
|
342
319
|
export type AccountDeliveryRow = z.infer<typeof AccountDeliveryRowSchema>;
|
|
343
320
|
export type AccountDeliveryPage = z.infer<typeof AccountDeliveryPageSchema>;
|
|
344
321
|
export type DeliveryConsumer = z.infer<typeof DeliveryConsumerSchema>;
|
|
345
|
-
//# sourceMappingURL=workItems.d.ts.map
|