@intentic/sandbox-contract 1.330.0 → 1.332.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 +15 -0
- package/dist/chores/probes.d.ts.map +1 -1
- package/dist/chores/probes.js.map +1 -1
- package/dist/contracts/accounts.contract.d.ts +15 -0
- package/dist/contracts/accounts.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.d.ts +38 -0
- package/dist/contracts/agent.contract.d.ts.map +1 -1
- package/dist/contracts/agent.contract.js +14 -3
- package/dist/contracts/agent.contract.js.map +1 -1
- package/dist/contracts/agents.contract.d.ts +29 -0
- package/dist/contracts/agents.contract.d.ts.map +1 -1
- package/dist/contracts/automations.contract.d.ts +2 -0
- package/dist/contracts/automations.contract.d.ts.map +1 -1
- package/dist/contracts/device.contract.d.ts +7 -0
- package/dist/contracts/device.contract.d.ts.map +1 -1
- package/dist/contracts/git.contract.d.ts +2 -0
- package/dist/contracts/git.contract.d.ts.map +1 -1
- package/dist/contracts/logs.contract.d.ts +10 -0
- package/dist/contracts/logs.contract.d.ts.map +1 -1
- package/dist/contracts/needs.contract.d.ts +7 -0
- package/dist/contracts/needs.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.d.ts +70 -0
- package/dist/contracts/offload.contract.d.ts.map +1 -1
- package/dist/contracts/offload.contract.js +10 -1
- package/dist/contracts/offload.contract.js.map +1 -1
- package/dist/contracts/privacy.contract.d.ts +14 -0
- package/dist/contracts/privacy.contract.d.ts.map +1 -1
- package/dist/contracts/privacy.contract.js +11 -1
- package/dist/contracts/privacy.contract.js.map +1 -1
- package/dist/contracts/providers.contract.d.ts +3 -0
- package/dist/contracts/providers.contract.d.ts.map +1 -1
- package/dist/contracts/runner.contract.d.ts +106 -2
- package/dist/contracts/runner.contract.d.ts.map +1 -1
- package/dist/contracts/sessions.contract.d.ts +1 -0
- package/dist/contracts/sessions.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.d.ts +74 -94
- package/dist/contracts/settings.contract.d.ts.map +1 -1
- package/dist/contracts/settings.contract.js +19 -1
- package/dist/contracts/settings.contract.js.map +1 -1
- package/dist/contracts/system.contract.d.ts +20 -0
- package/dist/contracts/system.contract.d.ts.map +1 -1
- package/dist/contracts/translator.contract.d.ts +8 -0
- package/dist/contracts/translator.contract.d.ts.map +1 -1
- package/dist/events/agent-events.d.ts +47 -0
- package/dist/events/agent-events.d.ts.map +1 -1
- package/dist/events/agent-events.js +6 -0
- package/dist/events/agent-events.js.map +1 -1
- package/dist/events/agent-words.d.ts.map +1 -1
- package/dist/events/agent-words.js +1 -1
- package/dist/events/agent-words.js.map +1 -1
- package/dist/events/resume.d.ts +3 -0
- package/dist/events/resume.d.ts.map +1 -1
- package/dist/events/resume.js +17 -2
- package/dist/events/resume.js.map +1 -1
- package/dist/events/sandbox-notice.d.ts +18 -0
- package/dist/events/sandbox-notice.d.ts.map +1 -1
- package/dist/events/sandbox-notice.js +27 -1
- package/dist/events/sandbox-notice.js.map +1 -1
- package/dist/events/system-events.d.ts +4 -0
- package/dist/events/system-events.d.ts.map +1 -1
- package/dist/events/transcript.d.ts +64 -0
- package/dist/events/transcript.d.ts.map +1 -1
- package/dist/events/transcript.js +17 -1
- package/dist/events/transcript.js.map +1 -1
- package/dist/index.d.ts +327 -124
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/models/agent-catalog.d.ts.map +1 -1
- package/dist/models/agent-catalog.js +8 -7
- package/dist/models/agent-catalog.js.map +1 -1
- package/dist/models/agent-runtimes.d.ts +3 -1
- package/dist/models/agent-runtimes.d.ts.map +1 -1
- package/dist/models/agent-runtimes.js +10 -0
- package/dist/models/agent-runtimes.js.map +1 -1
- package/dist/models/model-order.d.ts +1 -0
- package/dist/models/model-order.d.ts.map +1 -1
- package/dist/models/model-order.js +9 -0
- package/dist/models/model-order.js.map +1 -1
- package/dist/models/model-pins.d.ts.map +1 -1
- package/dist/models/model-pins.js.map +1 -1
- package/dist/models/model-roles.d.ts +32 -17
- package/dist/models/model-roles.d.ts.map +1 -1
- package/dist/models/model-roles.js +30 -26
- package/dist/models/model-roles.js.map +1 -1
- package/dist/models/model-setups.d.ts +46 -0
- package/dist/models/model-setups.d.ts.map +1 -0
- package/dist/models/model-setups.js +86 -0
- package/dist/models/model-setups.js.map +1 -0
- package/dist/models/plan-pools.d.ts +5 -1
- package/dist/models/plan-pools.d.ts.map +1 -1
- package/dist/models/plan-pools.js +41 -13
- package/dist/models/plan-pools.js.map +1 -1
- package/dist/models/provider-specs.d.ts +20 -0
- package/dist/models/provider-specs.d.ts.map +1 -1
- package/dist/models/provider-specs.js +13 -1
- package/dist/models/provider-specs.js.map +1 -1
- package/dist/policy/command-classes.d.ts.map +1 -1
- package/dist/policy/command-classes.js +26 -3
- package/dist/policy/command-classes.js.map +1 -1
- package/dist/policy/credential-material.d.ts +6 -0
- package/dist/policy/credential-material.d.ts.map +1 -1
- package/dist/policy/credential-material.js +37 -15
- package/dist/policy/credential-material.js.map +1 -1
- package/dist/policy/search-globs.d.ts +3 -0
- package/dist/policy/search-globs.d.ts.map +1 -1
- package/dist/policy/search-globs.js +118 -0
- package/dist/policy/search-globs.js.map +1 -1
- package/dist/policy/secret-hosts.d.ts +1 -0
- package/dist/policy/secret-hosts.d.ts.map +1 -1
- package/dist/policy/secret-hosts.js +1 -0
- package/dist/policy/secret-hosts.js.map +1 -1
- package/dist/policy/turned-away.d.ts.map +1 -1
- package/dist/policy/turned-away.js +1 -0
- package/dist/policy/turned-away.js.map +1 -1
- package/dist/protocol/doors/runner-protocol.d.ts +9 -0
- package/dist/protocol/doors/runner-protocol.d.ts.map +1 -1
- package/dist/protocol/doors/runner-protocol.js +5 -0
- package/dist/protocol/doors/runner-protocol.js.map +1 -1
- package/dist/protocol/pairing-redeem.d.ts +23 -0
- package/dist/protocol/pairing-redeem.d.ts.map +1 -0
- package/dist/protocol/pairing-redeem.js +44 -0
- package/dist/protocol/pairing-redeem.js.map +1 -0
- package/dist/protocol/peer-mcp-server.d.ts.map +1 -1
- package/dist/protocol/peer-mcp-server.js +1 -1
- package/dist/protocol/peer-mcp-server.js.map +1 -1
- package/dist/protocol/raw/raw-json-routes.d.ts +16 -0
- package/dist/protocol/raw/raw-json-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-json-routes.js +2 -0
- package/dist/protocol/raw/raw-json-routes.js.map +1 -1
- package/dist/protocol/raw/raw-routes.d.ts +8 -0
- package/dist/protocol/raw/raw-routes.d.ts.map +1 -1
- package/dist/protocol/raw/raw-routes.js +2 -0
- package/dist/protocol/raw/raw-routes.js.map +1 -1
- package/dist/protocol/sse.d.ts +20 -1
- package/dist/protocol/sse.d.ts.map +1 -1
- package/dist/protocol/sse.js +112 -17
- package/dist/protocol/sse.js.map +1 -1
- package/dist/schemas/agent.d.ts +35 -0
- package/dist/schemas/agent.d.ts.map +1 -1
- package/dist/schemas/agent.js +12 -1
- package/dist/schemas/agent.js.map +1 -1
- package/dist/schemas/automations.d.ts +6 -0
- package/dist/schemas/automations.d.ts.map +1 -1
- package/dist/schemas/automations.js +3 -1
- package/dist/schemas/automations.js.map +1 -1
- package/dist/schemas/devices.d.ts +17 -0
- package/dist/schemas/devices.d.ts.map +1 -1
- package/dist/schemas/devices.js +2 -1
- package/dist/schemas/devices.js.map +1 -1
- package/dist/schemas/engines.d.ts +8 -1
- package/dist/schemas/engines.d.ts.map +1 -1
- package/dist/schemas/engines.js +1 -1
- package/dist/schemas/engines.js.map +1 -1
- package/dist/schemas/environment.d.ts +30 -0
- package/dist/schemas/environment.d.ts.map +1 -1
- package/dist/schemas/environment.js +13 -0
- package/dist/schemas/environment.js.map +1 -1
- package/dist/schemas/git/git-scope.d.ts +20 -0
- package/dist/schemas/git/git-scope.d.ts.map +1 -0
- package/dist/schemas/git/git-scope.js +37 -0
- package/dist/schemas/git/git-scope.js.map +1 -0
- package/dist/schemas/git/git.d.ts +1 -0
- package/dist/schemas/git/git.d.ts.map +1 -1
- package/dist/schemas/git/git.js +9 -1
- package/dist/schemas/git/git.js.map +1 -1
- package/dist/schemas/hosts.d.ts +42 -0
- package/dist/schemas/hosts.d.ts.map +1 -1
- package/dist/schemas/hosts.js +3 -0
- package/dist/schemas/hosts.js.map +1 -1
- package/dist/schemas/keep-warm.d.ts +1 -0
- package/dist/schemas/keep-warm.d.ts.map +1 -1
- package/dist/schemas/keep-warm.js +1 -1
- package/dist/schemas/keep-warm.js.map +1 -1
- package/dist/schemas/logs.d.ts +21 -0
- package/dist/schemas/logs.d.ts.map +1 -1
- package/dist/schemas/logs.js +19 -0
- package/dist/schemas/logs.js.map +1 -1
- package/dist/schemas/metrics.d.ts +12 -0
- package/dist/schemas/metrics.d.ts.map +1 -1
- package/dist/schemas/metrics.js +26 -8
- package/dist/schemas/metrics.js.map +1 -1
- package/dist/schemas/needs.d.ts +19 -0
- package/dist/schemas/needs.d.ts.map +1 -1
- package/dist/schemas/needs.js +17 -3
- package/dist/schemas/needs.js.map +1 -1
- package/dist/schemas/offload.d.ts +154 -0
- package/dist/schemas/offload.d.ts.map +1 -1
- package/dist/schemas/offload.js +34 -0
- package/dist/schemas/offload.js.map +1 -1
- package/dist/schemas/privacy.d.ts +19 -0
- package/dist/schemas/privacy.d.ts.map +1 -1
- package/dist/schemas/privacy.js +17 -2
- package/dist/schemas/privacy.js.map +1 -1
- package/dist/schemas/project-bring-back.d.ts +172 -0
- package/dist/schemas/project-bring-back.d.ts.map +1 -0
- package/dist/schemas/project-bring-back.js +39 -0
- package/dist/schemas/project-bring-back.js.map +1 -0
- package/dist/schemas/providers/handoff.d.ts +77 -0
- package/dist/schemas/providers/handoff.d.ts.map +1 -0
- package/dist/schemas/providers/handoff.js +85 -0
- package/dist/schemas/providers/handoff.js.map +1 -0
- package/dist/schemas/providers/plan-limits.d.ts +34 -0
- package/dist/schemas/providers/plan-limits.d.ts.map +1 -1
- package/dist/schemas/providers/plan-limits.js +13 -2
- package/dist/schemas/providers/plan-limits.js.map +1 -1
- package/dist/schemas/providers/provider-oauth.d.ts +8 -0
- package/dist/schemas/providers/provider-oauth.d.ts.map +1 -1
- package/dist/schemas/providers/usage.d.ts +3 -1
- package/dist/schemas/providers/usage.d.ts.map +1 -1
- package/dist/schemas/providers/usage.js +7 -2
- package/dist/schemas/providers/usage.js.map +1 -1
- package/dist/schemas/run-targets.d.ts.map +1 -1
- package/dist/schemas/run-targets.js +5 -2
- package/dist/schemas/run-targets.js.map +1 -1
- package/dist/schemas/settings-history.d.ts +6 -1
- package/dist/schemas/settings-history.d.ts.map +1 -1
- package/dist/schemas/settings-history.js +25 -1
- package/dist/schemas/settings-history.js.map +1 -1
- package/dist/schemas/settings.d.ts +69 -100
- package/dist/schemas/settings.d.ts.map +1 -1
- package/dist/schemas/settings.js +41 -24
- package/dist/schemas/settings.js.map +1 -1
- package/dist/schemas/short-codes.d.ts +31 -0
- package/dist/schemas/short-codes.d.ts.map +1 -0
- package/dist/schemas/short-codes.js +28 -0
- package/dist/schemas/short-codes.js.map +1 -0
- package/dist/schemas/system.d.ts +130 -0
- package/dist/schemas/system.d.ts.map +1 -1
- package/dist/schemas/system.js +37 -1
- package/dist/schemas/system.js.map +1 -1
- package/dist/state/definition.d.ts +64 -40
- package/dist/state/definition.d.ts.map +1 -1
- package/dist/state/history-state.d.ts.map +1 -1
- package/dist/state/history-state.js +1 -0
- package/dist/state/history-state.js.map +1 -1
- package/dist/state/runtime-state.d.ts +3 -0
- package/dist/state/runtime-state.d.ts.map +1 -1
- package/dist/state/runtime-state.js +1 -0
- package/dist/state/runtime-state.js.map +1 -1
- package/dist/state/versions.d.ts +6 -0
- package/dist/state/versions.d.ts.map +1 -1
- package/dist/state/versions.js +47 -0
- package/dist/state/versions.js.map +1 -1
- package/dist/text/embed.d.ts +2 -1
- package/dist/text/embed.d.ts.map +1 -1
- package/dist/text/embed.js +10 -5
- package/dist/text/embed.js.map +1 -1
- package/dist/text/title.d.ts.map +1 -1
- package/dist/text/title.js +4 -7
- package/dist/text/title.js.map +1 -1
- package/dist/text/transcript-fold.d.ts +2 -1
- package/dist/text/transcript-fold.d.ts.map +1 -1
- package/dist/text/transcript-fold.js +21 -6
- package/dist/text/transcript-fold.js.map +1 -1
- package/package.json +28 -6
- package/src/chores/probes.ts +3 -1
- package/src/contracts/agent.contract.ts +24 -3
- package/src/contracts/offload.contract.ts +21 -1
- package/src/contracts/privacy.contract.ts +13 -0
- package/src/contracts/settings.contract.ts +23 -0
- package/src/events/agent-events.ts +13 -0
- package/src/events/agent-words.ts +2 -3
- package/src/events/resume.test.ts +14 -2
- package/src/events/resume.ts +32 -3
- package/src/events/sandbox-notice.ts +31 -1
- package/src/events/transcript.ts +27 -2
- package/src/index.ts +5 -0
- package/src/models/agent-catalog.test.ts +4 -3
- package/src/models/agent-catalog.ts +10 -7
- package/src/models/agent-runtimes.ts +30 -1
- package/src/models/capability-ledger.test.ts +4 -0
- package/src/models/model-order.ts +13 -0
- package/src/models/model-pins.ts +5 -4
- package/src/models/model-roles.test.ts +9 -31
- package/src/models/model-roles.ts +42 -49
- package/src/models/model-setups.test.ts +100 -0
- package/src/models/model-setups.ts +151 -0
- package/src/models/plan-pools.test.ts +85 -0
- package/src/models/plan-pools.ts +76 -17
- package/src/models/provider-specs.ts +20 -2
- package/src/policy/command-classes.ts +34 -3
- package/src/policy/credential-material.ts +58 -16
- package/src/policy/search-globs.ts +135 -0
- package/src/policy/secret-hosts.ts +7 -0
- package/src/policy/tests/command-classes.test.ts +35 -0
- package/src/policy/tests/credential-material.test.ts +20 -0
- package/src/policy/tests/search-globs.test.ts +46 -1
- package/src/policy/tests/secret-hosts.test.ts +17 -1
- package/src/policy/turned-away.ts +2 -0
- package/src/protocol/doors/runner-protocol.ts +14 -1
- package/src/protocol/pairing-redeem.test.ts +86 -0
- package/src/protocol/pairing-redeem.ts +79 -0
- package/src/protocol/peer-mcp-server.ts +1 -2
- package/src/protocol/raw/raw-json-routes.ts +3 -0
- package/src/protocol/raw/raw-routes.ts +5 -0
- package/src/protocol/sse.test.ts +50 -1
- package/src/protocol/sse.ts +172 -26
- package/src/schemas/agent.ts +23 -2
- package/src/schemas/automations.ts +6 -2
- package/src/schemas/daemon-health.test.ts +28 -0
- package/src/schemas/devices.ts +11 -2
- package/src/schemas/engines.ts +1 -1
- package/src/schemas/environment.ts +25 -0
- package/src/schemas/git/git-scope.test.ts +91 -0
- package/src/schemas/git/git-scope.ts +71 -0
- package/src/schemas/git/git.ts +15 -1
- package/src/schemas/hosts.ts +7 -0
- package/src/schemas/keep-warm.ts +2 -1
- package/src/schemas/logs.ts +25 -0
- package/src/schemas/metrics.test.ts +80 -0
- package/src/schemas/metrics.ts +31 -9
- package/src/schemas/needs.ts +29 -3
- package/src/schemas/offload.ts +76 -0
- package/src/schemas/privacy.ts +27 -3
- package/src/schemas/project-bring-back.test.ts +15 -0
- package/src/schemas/project-bring-back.ts +78 -0
- package/src/schemas/providers/handoff.test.ts +42 -0
- package/src/schemas/providers/handoff.ts +128 -0
- package/src/schemas/providers/plan-limits.ts +23 -2
- package/src/schemas/providers/usage.ts +13 -7
- package/src/schemas/run-targets.ts +5 -2
- package/src/schemas/settings-history.ts +43 -1
- package/src/schemas/settings.test.ts +84 -6
- package/src/schemas/settings.ts +74 -44
- package/src/schemas/short-codes.ts +48 -0
- package/src/schemas/system.ts +63 -1
- package/src/state/history-state.ts +4 -0
- package/src/state/runtime-state.test.ts +4 -0
- package/src/state/runtime-state.ts +4 -0
- package/src/state/versions.test.ts +30 -1
- package/src/state/versions.ts +68 -0
- package/src/text/embed.test.ts +14 -0
- package/src/text/embed.ts +19 -10
- package/src/text/title.ts +5 -9
- package/src/text/transcript-fold.test.ts +61 -0
- package/src/text/transcript-fold.ts +31 -6
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { at, drop, dropAll, fold, isJsonObject, mapValue, retype } from "../documents/conversions.js";
|
|
2
|
+
import { at, drop, dropAll, fold, isJsonObject, mapValue, retype, transform } from "../documents/conversions.js";
|
|
3
|
+
import { ModelRoleSchema } from "../models/model-roles.js";
|
|
4
|
+
import { setupsFromRoleLists } from "../models/model-setups.js";
|
|
5
|
+
import { ModelPinSchema } from "./agent.js";
|
|
3
6
|
const RETIRED_MOMENTS = new Set(["push.starting"]);
|
|
4
7
|
const RETIRED_ACTIONS = new Set(["instruct"]);
|
|
5
8
|
const RETIRED_BUILTINS = new Set(["verify-edits", "verify-removals", "verify-tests"]);
|
|
@@ -42,6 +45,24 @@ const keepWarmObject = fold("folds keepWarm, keepWarmHours, keepWarmMinTokens an
|
|
|
42
45
|
return folded;
|
|
43
46
|
},
|
|
44
47
|
});
|
|
48
|
+
const holdsChoresWithoutRefactors = (roles) => !Object.hasOwn(roles, "refactor-run") && Array.isArray(roles["maintenance-chore"]) && roles["maintenance-chore"].length > 0;
|
|
49
|
+
const refactorsFromChores = transform("gives the new Refactors job the Maintenance chores list", holdsChoresWithoutRefactors, (roles) => ({ ...roles, "refactor-run": roles["maintenance-chore"] }));
|
|
50
|
+
const PinList = z.array(ModelPinSchema);
|
|
51
|
+
const holdsRoleLists = (settings) => Object.hasOwn(settings, "modelRoles") || Object.hasOwn(settings, "modelDefault");
|
|
52
|
+
const roleListsIntoSetups = transform("folds modelRoles and modelDefault into setups (modelSetups, roleSetups)", holdsRoleLists, (settings) => {
|
|
53
|
+
const { modelRoles, modelDefault, ...rest } = settings;
|
|
54
|
+
const fallback = PinList.safeParse(modelDefault);
|
|
55
|
+
const lists = {};
|
|
56
|
+
for (const role of ModelRoleSchema.options) {
|
|
57
|
+
const own = isJsonObject(modelRoles) ? PinList.safeParse(modelRoles[role]) : undefined;
|
|
58
|
+
const list = own?.success === true ? own.data : fallback.success && fallback.data.length > 0 ? fallback.data : undefined;
|
|
59
|
+
if (list !== undefined) {
|
|
60
|
+
lists[role] = list;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
const { modelSetups, roleSetups } = setupsFromRoleLists(lists);
|
|
64
|
+
return { ...rest, modelSetups, roleSetups };
|
|
65
|
+
});
|
|
45
66
|
export const SETTINGS_HISTORY = [
|
|
46
67
|
...dropAll([
|
|
47
68
|
"agentRunEffort",
|
|
@@ -73,5 +94,8 @@ export const SETTINGS_HISTORY = [
|
|
|
73
94
|
at("offload", drop("landCheck")),
|
|
74
95
|
at("modelRoles", drop("pre-push-fix")),
|
|
75
96
|
...dropAll(["leanGuidance", "leanGuidanceHoldout"]),
|
|
97
|
+
...dropAll(["toolResultClearing", "toolResultClearingHoldout"]),
|
|
98
|
+
at("modelRoles", refactorsFromChores),
|
|
99
|
+
roleListsIntoSetups,
|
|
76
100
|
];
|
|
77
101
|
//# sourceMappingURL=settings-history.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings-history.js","sourceRoot":"","sources":["../../src/schemas/settings-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,
|
|
1
|
+
{"version":3,"file":"settings-history.js","sourceRoot":"","sources":["../../src/schemas/settings-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,YAAY,EAAmB,QAAQ,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAClI,OAAO,EAAkB,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3E,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,cAAc,EAAiB,MAAM,YAAY,CAAC;AAU3D,MAAM,eAAe,GAAyB,IAAI,GAAG,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC;AACzE,MAAM,eAAe,GAAyB,IAAI,GAAG,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC;AAC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Q,CAAC,gBAAgB,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACrE,MAAM,CACF,OAAO,EACP,cAAc,EACd,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,CAAC,CAAiC,EACrF,qGAAqG,CACxG;IACD,cAAc;IAEd,EAAE,CAAC,SAAS,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;IAEhC,EAAE,CAAC,YAAY,EAAE,IAAI,CAAC,cAAc,CAAC,CAAC;IAEtC,GAAG,OAAO,CAAC,CAAC,cAAc,EAAE,qBAAqB,CAAC,CAAC;IAEnD,GAAG,OAAO,CAAC,CAAC,oBAAoB,EAAE,2BAA2B,CAAC,CAAC;IAC/D,EAAE,CAAC,YAAY,EAAE,mBAAmB,CAAC;IACrC,mBAAmB;CACb,CAAC"}
|
|
@@ -221,8 +221,6 @@ export declare const SandboxSettingsSchema: z.ZodObject<{
|
|
|
221
221
|
intentic: "intentic";
|
|
222
222
|
}>>;
|
|
223
223
|
systemPrompt: z.ZodDefault<z.ZodString>;
|
|
224
|
-
toolResultClearing: z.ZodDefault<z.ZodBoolean>;
|
|
225
|
-
toolResultClearingHoldout: z.ZodDefault<z.ZodNumber>;
|
|
226
224
|
iqSearch: z.ZodDefault<z.ZodBoolean>;
|
|
227
225
|
iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
|
|
228
226
|
workspaceMap: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -232,31 +230,38 @@ export declare const SandboxSettingsSchema: z.ZodObject<{
|
|
|
232
230
|
fieldNotesHoldout: z.ZodDefault<z.ZodNumber>;
|
|
233
231
|
outputCleaners: z.ZodDefault<z.ZodString>;
|
|
234
232
|
outputHoldout: z.ZodDefault<z.ZodNumber>;
|
|
235
|
-
|
|
233
|
+
modelSetups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
234
|
+
id: z.ZodString;
|
|
235
|
+
name: z.ZodOptional<z.ZodString>;
|
|
236
|
+
pins: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
237
|
+
provider: z.ZodString;
|
|
238
|
+
model: z.ZodString;
|
|
239
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
240
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
241
|
+
fast: z.ZodOptional<z.ZodBoolean>;
|
|
242
|
+
harness: z.ZodOptional<z.ZodEnum<{
|
|
243
|
+
"claude-code": "claude-code";
|
|
244
|
+
native: "native";
|
|
245
|
+
}>>;
|
|
246
|
+
}, z.core.$strip>>>;
|
|
247
|
+
}, z.core.$strip>>>;
|
|
248
|
+
roleSetups: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
236
249
|
"acceptance-run": "acceptance-run";
|
|
237
250
|
"approval-queue": "approval-queue";
|
|
238
251
|
"commit-message": "commit-message";
|
|
239
252
|
"deployment-fix": "deployment-fix";
|
|
240
253
|
"documentation-run": "documentation-run";
|
|
241
254
|
"extension-review": "extension-review";
|
|
255
|
+
"handoff-summary": "handoff-summary";
|
|
242
256
|
"loop-iteration": "loop-iteration";
|
|
243
257
|
"loop-verdict": "loop-verdict";
|
|
244
258
|
"maintenance-chore": "maintenance-chore";
|
|
245
259
|
"model-router": "model-router";
|
|
246
260
|
"pipeline-fix": "pipeline-fix";
|
|
261
|
+
"refactor-run": "refactor-run";
|
|
247
262
|
"safety-judge": "safety-judge";
|
|
248
263
|
"session-title": "session-title";
|
|
249
|
-
}> & z.core.$partial, z.
|
|
250
|
-
provider: z.ZodString;
|
|
251
|
-
model: z.ZodString;
|
|
252
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
253
|
-
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
254
|
-
fast: z.ZodOptional<z.ZodBoolean>;
|
|
255
|
-
harness: z.ZodOptional<z.ZodEnum<{
|
|
256
|
-
"claude-code": "claude-code";
|
|
257
|
-
native: "native";
|
|
258
|
-
}>>;
|
|
259
|
-
}, z.core.$strip>>>>;
|
|
264
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
260
265
|
autoModelGuidance: z.ZodDefault<z.ZodString>;
|
|
261
266
|
changelogRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
262
267
|
agentRetentionDays: z.ZodDefault<z.ZodNumber>;
|
|
@@ -277,7 +282,14 @@ export declare const SandboxSettingsSchema: z.ZodObject<{
|
|
|
277
282
|
resend: "resend";
|
|
278
283
|
wait: "wait";
|
|
279
284
|
}>>;
|
|
285
|
+
limitHandoff: z.ZodDefault<z.ZodEnum<{
|
|
286
|
+
carry: "carry";
|
|
287
|
+
suggested: "suggested";
|
|
288
|
+
summary: "summary";
|
|
289
|
+
trim: "trim";
|
|
290
|
+
}>>;
|
|
280
291
|
limitMoveCarryUnder: z.ZodDefault<z.ZodNumber>;
|
|
292
|
+
handoffSummaryOver: z.ZodDefault<z.ZodNumber>;
|
|
281
293
|
keepWarm: z.ZodPrefault<z.ZodObject<{
|
|
282
294
|
auto: z.ZodDefault<z.ZodBoolean>;
|
|
283
295
|
hours: z.ZodDefault<z.ZodNumber>;
|
|
@@ -288,6 +300,11 @@ export declare const SandboxSettingsSchema: z.ZodObject<{
|
|
|
288
300
|
followOrigin: z.ZodDefault<z.ZodBoolean>;
|
|
289
301
|
offload: z.ZodDefault<z.ZodObject<{
|
|
290
302
|
commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
303
|
+
sessions: z.ZodDefault<z.ZodEnum<{
|
|
304
|
+
auto: "auto";
|
|
305
|
+
off: "off";
|
|
306
|
+
suggest: "suggest";
|
|
307
|
+
}>>;
|
|
291
308
|
}, z.core.$strip>>;
|
|
292
309
|
continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
|
|
293
310
|
autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -401,8 +418,6 @@ export declare const SandboxSettingsWriteSchema: z.ZodObject<{
|
|
|
401
418
|
intentic: "intentic";
|
|
402
419
|
}>>;
|
|
403
420
|
systemPrompt: z.ZodDefault<z.ZodString>;
|
|
404
|
-
toolResultClearing: z.ZodDefault<z.ZodBoolean>;
|
|
405
|
-
toolResultClearingHoldout: z.ZodDefault<z.ZodNumber>;
|
|
406
421
|
iqSearch: z.ZodDefault<z.ZodBoolean>;
|
|
407
422
|
iqSearchHoldout: z.ZodDefault<z.ZodNumber>;
|
|
408
423
|
workspaceMap: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -412,31 +427,38 @@ export declare const SandboxSettingsWriteSchema: z.ZodObject<{
|
|
|
412
427
|
fieldNotesHoldout: z.ZodDefault<z.ZodNumber>;
|
|
413
428
|
outputCleaners: z.ZodDefault<z.ZodString>;
|
|
414
429
|
outputHoldout: z.ZodDefault<z.ZodNumber>;
|
|
415
|
-
|
|
430
|
+
modelSetups: z.ZodDefault<z.ZodArray<z.ZodObject<{
|
|
431
|
+
id: z.ZodString;
|
|
432
|
+
name: z.ZodOptional<z.ZodString>;
|
|
433
|
+
pins: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
434
|
+
provider: z.ZodString;
|
|
435
|
+
model: z.ZodString;
|
|
436
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
437
|
+
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
438
|
+
fast: z.ZodOptional<z.ZodBoolean>;
|
|
439
|
+
harness: z.ZodOptional<z.ZodEnum<{
|
|
440
|
+
"claude-code": "claude-code";
|
|
441
|
+
native: "native";
|
|
442
|
+
}>>;
|
|
443
|
+
}, z.core.$strip>>>;
|
|
444
|
+
}, z.core.$strip>>>;
|
|
445
|
+
roleSetups: z.ZodDefault<z.ZodRecord<z.ZodEnum<{
|
|
416
446
|
"acceptance-run": "acceptance-run";
|
|
417
447
|
"approval-queue": "approval-queue";
|
|
418
448
|
"commit-message": "commit-message";
|
|
419
449
|
"deployment-fix": "deployment-fix";
|
|
420
450
|
"documentation-run": "documentation-run";
|
|
421
451
|
"extension-review": "extension-review";
|
|
452
|
+
"handoff-summary": "handoff-summary";
|
|
422
453
|
"loop-iteration": "loop-iteration";
|
|
423
454
|
"loop-verdict": "loop-verdict";
|
|
424
455
|
"maintenance-chore": "maintenance-chore";
|
|
425
456
|
"model-router": "model-router";
|
|
426
457
|
"pipeline-fix": "pipeline-fix";
|
|
458
|
+
"refactor-run": "refactor-run";
|
|
427
459
|
"safety-judge": "safety-judge";
|
|
428
460
|
"session-title": "session-title";
|
|
429
|
-
}> & z.core.$partial, z.
|
|
430
|
-
provider: z.ZodString;
|
|
431
|
-
model: z.ZodString;
|
|
432
|
-
effort: z.ZodOptional<z.ZodString>;
|
|
433
|
-
thinking: z.ZodOptional<z.ZodBoolean>;
|
|
434
|
-
fast: z.ZodOptional<z.ZodBoolean>;
|
|
435
|
-
harness: z.ZodOptional<z.ZodEnum<{
|
|
436
|
-
"claude-code": "claude-code";
|
|
437
|
-
native: "native";
|
|
438
|
-
}>>;
|
|
439
|
-
}, z.core.$strip>>>>;
|
|
461
|
+
}> & z.core.$partial, z.ZodString>>;
|
|
440
462
|
autoModelGuidance: z.ZodDefault<z.ZodString>;
|
|
441
463
|
changelogRepos: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
442
464
|
agentRetentionDays: z.ZodDefault<z.ZodNumber>;
|
|
@@ -457,7 +479,14 @@ export declare const SandboxSettingsWriteSchema: z.ZodObject<{
|
|
|
457
479
|
resend: "resend";
|
|
458
480
|
wait: "wait";
|
|
459
481
|
}>>;
|
|
482
|
+
limitHandoff: z.ZodDefault<z.ZodEnum<{
|
|
483
|
+
carry: "carry";
|
|
484
|
+
suggested: "suggested";
|
|
485
|
+
summary: "summary";
|
|
486
|
+
trim: "trim";
|
|
487
|
+
}>>;
|
|
460
488
|
limitMoveCarryUnder: z.ZodDefault<z.ZodNumber>;
|
|
489
|
+
handoffSummaryOver: z.ZodDefault<z.ZodNumber>;
|
|
461
490
|
keepWarm: z.ZodPrefault<z.ZodObject<{
|
|
462
491
|
auto: z.ZodDefault<z.ZodBoolean>;
|
|
463
492
|
hours: z.ZodDefault<z.ZodNumber>;
|
|
@@ -468,6 +497,11 @@ export declare const SandboxSettingsWriteSchema: z.ZodObject<{
|
|
|
468
497
|
followOrigin: z.ZodDefault<z.ZodBoolean>;
|
|
469
498
|
offload: z.ZodDefault<z.ZodObject<{
|
|
470
499
|
commands: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
500
|
+
sessions: z.ZodDefault<z.ZodEnum<{
|
|
501
|
+
auto: "auto";
|
|
502
|
+
off: "off";
|
|
503
|
+
suggest: "suggest";
|
|
504
|
+
}>>;
|
|
471
505
|
}, z.core.$strip>>;
|
|
472
506
|
continueWhenNeedMet: z.ZodDefault<z.ZodBoolean>;
|
|
473
507
|
autoResumeOnRestart: z.ZodDefault<z.ZodBoolean>;
|
|
@@ -583,6 +617,11 @@ export declare const AudienceStateSchema: z.ZodObject<{
|
|
|
583
617
|
adopted: z.ZodBoolean;
|
|
584
618
|
}, z.core.$strip>;
|
|
585
619
|
export type AudienceState = z.infer<typeof AudienceStateSchema>;
|
|
620
|
+
export declare const GettingStartedSchema: z.ZodObject<{
|
|
621
|
+
hidden: z.ZodOptional<z.ZodBoolean>;
|
|
622
|
+
skipped: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
623
|
+
}, z.core.$strip>;
|
|
624
|
+
export type GettingStarted = z.infer<typeof GettingStartedSchema>;
|
|
586
625
|
export declare const TimezoneOfferSchema: z.ZodObject<{
|
|
587
626
|
timezone: z.ZodString & z.ZodType<import("../time/zone.js").Zone, string, z.core.$ZodTypeInternals<import("../time/zone.js").Zone, string>>;
|
|
588
627
|
}, z.core.$strip>;
|
|
@@ -632,11 +671,9 @@ export declare const SavingsArmSchema: z.ZodObject<{
|
|
|
632
671
|
export declare const TurnMetricReadingSchema: z.ZodObject<{
|
|
633
672
|
metric: z.ZodEnum<{
|
|
634
673
|
callsBeforeTarget: "callsBeforeTarget";
|
|
635
|
-
contextPerCall: "contextPerCall";
|
|
636
674
|
failedCalls: "failedCalls";
|
|
637
675
|
openingListings: "openingListings";
|
|
638
676
|
openingSearches: "openingSearches";
|
|
639
|
-
roundTrips: "roundTrips";
|
|
640
677
|
searchCalls: "searchCalls";
|
|
641
678
|
}>;
|
|
642
679
|
on: z.ZodObject<{
|
|
@@ -657,11 +694,9 @@ export declare const TurnExperimentSchema: z.ZodObject<{
|
|
|
657
694
|
metrics: z.ZodTuple<[z.ZodObject<{
|
|
658
695
|
metric: z.ZodEnum<{
|
|
659
696
|
callsBeforeTarget: "callsBeforeTarget";
|
|
660
|
-
contextPerCall: "contextPerCall";
|
|
661
697
|
failedCalls: "failedCalls";
|
|
662
698
|
openingListings: "openingListings";
|
|
663
699
|
openingSearches: "openingSearches";
|
|
664
|
-
roundTrips: "roundTrips";
|
|
665
700
|
searchCalls: "searchCalls";
|
|
666
701
|
}>;
|
|
667
702
|
on: z.ZodObject<{
|
|
@@ -679,11 +714,9 @@ export declare const TurnExperimentSchema: z.ZodObject<{
|
|
|
679
714
|
}, z.core.$strip>], z.ZodObject<{
|
|
680
715
|
metric: z.ZodEnum<{
|
|
681
716
|
callsBeforeTarget: "callsBeforeTarget";
|
|
682
|
-
contextPerCall: "contextPerCall";
|
|
683
717
|
failedCalls: "failedCalls";
|
|
684
718
|
openingListings: "openingListings";
|
|
685
719
|
openingSearches: "openingSearches";
|
|
686
|
-
roundTrips: "roundTrips";
|
|
687
720
|
searchCalls: "searchCalls";
|
|
688
721
|
}>;
|
|
689
722
|
on: z.ZodObject<{
|
|
@@ -750,11 +783,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
|
|
|
750
783
|
metrics: z.ZodTuple<[z.ZodObject<{
|
|
751
784
|
metric: z.ZodEnum<{
|
|
752
785
|
callsBeforeTarget: "callsBeforeTarget";
|
|
753
|
-
contextPerCall: "contextPerCall";
|
|
754
786
|
failedCalls: "failedCalls";
|
|
755
787
|
openingListings: "openingListings";
|
|
756
788
|
openingSearches: "openingSearches";
|
|
757
|
-
roundTrips: "roundTrips";
|
|
758
789
|
searchCalls: "searchCalls";
|
|
759
790
|
}>;
|
|
760
791
|
on: z.ZodObject<{
|
|
@@ -772,11 +803,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
|
|
|
772
803
|
}, z.core.$strip>], z.ZodObject<{
|
|
773
804
|
metric: z.ZodEnum<{
|
|
774
805
|
callsBeforeTarget: "callsBeforeTarget";
|
|
775
|
-
contextPerCall: "contextPerCall";
|
|
776
806
|
failedCalls: "failedCalls";
|
|
777
807
|
openingListings: "openingListings";
|
|
778
808
|
openingSearches: "openingSearches";
|
|
779
|
-
roundTrips: "roundTrips";
|
|
780
809
|
searchCalls: "searchCalls";
|
|
781
810
|
}>;
|
|
782
811
|
on: z.ZodObject<{
|
|
@@ -804,11 +833,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
|
|
|
804
833
|
metrics: z.ZodTuple<[z.ZodObject<{
|
|
805
834
|
metric: z.ZodEnum<{
|
|
806
835
|
callsBeforeTarget: "callsBeforeTarget";
|
|
807
|
-
contextPerCall: "contextPerCall";
|
|
808
836
|
failedCalls: "failedCalls";
|
|
809
837
|
openingListings: "openingListings";
|
|
810
838
|
openingSearches: "openingSearches";
|
|
811
|
-
roundTrips: "roundTrips";
|
|
812
839
|
searchCalls: "searchCalls";
|
|
813
840
|
}>;
|
|
814
841
|
on: z.ZodObject<{
|
|
@@ -826,11 +853,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
|
|
|
826
853
|
}, z.core.$strip>], z.ZodObject<{
|
|
827
854
|
metric: z.ZodEnum<{
|
|
828
855
|
callsBeforeTarget: "callsBeforeTarget";
|
|
829
|
-
contextPerCall: "contextPerCall";
|
|
830
856
|
failedCalls: "failedCalls";
|
|
831
857
|
openingListings: "openingListings";
|
|
832
858
|
openingSearches: "openingSearches";
|
|
833
|
-
roundTrips: "roundTrips";
|
|
834
859
|
searchCalls: "searchCalls";
|
|
835
860
|
}>;
|
|
836
861
|
on: z.ZodObject<{
|
|
@@ -858,65 +883,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
|
|
|
858
883
|
metrics: z.ZodTuple<[z.ZodObject<{
|
|
859
884
|
metric: z.ZodEnum<{
|
|
860
885
|
callsBeforeTarget: "callsBeforeTarget";
|
|
861
|
-
contextPerCall: "contextPerCall";
|
|
862
|
-
failedCalls: "failedCalls";
|
|
863
|
-
openingListings: "openingListings";
|
|
864
|
-
openingSearches: "openingSearches";
|
|
865
|
-
roundTrips: "roundTrips";
|
|
866
|
-
searchCalls: "searchCalls";
|
|
867
|
-
}>;
|
|
868
|
-
on: z.ZodObject<{
|
|
869
|
-
turns: z.ZodNumber;
|
|
870
|
-
mean: z.ZodNumber;
|
|
871
|
-
}, z.core.$strip>;
|
|
872
|
-
off: z.ZodObject<{
|
|
873
|
-
turns: z.ZodNumber;
|
|
874
|
-
mean: z.ZodNumber;
|
|
875
|
-
}, z.core.$strip>;
|
|
876
|
-
controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
|
|
877
|
-
marginPct: z.ZodOptional<z.ZodNumber>;
|
|
878
|
-
deltaPct: z.ZodOptional<z.ZodNumber>;
|
|
879
|
-
saved: z.ZodOptional<z.ZodNumber>;
|
|
880
|
-
}, z.core.$strip>], z.ZodObject<{
|
|
881
|
-
metric: z.ZodEnum<{
|
|
882
|
-
callsBeforeTarget: "callsBeforeTarget";
|
|
883
|
-
contextPerCall: "contextPerCall";
|
|
884
|
-
failedCalls: "failedCalls";
|
|
885
|
-
openingListings: "openingListings";
|
|
886
|
-
openingSearches: "openingSearches";
|
|
887
|
-
roundTrips: "roundTrips";
|
|
888
|
-
searchCalls: "searchCalls";
|
|
889
|
-
}>;
|
|
890
|
-
on: z.ZodObject<{
|
|
891
|
-
turns: z.ZodNumber;
|
|
892
|
-
mean: z.ZodNumber;
|
|
893
|
-
}, z.core.$strip>;
|
|
894
|
-
off: z.ZodObject<{
|
|
895
|
-
turns: z.ZodNumber;
|
|
896
|
-
mean: z.ZodNumber;
|
|
897
|
-
}, z.core.$strip>;
|
|
898
|
-
controlTurnsNeeded: z.ZodOptional<z.ZodNumber>;
|
|
899
|
-
marginPct: z.ZodOptional<z.ZodNumber>;
|
|
900
|
-
deltaPct: z.ZodOptional<z.ZodNumber>;
|
|
901
|
-
saved: z.ZodOptional<z.ZodNumber>;
|
|
902
|
-
}, z.core.$strip>>;
|
|
903
|
-
minTurns: z.ZodNumber;
|
|
904
|
-
sampleUnit: z.ZodOptional<z.ZodEnum<{
|
|
905
|
-
conversations: "conversations";
|
|
906
|
-
"opening turns": "opening turns";
|
|
907
|
-
turns: "turns";
|
|
908
|
-
}>>;
|
|
909
|
-
cohort: z.ZodOptional<z.ZodString>;
|
|
910
|
-
}, z.core.$strip>>;
|
|
911
|
-
clearing: z.ZodOptional<z.ZodObject<{
|
|
912
|
-
metrics: z.ZodTuple<[z.ZodObject<{
|
|
913
|
-
metric: z.ZodEnum<{
|
|
914
|
-
callsBeforeTarget: "callsBeforeTarget";
|
|
915
|
-
contextPerCall: "contextPerCall";
|
|
916
886
|
failedCalls: "failedCalls";
|
|
917
887
|
openingListings: "openingListings";
|
|
918
888
|
openingSearches: "openingSearches";
|
|
919
|
-
roundTrips: "roundTrips";
|
|
920
889
|
searchCalls: "searchCalls";
|
|
921
890
|
}>;
|
|
922
891
|
on: z.ZodObject<{
|
|
@@ -934,11 +903,9 @@ export declare const SavingsReportSchema: z.ZodObject<{
|
|
|
934
903
|
}, z.core.$strip>], z.ZodObject<{
|
|
935
904
|
metric: z.ZodEnum<{
|
|
936
905
|
callsBeforeTarget: "callsBeforeTarget";
|
|
937
|
-
contextPerCall: "contextPerCall";
|
|
938
906
|
failedCalls: "failedCalls";
|
|
939
907
|
openingListings: "openingListings";
|
|
940
908
|
openingSearches: "openingSearches";
|
|
941
|
-
roundTrips: "roundTrips";
|
|
942
909
|
searchCalls: "searchCalls";
|
|
943
910
|
}>;
|
|
944
911
|
on: z.ZodObject<{
|
|
@@ -1014,6 +981,7 @@ export declare const RepoChecksSummarySchema: z.ZodObject<{
|
|
|
1014
981
|
fired: z.ZodArray<z.ZodNullable<z.ZodNumber>>;
|
|
1015
982
|
adopted: z.ZodBoolean;
|
|
1016
983
|
changed: z.ZodBoolean;
|
|
984
|
+
held: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
1017
985
|
error: z.ZodOptional<z.ZodString>;
|
|
1018
986
|
}, z.core.$strip>;
|
|
1019
987
|
export type RepoChecksSummary = z.infer<typeof RepoChecksSummarySchema>;
|
|
@@ -1035,6 +1003,7 @@ export declare const RepoChecksListSchema: z.ZodObject<{
|
|
|
1035
1003
|
fired: z.ZodArray<z.ZodNullable<z.ZodNumber>>;
|
|
1036
1004
|
adopted: z.ZodBoolean;
|
|
1037
1005
|
changed: z.ZodBoolean;
|
|
1006
|
+
held: z.ZodOptional<z.ZodArray<z.ZodBoolean>>;
|
|
1038
1007
|
error: z.ZodOptional<z.ZodString>;
|
|
1039
1008
|
}, z.core.$strip>>;
|
|
1040
1009
|
}, z.core.$strip>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/schemas/settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"settings.d.ts","sourceRoot":"","sources":["../../src/schemas/settings.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,eAAO,MAAM,iBAAiB;;;EAAmC,CAAC;AAClE,eAAO,MAAM,uBAAuB;;;;;iBAA+D,CAAC;AACpG,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,sBAAsB;;;;EAA2C,CAAC;AAC/E,MAAM,MAAM,gBAAgB,GAAG,CAAC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e,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,eAAe;;;;;;;;;;iBAc1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAGxD,eAAO,MAAM,oBAAoB;;;;;;;;;;;;iBAK/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAGlE,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;iBAwBlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AACxE,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;iBAE/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAClE,eAAO,MAAM,qBAAqB;;;iBAKhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}
|
package/dist/schemas/settings.js
CHANGED
|
@@ -2,7 +2,10 @@ import { STATE_DIR } from "@intentic/constants";
|
|
|
2
2
|
import { z } from "zod";
|
|
3
3
|
import { CommandJudgeModeSchema, ProjectInstallModeSchema } from "../policy/safety-policy.js";
|
|
4
4
|
import { ModelRoleSchema } from "../models/model-roles.js";
|
|
5
|
-
import {
|
|
5
|
+
import { MODEL_SETUP_ID, ModelSetupSchema } from "../models/model-setups.js";
|
|
6
|
+
import { AdmissionPolicySchema, AdmissionRuleSchema } from "./agent.js";
|
|
7
|
+
import { LimitHandoffSchema } from "./providers/handoff.js";
|
|
8
|
+
import { SessionsPlacementSchema } from "./offload.js";
|
|
6
9
|
import { LimitPolicySchema, RetryPolicySchema, RoomPolicySchema } from "./turn-break.js";
|
|
7
10
|
import { ZoneSchema } from "../time/zone.js";
|
|
8
11
|
export const AgentDomainSchema = z.enum(["root", "unprivileged"]);
|
|
@@ -165,16 +168,6 @@ export const SandboxSettingsSchema = z.object({
|
|
|
165
168
|
.max(SYSTEM_PROMPT_MAX)
|
|
166
169
|
.default("")
|
|
167
170
|
.describe("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."),
|
|
168
|
-
toolResultClearing: z
|
|
169
|
-
.boolean()
|
|
170
|
-
.default(false)
|
|
171
|
-
.describe("Replace old tool results from a Claude conversation once it grows long, a large chunk at a time, keeping the most recent ones whole. The agent sees a short placeholder where each one was and can run the tool again. Smaller prompts cost less and answer sooner, at the risk of the agent re-reading what it already saw."),
|
|
172
|
-
toolResultClearingHoldout: z
|
|
173
|
-
.number()
|
|
174
|
-
.min(0)
|
|
175
|
-
.max(1)
|
|
176
|
-
.default(0.5)
|
|
177
|
-
.describe("What share of conversations keep every tool result, so the two can be compared. Whole conversations rather than individual turns, because what was dropped stays dropped for the rest of the session."),
|
|
178
171
|
iqSearch: z
|
|
179
172
|
.boolean()
|
|
180
173
|
.default(false)
|
|
@@ -188,13 +181,13 @@ export const SandboxSettingsSchema = z.object({
|
|
|
188
181
|
workspaceMap: z
|
|
189
182
|
.boolean()
|
|
190
183
|
.default(false)
|
|
191
|
-
.describe("Open every conversation with a map of the project it starts in:
|
|
184
|
+
.describe("Open every conversation with a map of the project it starts in: what is in it, what each part is for, and where the agent is standing. Worked out fresh each time rather than written down anywhere, because a written layout is wrong within a fortnight. Off by default, since it spends tokens on the first message of every conversation."),
|
|
192
185
|
workspaceMapHoldout: z
|
|
193
186
|
.number()
|
|
194
187
|
.min(0)
|
|
195
188
|
.max(1)
|
|
196
189
|
.default(0)
|
|
197
|
-
.describe("What share of conversations to open
|
|
190
|
+
.describe("What share of conversations to open without the map, so the two can be compared. Whole conversations rather than individual turns, because the map is sent once and stays in the conversation's history afterwards."),
|
|
198
191
|
fieldNotes: z
|
|
199
192
|
.boolean()
|
|
200
193
|
.default(false)
|
|
@@ -222,10 +215,15 @@ export const SandboxSettingsSchema = z.object({
|
|
|
222
215
|
.max(1)
|
|
223
216
|
.default(0)
|
|
224
217
|
.describe("What share of commands to leave untrimmed, so the saving can be measured against a real comparison rather than estimated."),
|
|
225
|
-
|
|
226
|
-
.
|
|
218
|
+
modelSetups: z
|
|
219
|
+
.array(ModelSetupSchema)
|
|
220
|
+
.max(20)
|
|
221
|
+
.default([])
|
|
222
|
+
.describe("The model setups jobs run on: Low, Medium and High, which every sandbox has, and any you make. Each is an ordered list of models, tried in order so one spent account does not take its jobs down. A preset left out of this list, or listed without models, is worked out from the accounts you have connected. A setup runs only the jobs put on it (`roleSetups`)."),
|
|
223
|
+
roleSetups: z
|
|
224
|
+
.partialRecord(ModelRoleSchema, z.string().regex(MODEL_SETUP_ID))
|
|
227
225
|
.default({})
|
|
228
|
-
.describe("Which
|
|
226
|
+
.describe("Which setup each job runs on: commit messages, session titles, the safety judge, pipeline fixes and every other place this sandbox picks a model for you. Nothing is chosen for you: a job left out, or on a setup with no models, has none, so a one-shot job does not run and a whole session opens on whatever your own chat is set to."),
|
|
229
227
|
autoModelGuidance: z
|
|
230
228
|
.string()
|
|
231
229
|
.max(AUTO_MODEL_GUIDANCE_MAX)
|
|
@@ -246,12 +244,19 @@ export const SandboxSettingsSchema = z.object({
|
|
|
246
244
|
outagePolicy: RetryPolicySchema.default("wait").describe("What happens to a turn the model provider's own failure killed. `wait` holds it for a press. `retry` re-runs it on the shared per-provider breaker, backing off between attempts. The sandbox-wide default; any one conversation can say otherwise. Worth `retry` for a sandbox whose work mostly happens with nobody in the room."),
|
|
247
245
|
stopPolicy: RetryPolicySchema.default("wait").describe("What happens to a turn that stopped short with nothing to repair — a hung runtime, a crashed harness. `wait` holds it for a press. `retry` re-runs the held turn on a short ladder, standing down after three tries that got nowhere rather than looping forever."),
|
|
248
246
|
memoryPolicy: RoomPolicySchema.default("resend").describe("What happens to a message the sandbox held because it was short of memory: nothing ran, so nothing was spent. `resend` sends it by itself once memory has stayed free for a while, one held conversation at a time. `wait` holds it until somebody presses Send anyway. The sandbox-wide default; any one conversation can say otherwise."),
|
|
247
|
+
limitHandoff: LimitHandoffSchema.default("suggested").describe("How a turn a spent usage limit held continues, on this account at the reset or on another: `carry` resumes the session as it is (the model keeps everything and re-reads all of it), `trim` resumes a copy with older tool output cleared (every message and tool call stays), `summary` opens a fresh session with a smaller model's summary and the last exchanges word for word. `suggested` picks by the conversation's size, using the two thresholds beside this. The chat's card preselects it and lets you pick another for that turn."),
|
|
249
248
|
limitMoveCarryUnder: z
|
|
250
249
|
.number()
|
|
251
250
|
.int()
|
|
252
251
|
.min(0)
|
|
253
|
-
.default(
|
|
254
|
-
.describe("
|
|
252
|
+
.default(150_000)
|
|
253
|
+
.describe("For the suggested hand-off: carry the session as it is while the conversation's context is under this many tokens; at or above it, trim it (or summarise it, past the next threshold). Zero never suggests carrying."),
|
|
254
|
+
handoffSummaryOver: z
|
|
255
|
+
.number()
|
|
256
|
+
.int()
|
|
257
|
+
.min(0)
|
|
258
|
+
.default(700_000)
|
|
259
|
+
.describe("For the suggested hand-off: at or above this many tokens of context, suggest a summary rather than a trimmed session, where a model is set for hand-off summaries."),
|
|
255
260
|
keepWarm: KeepWarmSettingsSchema.prefault({}).describe("Keeping an idle conversation's prompt cache warm, so coming back to it hours later costs a cache read instead of re-sending everything. Any one conversation can be kept warm or let cool by hand whatever `auto` says."),
|
|
256
261
|
autoRepair: z
|
|
257
262
|
.boolean()
|
|
@@ -264,9 +269,10 @@ export const SandboxSettingsSchema = z.object({
|
|
|
264
269
|
offload: z
|
|
265
270
|
.object({
|
|
266
271
|
commands: z.record(z.string().min(1), z.string().min(1)).default({}),
|
|
272
|
+
sessions: SessionsPlacementSchema.default("suggest"),
|
|
267
273
|
})
|
|
268
|
-
.default({ commands: {} })
|
|
269
|
-
.describe("Which
|
|
274
|
+
.default({ commands: {}, sessions: "suggest" })
|
|
275
|
+
.describe("Which work runs on a runner on one of your machines instead of this sandbox. `commands`: agents' heavy commands by the kind the heavy-command rules sort them into (tests, typechecks, verify…); the code travels as it stands, uncommitted work included, the output streams back, and any file the command changed comes back with it, while a machine that is offline, outdated or busy hands the work back to this sandbox, and the output says so. `sessions`: what happens to a new conversation while this machine is busy and one of your runners has room: `suggest` offers that machine above the composer, `auto` starts it there unless you keep it here, `off` says nothing."),
|
|
270
276
|
continueWhenNeedMet: z
|
|
271
277
|
.boolean()
|
|
272
278
|
.default(true)
|
|
@@ -278,7 +284,7 @@ export const SandboxSettingsSchema = z.object({
|
|
|
278
284
|
adoptedChecks: z
|
|
279
285
|
.record(z.string(), z.string())
|
|
280
286
|
.default({})
|
|
281
|
-
.describe("Which repositories may run the checks they declare for themselves, and exactly which version of those checks you agreed to. A repository's declaration does nothing until it appears here, the same rule git keeps for hooks, which are never cloned; and a
|
|
287
|
+
.describe("Which repositories may run the checks they declare for themselves, and exactly which version of those checks you agreed to. A repository's declaration does nothing until it appears here, the same rule git keeps for hooks, which are never cloned; and a check it adds or rewrites afterwards waits until you look at it again, while the ones you agreed to keep running."),
|
|
282
288
|
rules: z
|
|
283
289
|
.array(RuleSchema)
|
|
284
290
|
.max(50)
|
|
@@ -324,6 +330,14 @@ export const AudienceStateSchema = z.object({
|
|
|
324
330
|
audience: AudienceSchema.describe("The words this sandbox's editor now uses."),
|
|
325
331
|
adopted: z.boolean().describe("Whether this call set it. False means an offer met an answer already kept, which stands."),
|
|
326
332
|
});
|
|
333
|
+
export const GettingStartedSchema = z.object({
|
|
334
|
+
hidden: z.boolean().optional().describe("Whether this person put the checklist away. Absent until they have."),
|
|
335
|
+
skipped: z
|
|
336
|
+
.array(z.string().min(1).max(40))
|
|
337
|
+
.max(20)
|
|
338
|
+
.optional()
|
|
339
|
+
.describe("The checklist steps this person passed over, by the editor's own step names."),
|
|
340
|
+
});
|
|
327
341
|
export const TimezoneOfferSchema = z.object({
|
|
328
342
|
timezone: ZoneSchema.describe("The zone the offering machine is in, as an IANA name like Europe/Warsaw."),
|
|
329
343
|
});
|
|
@@ -345,7 +359,7 @@ export const InputSavingsSchema = z.object({
|
|
|
345
359
|
});
|
|
346
360
|
export const SavingsArmSchema = z.object({ turns: z.number(), mean: z.number() });
|
|
347
361
|
export const TurnMetricReadingSchema = z.object({
|
|
348
|
-
metric: z.enum(["searchCalls", "openingSearches", "openingListings", "callsBeforeTarget", "failedCalls"
|
|
362
|
+
metric: z.enum(["searchCalls", "openingSearches", "openingListings", "callsBeforeTarget", "failedCalls"]),
|
|
349
363
|
on: SavingsArmSchema,
|
|
350
364
|
off: SavingsArmSchema,
|
|
351
365
|
controlTurnsNeeded: z.number().optional(),
|
|
@@ -374,7 +388,6 @@ export const SavingsReportSchema = z.object({
|
|
|
374
388
|
search: TurnExperimentSchema.optional(),
|
|
375
389
|
map: TurnExperimentSchema.optional(),
|
|
376
390
|
notes: TurnExperimentSchema.optional(),
|
|
377
|
-
clearing: TurnExperimentSchema.optional(),
|
|
378
391
|
});
|
|
379
392
|
export const REPO_CHECKS_FILE = `${STATE_DIR}/checks.json`;
|
|
380
393
|
export const RepoCheckMomentSchema = z.enum(["edit", "turn", "land"]);
|
|
@@ -407,7 +420,11 @@ export const RepoChecksSummarySchema = z.object({
|
|
|
407
420
|
.describe("Whether these are running. False means declared and inert: nothing a repository writes runs until the owner switches it on."),
|
|
408
421
|
changed: z
|
|
409
422
|
.boolean()
|
|
410
|
-
.describe("Whether the declaration
|
|
423
|
+
.describe("Whether the declaration gained or rewrote a check since it was adopted. What changed waits until the owner looks again; the checks the owner already agreed to, word for word, keep running (`held` says which is which). True only for a repository that was adopted before."),
|
|
424
|
+
held: z
|
|
425
|
+
.array(z.boolean())
|
|
426
|
+
.optional()
|
|
427
|
+
.describe("For a changed declaration, which of its checks wait for the owner, in the file's order: true for one that is new or rewritten since they agreed, false for one still running as agreed, or retired. Absent when nothing changed, and from a sandbox that holds a changed declaration whole."),
|
|
411
428
|
error: z.string().optional().describe("Why the file could not be read, when it exists but does not parse. The checks list is empty in that case."),
|
|
412
429
|
});
|
|
413
430
|
export const RepoChecksListSchema = z.object({
|