@intentic/sandbox-contract 1.427.0 → 1.428.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.
- package/README.md +22 -5
- package/dist/contracts/accounts.contract.d.ts +4 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +60 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.d.ts +617 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/agents.contract.js +11 -0
- package/dist/contracts/agents.contract.js.map +1 -1
- package/dist/contracts/bases.contract.d.ts +43 -0
- package/dist/contracts/bases.contract.d.ts.map +1 -0
- package/dist/contracts/bases.contract.js +33 -0
- package/dist/contracts/bases.contract.js.map +1 -0
- package/dist/contracts/ci.contract.d.ts +17 -0
- package/dist/contracts/ci.contract.d.ts.map +1 -1
- package/dist/contracts/loops.contract.d.ts +2 -0
- package/dist/contracts/loops.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +52 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +14 -14
- package/dist/contracts/runner.contract.d.ts +62 -14
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/seal.contract.d.ts +10 -0
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +6 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +4 -0
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +370 -4
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.js +45 -0
- package/dist/contracts/system.contract.js.map +1 -1
- package/dist/contracts/translator.contract.d.ts +8 -0
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.d.ts +110 -0
- package/dist/contracts/usage.contract.d.ts.map +1 -1
- package/dist/contracts/usage.contract.js +18 -0
- package/dist/contracts/usage.contract.js.map +1 -1
- package/dist/contracts/workflows.contract.d.ts +3 -0
- package/dist/contracts/workflows.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +26 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +4 -0
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-transcript.d.ts +6 -0
- package/dist/events/agent-transcript.d.ts.map +1 -1
- package/dist/events/system-events.d.ts +222 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/system-events.js +6 -0
- package/dist/events/system-events.js.map +1 -1
- package/dist/events/transcript.d.ts +30 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/index.d.ts +2 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/models/plan-pools.d.ts +8 -7
- package/dist/models/plan-pools.d.ts.map +1 -1
- package/dist/models/plan-pools.js +63 -40
- package/dist/models/plan-pools.js.map +1 -1
- package/dist/models/verdict/current-windows.d.ts +9 -0
- package/dist/models/verdict/current-windows.d.ts.map +1 -0
- package/dist/models/verdict/current-windows.js +60 -0
- package/dist/models/verdict/current-windows.js.map +1 -0
- package/dist/models/verdict/refusal-verdict.d.ts +6 -3
- package/dist/models/verdict/refusal-verdict.d.ts.map +1 -1
- package/dist/models/verdict/refusal-verdict.js +71 -18
- package/dist/models/verdict/refusal-verdict.js.map +1 -1
- package/dist/models/verdict/window-period.d.ts +7 -1
- package/dist/models/verdict/window-period.d.ts.map +1 -1
- package/dist/models/verdict/window-period.js +21 -2
- package/dist/models/verdict/window-period.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +13 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +4 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/agents-list.d.ts +4 -0
- package/dist/schemas/agents-list.d.ts.map +1 -1
- package/dist/schemas/agents.d.ts +6 -0
- package/dist/schemas/agents.d.ts.map +1 -1
- package/dist/schemas/agents.js +2 -0
- package/dist/schemas/agents.js.map +1 -1
- package/dist/schemas/bases.d.ts +52 -0
- package/dist/schemas/bases.d.ts.map +1 -0
- package/dist/schemas/bases.js +31 -0
- package/dist/schemas/bases.js.map +1 -0
- package/dist/schemas/ci.d.ts +35 -0
- package/dist/schemas/ci.d.ts.map +1 -1
- package/dist/schemas/ci.js +25 -0
- package/dist/schemas/ci.js.map +1 -1
- package/dist/schemas/context-continues.d.ts +5 -0
- package/dist/schemas/context-continues.d.ts.map +1 -0
- package/dist/schemas/context-continues.js +17 -0
- package/dist/schemas/context-continues.js.map +1 -0
- package/dist/schemas/device-stacks.d.ts +161 -0
- package/dist/schemas/device-stacks.d.ts.map +1 -0
- package/dist/schemas/device-stacks.js +65 -0
- package/dist/schemas/device-stacks.js.map +1 -0
- package/dist/schemas/hosts.d.ts +2 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +2 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/loops.d.ts +4 -0
- package/dist/schemas/loops.d.ts.map +1 -1
- package/dist/schemas/loops.js +7 -0
- package/dist/schemas/loops.js.map +1 -1
- package/dist/schemas/needs.d.ts +50 -1
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +16 -2
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/proceed-without-asking.d.ts +9 -0
- package/dist/schemas/proceed-without-asking.d.ts.map +1 -0
- package/dist/schemas/proceed-without-asking.js +17 -0
- package/dist/schemas/proceed-without-asking.js.map +1 -0
- package/dist/schemas/providers/capacity.d.ts +291 -0
- package/dist/schemas/providers/capacity.d.ts.map +1 -0
- package/dist/schemas/providers/capacity.js +64 -0
- package/dist/schemas/providers/capacity.js.map +1 -0
- package/dist/schemas/providers/plan-limits.d.ts +14 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +9 -2
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +4 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/refusals.d.ts +8 -0
- package/dist/schemas/providers/refusals.d.ts.map +1 -1
- package/dist/schemas/providers/refusals.js +8 -0
- package/dist/schemas/providers/refusals.js.map +1 -1
- package/dist/schemas/run-targets.d.ts +1 -0
- package/dist/schemas/run-targets.d.ts.map +1 -1
- package/dist/schemas/run-targets.js +2 -1
- package/dist/schemas/run-targets.js.map +1 -1
- package/dist/schemas/settings.d.ts +4 -0
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +6 -8
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/workflows.d.ts +5 -0
- package/dist/schemas/workflows.d.ts.map +1 -1
- package/dist/state/definition.d.ts +8 -0
- package/dist/state/definition.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/contracts/agents.contract.ts +13 -0
- package/src/contracts/bases.contract.ts +38 -0
- package/src/contracts/system.contract.ts +66 -0
- package/src/contracts/usage.contract.ts +21 -0
- package/src/events/agent-events.ts +8 -0
- package/src/events/system-events.ts +11 -0
- package/src/index.ts +3 -0
- package/src/models/plan-pools.test.ts +271 -39
- package/src/models/plan-pools.ts +132 -70
- package/src/models/verdict/current-windows.ts +95 -0
- package/src/models/verdict/refusal-verdict.ts +124 -30
- package/src/models/verdict/window-period.ts +53 -6
- package/src/protocol/raw/raw-routes.ts +9 -0
- package/src/schemas/agents.ts +2 -0
- package/src/schemas/bases.ts +48 -0
- package/src/schemas/ci.ts +35 -0
- package/src/schemas/context-continues.ts +40 -0
- package/src/schemas/device-stacks.ts +126 -0
- package/src/schemas/hosts.ts +4 -0
- package/src/schemas/loops.ts +10 -0
- package/src/schemas/needs.ts +25 -2
- package/src/schemas/proceed-without-asking.ts +37 -0
- package/src/schemas/providers/capacity.ts +91 -0
- package/src/schemas/providers/plan-limits.ts +20 -3
- package/src/schemas/providers/refusals.ts +17 -0
- package/src/schemas/run-targets.ts +4 -3
- package/src/schemas/settings.ts +6 -14
- package/src/state/daemon-floor.test.ts +2 -0
- package/src/state/workspace-state.test.ts +3 -3
- package/src/state/workspace-state.ts +1 -1
|
@@ -183,6 +183,7 @@ export declare const systemContract: {
|
|
|
183
183
|
changes: "changes";
|
|
184
184
|
snapshots: "snapshots";
|
|
185
185
|
}>>;
|
|
186
|
+
capacity: z.ZodOptional<z.ZodCodec<z.ZodString, z.ZodBoolean>>;
|
|
186
187
|
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
187
188
|
kind: "hello";
|
|
188
189
|
workspaceId: string;
|
|
@@ -296,6 +297,7 @@ export declare const systemContract: {
|
|
|
296
297
|
stopPolicy?: "retry" | "wait" | undefined;
|
|
297
298
|
memoryPolicy?: "resend" | "wait" | undefined;
|
|
298
299
|
memoryKillPolicy?: "resume" | "wait" | undefined;
|
|
300
|
+
proceedWithoutAsking?: boolean | undefined;
|
|
299
301
|
landRequested?: {
|
|
300
302
|
email: string;
|
|
301
303
|
name?: string | undefined;
|
|
@@ -641,7 +643,7 @@ export declare const systemContract: {
|
|
|
641
643
|
}[] | undefined;
|
|
642
644
|
needs?: {
|
|
643
645
|
id: string;
|
|
644
|
-
kind: "automation" | "capability" | "environment" | "grant" | "release" | "secret";
|
|
646
|
+
kind: "automation" | "capability" | "environment" | "grant" | "instruction" | "release" | "secret";
|
|
645
647
|
title: string;
|
|
646
648
|
status: "cancelled" | "declined" | "met" | "open" | "working";
|
|
647
649
|
}[] | undefined;
|
|
@@ -716,6 +718,7 @@ export declare const systemContract: {
|
|
|
716
718
|
stopPolicy?: "retry" | "wait" | undefined;
|
|
717
719
|
memoryPolicy?: "resend" | "wait" | undefined;
|
|
718
720
|
memoryKillPolicy?: "resume" | "wait" | undefined;
|
|
721
|
+
proceedWithoutAsking?: boolean | undefined;
|
|
719
722
|
landRequested?: {
|
|
720
723
|
email: string;
|
|
721
724
|
name?: string | undefined;
|
|
@@ -1061,7 +1064,7 @@ export declare const systemContract: {
|
|
|
1061
1064
|
}[] | undefined;
|
|
1062
1065
|
needs?: {
|
|
1063
1066
|
id: string;
|
|
1064
|
-
kind: "automation" | "capability" | "environment" | "grant" | "release" | "secret";
|
|
1067
|
+
kind: "automation" | "capability" | "environment" | "grant" | "instruction" | "release" | "secret";
|
|
1065
1068
|
title: string;
|
|
1066
1069
|
status: "cancelled" | "declined" | "met" | "open" | "working";
|
|
1067
1070
|
}[] | undefined;
|
|
@@ -1095,6 +1098,7 @@ export declare const systemContract: {
|
|
|
1095
1098
|
label?: string | undefined;
|
|
1096
1099
|
utilization: number;
|
|
1097
1100
|
resetsAt?: number | undefined;
|
|
1101
|
+
periodSeconds?: number | undefined;
|
|
1098
1102
|
gates: "all" | "none" | {
|
|
1099
1103
|
models: string[];
|
|
1100
1104
|
};
|
|
@@ -1124,6 +1128,8 @@ export declare const systemContract: {
|
|
|
1124
1128
|
model?: string | undefined;
|
|
1125
1129
|
resetsAt?: number | undefined;
|
|
1126
1130
|
poolResetsAt?: number | undefined;
|
|
1131
|
+
pool?: string | undefined;
|
|
1132
|
+
poolUnpublished?: true | undefined;
|
|
1127
1133
|
unmetered?: true | undefined;
|
|
1128
1134
|
byHand?: true | undefined;
|
|
1129
1135
|
}[] | undefined;
|
|
@@ -1135,10 +1141,100 @@ export declare const systemContract: {
|
|
|
1135
1141
|
model?: string | undefined;
|
|
1136
1142
|
resetsAt?: number | undefined;
|
|
1137
1143
|
poolResetsAt?: number | undefined;
|
|
1144
|
+
pool?: string | undefined;
|
|
1145
|
+
poolUnpublished?: true | undefined;
|
|
1138
1146
|
unmetered?: true | undefined;
|
|
1139
1147
|
byHand?: true | undefined;
|
|
1140
1148
|
} | undefined;
|
|
1141
1149
|
switchOffs?: Record<string, readonly number[]> | undefined;
|
|
1150
|
+
} | {
|
|
1151
|
+
kind: "capacity";
|
|
1152
|
+
capacity: {
|
|
1153
|
+
provider: string;
|
|
1154
|
+
seq: number;
|
|
1155
|
+
judgedAt: number;
|
|
1156
|
+
validUntil?: number | undefined;
|
|
1157
|
+
accounts: {
|
|
1158
|
+
account: string;
|
|
1159
|
+
label?: string | undefined;
|
|
1160
|
+
needsReauth?: boolean | undefined;
|
|
1161
|
+
detail?: string | undefined;
|
|
1162
|
+
seatRefusal?: string | undefined;
|
|
1163
|
+
cooling?: {
|
|
1164
|
+
until?: number | undefined;
|
|
1165
|
+
reason?: string | undefined;
|
|
1166
|
+
verify?: string | undefined;
|
|
1167
|
+
} | undefined;
|
|
1168
|
+
cooldowns?: {
|
|
1169
|
+
model: string;
|
|
1170
|
+
until: number;
|
|
1171
|
+
}[] | undefined;
|
|
1172
|
+
usage?: {
|
|
1173
|
+
windows: {
|
|
1174
|
+
kind: string;
|
|
1175
|
+
label?: string | undefined;
|
|
1176
|
+
utilization: number;
|
|
1177
|
+
resetsAt?: number | undefined;
|
|
1178
|
+
periodSeconds?: number | undefined;
|
|
1179
|
+
gates: "all" | "none" | {
|
|
1180
|
+
models: string[];
|
|
1181
|
+
};
|
|
1182
|
+
rounded?: boolean | undefined;
|
|
1183
|
+
lapsedAt?: number | undefined;
|
|
1184
|
+
missingSince?: number | undefined;
|
|
1185
|
+
}[];
|
|
1186
|
+
measuredAt: number;
|
|
1187
|
+
unread?: {
|
|
1188
|
+
since: number;
|
|
1189
|
+
reason: string;
|
|
1190
|
+
} | undefined;
|
|
1191
|
+
uncovered?: string[] | undefined;
|
|
1192
|
+
contradicted?: {
|
|
1193
|
+
at: number;
|
|
1194
|
+
model: string;
|
|
1195
|
+
} | undefined;
|
|
1196
|
+
} | undefined;
|
|
1197
|
+
models?: string[] | undefined;
|
|
1198
|
+
state: {
|
|
1199
|
+
kind: "ready";
|
|
1200
|
+
room: number;
|
|
1201
|
+
renewsAt?: number | undefined;
|
|
1202
|
+
} | {
|
|
1203
|
+
kind: "spent";
|
|
1204
|
+
reopensAt?: number | undefined;
|
|
1205
|
+
pool?: string | undefined;
|
|
1206
|
+
} | {
|
|
1207
|
+
kind: "blocked";
|
|
1208
|
+
fix: "admin" | "plan" | "reconnect" | "verify" | "wait";
|
|
1209
|
+
reason: string;
|
|
1210
|
+
until?: number | undefined;
|
|
1211
|
+
url?: string | undefined;
|
|
1212
|
+
} | {
|
|
1213
|
+
kind: "unknown";
|
|
1214
|
+
};
|
|
1215
|
+
flapping?: true | undefined;
|
|
1216
|
+
}[];
|
|
1217
|
+
refusals: {
|
|
1218
|
+
at: number;
|
|
1219
|
+
kind: "auth" | "entitlement" | "limit";
|
|
1220
|
+
message: string;
|
|
1221
|
+
account?: string | undefined;
|
|
1222
|
+
model?: string | undefined;
|
|
1223
|
+
resetsAt?: number | undefined;
|
|
1224
|
+
poolResetsAt?: number | undefined;
|
|
1225
|
+
pool?: string | undefined;
|
|
1226
|
+
poolUnpublished?: true | undefined;
|
|
1227
|
+
unmetered?: true | undefined;
|
|
1228
|
+
byHand?: true | undefined;
|
|
1229
|
+
}[];
|
|
1230
|
+
switchOffs?: Record<string, readonly number[]> | undefined;
|
|
1231
|
+
placement?: string | undefined;
|
|
1232
|
+
degraded?: {
|
|
1233
|
+
cause: "outage" | "throttle";
|
|
1234
|
+
retryAt: number;
|
|
1235
|
+
attempt?: number | undefined;
|
|
1236
|
+
} | undefined;
|
|
1237
|
+
};
|
|
1142
1238
|
} | {
|
|
1143
1239
|
from: number;
|
|
1144
1240
|
generation: number;
|
|
@@ -1272,6 +1368,7 @@ export declare const systemContract: {
|
|
|
1272
1368
|
stopPolicy?: "retry" | "wait" | undefined;
|
|
1273
1369
|
memoryPolicy?: "resend" | "wait" | undefined;
|
|
1274
1370
|
memoryKillPolicy?: "resume" | "wait" | undefined;
|
|
1371
|
+
proceedWithoutAsking?: boolean | undefined;
|
|
1275
1372
|
landRequested?: {
|
|
1276
1373
|
email: string;
|
|
1277
1374
|
name?: string | undefined;
|
|
@@ -1617,7 +1714,7 @@ export declare const systemContract: {
|
|
|
1617
1714
|
}[] | undefined;
|
|
1618
1715
|
needs?: {
|
|
1619
1716
|
id: string;
|
|
1620
|
-
kind: "automation" | "capability" | "environment" | "grant" | "release" | "secret";
|
|
1717
|
+
kind: "automation" | "capability" | "environment" | "grant" | "instruction" | "release" | "secret";
|
|
1621
1718
|
title: string;
|
|
1622
1719
|
status: "cancelled" | "declined" | "met" | "open" | "working";
|
|
1623
1720
|
}[] | undefined;
|
|
@@ -1692,6 +1789,7 @@ export declare const systemContract: {
|
|
|
1692
1789
|
stopPolicy?: "retry" | "wait" | undefined;
|
|
1693
1790
|
memoryPolicy?: "resend" | "wait" | undefined;
|
|
1694
1791
|
memoryKillPolicy?: "resume" | "wait" | undefined;
|
|
1792
|
+
proceedWithoutAsking?: boolean | undefined;
|
|
1695
1793
|
landRequested?: {
|
|
1696
1794
|
email: string;
|
|
1697
1795
|
name?: string | undefined;
|
|
@@ -2037,7 +2135,7 @@ export declare const systemContract: {
|
|
|
2037
2135
|
}[] | undefined;
|
|
2038
2136
|
needs?: {
|
|
2039
2137
|
id: string;
|
|
2040
|
-
kind: "automation" | "capability" | "environment" | "grant" | "release" | "secret";
|
|
2138
|
+
kind: "automation" | "capability" | "environment" | "grant" | "instruction" | "release" | "secret";
|
|
2041
2139
|
title: string;
|
|
2042
2140
|
status: "cancelled" | "declined" | "met" | "open" | "working";
|
|
2043
2141
|
}[] | undefined;
|
|
@@ -2071,6 +2169,7 @@ export declare const systemContract: {
|
|
|
2071
2169
|
label?: string | undefined;
|
|
2072
2170
|
utilization: number;
|
|
2073
2171
|
resetsAt?: number | undefined;
|
|
2172
|
+
periodSeconds?: number | undefined;
|
|
2074
2173
|
gates: "all" | "none" | {
|
|
2075
2174
|
models: string[];
|
|
2076
2175
|
};
|
|
@@ -2100,6 +2199,8 @@ export declare const systemContract: {
|
|
|
2100
2199
|
model?: string | undefined;
|
|
2101
2200
|
resetsAt?: number | undefined;
|
|
2102
2201
|
poolResetsAt?: number | undefined;
|
|
2202
|
+
pool?: string | undefined;
|
|
2203
|
+
poolUnpublished?: true | undefined;
|
|
2103
2204
|
unmetered?: true | undefined;
|
|
2104
2205
|
byHand?: true | undefined;
|
|
2105
2206
|
}[] | undefined;
|
|
@@ -2111,10 +2212,100 @@ export declare const systemContract: {
|
|
|
2111
2212
|
model?: string | undefined;
|
|
2112
2213
|
resetsAt?: number | undefined;
|
|
2113
2214
|
poolResetsAt?: number | undefined;
|
|
2215
|
+
pool?: string | undefined;
|
|
2216
|
+
poolUnpublished?: true | undefined;
|
|
2114
2217
|
unmetered?: true | undefined;
|
|
2115
2218
|
byHand?: true | undefined;
|
|
2116
2219
|
} | undefined;
|
|
2117
2220
|
switchOffs?: Record<string, readonly number[]> | undefined;
|
|
2221
|
+
} | {
|
|
2222
|
+
kind: "capacity";
|
|
2223
|
+
capacity: {
|
|
2224
|
+
provider: string;
|
|
2225
|
+
seq: number;
|
|
2226
|
+
judgedAt: number;
|
|
2227
|
+
validUntil?: number | undefined;
|
|
2228
|
+
accounts: {
|
|
2229
|
+
account: string;
|
|
2230
|
+
label?: string | undefined;
|
|
2231
|
+
needsReauth?: boolean | undefined;
|
|
2232
|
+
detail?: string | undefined;
|
|
2233
|
+
seatRefusal?: string | undefined;
|
|
2234
|
+
cooling?: {
|
|
2235
|
+
until?: number | undefined;
|
|
2236
|
+
reason?: string | undefined;
|
|
2237
|
+
verify?: string | undefined;
|
|
2238
|
+
} | undefined;
|
|
2239
|
+
cooldowns?: {
|
|
2240
|
+
model: string;
|
|
2241
|
+
until: number;
|
|
2242
|
+
}[] | undefined;
|
|
2243
|
+
usage?: {
|
|
2244
|
+
windows: {
|
|
2245
|
+
kind: string;
|
|
2246
|
+
label?: string | undefined;
|
|
2247
|
+
utilization: number;
|
|
2248
|
+
resetsAt?: number | undefined;
|
|
2249
|
+
periodSeconds?: number | undefined;
|
|
2250
|
+
gates: "all" | "none" | {
|
|
2251
|
+
models: string[];
|
|
2252
|
+
};
|
|
2253
|
+
rounded?: boolean | undefined;
|
|
2254
|
+
lapsedAt?: number | undefined;
|
|
2255
|
+
missingSince?: number | undefined;
|
|
2256
|
+
}[];
|
|
2257
|
+
measuredAt: number;
|
|
2258
|
+
unread?: {
|
|
2259
|
+
since: number;
|
|
2260
|
+
reason: string;
|
|
2261
|
+
} | undefined;
|
|
2262
|
+
uncovered?: string[] | undefined;
|
|
2263
|
+
contradicted?: {
|
|
2264
|
+
at: number;
|
|
2265
|
+
model: string;
|
|
2266
|
+
} | undefined;
|
|
2267
|
+
} | undefined;
|
|
2268
|
+
models?: string[] | undefined;
|
|
2269
|
+
state: {
|
|
2270
|
+
kind: "ready";
|
|
2271
|
+
room: number;
|
|
2272
|
+
renewsAt?: number | undefined;
|
|
2273
|
+
} | {
|
|
2274
|
+
kind: "spent";
|
|
2275
|
+
reopensAt?: number | undefined;
|
|
2276
|
+
pool?: string | undefined;
|
|
2277
|
+
} | {
|
|
2278
|
+
kind: "blocked";
|
|
2279
|
+
fix: "admin" | "plan" | "reconnect" | "verify" | "wait";
|
|
2280
|
+
reason: string;
|
|
2281
|
+
until?: number | undefined;
|
|
2282
|
+
url?: string | undefined;
|
|
2283
|
+
} | {
|
|
2284
|
+
kind: "unknown";
|
|
2285
|
+
};
|
|
2286
|
+
flapping?: true | undefined;
|
|
2287
|
+
}[];
|
|
2288
|
+
refusals: {
|
|
2289
|
+
at: number;
|
|
2290
|
+
kind: "auth" | "entitlement" | "limit";
|
|
2291
|
+
message: string;
|
|
2292
|
+
account?: string | undefined;
|
|
2293
|
+
model?: string | undefined;
|
|
2294
|
+
resetsAt?: number | undefined;
|
|
2295
|
+
poolResetsAt?: number | undefined;
|
|
2296
|
+
pool?: string | undefined;
|
|
2297
|
+
poolUnpublished?: true | undefined;
|
|
2298
|
+
unmetered?: true | undefined;
|
|
2299
|
+
byHand?: true | undefined;
|
|
2300
|
+
}[];
|
|
2301
|
+
switchOffs?: Record<string, readonly number[]> | undefined;
|
|
2302
|
+
placement?: string | undefined;
|
|
2303
|
+
degraded?: {
|
|
2304
|
+
cause: "outage" | "throttle";
|
|
2305
|
+
retryAt: number;
|
|
2306
|
+
attempt?: number | undefined;
|
|
2307
|
+
} | undefined;
|
|
2308
|
+
};
|
|
2118
2309
|
} | {
|
|
2119
2310
|
from: number;
|
|
2120
2311
|
generation: number;
|
|
@@ -2284,6 +2475,7 @@ export declare const systemContract: {
|
|
|
2284
2475
|
resume: "resume";
|
|
2285
2476
|
wait: "wait";
|
|
2286
2477
|
}>>;
|
|
2478
|
+
proceedWithoutAsking: z.ZodOptional<z.ZodBoolean>;
|
|
2287
2479
|
landRequested: z.ZodOptional<z.ZodObject<{
|
|
2288
2480
|
email: z.ZodString;
|
|
2289
2481
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -2722,6 +2914,7 @@ export declare const systemContract: {
|
|
|
2722
2914
|
capability: "capability";
|
|
2723
2915
|
environment: "environment";
|
|
2724
2916
|
grant: "grant";
|
|
2917
|
+
instruction: "instruction";
|
|
2725
2918
|
release: "release";
|
|
2726
2919
|
secret: "secret";
|
|
2727
2920
|
}>;
|
|
@@ -2847,6 +3040,7 @@ export declare const systemContract: {
|
|
|
2847
3040
|
resume: "resume";
|
|
2848
3041
|
wait: "wait";
|
|
2849
3042
|
}>>;
|
|
3043
|
+
proceedWithoutAsking: z.ZodOptional<z.ZodBoolean>;
|
|
2850
3044
|
landRequested: z.ZodOptional<z.ZodObject<{
|
|
2851
3045
|
email: z.ZodString;
|
|
2852
3046
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -3285,6 +3479,7 @@ export declare const systemContract: {
|
|
|
3285
3479
|
capability: "capability";
|
|
3286
3480
|
environment: "environment";
|
|
3287
3481
|
grant: "grant";
|
|
3482
|
+
instruction: "instruction";
|
|
3288
3483
|
release: "release";
|
|
3289
3484
|
secret: "secret";
|
|
3290
3485
|
}>;
|
|
@@ -3331,6 +3526,7 @@ export declare const systemContract: {
|
|
|
3331
3526
|
label: z.ZodOptional<z.ZodString>;
|
|
3332
3527
|
utilization: z.ZodNumber;
|
|
3333
3528
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3529
|
+
periodSeconds: z.ZodOptional<z.ZodNumber>;
|
|
3334
3530
|
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
3335
3531
|
models: z.ZodArray<z.ZodString>;
|
|
3336
3532
|
}, z.core.$strip>]>;
|
|
@@ -3364,6 +3560,8 @@ export declare const systemContract: {
|
|
|
3364
3560
|
model: z.ZodOptional<z.ZodString>;
|
|
3365
3561
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3366
3562
|
poolResetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3563
|
+
pool: z.ZodOptional<z.ZodString>;
|
|
3564
|
+
poolUnpublished: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3367
3565
|
unmetered: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3368
3566
|
byHand: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3369
3567
|
}, z.core.$strip>>>;
|
|
@@ -3379,10 +3577,113 @@ export declare const systemContract: {
|
|
|
3379
3577
|
model: z.ZodOptional<z.ZodString>;
|
|
3380
3578
|
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3381
3579
|
poolResetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3580
|
+
pool: z.ZodOptional<z.ZodString>;
|
|
3581
|
+
poolUnpublished: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3382
3582
|
unmetered: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3383
3583
|
byHand: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3384
3584
|
}, z.core.$strip>>;
|
|
3385
3585
|
switchOffs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
3586
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3587
|
+
kind: z.ZodLiteral<"capacity">;
|
|
3588
|
+
capacity: z.ZodObject<{
|
|
3589
|
+
provider: z.ZodString;
|
|
3590
|
+
seq: z.ZodNumber;
|
|
3591
|
+
judgedAt: z.ZodNumber;
|
|
3592
|
+
validUntil: z.ZodOptional<z.ZodNumber>;
|
|
3593
|
+
accounts: z.ZodArray<z.ZodObject<{
|
|
3594
|
+
account: z.ZodString;
|
|
3595
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3596
|
+
needsReauth: z.ZodOptional<z.ZodBoolean>;
|
|
3597
|
+
detail: z.ZodOptional<z.ZodString>;
|
|
3598
|
+
seatRefusal: z.ZodOptional<z.ZodString>;
|
|
3599
|
+
cooling: z.ZodOptional<z.ZodObject<{
|
|
3600
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
3601
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
3602
|
+
verify: z.ZodOptional<z.ZodString>;
|
|
3603
|
+
}, z.core.$strip>>;
|
|
3604
|
+
cooldowns: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3605
|
+
model: z.ZodString;
|
|
3606
|
+
until: z.ZodNumber;
|
|
3607
|
+
}, z.core.$strip>>>;
|
|
3608
|
+
usage: z.ZodOptional<z.ZodObject<{
|
|
3609
|
+
windows: z.ZodArray<z.ZodObject<{
|
|
3610
|
+
kind: z.ZodString;
|
|
3611
|
+
label: z.ZodOptional<z.ZodString>;
|
|
3612
|
+
utilization: z.ZodNumber;
|
|
3613
|
+
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3614
|
+
periodSeconds: z.ZodOptional<z.ZodNumber>;
|
|
3615
|
+
gates: z.ZodUnion<readonly [z.ZodLiteral<"all">, z.ZodLiteral<"none">, z.ZodObject<{
|
|
3616
|
+
models: z.ZodArray<z.ZodString>;
|
|
3617
|
+
}, z.core.$strip>]>;
|
|
3618
|
+
rounded: z.ZodOptional<z.ZodBoolean>;
|
|
3619
|
+
lapsedAt: z.ZodOptional<z.ZodNumber>;
|
|
3620
|
+
missingSince: z.ZodOptional<z.ZodNumber>;
|
|
3621
|
+
}, z.core.$strip>>;
|
|
3622
|
+
measuredAt: z.ZodNumber;
|
|
3623
|
+
unread: z.ZodOptional<z.ZodObject<{
|
|
3624
|
+
since: z.ZodNumber;
|
|
3625
|
+
reason: z.ZodString;
|
|
3626
|
+
}, z.core.$strip>>;
|
|
3627
|
+
uncovered: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3628
|
+
contradicted: z.ZodOptional<z.ZodObject<{
|
|
3629
|
+
at: z.ZodNumber;
|
|
3630
|
+
model: z.ZodString;
|
|
3631
|
+
}, z.core.$strip>>;
|
|
3632
|
+
}, z.core.$strip>>;
|
|
3633
|
+
models: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
3634
|
+
state: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
3635
|
+
kind: z.ZodLiteral<"ready">;
|
|
3636
|
+
room: z.ZodNumber;
|
|
3637
|
+
renewsAt: z.ZodOptional<z.ZodNumber>;
|
|
3638
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3639
|
+
kind: z.ZodLiteral<"spent">;
|
|
3640
|
+
reopensAt: z.ZodOptional<z.ZodNumber>;
|
|
3641
|
+
pool: z.ZodOptional<z.ZodString>;
|
|
3642
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3643
|
+
kind: z.ZodLiteral<"blocked">;
|
|
3644
|
+
fix: z.ZodEnum<{
|
|
3645
|
+
admin: "admin";
|
|
3646
|
+
plan: "plan";
|
|
3647
|
+
reconnect: "reconnect";
|
|
3648
|
+
verify: "verify";
|
|
3649
|
+
wait: "wait";
|
|
3650
|
+
}>;
|
|
3651
|
+
reason: z.ZodString;
|
|
3652
|
+
until: z.ZodOptional<z.ZodNumber>;
|
|
3653
|
+
url: z.ZodOptional<z.ZodString>;
|
|
3654
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3655
|
+
kind: z.ZodLiteral<"unknown">;
|
|
3656
|
+
}, z.core.$strip>], "kind">;
|
|
3657
|
+
flapping: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3658
|
+
}, z.core.$strip>>;
|
|
3659
|
+
refusals: z.ZodArray<z.ZodObject<{
|
|
3660
|
+
at: z.ZodNumber;
|
|
3661
|
+
kind: z.ZodEnum<{
|
|
3662
|
+
auth: "auth";
|
|
3663
|
+
entitlement: "entitlement";
|
|
3664
|
+
limit: "limit";
|
|
3665
|
+
}>;
|
|
3666
|
+
message: z.ZodString;
|
|
3667
|
+
account: z.ZodOptional<z.ZodString>;
|
|
3668
|
+
model: z.ZodOptional<z.ZodString>;
|
|
3669
|
+
resetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3670
|
+
poolResetsAt: z.ZodOptional<z.ZodNumber>;
|
|
3671
|
+
pool: z.ZodOptional<z.ZodString>;
|
|
3672
|
+
poolUnpublished: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3673
|
+
unmetered: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3674
|
+
byHand: z.ZodOptional<z.ZodLiteral<true>>;
|
|
3675
|
+
}, z.core.$strip>>;
|
|
3676
|
+
switchOffs: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodReadonly<z.ZodArray<z.ZodNumber>>>>;
|
|
3677
|
+
placement: z.ZodOptional<z.ZodString>;
|
|
3678
|
+
degraded: z.ZodOptional<z.ZodObject<{
|
|
3679
|
+
cause: z.ZodEnum<{
|
|
3680
|
+
outage: "outage";
|
|
3681
|
+
throttle: "throttle";
|
|
3682
|
+
}>;
|
|
3683
|
+
retryAt: z.ZodNumber;
|
|
3684
|
+
attempt: z.ZodOptional<z.ZodNumber>;
|
|
3685
|
+
}, z.core.$strip>>;
|
|
3686
|
+
}, z.core.$strip>;
|
|
3386
3687
|
}, z.core.$strip>], "kind">;
|
|
3387
3688
|
}, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
3388
3689
|
presence: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -4304,5 +4605,70 @@ export declare const systemContract: {
|
|
|
4304
4605
|
message: z.ZodString;
|
|
4305
4606
|
}, z.core.$strip>], "kind">;
|
|
4306
4607
|
}, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
4608
|
+
deviceStacks: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4609
|
+
id: z.ZodString;
|
|
4610
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4611
|
+
root: z.ZodString;
|
|
4612
|
+
stacks: z.ZodArray<z.ZodObject<{
|
|
4613
|
+
name: z.ZodString;
|
|
4614
|
+
status: z.ZodString;
|
|
4615
|
+
configFiles: z.ZodArray<z.ZodString>;
|
|
4616
|
+
workingDir: z.ZodOptional<z.ZodString>;
|
|
4617
|
+
managed: z.ZodBoolean;
|
|
4618
|
+
sandbox: z.ZodBoolean;
|
|
4619
|
+
services: z.ZodArray<z.ZodObject<{
|
|
4620
|
+
service: z.ZodString;
|
|
4621
|
+
container: z.ZodString;
|
|
4622
|
+
image: z.ZodString;
|
|
4623
|
+
state: z.ZodEnum<{
|
|
4624
|
+
created: "created";
|
|
4625
|
+
dead: "dead";
|
|
4626
|
+
exited: "exited";
|
|
4627
|
+
paused: "paused";
|
|
4628
|
+
removing: "removing";
|
|
4629
|
+
restarting: "restarting";
|
|
4630
|
+
running: "running";
|
|
4631
|
+
unknown: "unknown";
|
|
4632
|
+
}>;
|
|
4633
|
+
status: z.ZodString;
|
|
4634
|
+
health: z.ZodOptional<z.ZodEnum<{
|
|
4635
|
+
healthy: "healthy";
|
|
4636
|
+
starting: "starting";
|
|
4637
|
+
unhealthy: "unhealthy";
|
|
4638
|
+
}>>;
|
|
4639
|
+
}, z.core.$strip>>;
|
|
4640
|
+
}, z.core.$strip>>;
|
|
4641
|
+
}, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
4642
|
+
deviceStackOp: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4643
|
+
id: z.ZodString;
|
|
4644
|
+
name: z.ZodString;
|
|
4645
|
+
op: z.ZodEnum<{
|
|
4646
|
+
pull: "pull";
|
|
4647
|
+
restart: "restart";
|
|
4648
|
+
start: "start";
|
|
4649
|
+
stop: "stop";
|
|
4650
|
+
up: "up";
|
|
4651
|
+
}>;
|
|
4652
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4653
|
+
output: z.ZodString;
|
|
4654
|
+
}, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
4655
|
+
deviceStackLogs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4656
|
+
id: z.ZodString;
|
|
4657
|
+
name: z.ZodString;
|
|
4658
|
+
tail: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4659
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4660
|
+
text: z.ZodString;
|
|
4661
|
+
}, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
4662
|
+
deployDeviceStack: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4663
|
+
id: z.ZodString;
|
|
4664
|
+
name: z.ZodString;
|
|
4665
|
+
repo: z.ZodString;
|
|
4666
|
+
composeFile: z.ZodOptional<z.ZodString>;
|
|
4667
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4668
|
+
stack: z.ZodString;
|
|
4669
|
+
path: z.ZodString;
|
|
4670
|
+
commit: z.ZodString;
|
|
4671
|
+
output: z.ZodString;
|
|
4672
|
+
}, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
4307
4673
|
};
|
|
4308
4674
|
//# sourceMappingURL=system.contract.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/system.contract.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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAYZ,aAAa;;;;;;;;;;;;;IAYb,eAAe;;;;;;;IAWf,iBAAiB;;;;;;;;;;;CAWpB,CAAC"}
|
|
@@ -3,6 +3,7 @@ import { streamOf } from "../protocol/routes.js";
|
|
|
3
3
|
import { z } from "zod";
|
|
4
4
|
import { RosterFramesSchema, SystemEventSchema } from "../events/system-events.js";
|
|
5
5
|
import { DeviceAgentFlowInputSchema, DeviceCommandInputSchema, DeviceCommandResultSchema, DeviceFlowLineSchema, DeviceSandboxFlowInputSchema, DevicesListSchema, } from "../schemas/devices.js";
|
|
6
|
+
import { DeviceStackDeployInputSchema, DeviceStackDeployResultSchema, DeviceStackLogsInputSchema, DeviceStackOpInputSchema, DeviceStacksInputSchema, DeviceStacksSchema, StackLogsSchema, StackOpResultSchema, } from "../schemas/device-stacks.js";
|
|
6
7
|
import { EgressOwnerKeysReadSchema } from "../schemas/egress.js";
|
|
7
8
|
import { PresenceReportSchema } from "../schemas/logs.js";
|
|
8
9
|
import { CheckoutPressInputSchema, CheckoutPressResultSchema, DiskPressureSchema, SandboxMetricsSchema, StorageCleanInputSchema, StorageCleanResultSchema, StorageReportSchema, } from "../schemas/metrics.js";
|
|
@@ -97,6 +98,10 @@ export const systemContract = {
|
|
|
97
98
|
.input(z.object({
|
|
98
99
|
clientId: z.string().optional(),
|
|
99
100
|
roster: RosterFramesSchema.optional().describe("How the fleet's agents arrive as running agents make progress: `changes` sends only the cards that moved since the previous roster frame, `snapshots` (the default) every card every time. A change someone made, and the first roster, always arrive whole."),
|
|
101
|
+
capacity: z
|
|
102
|
+
.stringbool()
|
|
103
|
+
.optional()
|
|
104
|
+
.describe("Send each provider's capacity (what its accounts can serve, judged whole) as a `capacity` frame whenever anything under it changes, and again when the clock alone would change it."),
|
|
100
105
|
}))
|
|
101
106
|
.output(streamOf(SystemEventSchema)),
|
|
102
107
|
presence: systemRoute
|
|
@@ -299,5 +304,45 @@ export const systemContract = {
|
|
|
299
304
|
})
|
|
300
305
|
.input(DeviceAgentFlowInputSchema)
|
|
301
306
|
.output(streamOf(DeviceFlowLineSchema)),
|
|
307
|
+
deviceStacks: systemRoute
|
|
308
|
+
.route({
|
|
309
|
+
method: "GET",
|
|
310
|
+
path: "/system/devices/{id}/stacks",
|
|
311
|
+
summary: "The Docker compose stacks on one of your devices",
|
|
312
|
+
description: "Every Docker compose project on a computer you connected, with each service's container, image and state, and the folder this sandbox deploys stacks into there. Intentic's own sandboxes are marked rather than left out. Needs that computer's \"Run commands\" switch.",
|
|
313
|
+
})
|
|
314
|
+
.meta({ floor: "maintainer", panel: false })
|
|
315
|
+
.input(DeviceStacksInputSchema)
|
|
316
|
+
.output(DeviceStacksSchema),
|
|
317
|
+
deviceStackOp: systemRoute
|
|
318
|
+
.route({
|
|
319
|
+
method: "POST",
|
|
320
|
+
path: "/system/devices/{id}/stacks/{name}/ops/{op}",
|
|
321
|
+
summary: "Start, stop, restart or update a stack on one of your devices",
|
|
322
|
+
description: "Runs `docker compose` for one stack on a computer you connected: `up` applies its files, `pull` fetches newer images and then applies, and `restart`, `start` and `stop` do what they say. Nothing here removes a stack or its volumes. Needs that computer's \"Run commands\" switch.",
|
|
323
|
+
})
|
|
324
|
+
.meta({ panel: false })
|
|
325
|
+
.input(DeviceStackOpInputSchema)
|
|
326
|
+
.output(StackOpResultSchema),
|
|
327
|
+
deviceStackLogs: systemRoute
|
|
328
|
+
.route({
|
|
329
|
+
method: "GET",
|
|
330
|
+
path: "/system/devices/{id}/stacks/{name}/logs",
|
|
331
|
+
summary: "The recent log of a stack on one of your devices",
|
|
332
|
+
description: "The last lines every service of one compose stack printed, oldest first, as `docker compose logs` gives them.",
|
|
333
|
+
})
|
|
334
|
+
.meta({ floor: "maintainer", panel: false })
|
|
335
|
+
.input(DeviceStackLogsInputSchema)
|
|
336
|
+
.output(StackLogsSchema),
|
|
337
|
+
deployDeviceStack: systemRoute
|
|
338
|
+
.route({
|
|
339
|
+
method: "POST",
|
|
340
|
+
path: "/system/devices/{id}/stacks/{name}/deploy",
|
|
341
|
+
summary: "Deploy a workspace repository to one of your devices",
|
|
342
|
+
description: "Packs the committed tree (HEAD) of a workspace repository, carries it to a computer you connected and runs it there as a Docker compose stack of the given name, building its images on that computer. Uncommitted changes are not deployed. A `.env` already in the stack's folder there is kept: secrets are placed into it by an agent, never sent with a deploy. Needs that computer's \"Run commands\" and \"Run programs this sandbox sends\" switches.",
|
|
343
|
+
})
|
|
344
|
+
.meta({ panel: false })
|
|
345
|
+
.input(DeviceStackDeployInputSchema)
|
|
346
|
+
.output(DeviceStackDeployResultSchema),
|
|
302
347
|
};
|
|
303
348
|
//# sourceMappingURL=system.contract.js.map
|