@tangle-network/agent-app 0.60.240 → 0.60.242
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/assistant/index.js +4 -4
- package/dist/chat-react/index.js +3 -3
- package/dist/chat-routes/index.js +2 -2
- package/dist/{chunk-YNM44SQC.js → chunk-5OXWETUE.js} +16 -2
- package/dist/chunk-5OXWETUE.js.map +1 -0
- package/dist/{chunk-DLVMKDFX.js → chunk-FT2Z3AOX.js} +3 -3
- package/dist/{chunk-P2E5TZUZ.js → chunk-PBSFLSQ2.js} +2 -2
- package/dist/{chunk-P2E5TZUZ.js.map → chunk-PBSFLSQ2.js.map} +1 -1
- package/dist/{chunk-VBRUG4N5.js → chunk-PYZYB5V2.js} +1 -1
- package/dist/chunk-PYZYB5V2.js.map +1 -0
- package/dist/{chunk-CI53V6DD.js → chunk-XKRJ275O.js} +2 -2
- package/dist/{chunk-A77IBQ7S.js → chunk-YVMOYCNL.js} +2 -2
- package/dist/harness/index.js +1 -1
- package/dist/rollout/cli.d.ts +3 -0
- package/dist/rollout/cli.js +9 -3
- package/dist/rollout/cli.js.map +1 -1
- package/dist/rollout/d1.js +2 -1
- package/dist/rollout/d1.js.map +1 -1
- package/dist/rollout/index.d.ts +3 -1
- package/dist/rollout/index.js +1 -1
- package/dist/sandbox/index.js +2 -2
- package/dist/sandbox/payload-limits.d.ts +2 -1
- package/dist/skills-placement/index.js +1 -1
- package/dist/web-react/agent-profile-editor.js +3 -3
- package/dist/web-react/index.js +4 -4
- package/package.json +8 -8
- package/dist/chunk-VBRUG4N5.js.map +0 -1
- package/dist/chunk-YNM44SQC.js.map +0 -1
- /package/dist/{chunk-DLVMKDFX.js.map → chunk-FT2Z3AOX.js.map} +0 -0
- /package/dist/{chunk-CI53V6DD.js.map → chunk-XKRJ275O.js.map} +0 -0
- /package/dist/{chunk-A77IBQ7S.js.map → chunk-YVMOYCNL.js.map} +0 -0
package/dist/assistant/index.js
CHANGED
|
@@ -9,14 +9,14 @@ import "../chunk-Y6PRDUFJ.js";
|
|
|
9
9
|
import "../chunk-GEYACSFW.js";
|
|
10
10
|
import {
|
|
11
11
|
ChatComposer
|
|
12
|
-
} from "../chunk-
|
|
12
|
+
} from "../chunk-YVMOYCNL.js";
|
|
13
13
|
import "../chunk-L7MB2LLM.js";
|
|
14
14
|
import "../chunk-ZDPUC6CM.js";
|
|
15
15
|
import "../chunk-OXUBZ5SE.js";
|
|
16
16
|
import "../chunk-E4AY62T2.js";
|
|
17
17
|
import "../chunk-SJWIZT7B.js";
|
|
18
|
-
import "../chunk-
|
|
19
|
-
import "../chunk-
|
|
18
|
+
import "../chunk-FT2Z3AOX.js";
|
|
19
|
+
import "../chunk-XKRJ275O.js";
|
|
20
20
|
import "../chunk-FUZETA6Z.js";
|
|
21
21
|
import {
|
|
22
22
|
ModelPicker
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
import "../chunk-RASGKEAL.js";
|
|
30
30
|
import "../chunk-FQYAJYPW.js";
|
|
31
31
|
import "../chunk-2ZRXJ3NO.js";
|
|
32
|
-
import "../chunk-
|
|
32
|
+
import "../chunk-PYZYB5V2.js";
|
|
33
33
|
import "../chunk-B7CL7ENS.js";
|
|
34
34
|
import "../chunk-PV33JZKV.js";
|
|
35
35
|
import "../chunk-AMUXRAUO.js";
|
package/dist/chat-react/index.js
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ComposerModeControls,
|
|
3
3
|
EntryComposer
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-YVMOYCNL.js";
|
|
5
5
|
import "../chunk-L7MB2LLM.js";
|
|
6
6
|
import "../chunk-OXUBZ5SE.js";
|
|
7
7
|
import "../chunk-SJWIZT7B.js";
|
|
8
|
-
import "../chunk-
|
|
8
|
+
import "../chunk-XKRJ275O.js";
|
|
9
9
|
import "../chunk-FUZETA6Z.js";
|
|
10
10
|
import "../chunk-R4X5474U.js";
|
|
11
11
|
import "../chunk-RASGKEAL.js";
|
|
12
12
|
import "../chunk-2ZRXJ3NO.js";
|
|
13
|
-
import "../chunk-
|
|
13
|
+
import "../chunk-PYZYB5V2.js";
|
|
14
14
|
import "../chunk-AMUXRAUO.js";
|
|
15
15
|
import "../chunk-YHRWZZJN.js";
|
|
16
16
|
import "../chunk-TXD5HXLE.js";
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
flattenHistory,
|
|
44
44
|
readSandboxBinaryBytes,
|
|
45
45
|
statSandboxFileSize
|
|
46
|
-
} from "../chunk-
|
|
46
|
+
} from "../chunk-PBSFLSQ2.js";
|
|
47
47
|
import "../chunk-4LBCTFBP.js";
|
|
48
48
|
import {
|
|
49
49
|
ModelFailoverExhaustedError,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
readUpstreamUnavailableCode,
|
|
54
54
|
runWithModelFailover
|
|
55
55
|
} from "../chunk-ZLX4BA27.js";
|
|
56
|
-
import "../chunk-
|
|
56
|
+
import "../chunk-PYZYB5V2.js";
|
|
57
57
|
import "../chunk-LWSJK546.js";
|
|
58
58
|
import "../chunk-6CKOEPXS.js";
|
|
59
59
|
import "../chunk-6A7MYOUI.js";
|
|
@@ -86,6 +86,7 @@ function assignRolloutArm(turnId, treatmentPct) {
|
|
|
86
86
|
for (let i = 0; i < turnId.length; i++) hash = Math.imul(hash ^ turnId.charCodeAt(i), 16777619);
|
|
87
87
|
return (hash >>> 0) / 2 ** 32 < treatmentPct / 100 ? "treatment" : "control";
|
|
88
88
|
}
|
|
89
|
+
var DEFAULT_MEASUREMENT_TIMEOUT_MS = 5e3;
|
|
89
90
|
async function decideRollout(input) {
|
|
90
91
|
const { plan, fromValue, toValue } = input;
|
|
91
92
|
validateRolloutPlan(plan);
|
|
@@ -117,9 +118,20 @@ async function decideRollout(input) {
|
|
|
117
118
|
if (target > current + 1) return record("refused", [`${toStage.name} skips ${plan.stages.slice(current + 1, target).map((stage) => stage.name).join(", ")}`], null);
|
|
118
119
|
}
|
|
119
120
|
if (!fromStage) return record("allowed", [], null);
|
|
121
|
+
const timeoutMs = input.measurementTimeoutMs ?? DEFAULT_MEASUREMENT_TIMEOUT_MS;
|
|
122
|
+
if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) throw new RangeError("measurementTimeoutMs must be positive");
|
|
123
|
+
const abort = new AbortController();
|
|
124
|
+
let timer;
|
|
120
125
|
let measured;
|
|
121
126
|
try {
|
|
122
|
-
|
|
127
|
+
const deadline = new Promise((_resolve, reject) => {
|
|
128
|
+
timer = setTimeout(() => {
|
|
129
|
+
const error = new Error("measurement timed out");
|
|
130
|
+
abort.abort(error);
|
|
131
|
+
reject(error);
|
|
132
|
+
}, timeoutMs);
|
|
133
|
+
});
|
|
134
|
+
measured = await Promise.race([input.measure(fromStage, abort.signal), deadline]);
|
|
123
135
|
} catch (error) {
|
|
124
136
|
return record(
|
|
125
137
|
narrowing ? "allowed" : "undecided",
|
|
@@ -127,6 +139,8 @@ async function decideRollout(input) {
|
|
|
127
139
|
null,
|
|
128
140
|
{ [fromStage.name]: fromStage.minSamples }
|
|
129
141
|
);
|
|
142
|
+
} finally {
|
|
143
|
+
clearTimeout(timer);
|
|
130
144
|
}
|
|
131
145
|
const lane = measured?.lane ?? fromStage.name;
|
|
132
146
|
const requirements = { ...measured?.sampleRequirements };
|
|
@@ -157,4 +171,4 @@ export {
|
|
|
157
171
|
assignRolloutArm,
|
|
158
172
|
decideRollout
|
|
159
173
|
};
|
|
160
|
-
//# sourceMappingURL=chunk-
|
|
174
|
+
//# sourceMappingURL=chunk-5OXWETUE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/rollout/index.ts"],"sourcesContent":["/**\n * Rollout guard: a staged rollout widens only when the stage it leaves met\n * that stage's kill lines on measured production numbers.\n *\n * WHY. Hospitality's routed lane widened from two QA workspaces to `*` at a\n * first-words p50 of 3.54 s, past kill lines of 2.5 s and 3.0 s\n * (hospitality-agent #382, 2026-10-11). The numbers existed; nothing read them\n * before the list changed. This module is the one place that reads them.\n *\n * THE LIST. A rollout is one comma-separated value, usually a deploy variable\n * such as `HOSPITALITY_ROUTED_BUSINESS_IDS`: workspace ids, `*` for every\n * workspace, `!<id>` to keep one out whatever else matches, and\n * `new-since:<ISO time>` for workspaces created at or after that time.\n * {@link rolloutAdmits} is the reference reading of that grammar.\n *\n * THE RULE ({@link decideRollout}).\n * - Narrowing is always allowed. Holds and widenings measure the current stage.\n * - A widening must land on a declared stage, the next one after the current\n * value's stage, never past it.\n * - The stage being left must have at least `minSamples` measured turns and\n * every kill line met. A missing metric leaves the decision undecided.\n * - Missing samples are undecided; a measured breach names each reason (`first_words_p50_ms 3540 over kill line 2500`).\n *\n * Every decision, allowed, refused or undecided, is returned as one record the caller\n * persists (the CLI appends it to a JSONL ledger and hands it to the\n * config's `record`).\n */\n\n/** A kill line: the measured value must stay at or under `max` and at or over `min`. */\nexport interface RolloutKillLine {\n max?: number\n min?: number\n}\n\nexport interface RolloutStage {\n /** Short name used in refusals and records, e.g. `qa`, `all-but-recenter`. */\n name: string\n /** The exact list value that defines this stage. */\n value: string\n /** Turns the stage must have served, measured, before the rollout may leave it. */\n minSamples: number\n /** Metric name → line. Metric names are the product's, e.g. `first_words_p50_ms`, `failure_rate`. */\n kill: Record<string, RolloutKillLine>\n}\n\nexport interface RolloutPlan {\n /** e.g. `hospitality-routed-chat`. */\n name: string\n /** The deploy variable that carries the list, e.g. `HOSPITALITY_ROUTED_BUSINESS_IDS`. */\n variable: string\n /** In widening order. */\n stages: RolloutStage[]\n}\n\n/** Production numbers for one stage, from the product's own instrument. */\nexport interface StageMeasurement {\n stage: string\n samples: number\n /** Lane name for the stage sample floor; defaults to the stage name. */\n lane?: string\n /** Additional lane sample floors, evaluated as missing evidence rather than breaches. */\n sampleRequirements?: Record<string, { samples: number; minSamples: number }>\n metrics: Record<string, number | null | undefined>\n /** Where the numbers came from (ledger, query, soak), for the record. */\n source?: string\n window?: { from: string; to: string }\n}\n\nexport interface RolloutDecision {\n rollout: string\n variable: string\n from: { value: string; stage: string | null }\n to: { value: string; stage: string | null }\n widens: boolean\n decision: 'allowed' | 'refused' | 'undecided'\n recommendation: 'widen' | 'hold' | 'narrow' | 'refuse'\n turnsNeeded: Record<string, number>\n /** Breaches or evidence deficits, including observations made while narrowing. */\n reasons: string[]\n measured: StageMeasurement | null\n at: string\n}\n\nexport interface ParsedRolloutList {\n all: boolean\n ids: ReadonlySet<string>\n excluded: ReadonlySet<string>\n /** Epoch ms of each `new-since:` entry. */\n newSince: readonly number[]\n}\n\nexport function parseRolloutList(value: string | null | undefined): ParsedRolloutList {\n const ids = new Set<string>()\n const excluded = new Set<string>()\n const newSince: number[] = []\n let all = false\n for (const raw of (value ?? '').split(',')) {\n const entry = raw.trim()\n if (!entry) continue\n if (entry === '*') all = true\n else if (entry.startsWith('!')) excluded.add(entry.slice(1).trim())\n else if (entry.startsWith('new-since:')) {\n const at = Date.parse(entry.slice('new-since:'.length))\n if (!Number.isFinite(at)) throw new Error(`rollout list entry ${entry} is not a valid time`)\n newSince.push(at)\n } else ids.add(entry)\n }\n return { all, ids, excluded, newSince }\n}\n\n/** Whether a list admits one workspace. `createdAt` (epoch ms) is needed only for `new-since:` entries. */\nexport function rolloutAdmits(value: string | ParsedRolloutList, workspace: { id: string; createdAt?: number }): boolean {\n const list = typeof value === 'string' ? parseRolloutList(value) : value\n if (list.excluded.has(workspace.id)) return false\n if (list.all || list.ids.has(workspace.id)) return true\n return workspace.createdAt !== undefined && list.newSince.some(at => workspace.createdAt! >= at)\n}\n\n/**\n * Whether `to` may admit a workspace `from` does not. Conservative: a change it\n * cannot prove narrower counts as a widening.\n */\nexport function rolloutWidens(fromValue: string, toValue: string): boolean {\n const from = parseRolloutList(fromValue)\n const to = parseRolloutList(toValue)\n if (to.all) {\n if (!from.all) return true\n // Under `*` on both sides, only a dropped exclusion widens.\n return [...from.excluded].some(id => !to.excluded.has(id))\n }\n if ([...to.ids].some(id => !rolloutAdmits(from, { id }))) return true\n // An id `from` admitted only because it was listed, which `to` now excludes, narrows; nothing else here widens.\n const earliest = (list: ParsedRolloutList) => list.newSince.length ? Math.min(...list.newSince) : Infinity\n if (to.newSince.length && !from.all && earliest(to) < earliest(from)) return true\n return false\n}\n\n/** Canonical form for matching a value to a stage: entries trimmed and sorted. */\nexport function normalizeRolloutValue(value: string): string {\n return value.split(',').map(entry => entry.trim()).filter(Boolean).sort().join(',')\n}\n\nfunction stageOf(plan: RolloutPlan, value: string): RolloutStage | null {\n const key = normalizeRolloutValue(value)\n return plan.stages.find(stage => normalizeRolloutValue(stage.value) === key) ?? null\n}\n\n/** Finite measured breaches only. Missing observations and sample floors are evidence deficits. */\nexport function killLineBreaches(stage: RolloutStage, measured: StageMeasurement | null): string[] {\n if (!measured || measured.stage !== stage.name) return []\n return Object.entries(stage.kill).flatMap(([metric, line]) => {\n const value = measured.metrics[metric]\n if (typeof value !== 'number' || !Number.isFinite(value)) return []\n return [\n ...(line.max !== undefined && value > line.max ? [`${metric} ${value} over kill line ${line.max}`] : []),\n ...(line.min !== undefined && value < line.min && !metric.endsWith('samples') ? [`${metric} ${value} under kill line ${line.min}`] : []),\n ]\n })\n}\n\nexport function validateRolloutPlan(plan: RolloutPlan): void {\n if (!plan.name || !plan.variable) throw new Error('a rollout plan needs a name and a variable')\n if (!plan.stages.length) throw new Error(`rollout ${plan.name} declares no stages`)\n const names = new Set<string>()\n const values = new Set<string>()\n for (const stage of plan.stages) {\n if (names.has(stage.name)) throw new Error(`rollout ${plan.name} repeats stage ${stage.name}`)\n names.add(stage.name)\n const value = normalizeRolloutValue(stage.value)\n if (values.has(value)) throw new Error(`rollout ${plan.name} gives two stages the value ${stage.value}`)\n values.add(value)\n parseRolloutList(stage.value)\n if (!Number.isInteger(stage.minSamples) || stage.minSamples < 1) {\n throw new Error(`stage ${stage.name} needs minSamples of at least 1`)\n }\n if (!Object.keys(stage.kill).length) throw new Error(`stage ${stage.name} declares no kill lines`)\n }\n for (let index = 1; index < plan.stages.length; index++) {\n const previous = plan.stages[index - 1]!\n const stage = plan.stages[index]!\n if (!rolloutWidens(previous.value, stage.value)) {\n throw new Error(`stage ${stage.name} does not widen stage ${previous.name}`)\n }\n }\n}\n\n/** Stable per-turn percentage assignment; the product records the returned arm on its row and trace. */\nexport function assignRolloutArm(turnId: string, treatmentPct: number): 'control' | 'treatment' {\n if (!Number.isFinite(treatmentPct) || treatmentPct < 0 || treatmentPct > 100) {\n throw new RangeError('treatmentPct must be between 0 and 100')\n }\n let hash = 2166136261\n for (let i = 0; i < turnId.length; i++) hash = Math.imul(hash ^ turnId.charCodeAt(i), 16777619)\n return (hash >>> 0) / 2 ** 32 < treatmentPct / 100 ? 'treatment' : 'control'\n}\n\nconst DEFAULT_MEASUREMENT_TIMEOUT_MS = 5_000\n\n/** Measure the current stage for widening, holding and narrowing. Narrowing always remains available. */\nexport async function decideRollout(input: {\n plan: RolloutPlan\n fromValue: string\n toValue: string\n measure(stage: RolloutStage, signal?: AbortSignal): Promise<StageMeasurement | null>\n /** Bound observation even when the product instrument ignores cancellation. */\n measurementTimeoutMs?: number\n now?: () => Date\n}): Promise<RolloutDecision> {\n const { plan, fromValue, toValue } = input\n validateRolloutPlan(plan)\n const fromStage = stageOf(plan, fromValue)\n const toStage = stageOf(plan, toValue)\n const widens = rolloutWidens(fromValue, toValue)\n const narrowing = !widens && normalizeRolloutValue(fromValue) !== normalizeRolloutValue(toValue)\n const record = (decision: RolloutDecision['decision'], reasons: string[], measured: StageMeasurement | null,\n turnsNeeded: Record<string, number> = {}, breach = false): RolloutDecision => ({\n rollout: plan.name, variable: plan.variable,\n from: { value: fromValue, stage: fromStage?.name ?? null },\n to: { value: toValue, stage: toStage?.name ?? null }, widens, decision,\n recommendation: narrowing || breach ? 'narrow' : decision === 'refused' ? 'refuse' : decision === 'undecided' ? 'hold' : widens ? 'widen' : 'hold',\n turnsNeeded, reasons, measured, at: (input.now?.() ?? new Date()).toISOString(),\n })\n if (widens) {\n if (!toStage) return record('refused', [`${toValue} is not a declared stage of ${plan.name}`], null)\n const target = plan.stages.indexOf(toStage)\n if (!fromStage) {\n const empty = !normalizeRolloutValue(fromValue)\n return empty && target === 0 ? record('allowed', [], null)\n : record('refused', [`the current value ${fromValue || '(empty)'} is not a declared stage of ${plan.name}`], null)\n }\n const current = plan.stages.indexOf(fromStage)\n if (target > current + 1) return record('refused', [`${toStage.name} skips ${plan.stages.slice(current + 1, target).map(stage => stage.name).join(', ')}`], null)\n }\n if (!fromStage) return record('allowed', [], null)\n const timeoutMs = input.measurementTimeoutMs ?? DEFAULT_MEASUREMENT_TIMEOUT_MS\n if (!Number.isFinite(timeoutMs) || timeoutMs <= 0) throw new RangeError('measurementTimeoutMs must be positive')\n const abort = new AbortController()\n let timer: ReturnType<typeof setTimeout> | undefined\n let measured: StageMeasurement | null\n try {\n const deadline = new Promise<never>((_resolve, reject) => {\n timer = setTimeout(() => {\n const error = new Error('measurement timed out')\n abort.abort(error)\n reject(error)\n }, timeoutMs)\n })\n measured = await Promise.race([input.measure(fromStage, abort.signal), deadline])\n }\n catch (error) {\n return record(narrowing ? 'allowed' : 'undecided', [`measuring stage ${fromStage.name} failed: ${error instanceof Error ? error.message : String(error)}`], null,\n { [fromStage.name]: fromStage.minSamples })\n } finally {\n clearTimeout(timer)\n }\n const lane = measured?.lane ?? fromStage.name\n const requirements = { ...measured?.sampleRequirements }\n requirements[lane] = {\n samples: Math.min(measured?.samples ?? 0, requirements[lane]?.samples ?? Infinity),\n minSamples: Math.max(fromStage.minSamples, requirements[lane]?.minSamples ?? 0),\n }\n // Older product configs expressed control floors as *_samples minimum kill lines.\n for (const [metric, line] of Object.entries(fromStage.kill)) {\n if (metric.endsWith('samples') && line.min !== undefined) {\n requirements[metric] = { samples: measured?.metrics[metric] ?? 0, minSamples: line.min }\n }\n }\n const turnsNeeded = Object.fromEntries(Object.entries(requirements)\n .map(([lane, floor]) => [lane, Math.max(0, Math.ceil(floor.minSamples - (Number.isFinite(floor.samples) ? floor.samples : 0)))] as const)\n .filter(([, needed]) => needed > 0))\n const measuredStage = measured?.stage === fromStage.name\n const breaches = killLineBreaches(fromStage, measured)\n const missing = !measuredStage ? [`stage ${fromStage.name} has no matching measurement`]\n : Object.keys(fromStage.kill).filter(metric => !Number.isFinite(measured!.metrics[metric])).map(metric => `${metric} was not measured`)\n const reasons = [...breaches, ...missing, ...Object.entries(turnsNeeded).map(([lane, needed]) => `${lane} needs ${needed} more turns`)]\n return record(narrowing ? 'allowed' : breaches.length ? 'refused' : reasons.length ? 'undecided' : 'allowed', reasons, measured, turnsNeeded, breaches.length > 0)\n}\n"],"mappings":";AA2FO,SAAS,iBAAiB,OAAqD;AACpF,QAAM,MAAM,oBAAI,IAAY;AAC5B,QAAM,WAAW,oBAAI,IAAY;AACjC,QAAM,WAAqB,CAAC;AAC5B,MAAI,MAAM;AACV,aAAW,QAAQ,SAAS,IAAI,MAAM,GAAG,GAAG;AAC1C,UAAM,QAAQ,IAAI,KAAK;AACvB,QAAI,CAAC,MAAO;AACZ,QAAI,UAAU,IAAK,OAAM;AAAA,aAChB,MAAM,WAAW,GAAG,EAAG,UAAS,IAAI,MAAM,MAAM,CAAC,EAAE,KAAK,CAAC;AAAA,aACzD,MAAM,WAAW,YAAY,GAAG;AACvC,YAAM,KAAK,KAAK,MAAM,MAAM,MAAM,aAAa,MAAM,CAAC;AACtD,UAAI,CAAC,OAAO,SAAS,EAAE,EAAG,OAAM,IAAI,MAAM,sBAAsB,KAAK,sBAAsB;AAC3F,eAAS,KAAK,EAAE;AAAA,IAClB,MAAO,KAAI,IAAI,KAAK;AAAA,EACtB;AACA,SAAO,EAAE,KAAK,KAAK,UAAU,SAAS;AACxC;AAGO,SAAS,cAAc,OAAmC,WAAwD;AACvH,QAAM,OAAO,OAAO,UAAU,WAAW,iBAAiB,KAAK,IAAI;AACnE,MAAI,KAAK,SAAS,IAAI,UAAU,EAAE,EAAG,QAAO;AAC5C,MAAI,KAAK,OAAO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AU,CAAC,gBAAgB,CAAC,SAAS,UAAU,IAAI,8BAA8B,IACnF,OAAO,KAAK,UAAU,IAAI,EAAE,OAAO,YAAU,CAAC,OAAO,SAAS,SAAU,QAAQ,MAAM,CAAC,CAAC,EAAE,IAAI,YAAU,GAAG,MAAM,mBAAmB;AACxI,QAAM,UAAU,CAAC,GAAG,UAAU,GAAG,SAAS,GAAG,OAAO,QAAQ,WAAW,EAAE,IAAI,CAAC,CAACA,OAAM,MAAM,MAAM,GAAGA,KAAI,UAAU,MAAM,aAAa,CAAC;AACtI,SAAO,OAAO,YAAY,YAAY,SAAS,SAAS,YAAY,QAAQ,SAAS,cAAc,WAAW,SAAS,UAAU,aAAa,SAAS,SAAS,CAAC;AACnK;","names":["reasons","measured","turnsNeeded","lane"]}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
HarnessPicker,
|
|
3
3
|
filterAcceptedFiles
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-XKRJ275O.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-PYZYB5V2.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-FT2Z3AOX.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
DEFAULT_HARNESS,
|
|
14
14
|
assertHarnessModelCompatible,
|
|
15
15
|
isHarness
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PYZYB5V2.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-PBSFLSQ2.js.map
|