@intentic/sandbox-contract 1.402.0 → 1.403.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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/sandbox-contract",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.403.0",
|
|
4
4
|
"description": "oRPC wire contract for the intentic sandbox daemon, shared by the daemon and its browser client",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -373,10 +373,10 @@
|
|
|
373
373
|
}
|
|
374
374
|
},
|
|
375
375
|
"dependencies": {
|
|
376
|
-
"@intentic/base": "1.
|
|
377
|
-
"@intentic/constants": "1.
|
|
378
|
-
"@intentic/extension-manifest": "1.
|
|
379
|
-
"@intentic/registry": "1.
|
|
376
|
+
"@intentic/base": "1.403.0",
|
|
377
|
+
"@intentic/constants": "1.403.0",
|
|
378
|
+
"@intentic/extension-manifest": "1.403.0",
|
|
379
|
+
"@intentic/registry": "1.403.0",
|
|
380
380
|
"@orpc/contract": "1.16.1",
|
|
381
381
|
"zod": "4.6.7"
|
|
382
382
|
},
|
|
@@ -3,7 +3,7 @@ import { z } from "zod";
|
|
|
3
3
|
import { ArtifactNameSchema } from "./device-artifacts.js";
|
|
4
4
|
|
|
5
5
|
// <repo>/.intentic/run.json declares what a repository can run, and where: in the sandbox, on the owner's own computers, or
|
|
6
|
-
// either. One file behind the editor's Run
|
|
6
|
+
// either. One file behind the editor's Run view (the sandbox beside every computer, a lane each), the Browsers
|
|
7
7
|
// view's Start and `devices run <target>`.
|
|
8
8
|
// - In the sandbox: `command`, run from the repository's root as Start runs it, handed the PORT its preview address is
|
|
9
9
|
// routed to and the sandbox desktop's DISPLAY. A repository whose first such target exists runs it on Start
|
|
@@ -121,14 +121,14 @@ export type RunStart = z.infer<typeof RunStartSchema>;
|
|
|
121
121
|
export const RunStartedSchema = z.object({ session: z.string() });
|
|
122
122
|
|
|
123
123
|
// A PROGRAM RUNNING ON ONE OF THE OWNER'S COMPUTERS, as the computer itself reports it (its app_status), whoever started
|
|
124
|
-
// it: the Run
|
|
124
|
+
// it: the Run view, `devices run` or `devices start` in a shell, or an agent's app_start. `name` is the target's name
|
|
125
125
|
// for a run started from a run-targets file, which is how the dialog finds a target's run.
|
|
126
126
|
export const DeviceRunStateSchema = z.enum(["running", "ended", "unknown"]);
|
|
127
127
|
export type DeviceRunState = z.infer<typeof DeviceRunStateSchema>;
|
|
128
128
|
|
|
129
129
|
// WHAT A RUN WAS BUILT FROM: the repository's commit and how much of its tree was uncommitted when `devices run` began
|
|
130
130
|
// its build (in the owner's tree that is mostly landed work, since a land leaves its changes uncommitted), and whether
|
|
131
|
-
// the tree moved while it compiled. With `landsSince` on the run, the Run
|
|
131
|
+
// the tree moved while it compiled. With `landsSince` on the run, the Run view says whether the program on the
|
|
132
132
|
// computer is the newest work or a restart would bring more.
|
|
133
133
|
export const RunBuiltFromSchema = z.object({
|
|
134
134
|
// The full sha of HEAD when the build began.
|
|
@@ -149,7 +149,7 @@ export const DeviceRunSchema = z.object({
|
|
|
149
149
|
name: z.string(),
|
|
150
150
|
// `unknown`: its process is alive but the computer cannot tell whether it is still this run, so it will not stop it.
|
|
151
151
|
state: DeviceRunStateSchema,
|
|
152
|
-
// The computer's own words for it: "running, pid 4120", "exited with code 101", "stopped by the Run
|
|
152
|
+
// The computer's own words for it: "running, pid 4120", "exited with code 101", "stopped by the Run view's Stop".
|
|
153
153
|
said: z.string(),
|
|
154
154
|
// How it ended, when it exited by itself with a code.
|
|
155
155
|
exitCode: z.int().optional(),
|
|
@@ -159,7 +159,7 @@ export const DeviceRunSchema = z.object({
|
|
|
159
159
|
repo: z.string().optional(),
|
|
160
160
|
// The computer's ports the sandbox reaches for it (the target's `reach`), open while it runs, closed when it stops.
|
|
161
161
|
ports: z.array(z.int().min(1).max(65535)),
|
|
162
|
-
// Who started it, when this sandbox did since its last restart: "the Run
|
|
162
|
+
// Who started it, when this sandbox did since its last restart: "the Run view", "conversation <id>", "a terminal".
|
|
163
163
|
startedBy: z.string().optional(),
|
|
164
164
|
// What its build was made from, when `devices run` built it (RunBuiltFromSchema).
|
|
165
165
|
builtFrom: RunBuiltFromSchema.optional(),
|
|
@@ -175,14 +175,14 @@ export type RunTerminal = z.infer<typeof RunTerminalSchema>;
|
|
|
175
175
|
|
|
176
176
|
export const DeviceRunsSchema = z.object({
|
|
177
177
|
runs: z.array(DeviceRunSchema),
|
|
178
|
-
// The Run
|
|
178
|
+
// The Run view's terminals for this computer that are still open.
|
|
179
179
|
terminals: z.array(RunTerminalSchema),
|
|
180
180
|
// Why the computer's list could not be read: `runs` is then empty because nothing is known, not because nothing runs.
|
|
181
181
|
error: z.string().optional(),
|
|
182
182
|
});
|
|
183
183
|
|
|
184
184
|
// Follow a target's program already running on one computer in a terminal (`devices attach`), as its run's own terminal
|
|
185
|
-
// does: the one the Run
|
|
185
|
+
// does: the one the Run view's Terminal opens once that terminal is gone.
|
|
186
186
|
export const RunAttachSchema = RunStartSchema.extend({ id: z.string().min(1).max(200) });
|
|
187
187
|
export type RunAttach = z.infer<typeof RunAttachSchema>;
|
|
188
188
|
|