@tangle-network/agent-app 0.60.242 → 0.60.244
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/agent-profiles/d1.js +3 -3
- package/dist/agent-profiles/index.js +3 -3
- package/dist/assistant/index.js +4 -4
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/attachment-store.d.ts +5 -0
- package/dist/chat-routes/index.js +11 -8
- package/dist/chat-routes/index.js.map +1 -1
- package/dist/{chunk-T3IO7QIW.js → chunk-EJ4VTQNA.js} +3 -3
- package/dist/{chunk-PYZYB5V2.js → chunk-FPNZMIAW.js} +60 -1
- package/dist/chunk-FPNZMIAW.js.map +1 -0
- package/dist/{chunk-XKRJ275O.js → chunk-G4F2NWZH.js} +2 -2
- package/dist/{chunk-YVMOYCNL.js → chunk-HJ63OGYD.js} +2 -2
- package/dist/{chunk-FT2Z3AOX.js → chunk-OQE6WMDP.js} +3 -3
- package/dist/{chunk-PBSFLSQ2.js → chunk-PALGMOU3.js} +2 -2
- package/dist/{chunk-WHK5CFDB.js → chunk-QFNBFNM7.js} +2 -2
- package/dist/{chunk-6CKOEPXS.js → chunk-QHRMM2WA.js} +4 -4
- package/dist/{chunk-E65YV7VV.js → chunk-UHSICXRD.js} +5 -5
- package/dist/{chunk-E65YV7VV.js.map → chunk-UHSICXRD.js.map} +1 -1
- package/dist/{chunk-LJASCU5V.js → chunk-VRV75STU.js} +2 -2
- package/dist/harness/index.d.ts +1 -0
- package/dist/harness/index.js +9 -3
- package/dist/harness/presets.d.ts +65 -0
- package/dist/preset-cloudflare/index.js +2 -2
- package/dist/public-consultation/index.d.ts +1 -1
- package/dist/sandbox/index.js +6 -6
- package/dist/skills-placement/index.js +1 -1
- package/dist/tools/index.js +4 -4
- package/dist/web-react/agent-profile-editor.js +3 -3
- package/dist/web-react/index.js +4 -4
- package/dist/work-product/index.js +2 -2
- package/package.json +12 -11
- package/dist/chunk-PYZYB5V2.js.map +0 -1
- /package/dist/{chunk-T3IO7QIW.js.map → chunk-EJ4VTQNA.js.map} +0 -0
- /package/dist/{chunk-XKRJ275O.js.map → chunk-G4F2NWZH.js.map} +0 -0
- /package/dist/{chunk-YVMOYCNL.js.map → chunk-HJ63OGYD.js.map} +0 -0
- /package/dist/{chunk-FT2Z3AOX.js.map → chunk-OQE6WMDP.js.map} +0 -0
- /package/dist/{chunk-PBSFLSQ2.js.map → chunk-PALGMOU3.js.map} +0 -0
- /package/dist/{chunk-WHK5CFDB.js.map → chunk-QFNBFNM7.js.map} +0 -0
- /package/dist/{chunk-6CKOEPXS.js.map → chunk-QHRMM2WA.js.map} +0 -0
- /package/dist/{chunk-LJASCU5V.js.map → chunk-VRV75STU.js.map} +0 -0
|
@@ -4,10 +4,10 @@ import {
|
|
|
4
4
|
} from "./chunk-I6BZVIRH.js";
|
|
5
5
|
import {
|
|
6
6
|
defineAppTool
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VRV75STU.js";
|
|
8
8
|
import {
|
|
9
9
|
ToolInputError
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-UHSICXRD.js";
|
|
11
11
|
|
|
12
12
|
// src/agent-profiles/index.ts
|
|
13
13
|
import {
|
|
@@ -772,4 +772,4 @@ export {
|
|
|
772
772
|
PROFILE_MEMORY_PREFIX,
|
|
773
773
|
profileTools
|
|
774
774
|
};
|
|
775
|
-
//# sourceMappingURL=chunk-
|
|
775
|
+
//# sourceMappingURL=chunk-EJ4VTQNA.js.map
|
|
@@ -51,6 +51,62 @@ function selectSessionHarness(input, knownHarnesses, defaultHarness) {
|
|
|
51
51
|
return { harness, locked: false, swapAttempted: false };
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
// src/harness/presets.ts
|
|
55
|
+
function validateSessionPreset(preset) {
|
|
56
|
+
const name = preset.name.trim();
|
|
57
|
+
if (!name) throw new Error("a session preset needs a name");
|
|
58
|
+
if (name.length > 60) {
|
|
59
|
+
throw new Error(`session preset "${name.slice(0, 30)}\u2026" exceeds the 60-character name budget`);
|
|
60
|
+
}
|
|
61
|
+
if (!preset.model.trim()) throw new Error(`session preset "${name}" pins no model`);
|
|
62
|
+
const allowed = /* @__PURE__ */ new Set(["id", "name", "model", "harness", "effort"]);
|
|
63
|
+
for (const key of Object.keys(preset)) {
|
|
64
|
+
if (!allowed.has(key)) throw new Error(`session preset "${name}" carries an unknown field "${key}"`);
|
|
65
|
+
}
|
|
66
|
+
return { ...preset, name };
|
|
67
|
+
}
|
|
68
|
+
function applySessionPreset(preset, context) {
|
|
69
|
+
if (!context.canonicalIds.includes(preset.model)) {
|
|
70
|
+
throw new Error(
|
|
71
|
+
`session preset "${preset.name}" pins model "${preset.model}", which the catalog no longer carries \u2014 delete or re-pin the preset (a different model is a different decision-maker)`
|
|
72
|
+
);
|
|
73
|
+
}
|
|
74
|
+
const snapped = [];
|
|
75
|
+
const pinnedHarness = preset.harness ?? snapHarnessToModel("opencode", preset.model);
|
|
76
|
+
let model = preset.model;
|
|
77
|
+
let harness = pinnedHarness;
|
|
78
|
+
const harnessCompatibleModel = snapModelToHarness(harness, model, context.canonicalIds);
|
|
79
|
+
if (harnessCompatibleModel !== model) {
|
|
80
|
+
model = harnessCompatibleModel;
|
|
81
|
+
snapped.push("model");
|
|
82
|
+
}
|
|
83
|
+
const modelNativeHarness = snapHarnessToModel(harness, model);
|
|
84
|
+
if (modelNativeHarness !== harness) {
|
|
85
|
+
harness = modelNativeHarness;
|
|
86
|
+
snapped.push("harness");
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
model,
|
|
90
|
+
harness,
|
|
91
|
+
...preset.effort !== void 0 ? { effort: preset.effort } : {},
|
|
92
|
+
snapped
|
|
93
|
+
};
|
|
94
|
+
}
|
|
95
|
+
function createInMemorySessionPresetStore() {
|
|
96
|
+
const state = /* @__PURE__ */ new Map();
|
|
97
|
+
return {
|
|
98
|
+
async list() {
|
|
99
|
+
return [...state.values()].sort((a, b) => a.name.localeCompare(b.name));
|
|
100
|
+
},
|
|
101
|
+
async save(preset) {
|
|
102
|
+
state.set(preset.id, validateSessionPreset(preset));
|
|
103
|
+
},
|
|
104
|
+
async remove(id) {
|
|
105
|
+
state.delete(id);
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
}
|
|
109
|
+
|
|
54
110
|
// src/harness/index.ts
|
|
55
111
|
var NON_BACKEND_HARNESSES = ["gemini"];
|
|
56
112
|
var nonBackendHarnesses = new Set(NON_BACKEND_HARNESSES);
|
|
@@ -145,6 +201,9 @@ function harnessCapabilities(harness) {
|
|
|
145
201
|
|
|
146
202
|
export {
|
|
147
203
|
HarnessSelectionError,
|
|
204
|
+
validateSessionPreset,
|
|
205
|
+
applySessionPreset,
|
|
206
|
+
createInMemorySessionPresetStore,
|
|
148
207
|
modelProvider,
|
|
149
208
|
KNOWN_HARNESSES,
|
|
150
209
|
DEFAULT_HARNESS,
|
|
@@ -158,4 +217,4 @@ export {
|
|
|
158
217
|
assertHarnessModelCompatible,
|
|
159
218
|
harnessCapabilities
|
|
160
219
|
};
|
|
161
|
-
//# sourceMappingURL=chunk-
|
|
220
|
+
//# sourceMappingURL=chunk-FPNZMIAW.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/harness/index.ts","../src/harness/session-selection.ts","../src/harness/presets.ts"],"sourcesContent":["/**\n * Coding-agent harness selection, model compatibility, and the session lock.\n *\n * Known identities are not a deployment's available runners. Products supply\n * server-owned availability to resolveSessionHarness. Historical session IDs\n * remain intact when their runner is unavailable; a harness change requires an\n * explicit transfer, not a fallback or a rewritten session lock.\n *\n * Model compatibility is owned by @tangle-network/agent-interface. The shell\n * owns session selection; the consumer owns storage and deployment policy.\n */\n\nimport {\n harnessProviders,\n harnessSupportsModel,\n harnessTypeSchema,\n modelProvider,\n preferredHarnessForModel,\n snapHarnessToModel as aiSnapHarnessToModel,\n snapModelToHarness as aiSnapModelToHarness,\n type HarnessType,\n} from '@tangle-network/agent-interface'\nimport {\n selectSessionHarness,\n type HarnessAvailability as SelectionAvailability,\n type SessionHarnessSelection,\n type SessionHarnessSelectionInput,\n} from './session-selection'\n\nexport { HarnessSelectionError } from './session-selection'\n\n/** Canonical identities that have no direct Sandbox backend. */\nconst NON_BACKEND_HARNESSES = ['gemini'] as const satisfies readonly HarnessType[]\nconst nonBackendHarnesses = new Set<string>(NON_BACKEND_HARNESSES)\n\n/** A recognized coding-agent backend, not a promise that it is installed. */\nexport type Harness = Exclude<HarnessType, (typeof NON_BACKEND_HARNESSES)[number]>\n\n/**\n * Recognized backend identities, including IDs needed by historical sessions.\n * Use deployment availability, not membership here, to offer or admit new runs.\n */\nexport const KNOWN_HARNESSES: readonly Harness[] = [\n ...harnessTypeSchema.options.filter(\n (harness): harness is Exclude<HarnessType, (typeof NON_BACKEND_HARNESSES)[number]> =>\n !nonBackendHarnesses.has(harness),\n ),\n]\n\n/** Default for an absent choice; never a replacement for an invalid explicit ID. */\nexport const DEFAULT_HARNESS: Harness = 'opencode'\nconst HARNESS_SET: ReadonlySet<string> = new Set(KNOWN_HARNESSES)\n\n/** Determine whether a value is a recognized identity, independently of availability. */\nexport function isHarness(value: unknown): value is Harness {\n return typeof value === 'string' && HARNESS_SET.has(value)\n}\n\n/** Display/config convenience only. Never use coercion to admit an execution or restore a lock. */\nexport function coerceHarness(value: unknown, fallback: Harness = DEFAULT_HARNESS): Harness {\n return isHarness(value) ? value : fallback\n}\n\n/** Server-owned start and resume sets. Existing-only entries are draining. */\nexport type HarnessAvailability = SelectionAvailability<Harness>\n\n/** A saved lock, explicit choice, workspace default, and optional deployment availability. */\nexport type ResolveSessionHarnessInput = SessionHarnessSelectionInput<Harness>\n\n/** The selected identity and the existing session-lock/swap-attempt result. */\nexport type ResolvedSessionHarness = SessionHarnessSelection<Harness>\n\n/**\n * Resolve requested → workspaceDefault → fallback only for a genuinely new session.\n * A non-null saved identity always takes the lock path. Unknown/retired identities\n * and invalid explicit requests throw HarnessSelectionError instead of falling back.\n * A known different request still reports swapAttempted while preserving the lock.\n * The caller must reject that attempt before execution, as in the existing contract.\n */\nexport function resolveSessionHarness(input: ResolveSessionHarnessInput = {}): ResolvedSessionHarness {\n return selectSessionHarness(input, KNOWN_HARNESSES, DEFAULT_HARNESS)\n}\n\n/**\n * An app's harness configuration, read from its deploy configuration (for example the env vars\n * `AGENT_HARNESS` and `AGENT_HARNESS_WORKSPACES`), so no product hard-codes `backend.type`.\n */\nexport interface HarnessConfig {\n /** The app default for new sessions. Unset or blank means {@link DEFAULT_HARNESS}. */\n default?: string\n /** Per-workspace choices: a JSON object mapping a workspace id to a harness. */\n workspaces?: string\n}\n\nfunction configHarness(value: unknown, where: string): Harness {\n if (!isHarness(value)) throw new Error(`${where} names an unknown harness: ${String(value)}`)\n return value\n}\n\n/**\n * The harness a workspace's new sessions start on: its own choice, else the app default, else\n * {@link DEFAULT_HARNESS}. Pass the result to {@link resolveSessionHarness} as `workspaceDefault`\n * so a session that already ran keeps its harness. A value naming an unknown harness throws:\n * a configuration typo must fail loudly, never run a different harness than the one configured.\n */\nexport function configuredHarness(config: HarnessConfig, workspaceId?: string): Harness {\n const appDefault = config.default?.trim()\n ? configHarness(config.default.trim(), 'The harness default') : DEFAULT_HARNESS\n const raw = config.workspaces?.trim()\n if (!raw) return appDefault\n let choices: unknown\n try {\n choices = JSON.parse(raw)\n } catch {\n throw new Error('The per-workspace harness configuration is not JSON')\n }\n if (!choices || typeof choices !== 'object' || Array.isArray(choices)) {\n throw new Error('The per-workspace harness configuration must map workspace ids to harnesses')\n }\n // Every entry is checked, not only the caller's, so one bad entry fails every workspace's\n // first turn after the deploy instead of hiding until that workspace sends a message.\n const parsed = new Map(Object.entries(choices).map(([id, value]) =>\n [id, configHarness(value, `The harness for workspace ${id}`)]))\n return (workspaceId === undefined ? undefined : parsed.get(workspaceId)) ?? appDefault\n}\n\n/** Harness-model compatibility is delegated to the Interface owner. */\nexport { modelProvider }\n\n/** A resolved model and the transport provider that will execute it. */\nexport interface HarnessModelSelection {\n model: string\n provider?: string\n}\n\n/** Provider-less ids (sentinels like \"default\", or a session's own config) are\n * compatible everywhere — every harness honors its own configuration. */\nexport function isModelCompatibleWithHarness(harness: Harness, modelId: string): boolean {\n return harnessSupportsModel(harness, modelId)\n}\n\n/** Keep `modelId` when the harness can run it; else the harness's best compatible\n * catalog id (preferred patterns in order, highest version). When nothing in the\n * catalog fits, return the original so the caller sees the incompatibility. */\nexport function snapModelToHarness(harness: Harness, modelId: string, canonicalIds: readonly string[]): string {\n return aiSnapModelToHarness(harness, modelId, canonicalIds)\n}\n\n/** Keep the harness when it can run `modelId`; else the model's native harness\n * (anthropic → claude-code, openai → codex, moonshot → kimi-code), falling back to opencode. */\nexport function snapHarnessToModel(harness: Harness, modelId: string): Harness {\n const snapped = aiSnapHarnessToModel(harness, modelId)\n if (!isHarness(snapped)) {\n throw new Error(\n `Harness \"${harness}\" snapped to \"${snapped}\" for model \"${modelId}\", which this platform has no backend for.`,\n )\n }\n return snapped\n}\n\n/** Fail-loud server guard: throw when a harness is asked to run a model it can't.\n * A resolved model tuple supplies provider evidence when its id is unqualified.\n * Call before dispatching a sandbox turn so a bypassed UI cannot reach the\n * sidecar with an incompatible or unproven pair. */\nexport function assertHarnessModelCompatible(\n harness: Harness,\n selection: string | HarnessModelSelection,\n): void {\n const modelId = typeof selection === 'string' ? selection : selection.model\n const transportProvider = typeof selection === 'string' ? undefined : selection.provider\n const providers = harnessProviders(harness)\n const provider = modelProvider(modelId) ?? transportProvider ?? null\n // An omitted/default model is deliberately left to the harness. Once a\n // caller names a model, however, a vendor-locked harness must have provider\n // evidence. Interface owns which harnesses are locked: since 5.7 Claude Code\n // and Codex run any Router-served model, and kimi-code stays Moonshot-only.\n const isDefaultSentinel = modelId.trim() === '' || modelId.trim() === 'default'\n const compatible = isDefaultSentinel\n || providers === null\n || (provider !== null && providers.includes(provider))\n if (!compatible) {\n const native = preferredHarnessForModel(modelId)\n const providerDescription = provider ?? 'unqualified'\n throw new Error(\n `Harness \"${harness}\" cannot run model \"${modelId}\" (provider \"${providerDescription}\"). ` +\n `Use ${native ?? 'a router-backed harness (opencode)'} or an allowed model.`,\n )\n }\n}\n\n// Profile-support facts remain here until the materializer supplies its owned descriptor.\n// Do not confuse these facts with deployment availability.\n\n/** What a harness can express, for profile assembly. */\nexport interface HarnessCapabilities {\n /** Lower profile.subagents into native cwd files; false means materialization refuses them. */\n subagents: boolean\n /** How profile.mcp reaches the harness. */\n mcp: 'native' | 'config-file' | 'extension' | 'none'\n /** Whether tool controls are checked before MCP tools register. */\n toolControls: 'startup' | 'runtime'\n /** cwd-relative skill directory, or null when skills must be inlined. */\n skillsDir: string | null\n}\n\nconst HARNESS_CAPABILITIES: Record<Harness, HarnessCapabilities> = {\n 'claude-code': { subagents: true, mcp: 'native', toolControls: 'runtime', skillsDir: '.claude/skills' },\n nanoclaw: { subagents: true, mcp: 'native', toolControls: 'runtime', skillsDir: '.claude/skills' },\n opencode: { subagents: true, mcp: 'config-file', toolControls: 'runtime', skillsDir: '.opencode/skills' },\n codex: { subagents: true, mcp: 'config-file', toolControls: 'runtime', skillsDir: '.codex/skills' },\n 'kimi-code': { subagents: false, mcp: 'config-file', toolControls: 'runtime', skillsDir: '.kimi/skills' },\n pi: { subagents: false, mcp: 'extension', toolControls: 'startup', skillsDir: '.pi/skills' },\n prime: { subagents: true, mcp: 'native', toolControls: 'runtime', skillsDir: '.prime/agent/skills' },\n hermes: { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n openclaw: { subagents: false, mcp: 'config-file', toolControls: 'runtime', skillsDir: 'skills' },\n acp: { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n amp: { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n 'factory-droids': { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n forge: { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n cursor: { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n 'cli-base': { subagents: false, mcp: 'native', toolControls: 'runtime', skillsDir: null },\n}\n\n/** Profile-support facts, independent of whether this deployment enables the harness. */\nexport function harnessCapabilities(harness: Harness): HarnessCapabilities {\n const caps = HARNESS_CAPABILITIES[harness]\n if (!caps) throw new Error(`harnessCapabilities: no capability facts for \"${harness}\"`)\n return caps\n}\n\n// ── Session presets ────────────────────────────────────────────────────────\n//\n// Named (model, harness, effort) pins applied with catalog coherence through\n// the snap helpers above. The contract is semantics; the visual surface stays\n// with the picker canon.\nexport {\n applySessionPreset,\n createInMemorySessionPresetStore,\n validateSessionPreset,\n type AppliedSessionPreset,\n type SessionPreset,\n type SessionPresetCatalogContext,\n type SessionPresetStore,\n} from './presets'\n","/** Pure session admission. Harness identity is not deployment availability. */\nexport interface HarnessAvailability<H extends string> {\n /** Server-owned selection for new sessions. An empty list disables all starts. */\n readonly newSessions: readonly H[]\n /** Includes draining harnesses. Omission uses newSessions, never all known IDs. */\n readonly existingSessions?: readonly H[]\n}\n\nexport interface SessionHarnessSelectionInput<H extends string> {\n sessionHarness?: unknown\n requested?: unknown\n workspaceDefault?: unknown\n fallback?: H\n /** Omit only when the caller deliberately admits every known harness. */\n availability?: HarnessAvailability<H>\n}\n\nexport interface SessionHarnessSelection<H extends string> {\n harness: H\n locked: boolean\n swapAttempted: boolean\n}\n\ntype SelectionSource = 'session' | 'requested' | 'workspace' | 'fallback'\n\n/** An admission failure, never permission to retry on another harness. */\nexport class HarnessSelectionError extends Error {\n readonly code: 'harness_unknown' | 'harness_unavailable'\n readonly harness: string | null\n readonly source: SelectionSource\n\n constructor(\n code: 'harness_unknown' | 'harness_unavailable',\n value: unknown,\n source: SelectionSource,\n ) {\n const harness = typeof value === 'string' ? value : null\n super(`${code}: ${source} harness ${harness === null ? '<invalid>' : JSON.stringify(harness)}`)\n this.name = 'HarnessSelectionError'\n this.code = code\n this.harness = harness\n this.source = source\n }\n}\n\n/**\n * Null/undefined mean no choice. Every other value is an explicit choice and must\n * validate. A retired or unrecognized saved identity must never become a new session.\n * Availability is supplied by the authenticated server, not by a request body.\n */\nexport function selectSessionHarness<H extends string>(\n input: SessionHarnessSelectionInput<H>,\n knownHarnesses: readonly H[],\n defaultHarness: H,\n): SessionHarnessSelection<H> {\n const known = new Set<string>(knownHarnesses)\n const resolve = (value: unknown, source: SelectionSource): H => {\n if (typeof value !== 'string' || !known.has(value)) {\n throw new HarnessSelectionError('harness_unknown', value, source)\n }\n return value as H\n }\n const admit = (harness: H, source: SelectionSource, existing: boolean): void => {\n if (input.availability === undefined) return\n const allowed = existing\n ? input.availability.existingSessions ?? input.availability.newSessions\n : input.availability.newSessions\n if (!allowed.includes(harness)) {\n throw new HarnessSelectionError('harness_unavailable', harness, source)\n }\n }\n\n if (input.sessionHarness !== undefined && input.sessionHarness !== null) {\n const harness = resolve(input.sessionHarness, 'session')\n admit(harness, 'session', true)\n // A known different request remains a swap attempt; it is not executed. An\n // invalid request is refused rather than being misreported as no swap.\n const requested = input.requested === undefined || input.requested === null\n ? undefined : resolve(input.requested, 'requested')\n return { harness, locked: true, swapAttempted: requested !== undefined && requested !== harness }\n }\n\n const source: SelectionSource = input.requested !== undefined && input.requested !== null\n ? 'requested'\n : input.workspaceDefault !== undefined && input.workspaceDefault !== null\n ? 'workspace' : 'fallback'\n const value = source === 'requested' ? input.requested\n : source === 'workspace' ? input.workspaceDefault : input.fallback ?? defaultHarness\n const harness = resolve(value, source)\n admit(harness, source, false)\n return { harness, locked: false, swapAttempted: false }\n}\n","/**\n * Session presets — named (model, harness, effort) combinations a user pins\n * and applies in one action, beside the canonical session controls\n * (`/web-react`'s `AgentSessionControls`).\n *\n * The CONTRACT is coherence, not storage: a preset stores exact catalog ids,\n * and APPLYING it resolves through the harness module's snap helpers so the\n * result is never an invalid combination — if the catalog moved under a\n * pinned preset (model renamed, harness retired), apply snaps to the\n * harness's best compatible catalog option (or the model's native harness)\n * exactly like a manual picker change would, and reports what changed.\n * A preset naming a model the catalog no longer carries is REFUSED at\n * apply time, never silently substituted: a different model is a different\n * decision-maker.\n *\n * Storage is a port: products persist presets wherever they keep workspace\n * state (D1, KV, localStorage). The default store is in-memory for tests\n * and single-instance products — the same shape the self-mount verb uses.\n */\nimport { snapHarnessToModel, snapModelToHarness, type Harness } from './index'\n\n/** A pinned session configuration. `id` is the product's stable key. */\nexport interface SessionPreset {\n readonly id: string\n /** User-facing label; trimmed, non-empty, ≤ 60 chars. */\n readonly name: string\n /** Canonical catalog model id (\"provider/model\"). */\n readonly model: string\n /** Optional pinned harness; omitted = follow the model's native harness. */\n readonly harness?: Harness\n /** Optional pinned reasoning effort (the picker canon's effort levels). */\n readonly effort?: string\n}\n\n/** What applying a preset actually set, with every snap named. */\nexport interface AppliedSessionPreset {\n readonly model: string\n readonly harness: Harness\n readonly effort?: string\n /** Non-empty when the catalog moved under the pinned preset. */\n readonly snapped: ReadonlyArray<'model' | 'harness'>\n}\n\nexport interface SessionPresetCatalogContext {\n /** The catalog's canonical model ids. */\n readonly canonicalIds: readonly string[]\n}\n\n/** Validate one preset at save time: label budget, canonical model id, no\n * unknown fields smuggled in. Throws with the preset's name in the message. */\nexport function validateSessionPreset(preset: SessionPreset): SessionPreset {\n const name = preset.name.trim()\n if (!name) throw new Error('a session preset needs a name')\n if (name.length > 60) {\n throw new Error(`session preset \"${name.slice(0, 30)}…\" exceeds the 60-character name budget`)\n }\n if (!preset.model.trim()) throw new Error(`session preset \"${name}\" pins no model`)\n const allowed = new Set(['id', 'name', 'model', 'harness', 'effort'])\n for (const key of Object.keys(preset)) {\n if (!allowed.has(key)) throw new Error(`session preset \"${name}\" carries an unknown field \"${key}\"`)\n }\n return { ...preset, name }\n}\n\n/** Apply a preset with catalog coherence. Refused (thrown) when the pinned\n * model is gone from the catalog — never silently another model. */\nexport function applySessionPreset(\n preset: SessionPreset,\n context: SessionPresetCatalogContext,\n): AppliedSessionPreset {\n if (!context.canonicalIds.includes(preset.model)) {\n throw new Error(\n `session preset \"${preset.name}\" pins model \"${preset.model}\", which the catalog no longer carries — `\n + `delete or re-pin the preset (a different model is a different decision-maker)`,\n )\n }\n const snapped: Array<'model' | 'harness'> = []\n const pinnedHarness = preset.harness ?? snapHarnessToModel('opencode', preset.model)\n let model = preset.model\n let harness = pinnedHarness\n // The same two-way coherence the manual pickers enforce, in the preset's\n // own order: the pinned harness snaps the model if incompatible, then the\n // (possibly snapped) model snaps the harness back if it moved families.\n const harnessCompatibleModel = snapModelToHarness(harness, model, context.canonicalIds)\n if (harnessCompatibleModel !== model) {\n model = harnessCompatibleModel\n snapped.push('model')\n }\n const modelNativeHarness = snapHarnessToModel(harness, model)\n if (modelNativeHarness !== harness) {\n harness = modelNativeHarness\n snapped.push('harness')\n }\n return {\n model,\n harness,\n ...(preset.effort !== undefined ? { effort: preset.effort } : {}),\n snapped,\n }\n}\n\n/** Durable preset storage port. Products own persistence; the default is\n * non-durable for tests and single-instance products. */\nexport interface SessionPresetStore {\n list(): Promise<readonly SessionPreset[]>\n save(preset: SessionPreset): Promise<void>\n remove(id: string): Promise<void>\n}\n\nexport function createInMemorySessionPresetStore(): SessionPresetStore {\n const state = new Map<string, SessionPreset>()\n return {\n async list() { return [...state.values()].sort((a, b) => a.name.localeCompare(b.name)) },\n async save(preset) { state.set(preset.id, validateSessionPreset(preset)) },\n async remove(id) { state.delete(id) },\n }\n}\n\n/**\n * The composer/controls integration seam: presets render beside the canonical\n * pickers (picker-canon geometry) and apply through {@link applySessionPreset};\n * saving captures the CURRENT picker selection verbatim. The visual surface is\n * deliberately not owned here — the picker canon and the product's design\n * tokens define it; this module guarantees the semantics underneath.\n */\n"],"mappings":";AAYA;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,sBAAsB;AAAA,EACtB,sBAAsB;AAAA,OAEjB;;;ACKA,IAAM,wBAAN,cAAoC,MAAM;AAAA,EACtC;AAAA,EACA;AAAA,EACA;AAAA,EAET,YACE,MACA,OACA,QACA;AACA,UAAM,UAAU,OA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9F,OAAO,EAAE,WAAW,OAAO,KAAK,UAAU,cAAc,WAAW,WAAW,KAAK;AAAA,EACnF,QAAQ,EAAE,WAAW,OAAO,KAAK,UAAU,cAAc,WAAW,WAAW,KAAK;AAAA,EACpF,YAAY,EAAE,WAAW,OAAO,KAAK,UAAU,cAAc,WAAW,WAAW,KAAK;AAC1F;AAGO,SAAS,oBAAoB,SAAuC;AACzE,QAAM,OAAO,qBAAqB,OAAO;AACzC,MAAI,CAAC,KAAM,OAAM,IAAI,MAAM,iDAAiD,OAAO,GAAG;AACtF,SAAO;AACT;","names":["value","source","harness"]}
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
import {
|
|
16
16
|
snapHarnessToModel,
|
|
17
17
|
snapModelToHarness
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FPNZMIAW.js";
|
|
19
19
|
|
|
20
20
|
// src/web-react/composer-file-accept.ts
|
|
21
21
|
function isAcceptedFileType(file, accept) {
|
|
@@ -576,4 +576,4 @@ export {
|
|
|
576
576
|
HarnessPicker,
|
|
577
577
|
AgentSessionControls
|
|
578
578
|
};
|
|
579
|
-
//# sourceMappingURL=chunk-
|
|
579
|
+
//# sourceMappingURL=chunk-G4F2NWZH.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
filterAcceptedFiles,
|
|
14
14
|
isAcceptedFileType,
|
|
15
15
|
renamePastedImages
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-G4F2NWZH.js";
|
|
17
17
|
import {
|
|
18
18
|
OVERLAY_SHADOW,
|
|
19
19
|
POPOVER_OPTION_FOCUS,
|
|
@@ -1603,4 +1603,4 @@ export {
|
|
|
1603
1603
|
ComposerModeControls,
|
|
1604
1604
|
EntryComposer
|
|
1605
1605
|
};
|
|
1606
|
-
//# sourceMappingURL=chunk-
|
|
1606
|
+
//# sourceMappingURL=chunk-HJ63OGYD.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HarnessPicker,
|
|
3
3
|
filterAcceptedFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-G4F2NWZH.js";
|
|
5
5
|
import {
|
|
6
6
|
EffortPicker,
|
|
7
7
|
ModelPicker,
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
import {
|
|
14
14
|
isModelCompatibleWithHarness,
|
|
15
15
|
snapModelToHarness
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FPNZMIAW.js";
|
|
17
17
|
import {
|
|
18
18
|
isCommitSha,
|
|
19
19
|
parseGitHubLocation,
|
|
@@ -2212,4 +2212,4 @@ export {
|
|
|
2212
2212
|
AGENT_PROFILE_EDITOR_SECTIONS,
|
|
2213
2213
|
AgentProfileEditor
|
|
2214
2214
|
};
|
|
2215
|
-
//# sourceMappingURL=chunk-
|
|
2215
|
+
//# sourceMappingURL=chunk-OQE6WMDP.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
DEFAULT_HARNESS,
|
|
14
14
|
assertHarnessModelCompatible,
|
|
15
15
|
isHarness
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-FPNZMIAW.js";
|
|
17
17
|
import {
|
|
18
18
|
assertProfilePromptWithinBudget,
|
|
19
19
|
fingerprintAgentProfile
|
|
@@ -3853,4 +3853,4 @@ export {
|
|
|
3853
3853
|
deleteSecret,
|
|
3854
3854
|
mintSandboxScopedToken
|
|
3855
3855
|
};
|
|
3856
|
-
//# sourceMappingURL=chunk-
|
|
3856
|
+
//# sourceMappingURL=chunk-PALGMOU3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ToolInputError,
|
|
3
3
|
validateOpenUIJsonNode
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-UHSICXRD.js";
|
|
5
5
|
|
|
6
6
|
// src/tools/render-ui-schema.ts
|
|
7
7
|
function parseRenderUiSchema(value) {
|
|
@@ -25,4 +25,4 @@ function parseRenderUiSchema(value) {
|
|
|
25
25
|
export {
|
|
26
26
|
parseRenderUiSchema
|
|
27
27
|
};
|
|
28
|
-
//# sourceMappingURL=chunk-
|
|
28
|
+
//# sourceMappingURL=chunk-QFNBFNM7.js.map
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
} from "./chunk-6A7MYOUI.js";
|
|
5
5
|
import {
|
|
6
6
|
parseRenderUiSchema
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-QFNBFNM7.js";
|
|
8
8
|
import {
|
|
9
9
|
buildAppToolOpenAITools,
|
|
10
10
|
findCustomTool,
|
|
11
11
|
isAppToolName
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VRV75STU.js";
|
|
13
13
|
import {
|
|
14
14
|
ToolInputError
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-UHSICXRD.js";
|
|
16
16
|
|
|
17
17
|
// src/tools/gating.ts
|
|
18
18
|
function resolveToolCapabilities(opts) {
|
|
@@ -212,4 +212,4 @@ export {
|
|
|
212
212
|
createAppToolRuntimeExecutor,
|
|
213
213
|
handleAppToolRequest
|
|
214
214
|
};
|
|
215
|
-
//# sourceMappingURL=chunk-
|
|
215
|
+
//# sourceMappingURL=chunk-QHRMM2WA.js.map
|
|
@@ -10,7 +10,7 @@ var ToolInputError = class extends Error {
|
|
|
10
10
|
status;
|
|
11
11
|
};
|
|
12
12
|
|
|
13
|
-
// node_modules/.pnpm/@tangle-network+ui@11.40.
|
|
13
|
+
// node_modules/.pnpm/@tangle-network+ui@11.40.2_@hocuspocus+provider@4.6.0_y-protocols@1.0.7_yjs@13.6.32__yj_af30eb9877dc4fd197e5082a8da146a5/node_modules/@tangle-network/ui/dist/openui/schema-data.js
|
|
14
14
|
var OPENUI_NODE_TYPES = [
|
|
15
15
|
"heading",
|
|
16
16
|
"text",
|
|
@@ -209,7 +209,7 @@ var OPENUI_NODE_JSON_SCHEMA = {
|
|
|
209
209
|
}
|
|
210
210
|
};
|
|
211
211
|
|
|
212
|
-
// node_modules/.pnpm/@tangle-network+ui@11.40.
|
|
212
|
+
// node_modules/.pnpm/@tangle-network+ui@11.40.2_@hocuspocus+provider@4.6.0_y-protocols@1.0.7_yjs@13.6.32__yj_af30eb9877dc4fd197e5082a8da146a5/node_modules/@tangle-network/ui/dist/_virtual/_rolldown/runtime.js
|
|
213
213
|
var __defProp = Object.defineProperty;
|
|
214
214
|
var __exportAll = (all, no_symbols) => {
|
|
215
215
|
let target = {};
|
|
@@ -221,7 +221,7 @@ var __exportAll = (all, no_symbols) => {
|
|
|
221
221
|
return target;
|
|
222
222
|
};
|
|
223
223
|
|
|
224
|
-
// node_modules/.pnpm/@tangle-network+ui@11.40.
|
|
224
|
+
// node_modules/.pnpm/@tangle-network+ui@11.40.2_@hocuspocus+provider@4.6.0_y-protocols@1.0.7_yjs@13.6.32__yj_af30eb9877dc4fd197e5082a8da146a5/node_modules/@tangle-network/ui/dist/openui/schema-compiled.js
|
|
225
225
|
var schema_compiled_exports = /* @__PURE__ */ __exportAll({
|
|
226
226
|
actions: () => actions2,
|
|
227
227
|
badge: () => badge,
|
|
@@ -9520,7 +9520,7 @@ function validate44(data, { instancePath = "", parentData, parentDataProperty, r
|
|
|
9520
9520
|
return errors === 0;
|
|
9521
9521
|
}
|
|
9522
9522
|
|
|
9523
|
-
// node_modules/.pnpm/@tangle-network+ui@11.40.
|
|
9523
|
+
// node_modules/.pnpm/@tangle-network+ui@11.40.2_@hocuspocus+provider@4.6.0_y-protocols@1.0.7_yjs@13.6.32__yj_af30eb9877dc4fd197e5082a8da146a5/node_modules/@tangle-network/ui/dist/openui-schema.js
|
|
9524
9524
|
var nodeTypes = new Set(OPENUI_NODE_TYPES);
|
|
9525
9525
|
function findUnsupportedOpenUINode(value) {
|
|
9526
9526
|
const seen = /* @__PURE__ */ new WeakSet();
|
|
@@ -9634,4 +9634,4 @@ export {
|
|
|
9634
9634
|
OPENUI_NODE_JSON_SCHEMA,
|
|
9635
9635
|
validateOpenUIJsonNode
|
|
9636
9636
|
};
|
|
9637
|
-
//# sourceMappingURL=chunk-
|
|
9637
|
+
//# sourceMappingURL=chunk-UHSICXRD.js.map
|