@intentic/sandbox-contract 1.309.0 → 1.310.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 (101) hide show
  1. package/dist/contracts/settings.contract.d.ts +3 -15
  2. package/dist/contracts/settings.contract.d.ts.map +1 -1
  3. package/dist/index.d.ts +33 -73
  4. package/dist/index.d.ts.map +1 -1
  5. package/dist/index.js +0 -3
  6. package/dist/index.js.map +1 -1
  7. package/dist/protocol/upgrade-relay.d.ts +4 -0
  8. package/dist/protocol/upgrade-relay.d.ts.map +1 -0
  9. package/dist/protocol/upgrade-relay.js +25 -0
  10. package/dist/protocol/upgrade-relay.js.map +1 -0
  11. package/dist/schemas/ci.d.ts.map +1 -1
  12. package/dist/schemas/ci.js.map +1 -1
  13. package/dist/schemas/metrics.d.ts +24 -25
  14. package/dist/schemas/metrics.d.ts.map +1 -1
  15. package/dist/schemas/metrics.js +6 -31
  16. package/dist/schemas/metrics.js.map +1 -1
  17. package/dist/schemas/settings.d.ts +9 -29
  18. package/dist/schemas/settings.d.ts.map +1 -1
  19. package/dist/schemas/settings.js +25 -11
  20. package/dist/schemas/settings.js.map +1 -1
  21. package/dist/state/definition.d.ts +8 -20
  22. package/dist/state/definition.d.ts.map +1 -1
  23. package/dist/state/workspace-state.d.ts +0 -7
  24. package/dist/state/workspace-state.d.ts.map +1 -1
  25. package/dist/state/workspace-state.js +0 -8
  26. package/dist/state/workspace-state.js.map +1 -1
  27. package/package.json +16 -5
  28. package/src/chores/chores.test.ts +0 -1
  29. package/src/chores/digest.test.ts +0 -1
  30. package/src/chores/probes.test.ts +0 -1
  31. package/src/chores/stack.test.ts +0 -1
  32. package/src/chores/verdict.test.ts +0 -1
  33. package/src/events/agent-words.test.ts +0 -1
  34. package/src/events/resume.test.ts +0 -1
  35. package/src/events/watch-wake.test.ts +0 -1
  36. package/src/ids/conversation-ids.test.ts +1 -2
  37. package/src/ids/hostnames.test.ts +0 -1
  38. package/src/ids/share-paths.test.ts +0 -1
  39. package/src/ids/tunnel-ids.test.ts +0 -1
  40. package/src/index.ts +0 -3
  41. package/src/models/agent-catalog.test.ts +0 -1
  42. package/src/models/capability-ledger.test.ts +0 -1
  43. package/src/models/model-label.test.ts +0 -1
  44. package/src/models/model-offer.test.ts +0 -1
  45. package/src/models/model-order.test.ts +0 -1
  46. package/src/models/model-pins.test.ts +0 -1
  47. package/src/models/model-roles.test.ts +0 -1
  48. package/src/models/plan-pools.test.ts +0 -1
  49. package/src/models/provider-specs.test.ts +0 -1
  50. package/src/policy/batch-runs.test.ts +0 -1
  51. package/src/policy/command-classes.test.ts +0 -1
  52. package/src/policy/credential-material.test.ts +0 -1
  53. package/src/policy/fence-paths.test.ts +0 -1
  54. package/src/policy/overlay-lint.test.ts +0 -1
  55. package/src/policy/owner-ticket.test.ts +0 -1
  56. package/src/policy/persona-home.test.ts +0 -1
  57. package/src/policy/reserved-servers.test.ts +0 -1
  58. package/src/policy/safety-policy.test.ts +0 -1
  59. package/src/policy/search-globs.test.ts +0 -1
  60. package/src/protocol/container-requirements.test.ts +0 -1
  61. package/src/protocol/ingress-contract.test.ts +0 -1
  62. package/src/protocol/ingress-protocol.test.ts +0 -1
  63. package/src/protocol/peer-dial.test.ts +1 -2
  64. package/src/protocol/peer-mcp-server.test.ts +0 -1
  65. package/src/protocol/routes.test.ts +6 -3
  66. package/src/protocol/tunnel-heartbeat.test.ts +2 -3
  67. package/src/protocol/upgrade-relay.ts +28 -0
  68. package/src/schemas/agent.test.ts +0 -1
  69. package/src/schemas/areas.test.ts +1 -2
  70. package/src/schemas/ci.ts +3 -9
  71. package/src/schemas/context-trim.test.ts +0 -1
  72. package/src/schemas/dev-rebuild-log.test.ts +0 -1
  73. package/src/schemas/git/git.test.ts +0 -1
  74. package/src/schemas/metrics.ts +33 -64
  75. package/src/schemas/settings.test.ts +41 -7
  76. package/src/schemas/settings.ts +48 -44
  77. package/src/schemas/version-seam.test.ts +0 -1
  78. package/src/state/contract-lock.test.ts +0 -1
  79. package/src/state/fix-attempt-plan.test.ts +0 -1
  80. package/src/state/fix-stance.test.ts +0 -1
  81. package/src/state/landed-commit.test.ts +0 -1
  82. package/src/state/runtime-state.test.ts +0 -1
  83. package/src/state/versions.test.ts +0 -1
  84. package/src/state/workspace-state.test.ts +0 -3
  85. package/src/state/workspace-state.ts +0 -14
  86. package/src/text/archives.test.ts +0 -1
  87. package/src/text/documents.test.ts +0 -1
  88. package/src/text/embed.test.ts +2 -3
  89. package/src/text/emoji.test.ts +0 -1
  90. package/src/text/mentions.test.ts +0 -1
  91. package/src/text/path-refs.test.ts +0 -1
  92. package/src/text/title.test.ts +0 -1
  93. package/src/text/transcript-fold.test.ts +12 -3
  94. package/src/text/whisper.test.ts +0 -1
  95. package/src/text/workflow-faults.test.ts +0 -1
  96. package/src/time/zone.test.ts +0 -1
  97. package/dist/contracts/prepush.contract.d.ts +0 -32
  98. package/dist/contracts/prepush.contract.d.ts.map +0 -1
  99. package/dist/contracts/prepush.contract.js +0 -41
  100. package/dist/contracts/prepush.contract.js.map +0 -1
  101. package/src/contracts/prepush.contract.ts +0 -58
@@ -1,32 +0,0 @@
1
- import { z } from "zod";
2
- export declare const PrepushRunSchema: z.ZodPrefault<z.ZodObject<{
3
- repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
4
- }, z.core.$strip>>;
5
- export declare const prepushContract: {
6
- state: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
7
- status: z.ZodEnum<{
8
- cancelled: "cancelled";
9
- error: "error";
10
- failed: "failed";
11
- idle: "idle";
12
- passed: "passed";
13
- running: "running";
14
- }>;
15
- command: z.ZodString;
16
- startedAt: z.ZodOptional<z.ZodNumber>;
17
- finishedAt: z.ZodOptional<z.ZodNumber>;
18
- exitCode: z.ZodOptional<z.ZodNumber>;
19
- timedOut: z.ZodOptional<z.ZodBoolean>;
20
- session: z.ZodOptional<z.ZodString>;
21
- output: z.ZodString;
22
- }, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
23
- run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodPrefault<z.ZodObject<{
24
- repos: z.ZodDefault<z.ZodArray<z.ZodString>>;
25
- }, z.core.$strip>>, z.ZodObject<{
26
- ok: z.ZodLiteral<true>;
27
- }, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
28
- cancel: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
29
- ok: z.ZodLiteral<true>;
30
- }, z.core.$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
31
- };
32
- //# sourceMappingURL=prepush.contract.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prepush.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/prepush.contract.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AASxB,eAAO,MAAM,gBAAgB;;kBAQZ,CAAC;AAWlB,eAAO,MAAM,eAAe;IACxB,KAAK;;;;;;;;;;;;;;;;;IASL,GAAG;;;;;IAUH,MAAM;;;CAQT,CAAC"}
@@ -1,41 +0,0 @@
1
- import { procedure } from "../protocol/route-meta.js";
2
- import { z } from "zod";
3
- import { CommandRunSchema } from "../schemas/ci.js";
4
- import { OkSchema } from "../schemas/shared.js";
5
- export const PrepushRunSchema = z
6
- .object({
7
- repos: z
8
- .array(z.string().min(1))
9
- .max(100)
10
- .default([])
11
- .describe("The repositories going out, by workspace id. Empty runs only what stands for every push, whichever repository it is."),
12
- })
13
- .prefault({});
14
- export const prepushContract = {
15
- state: procedure
16
- .route({
17
- method: "GET",
18
- path: "/prepush/state",
19
- summary: "How the pre-push check is going",
20
- description: "The verdict, or the progress so far. Nothing is addressed by id here, because there is one working tree and so exactly one check.",
21
- })
22
- .output(CommandRunSchema),
23
- run: procedure
24
- .route({
25
- method: "POST",
26
- path: "/prepush/run",
27
- summary: "Run the checks before pushing",
28
- description: "Starts the suite the workspace runs before anything leaves the machine, and answers immediately. A suite takes minutes, and a request held open that long dies at the first proxy. It runs in a real terminal, so watch it there and poll for the verdict. Name the repositories going out, and each one's own checks run in its own directory.",
29
- })
30
- .input(PrepushRunSchema)
31
- .output(OkSchema),
32
- cancel: procedure
33
- .route({
34
- method: "POST",
35
- path: "/prepush/cancel",
36
- summary: "Stop the pre-push check",
37
- description: "Kills the run. It settles as cancelled and the push it was gating does not go.",
38
- })
39
- .output(OkSchema),
40
- };
41
- //# sourceMappingURL=prepush.contract.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"prepush.contract.js","sourceRoot":"","sources":["../../src/contracts/prepush.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAOhD,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC;KAC5B,MAAM,CAAC;IACJ,KAAK,EAAE,CAAC;SACH,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;SACxB,GAAG,CAAC,GAAG,CAAC;SACR,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,sHAAsH,CAAC;CACxI,CAAC;KACD,QAAQ,CAAC,EAAE,CAAC,CAAC;AAWlB,MAAM,CAAC,MAAM,eAAe,GAAG;IAC3B,KAAK,EAAE,SAAS;SACX,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,gBAAgB;QACtB,OAAO,EAAE,iCAAiC;QAC1C,WAAW,EACP,mIAAmI;KAC1I,CAAC;SACD,MAAM,CAAC,gBAAgB,CAAC;IAC7B,GAAG,EAAE,SAAS;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,+BAA+B;QACxC,WAAW,EACP,iVAAiV;KACxV,CAAC;SACD,KAAK,CAAC,gBAAgB,CAAC;SACvB,MAAM,CAAC,QAAQ,CAAC;IACrB,MAAM,EAAE,SAAS;SACZ,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,yBAAyB;QAClC,WAAW,EAAE,gFAAgF;KAChG,CAAC;SACD,MAAM,CAAC,QAAQ,CAAC;CACxB,CAAC"}
@@ -1,58 +0,0 @@
1
- import { procedure } from "../protocol/route-meta.js";
2
- import { z } from "zod";
3
- import { CommandRunSchema } from "../schemas/ci.js";
4
- import { OkSchema } from "../schemas/shared.js";
5
-
6
- // Which repositories are about to be pushed. The check is one run over one working tree, but what stands in it is not
7
- // the same for every push: a repository's own checks (repo-checks.ts) run only when that repository is going out, and a
8
- // rule the owner aimed at one repository does the same.
9
- // `prefault`, so a caller that sends no body at all still starts the check: a browser tab open since before this input
10
- // existed is the ordinary case, and refusing its push over a missing field would be the worst possible way to say so.
11
- export const PrepushRunSchema = z
12
- .object({
13
- repos: z
14
- .array(z.string().min(1))
15
- .max(100)
16
- .default([])
17
- .describe("The repositories going out, by workspace id. Empty runs only what stands for every push, whichever repository it is."),
18
- })
19
- .prefault({});
20
-
21
- // The pre-push check, the command the workspace runs when the user pushes, before anything leaves the machine
22
- // (see CommandRunSchema for where this sits and why). Three verbs about ONE run: the check answers about the
23
- // main working tree, of which there is exactly one, so nothing here is addressed by id.
24
- //
25
- // `run` starts the check and returns immediately, a suite takes minutes, and an oRPC call held open for one
26
- // would die on the first proxy timeout with the work still going. The dialog that started it polls `state` for
27
- // the verdict, and opens the terminals panel on the `session` the first answer names: the suite runs in a real
28
- // tmux window, so watching it is the terminal's job. `cancel` kills that window; the run settles as `cancelled`
29
- // and the push it was gating does not go.
30
- export const prepushContract = {
31
- state: procedure
32
- .route({
33
- method: "GET",
34
- path: "/prepush/state",
35
- summary: "How the pre-push check is going",
36
- description:
37
- "The verdict, or the progress so far. Nothing is addressed by id here, because there is one working tree and so exactly one check.",
38
- })
39
- .output(CommandRunSchema),
40
- run: procedure
41
- .route({
42
- method: "POST",
43
- path: "/prepush/run",
44
- summary: "Run the checks before pushing",
45
- description:
46
- "Starts the suite the workspace runs before anything leaves the machine, and answers immediately. A suite takes minutes, and a request held open that long dies at the first proxy. It runs in a real terminal, so watch it there and poll for the verdict. Name the repositories going out, and each one's own checks run in its own directory.",
47
- })
48
- .input(PrepushRunSchema)
49
- .output(OkSchema),
50
- cancel: procedure
51
- .route({
52
- method: "POST",
53
- path: "/prepush/cancel",
54
- summary: "Stop the pre-push check",
55
- description: "Kills the run. It settles as cancelled and the push it was gating does not go.",
56
- })
57
- .output(OkSchema),
58
- };