@intentic/sandbox-contract 1.422.0 → 1.424.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/dist/chores/chores.d.ts.map +1 -1
- package/dist/chores/chores.js +1 -48
- package/dist/chores/chores.js.map +1 -1
- package/dist/chores/index.d.ts +1 -1
- package/dist/chores/index.d.ts.map +1 -1
- package/dist/chores/index.js +1 -1
- package/dist/chores/index.js.map +1 -1
- package/dist/chores/prompt.d.ts +0 -1
- package/dist/chores/prompt.d.ts.map +1 -1
- package/dist/chores/prompt.js +0 -2
- package/dist/chores/prompt.js.map +1 -1
- package/dist/contracts/capabilities.contract.d.ts +0 -28
- package/dist/contracts/capabilities.contract.d.ts.map +1 -1
- package/dist/contracts/issues.contract.d.ts +6 -0
- package/dist/contracts/issues.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +14 -14
- package/dist/contracts/panels.contract.d.ts +0 -7
- package/dist/contracts/panels.contract.d.ts.map +1 -1
- package/dist/contracts/seal.contract.d.ts +1 -25
- package/dist/contracts/seal.contract.d.ts.map +1 -1
- package/dist/contracts/seal.contract.js +3 -14
- package/dist/contracts/seal.contract.js.map +1 -1
- package/dist/contracts/secrets.contract.d.ts +2 -17
- package/dist/contracts/secrets.contract.d.ts.map +1 -1
- package/dist/contracts/secrets.contract.js +2 -2
- package/dist/contracts/secrets.contract.js.map +1 -1
- package/dist/contracts/settings.contract.d.ts +0 -135
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/system.contract.d.ts +18 -18
- package/dist/contracts/workspace.contract.d.ts +0 -60
- package/dist/contracts/workspace.contract.d.ts.map +1 -1
- package/dist/contracts/workspace.contract.js +1 -11
- package/dist/contracts/workspace.contract.js.map +1 -1
- package/dist/ids/project-id.d.ts +3 -0
- package/dist/ids/project-id.d.ts.map +1 -0
- package/dist/ids/project-id.js +25 -0
- package/dist/ids/project-id.js.map +1 -0
- package/dist/ids/tunnel-ids.d.ts +0 -1
- package/dist/ids/tunnel-ids.d.ts.map +1 -1
- package/dist/ids/tunnel-ids.js +0 -1
- package/dist/ids/tunnel-ids.js.map +1 -1
- package/dist/index.d.ts +0 -4
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -4
- package/dist/index.js.map +1 -1
- package/dist/models/model-roles.d.ts +1 -1
- package/dist/models/model-roles.d.ts.map +1 -1
- package/dist/models/model-roles.js +1 -1
- package/dist/models/model-roles.js.map +1 -1
- package/dist/protocol/doors/sandbox-pass.d.ts +22 -0
- package/dist/protocol/doors/sandbox-pass.d.ts.map +1 -0
- package/dist/protocol/doors/sandbox-pass.js +72 -0
- package/dist/protocol/doors/sandbox-pass.js.map +1 -0
- package/dist/protocol/raw/raw-json-routes.d.ts +92 -9
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +6 -2
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +16 -7
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +4 -2
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/schemas/capabilities.d.ts +0 -14
- package/dist/schemas/capabilities.d.ts.map +1 -1
- package/dist/schemas/capabilities.js +0 -4
- package/dist/schemas/capabilities.js.map +1 -1
- package/dist/schemas/certificate-request.d.ts +0 -2
- package/dist/schemas/certificate-request.d.ts.map +1 -1
- package/dist/schemas/issues.d.ts +133 -0
- package/dist/schemas/issues.d.ts.map +1 -1
- package/dist/schemas/issues.js +34 -0
- package/dist/schemas/issues.js.map +1 -1
- package/dist/schemas/maintenance.d.ts.map +1 -1
- package/dist/schemas/maintenance.js +16 -10
- package/dist/schemas/maintenance.js.map +1 -1
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/panels.d.ts +0 -14
- package/dist/schemas/panels.d.ts.map +1 -1
- package/dist/schemas/panels.js +0 -6
- package/dist/schemas/panels.js.map +1 -1
- package/dist/schemas/personas.d.ts.map +1 -1
- package/dist/schemas/personas.js +0 -6
- package/dist/schemas/personas.js.map +1 -1
- package/dist/schemas/providers/usage.d.ts +0 -12
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +0 -5
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/seal.d.ts +2 -21
- package/dist/schemas/seal.d.ts.map +1 -1
- package/dist/schemas/seal.js +1 -16
- package/dist/schemas/seal.js.map +1 -1
- package/dist/schemas/secrets.d.ts +1 -22
- package/dist/schemas/secrets.d.ts.map +1 -1
- package/dist/schemas/secrets.js +3 -13
- package/dist/schemas/secrets.js.map +1 -1
- package/dist/schemas/settings-experiments.d.ts +0 -4
- package/dist/schemas/settings-experiments.d.ts.map +1 -1
- package/dist/schemas/settings-experiments.js +0 -12
- package/dist/schemas/settings-experiments.js.map +1 -1
- package/dist/schemas/settings-history.d.ts +1 -1
- package/dist/schemas/settings-history.d.ts.map +1 -1
- package/dist/schemas/settings-history.js +1 -0
- package/dist/schemas/settings-history.js.map +1 -1
- package/dist/schemas/settings-savings.d.ts +0 -144
- package/dist/schemas/settings-savings.d.ts.map +1 -1
- package/dist/schemas/settings-savings.js +1 -3
- package/dist/schemas/settings-savings.js.map +1 -1
- package/dist/schemas/settings.d.ts +0 -4
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +2 -3
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/short-codes.d.ts +0 -10
- package/dist/schemas/short-codes.d.ts.map +1 -1
- package/dist/schemas/short-codes.js +1 -9
- package/dist/schemas/short-codes.js.map +1 -1
- package/dist/schemas/workspace/workspace-search.d.ts +0 -12
- package/dist/schemas/workspace/workspace-search.d.ts.map +1 -1
- package/dist/schemas/workspace/workspace-search.js +5 -12
- package/dist/schemas/workspace/workspace-search.js.map +1 -1
- package/dist/state/definition.d.ts +0 -24
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/update-probation.d.ts +1 -1
- package/dist/state/update-probation.d.ts.map +1 -1
- package/dist/state/update-probation.js +1 -1
- package/dist/state/update-probation.js.map +1 -1
- package/dist/state/workspace-state.d.ts +6 -1
- package/dist/state/workspace-state.d.ts.map +1 -1
- package/dist/state/workspace-state.js +7 -1
- package/dist/state/workspace-state.js.map +1 -1
- package/package.json +27 -5
- package/src/chores/chores.test.ts +1 -2
- package/src/chores/chores.ts +2 -62
- package/src/chores/index.ts +1 -1
- package/src/chores/prompt.ts +1 -6
- package/src/chores/verdict.test.ts +3 -44
- package/src/contracts/seal.contract.ts +3 -18
- package/src/contracts/secrets.contract.ts +4 -5
- package/src/contracts/workspace.contract.ts +2 -14
- package/src/events/system-events.ts +2 -2
- package/src/ids/project-id.test.ts +26 -0
- package/src/ids/project-id.ts +34 -0
- package/src/ids/tunnel-ids.test.ts +2 -23
- package/src/ids/tunnel-ids.ts +0 -4
- package/src/index.ts +0 -6
- package/src/models/model-roles.ts +3 -1
- package/src/policy/persona-capability.ts +1 -1
- package/src/protocol/doors/sandbox-pass.test.ts +51 -0
- package/src/protocol/doors/sandbox-pass.ts +119 -0
- package/src/protocol/headers.ts +2 -2
- package/src/protocol/member-reach.test.ts +0 -1
- package/src/protocol/raw/raw-json-routes.ts +14 -2
- package/src/protocol/raw/raw-routes.ts +9 -5
- package/src/protocol/routes.test.ts +0 -4
- package/src/schemas/capabilities.ts +0 -6
- package/src/schemas/issues.ts +54 -0
- package/src/schemas/maintenance.ts +20 -12
- package/src/schemas/metrics.ts +2 -0
- package/src/schemas/panels.ts +0 -8
- package/src/schemas/personas.ts +2 -6
- package/src/schemas/providers/usage.ts +5 -14
- package/src/schemas/seal.ts +5 -30
- package/src/schemas/secrets.ts +8 -20
- package/src/schemas/settings-experiments.ts +0 -17
- package/src/schemas/settings-history.ts +3 -0
- package/src/schemas/settings-savings.ts +2 -9
- package/src/schemas/settings.test.ts +16 -9
- package/src/schemas/settings.ts +4 -4
- package/src/schemas/short-codes.ts +2 -14
- package/src/schemas/version-seam.test.ts +2 -2
- package/src/schemas/workspace/workspace-search.ts +12 -25
- package/src/state/update-probation.ts +4 -3
- package/src/state/workspace-state.test.ts +2 -2
- package/src/state/workspace-state.ts +10 -1
- package/src/text/path-refs.test.ts +1 -1
- package/dist/contracts/intentic.contract.d.ts +0 -30
- package/dist/contracts/intentic.contract.d.ts.map +0 -1
- package/dist/contracts/intentic.contract.js +0 -34
- package/dist/contracts/intentic.contract.js.map +0 -1
- package/dist/contracts/inventory.contract.d.ts +0 -138
- package/dist/contracts/inventory.contract.d.ts.map +0 -1
- package/dist/contracts/inventory.contract.js +0 -31
- package/dist/contracts/inventory.contract.js.map +0 -1
- package/dist/schemas/codebase-health.d.ts +0 -56
- package/dist/schemas/codebase-health.d.ts.map +0 -1
- package/dist/schemas/codebase-health.js +0 -43
- package/dist/schemas/codebase-health.js.map +0 -1
- package/dist/schemas/intentic.d.ts +0 -5
- package/dist/schemas/intentic.d.ts.map +0 -1
- package/dist/schemas/intentic.js +0 -3
- package/dist/schemas/intentic.js.map +0 -1
- package/dist/schemas/inventory.d.ts +0 -175
- package/dist/schemas/inventory.d.ts.map +0 -1
- package/dist/schemas/inventory.js +0 -62
- package/dist/schemas/inventory.js.map +0 -1
- package/dist/schemas/seal-proof.d.ts +0 -20
- package/dist/schemas/seal-proof.d.ts.map +0 -1
- package/dist/schemas/seal-proof.js +0 -8
- package/dist/schemas/seal-proof.js.map +0 -1
- package/src/contracts/intentic.contract.ts +0 -45
- package/src/contracts/inventory.contract.ts +0 -35
- package/src/schemas/codebase-health.ts +0 -60
- package/src/schemas/intentic.ts +0 -2
- package/src/schemas/inventory.ts +0 -83
- package/src/schemas/seal-proof.ts +0 -12
|
@@ -31,8 +31,6 @@ export type InputSavings = z.infer<typeof InputSavingsSchema>;
|
|
|
31
31
|
export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() });
|
|
32
32
|
// One metric's reading of a turn-level experiment (the two arms, plus the arithmetic over them). `metric` says what
|
|
33
33
|
// `mean`/`deltaPct` count:
|
|
34
|
-
// searchCalls: searches a turn ran (the search teaching).
|
|
35
|
-
// openingSearches: same, narrowed to before the turn first touched a file.
|
|
36
34
|
// openedWithListing: whether a turn listed directories to orient itself, as a share of turns (the project map).
|
|
37
35
|
// callsBeforeTarget: how far a turn walked before touching a file it went on to edit.
|
|
38
36
|
// failedCalls: tool calls that ended in error (the price tool search, the stable prompt and cold trim could charge).
|
|
@@ -43,7 +41,7 @@ export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() }
|
|
|
43
41
|
// Never cost: each mechanism moves one small part of a turn's work, inside the noise of the rest. The prompt's size is
|
|
44
42
|
// the exception that proves it: it is the part every call pays again, so it is read directly rather than through cost.
|
|
45
43
|
export const TurnMetricReadingSchema = z.object({
|
|
46
|
-
metric: z.enum(["
|
|
44
|
+
metric: z.enum(["openedWithListing", "callsBeforeTarget", "failedCalls", "openingPrompt", "openingWrite"]),
|
|
47
45
|
on: SavingsArmSchema,
|
|
48
46
|
off: SavingsArmSchema,
|
|
49
47
|
// Additional control turns to reach a fixed target resolution, not today's delta (which inherits noise and always
|
|
@@ -82,16 +80,11 @@ export const TurnExperimentSchema = z.object({
|
|
|
82
80
|
previous: z
|
|
83
81
|
.object({ from: z.number(), to: z.number(), cohort: z.string().optional(), metrics: z.array(TurnMetricReadingSchema) })
|
|
84
82
|
.optional(),
|
|
85
|
-
// Whether the treatment was taken up at all, which no reading above can tell: the share, 0 to 1, of each group's
|
|
86
|
-
// searches that ran iq, pooled over the turns of this cohort that recorded it. `turns` is the treated group's count;
|
|
87
|
-
// absent until it reaches `minTurns`. The search teaching only.
|
|
88
|
-
uptake: z.object({ on: z.number(), off: z.number(), turns: z.number() }).optional(),
|
|
89
83
|
});
|
|
90
84
|
export type TurnExperiment = z.infer<typeof TurnExperimentSchema>;
|
|
91
85
|
export const SavingsReportSchema = z.object({
|
|
92
86
|
input: InputSavingsSchema,
|
|
93
|
-
search
|
|
94
|
-
// Same absence rule as `search`: not measured, never zero.
|
|
87
|
+
// Each absent when not measured, never zero. `search`, the iq teaching's reading, went with iq (2026-11-18).
|
|
95
88
|
map: TurnExperimentSchema.optional(),
|
|
96
89
|
toolSearch: TurnExperimentSchema.optional(),
|
|
97
90
|
stablePrompt: TurnExperimentSchema.optional(),
|
|
@@ -100,11 +100,11 @@ describe(`an owner's rule at the turn.ending moment`, () => {
|
|
|
100
100
|
// keep-warm's four top-level settings became one object on 2026-09-26; a stored file keeps what its owner picked.
|
|
101
101
|
describe(`the folded keep-warm settings`, () => {
|
|
102
102
|
test(`fold into one object, keeping each value and the key's place`, () => {
|
|
103
|
-
const stored = { timezone: `Europe/Warsaw`, keepWarm: true, keepWarmHours: 6, keepWarmMinTokens: 50_000, keepWarmReserve: 20,
|
|
103
|
+
const stored = { timezone: `Europe/Warsaw`, keepWarm: true, keepWarmHours: 6, keepWarmMinTokens: 50_000, keepWarmReserve: 20, workspaceMap: true };
|
|
104
104
|
const converted = convertDocument(SETTINGS_HISTORY, `object`, stored, true);
|
|
105
|
-
expect(converted.value).toEqual({ timezone: `Europe/Warsaw`, keepWarm: { auto: true, hours: 6, minTokens: 50_000, reserve: 20 },
|
|
105
|
+
expect(converted.value).toEqual({ timezone: `Europe/Warsaw`, keepWarm: { auto: true, hours: 6, minTokens: 50_000, reserve: 20 }, workspaceMap: true });
|
|
106
106
|
expect(JSON.stringify(converted.value)).toBe(
|
|
107
|
-
`{"timezone":"Europe/Warsaw","keepWarm":{"auto":true,"hours":6,"minTokens":50000,"reserve":20},"
|
|
107
|
+
`{"timezone":"Europe/Warsaw","keepWarm":{"auto":true,"hours":6,"minTokens":50000,"reserve":20},"workspaceMap":true}`,
|
|
108
108
|
);
|
|
109
109
|
expect(SandboxSettingsSchema.parse(converted.value).keepWarm).toEqual({ auto: true, subagents: true, hours: 6, minTokens: 50_000, reserve: 20 });
|
|
110
110
|
});
|
|
@@ -123,16 +123,23 @@ describe(`the folded keep-warm settings`, () => {
|
|
|
123
123
|
|
|
124
124
|
// Tool-result clearing lost its A/B and was removed (2026-10-12); a file that still switches it on reads, without it.
|
|
125
125
|
test(`a stored tool-result clearing switch is dropped, and the rest of the file kept`, () => {
|
|
126
|
-
const converted = convertDocument(SETTINGS_HISTORY, `object`, {
|
|
127
|
-
expect(converted.value).toEqual({
|
|
128
|
-
expect(SandboxSettingsSchema.parse(converted.value).
|
|
126
|
+
const converted = convertDocument(SETTINGS_HISTORY, `object`, { workspaceMap: true, toolResultClearing: true, toolResultClearingHoldout: 0.5 }, true);
|
|
127
|
+
expect(converted.value).toEqual({ workspaceMap: true });
|
|
128
|
+
expect(SandboxSettingsSchema.parse(converted.value).workspaceMap).toBe(true);
|
|
129
129
|
});
|
|
130
130
|
|
|
131
131
|
// The field notes were removed (2026-11-06); a file that still switches them on reads, without them.
|
|
132
132
|
test(`stored field-notes settings are dropped, and the rest of the file kept`, () => {
|
|
133
|
-
const converted = convertDocument(SETTINGS_HISTORY, `object`, {
|
|
134
|
-
expect(converted.value).toEqual({
|
|
135
|
-
expect(SandboxSettingsSchema.parse(converted.value).
|
|
133
|
+
const converted = convertDocument(SETTINGS_HISTORY, `object`, { workspaceMap: true, fieldNotes: true, fieldNotesBudget: 4000, fieldNotesHoldout: 0.5 }, true);
|
|
134
|
+
expect(converted.value).toEqual({ workspaceMap: true });
|
|
135
|
+
expect(SandboxSettingsSchema.parse(converted.value).workspaceMap).toBe(true);
|
|
136
|
+
});
|
|
137
|
+
|
|
138
|
+
// iq was removed (2026-11-18); a file that still switches its teaching on reads, without it.
|
|
139
|
+
test(`stored iq teaching settings are dropped, and the rest of the file kept`, () => {
|
|
140
|
+
const converted = convertDocument(SETTINGS_HISTORY, `object`, { workspaceMap: false, iqSearch: true, iqSearchHoldout: 0.5 }, true);
|
|
141
|
+
expect(converted.value).toEqual({ workspaceMap: false });
|
|
142
|
+
expect(SandboxSettingsSchema.parse(converted.value).workspaceMap).toBe(false);
|
|
136
143
|
});
|
|
137
144
|
|
|
138
145
|
// What a job runs on, read the way every reader reads it, over a sandbox with nothing connected: the setups a stored
|
package/src/schemas/settings.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Per-sandbox agent settings (.intentic/config/settings.json) and the repository checks they adopt.
|
|
2
2
|
import { z } from "zod";
|
|
3
|
-
import { claudeExperimentSettings
|
|
3
|
+
import { claudeExperimentSettings } from "./settings-experiments.js";
|
|
4
4
|
import { CommandJudgeModeSchema, ProjectInstallModeSchema } from "../policy/safety-policy.js";
|
|
5
5
|
import { MODEL_ROLES, ModelRoleSchema } from "../models/model-roles.js";
|
|
6
6
|
import { MODEL_SETUP_ID, ModelSetupSchema } from "../models/model-setups.js";
|
|
@@ -309,7 +309,7 @@ export const SandboxSettingsSchema = z.object({
|
|
|
309
309
|
.boolean()
|
|
310
310
|
.default(true)
|
|
311
311
|
.describe(
|
|
312
|
-
"Keep the text of every document in the workspace (pdf, Word, OpenDocument, spreadsheets, presentations, epub, and scans where OCR is installed) ready to search. In the background, one low-priority process at a time, each document is rendered to text when it appears or changes, so `rg`
|
|
312
|
+
"Keep the text of every document in the workspace (pdf, Word, OpenDocument, spreadsheets, presentations, epub, and scans where OCR is installed) ready to search. In the background, one low-priority process at a time, each document is rendered to text when it appears or changes, so `rg` finds what documents say under their own paths, cited by page. Off, nothing renders until someone opens a document, and searches skip them.",
|
|
313
313
|
),
|
|
314
314
|
// Whether the daemon tells its host it is unneeded (system/quiet-watch.ts): off, the work signal carries no
|
|
315
315
|
// `quietSince` and says `keepAwake`, so the machine's keeper never puts it to sleep (ic's `sandbox sleep`). Only a
|
|
@@ -343,11 +343,11 @@ export const SandboxSettingsSchema = z.object({
|
|
|
343
343
|
.describe(
|
|
344
344
|
"Your own instructions, used only when the mode above says custom. Then it is the whole of them: both built-in bases go, and so does everything this product would otherwise add, including the guidance the chat's own cards are driven by. That is the price of total control.",
|
|
345
345
|
),
|
|
346
|
-
...iqSearchSettings,
|
|
347
346
|
...claudeExperimentSettings,
|
|
348
347
|
// Rooted at the run's own starting folder (a persona's, an isolated conversation's worktree), not the workspace
|
|
349
348
|
// root — it maps the project containing that folder. On for new sandboxes from 2026-11-04, kept off for older ones
|
|
350
|
-
//
|
|
349
|
+
// (the daemon's settings-store.ts pins the old default, settings/earlier-defaults-step.ts writes it down where never
|
|
350
|
+
// saved).
|
|
351
351
|
workspaceMap: z
|
|
352
352
|
.boolean()
|
|
353
353
|
.default(true)
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
// short codes: the single-use 8-character code a copy-paste command carries instead of a token. The sandbox mints one
|
|
2
|
-
// beside each device
|
|
2
|
+
// beside each device or sync token it hands out; the install script redeems it at the sandbox's public
|
|
3
3
|
// POST /system/redeem/<code>, which answers `KEY=value` lines (KIND, SANDBOX_URL, then the kind's own values).
|
|
4
4
|
import { z } from "zod";
|
|
5
|
-
import { INVENTORY_NAME_MAX, INVENTORY_NAME_RE } from "./inventory.js";
|
|
6
5
|
|
|
7
6
|
// Crockford base32 (no I, L, O, U), 8 characters: 40 bits. Redemption accepts any case and one hyphen in the middle.
|
|
8
7
|
export const SHORT_CODE_ALPHABET = "0123456789ABCDEFGHJKMNPQRSTVWXYZ";
|
|
@@ -10,7 +9,7 @@ export const SHORT_CODE_LENGTH = 8;
|
|
|
10
9
|
export const ShortCodeSchema = z.string().regex(/^[0-9A-HJKMNP-TV-Z]{8}$/);
|
|
11
10
|
|
|
12
11
|
// What each kind of code redeems to, in its answer's KIND line.
|
|
13
|
-
export const ShortCodeKindSchema = z.enum(["device", "sync"
|
|
12
|
+
export const ShortCodeKindSchema = z.enum(["device", "sync"]);
|
|
14
13
|
export type ShortCodeKind = z.infer<typeof ShortCodeKindSchema>;
|
|
15
14
|
|
|
16
15
|
// A value that rides one `KEY=value` line: no line breaks or other control characters.
|
|
@@ -46,14 +45,3 @@ export const SyncPairRequestSchema = z.object({
|
|
|
46
45
|
takeover: z.boolean().optional().describe("Take sync over from another machine already enrolled."),
|
|
47
46
|
});
|
|
48
47
|
export type SyncPairRequest = z.infer<typeof SyncPairRequestSchema>;
|
|
49
|
-
|
|
50
|
-
// POST /system/enroll/code: mints a server-connect code backed by a single-use enroll token.
|
|
51
|
-
export const EnrollCodeRequestSchema = z.object({
|
|
52
|
-
hostName: z.string().min(1).max(INVENTORY_NAME_MAX).regex(INVENTORY_NAME_RE).optional().describe("What the server will be called."),
|
|
53
|
-
});
|
|
54
|
-
export type EnrollCodeRequest = z.infer<typeof EnrollCodeRequestSchema>;
|
|
55
|
-
export const EnrollCodeAnswerSchema = z.object({
|
|
56
|
-
code: ShortCodeSchema,
|
|
57
|
-
expiresIn: z.number().describe("Seconds until the code and its enroll token expire."),
|
|
58
|
-
});
|
|
59
|
-
export type EnrollCodeAnswer = z.infer<typeof EnrollCodeAnswerSchema>;
|
|
@@ -12,7 +12,7 @@ test("a payload from a build that predates a toggle parses, with the new toggle
|
|
|
12
12
|
stableSystemPrompt: false,
|
|
13
13
|
skills: [],
|
|
14
14
|
hashlineEdits: false,
|
|
15
|
-
|
|
15
|
+
workspaceMap: true,
|
|
16
16
|
outputCleaners: "-cap",
|
|
17
17
|
outputHoldout: 0.1,
|
|
18
18
|
};
|
|
@@ -26,7 +26,7 @@ test("no field is required: a workspace that has never written settings parses",
|
|
|
26
26
|
});
|
|
27
27
|
|
|
28
28
|
test("a key of the wrong type is still a parse failure: tolerance is for absence, not for garbage", () => {
|
|
29
|
-
expect(SandboxSettingsSchema.safeParse({
|
|
29
|
+
expect(SandboxSettingsSchema.safeParse({ workspaceMap: "yes" }).success).toBe(false);
|
|
30
30
|
expect(SandboxSettingsSchema.safeParse({ outputHoldout: 4 }).success).toBe(false);
|
|
31
31
|
expect(SandboxSettingsSchema.safeParse({ systemPrompt: "x".repeat(20001) }).success).toBe(false);
|
|
32
32
|
});
|
|
@@ -2,14 +2,13 @@ import { z } from "zod";
|
|
|
2
2
|
// Shared by /workspace/search and the web client. Groups rank by relevance, best first; each hit carries match tags and
|
|
3
3
|
// the char spans in `text`, for highlighting without a re-find.
|
|
4
4
|
export const WorkspaceSearchQuerySchema = z.object({
|
|
5
|
-
query: z.string().min(2).max(512).describe("What to look for
|
|
6
|
-
//
|
|
5
|
+
query: z.string().min(2).max(512).describe("What to look for: plain words or a pattern, or for file names letters of the name or a glob."),
|
|
6
|
+
// `q` was the iq engine's blended search, removed with iq (2026-11-18). An editor from before then still sends it, so
|
|
7
|
+
// it is accepted and answered as the text search it now is.
|
|
7
8
|
mode: z
|
|
8
|
-
.enum(["
|
|
9
|
+
.enum(["find", "files", "q"])
|
|
9
10
|
.optional()
|
|
10
|
-
.describe(
|
|
11
|
-
"Narrow the search to one kind: plain text, filenames, definitions, references, symbols, or code structure. Leave it out to blend them, which also answers a question asked in words.",
|
|
12
|
-
),
|
|
11
|
+
.describe("What to search: the text in files (find, the default) or file names (files). q is an older name for find."),
|
|
13
12
|
includeIgnored: z.stringbool().optional().describe("Search inside installed packages and other ignored folders too."),
|
|
14
13
|
// One subtree, root-relative, no trailing slash: the caller's own scope (a UI narrowed to one project) rather than a
|
|
15
14
|
// pattern. Unlike `include` it is a prefix, so it composes with whatever globs the user typed.
|
|
@@ -38,6 +37,8 @@ export type WorkspaceSearchQuery = z.infer<typeof WorkspaceSearchQuerySchema>;
|
|
|
38
37
|
// The query's verb enum.
|
|
39
38
|
export type WorkspaceSearchMode = NonNullable<z.infer<typeof WorkspaceSearchQuerySchema>["mode"]>;
|
|
40
39
|
export const WorkspaceSearchTagSchema = z.object({
|
|
40
|
+
// Only text and path are written now; the rest came from the iq engine, removed 2026-11-18, and stay so an editor can
|
|
41
|
+
// still read an answer from a daemon older than that.
|
|
41
42
|
kind: z
|
|
42
43
|
.enum(["def", "text", "sem", "bm25", "rerank", "path", "import", "call", "type", "write", "fuzzy", "heuristic"])
|
|
43
44
|
.describe(
|
|
@@ -79,8 +80,8 @@ export const WorkspaceSearchGroupSchema = z.object({
|
|
|
79
80
|
.describe("This file had more matches than are kept per file, so the count is a floor. Say fifty-plus rather than fifty."),
|
|
80
81
|
});
|
|
81
82
|
export type WorkspaceSearchGroup = z.infer<typeof WorkspaceSearchGroupSchema>;
|
|
82
|
-
//
|
|
83
|
-
//
|
|
83
|
+
// Always fresh now that every search reads the disk as it is; building (progress 0..1) and stale came from the iq engine's
|
|
84
|
+
// index, removed 2026-11-18, and are read from daemons older than that.
|
|
84
85
|
export const WorkspaceSearchFreshnessSchema = z.object({
|
|
85
86
|
state: z.enum(["fresh", "building", "stale"]).describe("Whether the index matches what is on disk, is still filling, or has fallen behind."),
|
|
86
87
|
ageMs: z.number().optional().describe("How long since it last matched the disk, in milliseconds."),
|
|
@@ -101,7 +102,7 @@ export const WorkspaceSearchResultSchema = z.object({
|
|
|
101
102
|
files: z.number().describe("Files the query matched in total."),
|
|
102
103
|
shown: z.number().describe("How many of those lines are on this page."),
|
|
103
104
|
groups: z.array(WorkspaceSearchGroupSchema).describe("The results, grouped by file, best first."),
|
|
104
|
-
freshness: WorkspaceSearchFreshnessSchema.describe("Whether the
|
|
105
|
+
freshness: WorkspaceSearchFreshnessSchema.describe("Whether the answer is up to date with the disk. Every search now reads the disk itself, so it is."),
|
|
105
106
|
truncated: z.boolean().describe("This page is not all of it. Use the cursor."),
|
|
106
107
|
// A floor: some file had more matches than kept per file. Distinct from truncated, which is about the page.
|
|
107
108
|
partial: z
|
|
@@ -111,25 +112,11 @@ export const WorkspaceSearchResultSchema = z.object({
|
|
|
111
112
|
"At least one file had more matches than are kept per file, so the total is a floor. Different from the page being truncated: a complete page can still count partially.",
|
|
112
113
|
),
|
|
113
114
|
cursor: z.string().optional().describe("Pass this back as `after` to get the next page."),
|
|
114
|
-
|
|
115
|
-
// What the engine did unasked: a pattern rerun as literal, escapes rewritten, or a filter matching nothing.
|
|
115
|
+
// What the search did unasked: a pattern rerun as literal, or escapes rewritten.
|
|
116
116
|
note: z
|
|
117
117
|
.string()
|
|
118
118
|
.optional()
|
|
119
|
-
.describe(
|
|
120
|
-
"What the engine did that you did not ask for: a pattern rerun as plain text because it was not valid, escapes rewritten, a language filter that matched nothing.",
|
|
121
|
-
),
|
|
122
|
-
// Code-graph neighbors of the top hits: definition anchors and each one's strongest caller.
|
|
123
|
-
related: z.array(z.string()).optional().describe("Places next door to the best results: where each is defined, and whatever calls it most."),
|
|
124
|
-
// Ranked path:line anchors that placed but weren't shown, best first; the answer often sits at rank 5-13.
|
|
125
|
-
candidates: z
|
|
126
|
-
.array(z.string())
|
|
127
|
-
.optional()
|
|
128
|
-
.describe(
|
|
129
|
-
"Ranked places that scored but did not make the page, best first. The answer often sits at rank five to thirteen, so this saves paging through to find out.",
|
|
130
|
-
),
|
|
131
|
-
// Retrieval stages disabled for this run, for benchmarking; absent means the full pipeline ran.
|
|
132
|
-
features: z.array(z.string()).optional().describe("Which stages of the search were switched off for this run. Absent means all of them ran."),
|
|
119
|
+
.describe("What the search did that you did not ask for: a pattern rerun as plain text because it was not valid, or escapes rewritten."),
|
|
133
120
|
});
|
|
134
121
|
export type WorkspaceSearchResult = z.infer<typeof WorkspaceSearchResultSchema>;
|
|
135
122
|
// What /workspace/search/stream sends: the files a text search has found so far, as it finds them, then its answer.
|
|
@@ -27,9 +27,10 @@ export const UPDATE_PROBATION = {
|
|
|
27
27
|
journalMs: 15 * 60_000,
|
|
28
28
|
// Consecutive failed looks that end a probation in a rollback: never one bad answer.
|
|
29
29
|
strikes: 3,
|
|
30
|
-
// Rollback targets kept BEYOND `previous
|
|
31
|
-
//
|
|
32
|
-
|
|
30
|
+
// Rollback targets kept BEYOND `previous`: older builds `ic sandbox rollback --to` would reach without a download
|
|
31
|
+
// (record.rs MAX_KEPT). None since 2026-11-18, as each is a whole image pair; `previous` alone is kept, as on the
|
|
32
|
+
// hosted row (the platform's gate-row.ts).
|
|
33
|
+
keptBuilds: 0,
|
|
33
34
|
// Restarts that are a crash loop on their own, of the container and of the daemon inside it.
|
|
34
35
|
crashLoopRestarts: CRASH_LOOP_RESTARTS,
|
|
35
36
|
} as const;
|
|
@@ -62,8 +62,8 @@ describe(`staleQueryKeys`, () => {
|
|
|
62
62
|
});
|
|
63
63
|
|
|
64
64
|
it(`ignores unrelated churn under .intentic/`, () => {
|
|
65
|
-
//
|
|
66
|
-
expect(staleQueryKeys([`.intentic/local/cache/
|
|
65
|
+
// A cache database and a session transcript: frequent enough writes to storm every query under a prefix-only match.
|
|
66
|
+
expect(staleQueryKeys([`.intentic/local/cache/code-counts.db`, `.intentic/records/sessions/claude/projects/p/session.jsonl`], [])).toEqual([]);
|
|
67
67
|
});
|
|
68
68
|
|
|
69
69
|
it(`ignores a store's own temp file while it is mid-swap`, () => {
|
|
@@ -220,6 +220,15 @@ const STATE_FILES = [
|
|
|
220
220
|
why: "Declared by the intentic.issues extension's contributes.files, `issues` is its query key, not core's.",
|
|
221
221
|
portability: "carry",
|
|
222
222
|
},
|
|
223
|
+
// Reports this sandbox could not yet deliver to the sandbox on its account that claims their project (daemon's
|
|
224
|
+
// issues/account-outbox.ts), one file per problem, retried until they land or a week passes. `carry`: undelivered
|
|
225
|
+
// reports are the workspace's, and a moved sandbox should still send them.
|
|
226
|
+
{
|
|
227
|
+
path: ".intentic/records/outbox/",
|
|
228
|
+
invalidates: [],
|
|
229
|
+
why: "No view shows it yet; the `projects outbox` command reads it through the daemon.",
|
|
230
|
+
portability: "carry",
|
|
231
|
+
},
|
|
223
232
|
// Maintenance ledger and probe evidence (daemon's chores-store), rendered by intentic.maintenance. `carry`:
|
|
224
233
|
// point-in-time evidence about this workspace.
|
|
225
234
|
{
|
|
@@ -389,7 +398,7 @@ const STATE_FILES = [
|
|
|
389
398
|
{
|
|
390
399
|
path: ".intentic/local/cache/",
|
|
391
400
|
invalidates: [],
|
|
392
|
-
why: "Rebuildable indexes and caches, the
|
|
401
|
+
why: "Rebuildable indexes and caches, the speech models an image does not bake, fileq's derived/ markdown shadows of binary files; ignored by the watcher and recreated from carried workspace content.",
|
|
393
402
|
portability: "derived",
|
|
394
403
|
},
|
|
395
404
|
// Extension runtime scratch, one directory per extension via `extensionStateDir` below (the only way an extension
|
|
@@ -47,7 +47,7 @@ test("isTestPath: test files, fixture dirs and runner configs: never product cod
|
|
|
47
47
|
`_deploy/cli/src/cli.e2e.test.ts`,
|
|
48
48
|
`src/e2e-harness.ts`,
|
|
49
49
|
`pkg/__tests__/helper.ts`,
|
|
50
|
-
`
|
|
50
|
+
`_sandbox/agent-context/src/__fixtures__/transcripts/a.jsonl`,
|
|
51
51
|
`vitest.config.ts`,
|
|
52
52
|
`_editor/web/vitest.workspace.config.mts`,
|
|
53
53
|
`playwright.config.ts`,
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
export declare const intenticContract: {
|
|
2
|
-
run: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
3
|
-
args: import("zod").ZodArray<import("zod").ZodString>;
|
|
4
|
-
}, import("zod/v4/core").$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
5
|
-
[x: string]: unknown;
|
|
6
|
-
kind: string;
|
|
7
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
8
|
-
[x: string]: unknown;
|
|
9
|
-
kind: string;
|
|
10
|
-
}, unknown, void>> & {
|
|
11
|
-
[x: symbol]: import("zod").ZodObject<{
|
|
12
|
-
kind: import("zod").ZodString;
|
|
13
|
-
}, import("zod/v4/core").$loose>;
|
|
14
|
-
}, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
15
|
-
apply: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
16
|
-
ok: import("zod").ZodLiteral<true>;
|
|
17
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
18
|
-
applyEvents: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
19
|
-
[x: string]: unknown;
|
|
20
|
-
kind: string;
|
|
21
|
-
}, unknown, void>, import("@orpc/contract").AsyncIteratorClass<{
|
|
22
|
-
[x: string]: unknown;
|
|
23
|
-
kind: string;
|
|
24
|
-
}, unknown, void>> & {
|
|
25
|
-
[x: symbol]: import("zod").ZodObject<{
|
|
26
|
-
kind: import("zod").ZodString;
|
|
27
|
-
}, import("zod/v4/core").$loose>;
|
|
28
|
-
}, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
29
|
-
};
|
|
30
|
-
//# sourceMappingURL=intentic.contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intentic.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,gBAAgB;IACzB,GAAG;;;;;;;;;;;;;IAYH,KAAK;;;IAaL,WAAW;;;;;;;;;;;CAUd,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
-
import { streamOf } from "../protocol/routes.js";
|
|
3
|
-
import { IntenticLineSchema } from "../events/system-events.js";
|
|
4
|
-
import { IntenticRunSchema } from "../schemas/intentic.js";
|
|
5
|
-
import { OkSchema } from "../schemas/shared.js";
|
|
6
|
-
export const intenticContract = {
|
|
7
|
-
run: procedure
|
|
8
|
-
.route({
|
|
9
|
-
method: "POST",
|
|
10
|
-
path: "/intentic",
|
|
11
|
-
summary: "Run an infrastructure command",
|
|
12
|
-
description: "Runs the sandbox's own command-line tool and streams its output as it arrives, so progress is visible rather than arriving all at once at the end. A failure surfaces once the stream closes.",
|
|
13
|
-
})
|
|
14
|
-
.input(IntenticRunSchema)
|
|
15
|
-
.output(streamOf(IntenticLineSchema)),
|
|
16
|
-
apply: procedure
|
|
17
|
-
.route({
|
|
18
|
-
method: "POST",
|
|
19
|
-
path: "/intentic/apply",
|
|
20
|
-
summary: "Bring the infrastructure into line",
|
|
21
|
-
description: "Starts the long reconcile that makes the running world match what was declared, and answers immediately. It takes minutes, so it runs in a terminal you attach to rather than on a held-open request.",
|
|
22
|
-
})
|
|
23
|
-
.output(OkSchema),
|
|
24
|
-
applyEvents: procedure
|
|
25
|
-
.route({
|
|
26
|
-
method: "GET",
|
|
27
|
-
path: "/intentic/apply/events",
|
|
28
|
-
summary: "Follow the reconcile",
|
|
29
|
-
description: "The same progress the terminal shows, as structured events, kept on disk so a page refresh does not lose it. It replays from the start of the run and then follows live, closing when the run ends.",
|
|
30
|
-
})
|
|
31
|
-
.meta({ stream: true })
|
|
32
|
-
.output(streamOf(IntenticLineSchema)),
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=intentic.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"intentic.contract.js","sourceRoot":"","sources":["../../src/contracts/intentic.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,MAAM,sBAAsB,CAAC;AAIhD,MAAM,CAAC,MAAM,gBAAgB,GAAG;IAC5B,GAAG,EAAE,SAAS;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,+BAA+B;QACxC,WAAW,EACP,+LAA+L;KACtM,CAAC;SACD,KAAK,CAAC,iBAAiB,CAAC;SACxB,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IAGzC,KAAK,EAAE,SAAS;SACX,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,iBAAiB;QACvB,OAAO,EAAE,oCAAoC;QAC7C,WAAW,EACP,uMAAuM;KAC9M,CAAC;SACD,MAAM,CAAC,QAAQ,CAAC;IAKrB,WAAW,EAAE,SAAS;SACjB,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,wBAAwB;QAC9B,OAAO,EAAE,sBAAsB;QAC/B,WAAW,EACP,qMAAqM;KAC5M,CAAC;SACD,IAAI,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;SACtB,MAAM,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;CAC5C,CAAC"}
|
|
@@ -1,138 +0,0 @@
|
|
|
1
|
-
export declare const inventoryContract: {
|
|
2
|
-
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, import("zod").ZodObject<{
|
|
3
|
-
entries: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
4
|
-
kind: import("zod").ZodLiteral<"backend">;
|
|
5
|
-
provider: import("zod").ZodEnum<{
|
|
6
|
-
cloudflare: "cloudflare";
|
|
7
|
-
github: "github";
|
|
8
|
-
gitlab: "gitlab";
|
|
9
|
-
host: "host";
|
|
10
|
-
stripe: "stripe";
|
|
11
|
-
}>;
|
|
12
|
-
name: import("zod").ZodString;
|
|
13
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
14
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
15
|
-
kind: import("zod").ZodLiteral<"service">;
|
|
16
|
-
service: import("zod").ZodEnum<{
|
|
17
|
-
infisical: "infisical";
|
|
18
|
-
invoiceninja: "invoiceninja";
|
|
19
|
-
openproject: "openproject";
|
|
20
|
-
outline: "outline";
|
|
21
|
-
paperless: "paperless";
|
|
22
|
-
signoz: "signoz";
|
|
23
|
-
}>;
|
|
24
|
-
name: import("zod").ZodString;
|
|
25
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
26
|
-
on: import("zod").ZodString;
|
|
27
|
-
expose: import("zod").ZodString;
|
|
28
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
29
|
-
kind: import("zod").ZodLiteral<"app">;
|
|
30
|
-
name: import("zod").ZodString;
|
|
31
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
32
|
-
on: import("zod").ZodString;
|
|
33
|
-
expose: import("zod").ZodString;
|
|
34
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
35
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
36
|
-
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
37
|
-
kind: import("zod").ZodLiteral<"backend">;
|
|
38
|
-
provider: import("zod").ZodEnum<{
|
|
39
|
-
cloudflare: "cloudflare";
|
|
40
|
-
github: "github";
|
|
41
|
-
gitlab: "gitlab";
|
|
42
|
-
host: "host";
|
|
43
|
-
stripe: "stripe";
|
|
44
|
-
}>;
|
|
45
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
46
|
-
name: import("zod").ZodString;
|
|
47
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
48
|
-
kind: import("zod").ZodLiteral<"service">;
|
|
49
|
-
service: import("zod").ZodEnum<{
|
|
50
|
-
infisical: "infisical";
|
|
51
|
-
invoiceninja: "invoiceninja";
|
|
52
|
-
openproject: "openproject";
|
|
53
|
-
outline: "outline";
|
|
54
|
-
paperless: "paperless";
|
|
55
|
-
signoz: "signoz";
|
|
56
|
-
}>;
|
|
57
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
58
|
-
on: import("zod").ZodString;
|
|
59
|
-
expose: import("zod").ZodString;
|
|
60
|
-
name: import("zod").ZodString;
|
|
61
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
62
|
-
kind: import("zod").ZodLiteral<"app">;
|
|
63
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
64
|
-
on: import("zod").ZodString;
|
|
65
|
-
expose: import("zod").ZodString;
|
|
66
|
-
name: import("zod").ZodString;
|
|
67
|
-
}, import("zod/v4/core").$strip>], "kind">, import("zod").ZodObject<{
|
|
68
|
-
entries: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
69
|
-
kind: import("zod").ZodLiteral<"backend">;
|
|
70
|
-
provider: import("zod").ZodEnum<{
|
|
71
|
-
cloudflare: "cloudflare";
|
|
72
|
-
github: "github";
|
|
73
|
-
gitlab: "gitlab";
|
|
74
|
-
host: "host";
|
|
75
|
-
stripe: "stripe";
|
|
76
|
-
}>;
|
|
77
|
-
name: import("zod").ZodString;
|
|
78
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
79
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
80
|
-
kind: import("zod").ZodLiteral<"service">;
|
|
81
|
-
service: import("zod").ZodEnum<{
|
|
82
|
-
infisical: "infisical";
|
|
83
|
-
invoiceninja: "invoiceninja";
|
|
84
|
-
openproject: "openproject";
|
|
85
|
-
outline: "outline";
|
|
86
|
-
paperless: "paperless";
|
|
87
|
-
signoz: "signoz";
|
|
88
|
-
}>;
|
|
89
|
-
name: import("zod").ZodString;
|
|
90
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
91
|
-
on: import("zod").ZodString;
|
|
92
|
-
expose: import("zod").ZodString;
|
|
93
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
94
|
-
kind: import("zod").ZodLiteral<"app">;
|
|
95
|
-
name: import("zod").ZodString;
|
|
96
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
97
|
-
on: import("zod").ZodString;
|
|
98
|
-
expose: import("zod").ZodString;
|
|
99
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
100
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
101
|
-
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
102
|
-
name: import("zod").ZodString;
|
|
103
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
104
|
-
entries: import("zod").ZodArray<import("zod").ZodDiscriminatedUnion<[import("zod").ZodObject<{
|
|
105
|
-
kind: import("zod").ZodLiteral<"backend">;
|
|
106
|
-
provider: import("zod").ZodEnum<{
|
|
107
|
-
cloudflare: "cloudflare";
|
|
108
|
-
github: "github";
|
|
109
|
-
gitlab: "gitlab";
|
|
110
|
-
host: "host";
|
|
111
|
-
stripe: "stripe";
|
|
112
|
-
}>;
|
|
113
|
-
name: import("zod").ZodString;
|
|
114
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
115
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
116
|
-
kind: import("zod").ZodLiteral<"service">;
|
|
117
|
-
service: import("zod").ZodEnum<{
|
|
118
|
-
infisical: "infisical";
|
|
119
|
-
invoiceninja: "invoiceninja";
|
|
120
|
-
openproject: "openproject";
|
|
121
|
-
outline: "outline";
|
|
122
|
-
paperless: "paperless";
|
|
123
|
-
signoz: "signoz";
|
|
124
|
-
}>;
|
|
125
|
-
name: import("zod").ZodString;
|
|
126
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
127
|
-
on: import("zod").ZodString;
|
|
128
|
-
expose: import("zod").ZodString;
|
|
129
|
-
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
130
|
-
kind: import("zod").ZodLiteral<"app">;
|
|
131
|
-
name: import("zod").ZodString;
|
|
132
|
-
values: import("zod").ZodRecord<import("zod").ZodString, import("zod").ZodUnion<readonly [import("zod").ZodString, import("zod").ZodNumber]>>;
|
|
133
|
-
on: import("zod").ZodString;
|
|
134
|
-
expose: import("zod").ZodString;
|
|
135
|
-
}, import("zod/v4/core").$strip>], "kind">>;
|
|
136
|
-
}, import("zod/v4/core").$strip>, Record<never, never>, import("../protocol/route-meta.js").RouteMeta & Record<never, never>>;
|
|
137
|
-
};
|
|
138
|
-
//# sourceMappingURL=inventory.contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.contract.d.ts","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,iBAAiB;IAC1B,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAQJ,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAUH,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAST,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { procedure } from "../protocol/route-meta.js";
|
|
2
|
-
import { AddInventoryInputSchema, InventoryListSchema, InventoryNameParamSchema } from "../schemas/inventory.js";
|
|
3
|
-
export const inventoryContract = {
|
|
4
|
-
list: procedure
|
|
5
|
-
.route({
|
|
6
|
-
method: "GET",
|
|
7
|
-
path: "/inventory",
|
|
8
|
-
summary: "Machines and services you have declared",
|
|
9
|
-
description: "What the deployment configuration says this setup owns and what it wants provisioned.",
|
|
10
|
-
})
|
|
11
|
-
.output(InventoryListSchema),
|
|
12
|
-
add: procedure
|
|
13
|
-
.route({
|
|
14
|
-
method: "POST",
|
|
15
|
-
path: "/inventory",
|
|
16
|
-
summary: "Declare a machine or service",
|
|
17
|
-
description: "Writes the entry into the configuration file and commits it, exactly as an agent editing that file by hand would. Answers with the whole updated list, so a screen redraws from one response.",
|
|
18
|
-
})
|
|
19
|
-
.input(AddInventoryInputSchema)
|
|
20
|
-
.output(InventoryListSchema),
|
|
21
|
-
remove: procedure
|
|
22
|
-
.route({
|
|
23
|
-
method: "DELETE",
|
|
24
|
-
path: "/inventory/{name}",
|
|
25
|
-
summary: "Undeclare a machine or service",
|
|
26
|
-
description: "Takes the entry back out of the configuration and commits that too. Answers with the whole updated list.",
|
|
27
|
-
})
|
|
28
|
-
.input(InventoryNameParamSchema)
|
|
29
|
-
.output(InventoryListSchema),
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=inventory.contract.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inventory.contract.js","sourceRoot":"","sources":["../../src/contracts/inventory.contract.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AAKjH,MAAM,CAAC,MAAM,iBAAiB,GAAG;IAC7B,IAAI,EAAE,SAAS;SACV,KAAK,CAAC;QACH,MAAM,EAAE,KAAK;QACb,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,yCAAyC;QAClD,WAAW,EAAE,uFAAuF;KACvG,CAAC;SACD,MAAM,CAAC,mBAAmB,CAAC;IAChC,GAAG,EAAE,SAAS;SACT,KAAK,CAAC;QACH,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,8BAA8B;QACvC,WAAW,EACP,+LAA+L;KACtM,CAAC;SACD,KAAK,CAAC,uBAAuB,CAAC;SAC9B,MAAM,CAAC,mBAAmB,CAAC;IAChC,MAAM,EAAE,SAAS;SACZ,KAAK,CAAC;QACH,MAAM,EAAE,QAAQ;QAChB,IAAI,EAAE,mBAAmB;QACzB,OAAO,EAAE,gCAAgC;QACzC,WAAW,EAAE,0GAA0G;KAC1H,CAAC;SACD,KAAK,CAAC,wBAAwB,CAAC;SAC/B,MAAM,CAAC,mBAAmB,CAAC;CACnC,CAAC"}
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
|
-
export declare const HEALTH_LIMIT = 20;
|
|
3
|
-
export declare const WorkspaceHealthQuerySchema: z.ZodObject<{
|
|
4
|
-
repo: z.ZodString;
|
|
5
|
-
since: z.ZodOptional<z.ZodString>;
|
|
6
|
-
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
7
|
-
}, z.core.$strip>;
|
|
8
|
-
export declare const WorkspaceHotspotSchema: z.ZodObject<{
|
|
9
|
-
path: z.ZodString;
|
|
10
|
-
commits: z.ZodNumber;
|
|
11
|
-
adds: z.ZodNumber;
|
|
12
|
-
dels: z.ZodNumber;
|
|
13
|
-
complexity: z.ZodNumber;
|
|
14
|
-
score: z.ZodNumber;
|
|
15
|
-
latestMs: z.ZodNumber;
|
|
16
|
-
}, z.core.$strip>;
|
|
17
|
-
export type WorkspaceHotspot = z.infer<typeof WorkspaceHotspotSchema>;
|
|
18
|
-
export declare const WorkspaceKeyModuleSchema: z.ZodObject<{
|
|
19
|
-
path: z.ZodString;
|
|
20
|
-
exports: z.ZodNumber;
|
|
21
|
-
}, z.core.$strip>;
|
|
22
|
-
export type WorkspaceKeyModule = z.infer<typeof WorkspaceKeyModuleSchema>;
|
|
23
|
-
export declare const WorkspaceHealthSchema: z.ZodObject<{
|
|
24
|
-
repo: z.ZodString;
|
|
25
|
-
totals: z.ZodObject<{
|
|
26
|
-
files: z.ZodNumber;
|
|
27
|
-
symbols: z.ZodNumber;
|
|
28
|
-
complexity: z.ZodNumber;
|
|
29
|
-
hotspots: z.ZodNumber;
|
|
30
|
-
}, z.core.$strip>;
|
|
31
|
-
hotspots: z.ZodArray<z.ZodObject<{
|
|
32
|
-
path: z.ZodString;
|
|
33
|
-
commits: z.ZodNumber;
|
|
34
|
-
adds: z.ZodNumber;
|
|
35
|
-
dels: z.ZodNumber;
|
|
36
|
-
complexity: z.ZodNumber;
|
|
37
|
-
score: z.ZodNumber;
|
|
38
|
-
latestMs: z.ZodNumber;
|
|
39
|
-
}, z.core.$strip>>;
|
|
40
|
-
modules: z.ZodArray<z.ZodObject<{
|
|
41
|
-
path: z.ZodString;
|
|
42
|
-
exports: z.ZodNumber;
|
|
43
|
-
}, z.core.$strip>>;
|
|
44
|
-
freshness: z.ZodObject<{
|
|
45
|
-
state: z.ZodEnum<{
|
|
46
|
-
building: "building";
|
|
47
|
-
fresh: "fresh";
|
|
48
|
-
stale: "stale";
|
|
49
|
-
}>;
|
|
50
|
-
ageMs: z.ZodOptional<z.ZodNumber>;
|
|
51
|
-
progress: z.ZodOptional<z.ZodNumber>;
|
|
52
|
-
behind: z.ZodOptional<z.ZodNumber>;
|
|
53
|
-
}, z.core.$strip>;
|
|
54
|
-
}, z.core.$strip>;
|
|
55
|
-
export type WorkspaceHealth = z.infer<typeof WorkspaceHealthSchema>;
|
|
56
|
-
//# sourceMappingURL=codebase-health.d.ts.map
|