@stitchmux/client 0.0.0-stage → 0.96.0

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.
Files changed (103) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +45 -2
  3. package/dist/chunk-szdg2ww3.js +714 -0
  4. package/dist/index.js +4070 -0
  5. package/dist/monitoring.js +279 -0
  6. package/native-stream.json +8 -0
  7. package/package.json +36 -4
  8. package/types/src/agent/claude/native/commandSchema.d.ts +14 -0
  9. package/types/src/agent/custom/config.d.ts +159 -0
  10. package/types/src/agent/custom/endpoint.d.ts +26 -0
  11. package/types/src/agent/transcript/messageSchema.d.ts +153 -0
  12. package/types/src/attachments/reference.d.ts +56 -0
  13. package/types/src/attachments/schema.d.ts +512 -0
  14. package/types/src/chat/communicationAuthorizationSchema.d.ts +77 -0
  15. package/types/src/chat/communicationReceiptSchema.d.ts +82 -0
  16. package/types/src/chat/feedSchema.d.ts +641 -0
  17. package/types/src/chat/holdKind.d.ts +26 -0
  18. package/types/src/chat/identity.d.ts +55 -0
  19. package/types/src/chat/identitySchema.d.ts +121 -0
  20. package/types/src/chat/letterRequestSchema.d.ts +35 -0
  21. package/types/src/chat/messageOperationSchema.d.ts +277 -0
  22. package/types/src/chat/messageSchema.d.ts +284 -0
  23. package/types/src/chat/originSchema.d.ts +67 -0
  24. package/types/src/chat/sentLetterSchema.d.ts +79 -0
  25. package/types/src/client.d.ts +16 -0
  26. package/types/src/config/claudeProfileSchema.d.ts +22 -0
  27. package/types/src/config/launchSchema.d.ts +136 -0
  28. package/types/src/config/location.d.ts +6 -0
  29. package/types/src/config/machineSchema.d.ts +320 -0
  30. package/types/src/config/modelSelectionFlags.d.ts +4 -0
  31. package/types/src/config/paths.d.ts +87 -0
  32. package/types/src/config/remoteTransport.d.ts +12 -0
  33. package/types/src/content/schema.d.ts +312 -0
  34. package/types/src/content/toolSchema.d.ts +36 -0
  35. package/types/src/context/corpusSearchSchema.d.ts +578 -0
  36. package/types/src/context/exactMessageSchema.d.ts +54 -0
  37. package/types/src/context/messageSenderSchema.d.ts +14 -0
  38. package/types/src/context/schema.d.ts +176 -0
  39. package/types/src/context/searchFrames.d.ts +225 -0
  40. package/types/src/context/searchRequestSchema.d.ts +47 -0
  41. package/types/src/context/transcriptJsonSchema.d.ts +210 -0
  42. package/types/src/control/schema/context.d.ts +188 -0
  43. package/types/src/control/schema/contract.d.ts +7142 -0
  44. package/types/src/control/schema/core.d.ts +722 -0
  45. package/types/src/control/schema/directory.d.ts +34 -0
  46. package/types/src/control/schema/eventsContract.d.ts +1423 -0
  47. package/types/src/control/schema/externalList.d.ts +96 -0
  48. package/types/src/control/schema/message.d.ts +280 -0
  49. package/types/src/control/schema/model.d.ts +128 -0
  50. package/types/src/control/schema/native.d.ts +664 -0
  51. package/types/src/control/schema/nativeStreamContract.d.ts +155 -0
  52. package/types/src/control/schema/performance.d.ts +85 -0
  53. package/types/src/control/schema/public.d.ts +48 -0
  54. package/types/src/control/schema/reading.d.ts +24 -0
  55. package/types/src/control/schema/refusals.d.ts +433 -0
  56. package/types/src/control/schema/runtimeOps.d.ts +724 -0
  57. package/types/src/control/schema/searchContract.d.ts +258 -0
  58. package/types/src/control/schema/selection.d.ts +124 -0
  59. package/types/src/control/schema/session.d.ts +272 -0
  60. package/types/src/control/schema/terminalPrompt.d.ts +102 -0
  61. package/types/src/control/transport/boundary.d.ts +7137 -0
  62. package/types/src/control/transport/client.d.ts +10838 -0
  63. package/types/src/control/transport/connection.d.ts +13 -0
  64. package/types/src/control/transport/socketPath.d.ts +3 -0
  65. package/types/src/control-client.d.ts +9 -0
  66. package/types/src/delegation/applicationSchema.d.ts +132 -0
  67. package/types/src/delegation/schema.d.ts +267 -0
  68. package/types/src/events/schema.d.ts +155 -0
  69. package/types/src/external/contentSchema.d.ts +145 -0
  70. package/types/src/external/messageSchema.d.ts +131 -0
  71. package/types/src/external/residentFrames.d.ts +130 -0
  72. package/types/src/external/residentSchema.d.ts +144 -0
  73. package/types/src/external/sessionSchema.d.ts +427 -0
  74. package/types/src/external/turnSchema.d.ts +55 -0
  75. package/types/src/fleet/fleetSchema.d.ts +937 -0
  76. package/types/src/inventory/listSchema.d.ts +442 -0
  77. package/types/src/monitoring/nativeFile.d.ts +7 -0
  78. package/types/src/monitoring/nativeRead.d.ts +14 -0
  79. package/types/src/monitoring/performanceSchema.d.ts +28 -0
  80. package/types/src/monitoring/schema.d.ts +410 -0
  81. package/types/src/monitoring/validate.d.ts +5 -0
  82. package/types/src/monitoring-reader.d.ts +4 -0
  83. package/types/src/policy/reference.d.ts +93 -0
  84. package/types/src/policy/runtimeProfile.d.ts +24 -0
  85. package/types/src/policy/schema.d.ts +177 -0
  86. package/types/src/runtime/capabilities.d.ts +124 -0
  87. package/types/src/runtime/modes.d.ts +47 -0
  88. package/types/src/runtime/permissionScope.d.ts +22 -0
  89. package/types/src/runtime/planLimitsSchema.d.ts +55 -0
  90. package/types/src/runtime/projectionSchema.d.ts +539 -0
  91. package/types/src/runtime/rewindSchema.d.ts +16 -0
  92. package/types/src/runtime/selectionSchema.d.ts +158 -0
  93. package/types/src/runtime/workloadContract.d.ts +55 -0
  94. package/types/src/session/boundary.d.ts +43 -0
  95. package/types/src/session/identitySchema.d.ts +353 -0
  96. package/types/src/session/schema.d.ts +341 -0
  97. package/types/src/session/sleep/schema.d.ts +283 -0
  98. package/types/src/steering/schema.d.ts +197 -0
  99. package/types/src/types.d.ts +48 -0
  100. package/types/src/usage/schema.d.ts +978 -0
  101. package/types/src/util/home.d.ts +9 -0
  102. package/types/src/util/preview.d.ts +13 -0
  103. package/types/src/util/version.d.ts +3 -0
@@ -0,0 +1,197 @@
1
+ import { z } from 'zod';
2
+ export declare const STEERING_LIMITS: {
3
+ operations: number;
4
+ journalBytes: number;
5
+ bodyBytes: number;
6
+ requestBytes: number;
7
+ deadlineMs: number;
8
+ };
9
+ export declare const SteeringSelectorSchema: z.ZodObject<{
10
+ target: z.ZodObject<{
11
+ kind: z.ZodLiteral<"managed">;
12
+ source: z.ZodLiteral<"stitchmux">;
13
+ machine: z.ZodString;
14
+ agent: z.ZodEnum<{
15
+ antigravity: "antigravity";
16
+ claude: "claude";
17
+ codex: "codex";
18
+ custom: "custom";
19
+ opencode: "opencode";
20
+ }>;
21
+ session: z.ZodString;
22
+ threadId: z.ZodUUID;
23
+ }, z.core.$strict>;
24
+ registrationGeneration: z.ZodUUID;
25
+ operationId: z.ZodUUID;
26
+ }, z.core.$strict>;
27
+ export declare const SteeringInputSchema: z.ZodObject<{
28
+ target: z.ZodObject<{
29
+ kind: z.ZodLiteral<"managed">;
30
+ source: z.ZodLiteral<"stitchmux">;
31
+ machine: z.ZodString;
32
+ agent: z.ZodEnum<{
33
+ antigravity: "antigravity";
34
+ claude: "claude";
35
+ codex: "codex";
36
+ custom: "custom";
37
+ opencode: "opencode";
38
+ }>;
39
+ session: z.ZodString;
40
+ threadId: z.ZodUUID;
41
+ }, z.core.$strict>;
42
+ registrationGeneration: z.ZodUUID;
43
+ operationId: z.ZodUUID;
44
+ generation: z.ZodUUID;
45
+ expectedTurnId: z.ZodString;
46
+ body: z.ZodDefault<z.ZodString>;
47
+ images: z.ZodDefault<z.ZodArray<z.ZodObject<{
48
+ id: z.ZodUUID;
49
+ digest: z.ZodString;
50
+ mediaType: z.ZodEnum<{
51
+ "image/jpeg": "image/jpeg";
52
+ "image/png": "image/png";
53
+ }>;
54
+ bytes: z.ZodNumber;
55
+ width: z.ZodNumber;
56
+ height: z.ZodNumber;
57
+ }, z.core.$strict>>>;
58
+ }, z.core.$strict>;
59
+ export declare const SteeringReceiptSchema: z.ZodObject<{
60
+ protocol: z.ZodLiteral<1>;
61
+ operationId: z.ZodUUID;
62
+ target: z.ZodObject<{
63
+ kind: z.ZodLiteral<"managed">;
64
+ source: z.ZodLiteral<"stitchmux">;
65
+ machine: z.ZodString;
66
+ agent: z.ZodEnum<{
67
+ antigravity: "antigravity";
68
+ claude: "claude";
69
+ codex: "codex";
70
+ custom: "custom";
71
+ opencode: "opencode";
72
+ }>;
73
+ session: z.ZodString;
74
+ threadId: z.ZodUUID;
75
+ }, z.core.$strict>;
76
+ registrationGeneration: z.ZodUUID;
77
+ generation: z.ZodUUID;
78
+ turnId: z.ZodString;
79
+ clientUserMessageId: z.ZodString;
80
+ state: z.ZodEnum<{
81
+ submitted: "submitted";
82
+ uncertain: "uncertain";
83
+ }>;
84
+ observedAt: z.ZodISODateTime;
85
+ }, z.core.$strict>;
86
+ export declare const SteeringReadResultSchema: z.ZodObject<{
87
+ operation: z.ZodNullable<z.ZodObject<{
88
+ protocol: z.ZodLiteral<1>;
89
+ operationId: z.ZodUUID;
90
+ target: z.ZodObject<{
91
+ kind: z.ZodLiteral<"managed">;
92
+ source: z.ZodLiteral<"stitchmux">;
93
+ machine: z.ZodString;
94
+ agent: z.ZodEnum<{
95
+ antigravity: "antigravity";
96
+ claude: "claude";
97
+ codex: "codex";
98
+ custom: "custom";
99
+ opencode: "opencode";
100
+ }>;
101
+ session: z.ZodString;
102
+ threadId: z.ZodUUID;
103
+ }, z.core.$strict>;
104
+ registrationGeneration: z.ZodUUID;
105
+ generation: z.ZodUUID;
106
+ turnId: z.ZodString;
107
+ clientUserMessageId: z.ZodString;
108
+ state: z.ZodEnum<{
109
+ submitted: "submitted";
110
+ uncertain: "uncertain";
111
+ }>;
112
+ observedAt: z.ZodISODateTime;
113
+ }, z.core.$strict>>;
114
+ }, z.core.$strict>;
115
+ export type SteeringInput = z.output<typeof SteeringInputSchema>;
116
+ export type SteeringSelector = z.output<typeof SteeringSelectorSchema>;
117
+ export type SteeringReceipt = z.output<typeof SteeringReceiptSchema>;
118
+ export declare const SteeringOperationSchema: z.ZodObject<{
119
+ fingerprint: z.ZodString;
120
+ principal: z.ZodString;
121
+ phase: z.ZodEnum<{
122
+ intent: "intent";
123
+ submitted: "submitted";
124
+ uncertain: "uncertain";
125
+ }>;
126
+ receipt: z.ZodObject<{
127
+ protocol: z.ZodLiteral<1>;
128
+ operationId: z.ZodUUID;
129
+ target: z.ZodObject<{
130
+ kind: z.ZodLiteral<"managed">;
131
+ source: z.ZodLiteral<"stitchmux">;
132
+ machine: z.ZodString;
133
+ agent: z.ZodEnum<{
134
+ antigravity: "antigravity";
135
+ claude: "claude";
136
+ codex: "codex";
137
+ custom: "custom";
138
+ opencode: "opencode";
139
+ }>;
140
+ session: z.ZodString;
141
+ threadId: z.ZodUUID;
142
+ }, z.core.$strict>;
143
+ registrationGeneration: z.ZodUUID;
144
+ generation: z.ZodUUID;
145
+ turnId: z.ZodString;
146
+ clientUserMessageId: z.ZodString;
147
+ state: z.ZodEnum<{
148
+ submitted: "submitted";
149
+ uncertain: "uncertain";
150
+ }>;
151
+ observedAt: z.ZodISODateTime;
152
+ }, z.core.$strict>;
153
+ reason: z.ZodNullable<z.ZodString>;
154
+ }, z.core.$strict>;
155
+ export declare const SteeringJournalSchema: z.ZodObject<{
156
+ registration: z.ZodUUID;
157
+ threadId: z.ZodUUID;
158
+ operations: z.ZodArray<z.ZodObject<{
159
+ fingerprint: z.ZodString;
160
+ principal: z.ZodString;
161
+ phase: z.ZodEnum<{
162
+ intent: "intent";
163
+ submitted: "submitted";
164
+ uncertain: "uncertain";
165
+ }>;
166
+ receipt: z.ZodObject<{
167
+ protocol: z.ZodLiteral<1>;
168
+ operationId: z.ZodUUID;
169
+ target: z.ZodObject<{
170
+ kind: z.ZodLiteral<"managed">;
171
+ source: z.ZodLiteral<"stitchmux">;
172
+ machine: z.ZodString;
173
+ agent: z.ZodEnum<{
174
+ antigravity: "antigravity";
175
+ claude: "claude";
176
+ codex: "codex";
177
+ custom: "custom";
178
+ opencode: "opencode";
179
+ }>;
180
+ session: z.ZodString;
181
+ threadId: z.ZodUUID;
182
+ }, z.core.$strict>;
183
+ registrationGeneration: z.ZodUUID;
184
+ generation: z.ZodUUID;
185
+ turnId: z.ZodString;
186
+ clientUserMessageId: z.ZodString;
187
+ state: z.ZodEnum<{
188
+ submitted: "submitted";
189
+ uncertain: "uncertain";
190
+ }>;
191
+ observedAt: z.ZodISODateTime;
192
+ }, z.core.$strict>;
193
+ reason: z.ZodNullable<z.ZodString>;
194
+ }, z.core.$strict>>;
195
+ }, z.core.$strict>;
196
+ export type SteeringOperation = z.output<typeof SteeringOperationSchema>;
197
+ export type SteeringJournal = z.output<typeof SteeringJournalSchema>;
@@ -0,0 +1,48 @@
1
+ import type { z } from 'zod';
2
+ import type { TranscriptKindSchema, TranscriptMessageSchema, TranscriptRoleSchema } from "./agent/transcript/messageSchema.js";
3
+ import type { AgentKindSchema, ChatPrincipalSchema, ChatTargetSchema, CliPrincipalSchema, CodexAppPeerSchema, ExternalTargetSchema, ManagedPeerSchema, OwnerTargetSchema } from "./chat/identitySchema.js";
4
+ import type { ChatCursorsSchema, ChatMessageSchema } from "./chat/messageSchema.js";
5
+ import type { CodexCollaborationModeSchema, LaunchRecipeMetadataSchema, LaunchRecipeReferenceSchema, MachineLaunchRecipeSchema, PermissionModeSchema } from "./config/launchSchema.js";
6
+ import type { MachineConfigSchema, ReleaseSchema, TelegramConfigSchema } from "./config/machineSchema.js";
7
+ import type { TranscriptJsonSchema, TranscriptStatsSchema } from "./context/transcriptJsonSchema.js";
8
+ import type { SessionEventKindSchema, SessionEventSchema } from "./events/schema.js";
9
+ import type { ExternalCapabilitiesSchema, ExternalInventoryJsonSchema, ExternalSessionSchema, WriterRuntimeSchema } from "./external/sessionSchema.js";
10
+ import type { ContextInfoSchema, ListItemSchema, ListJsonSchema, ReleaseStandingSchema, SessionStateSchema } from "./inventory/listSchema.js";
11
+ import type { LifecycleBlockSchema, PendingSessionSchema, SessionSchema } from "./session/schema.js";
12
+ export type Session = z.infer<typeof SessionSchema>;
13
+ export type PermissionMode = z.infer<typeof PermissionModeSchema>;
14
+ export type MachineConfig = z.infer<typeof MachineConfigSchema>;
15
+ export type Release = z.infer<typeof ReleaseSchema>;
16
+ export type SessionState = z.infer<typeof SessionStateSchema>;
17
+ export type ContextInfo = z.infer<typeof ContextInfoSchema>;
18
+ export type ListItem = z.infer<typeof ListItemSchema>;
19
+ export type ListJson = z.infer<typeof ListJsonSchema>;
20
+ export type ReleaseStanding = z.infer<typeof ReleaseStandingSchema>;
21
+ export type TranscriptRole = z.infer<typeof TranscriptRoleSchema>;
22
+ export type TranscriptKind = z.infer<typeof TranscriptKindSchema>;
23
+ export type TranscriptMessage = z.infer<typeof TranscriptMessageSchema>;
24
+ export type TranscriptStats = z.infer<typeof TranscriptStatsSchema>;
25
+ export type TranscriptJson = z.infer<typeof TranscriptJsonSchema>;
26
+ export type AgentKind = z.infer<typeof AgentKindSchema>;
27
+ export type ManagedPeer = z.infer<typeof ManagedPeerSchema>;
28
+ export type CliPrincipal = z.infer<typeof CliPrincipalSchema>;
29
+ export type CodexAppPeer = z.infer<typeof CodexAppPeerSchema>;
30
+ export type ChatPrincipal = z.infer<typeof ChatPrincipalSchema>;
31
+ export type OwnerTarget = z.infer<typeof OwnerTargetSchema>;
32
+ export type ExternalTarget = z.infer<typeof ExternalTargetSchema>;
33
+ export type ChatTarget = z.infer<typeof ChatTargetSchema>;
34
+ export type ChatMessage = z.infer<typeof ChatMessageSchema>;
35
+ export type ChatCursors = z.infer<typeof ChatCursorsSchema>;
36
+ export type TelegramConfig = z.infer<typeof TelegramConfigSchema>;
37
+ export type PendingSession = z.infer<typeof PendingSessionSchema>;
38
+ export type LifecycleBlock = z.infer<typeof LifecycleBlockSchema>;
39
+ export type ExternalSession = z.infer<typeof ExternalSessionSchema>;
40
+ export type ExternalInventoryJson = z.infer<typeof ExternalInventoryJsonSchema>;
41
+ export type SessionEvent = z.infer<typeof SessionEventSchema>;
42
+ export type SessionEventKind = z.infer<typeof SessionEventKindSchema>;
43
+ export type ExternalCapabilities = z.infer<typeof ExternalCapabilitiesSchema>;
44
+ export type WriterRuntime = z.infer<typeof WriterRuntimeSchema>;
45
+ export type LaunchRecipeReference = z.infer<typeof LaunchRecipeReferenceSchema>;
46
+ export type LaunchRecipeMetadata = z.infer<typeof LaunchRecipeMetadataSchema>;
47
+ export type MachineLaunchRecipe = z.infer<typeof MachineLaunchRecipeSchema>;
48
+ export type CodexCollaborationMode = z.infer<typeof CodexCollaborationModeSchema>;