teamtrail 0.61.2 → 0.64.1
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/cli.js
CHANGED
|
@@ -2320,20 +2320,20 @@ var require_resolve = __commonJS({
|
|
|
2320
2320
|
return false;
|
|
2321
2321
|
}
|
|
2322
2322
|
function countKeys(schema) {
|
|
2323
|
-
let
|
|
2323
|
+
let count3 = 0;
|
|
2324
2324
|
for (const key in schema) {
|
|
2325
2325
|
if (key === "$ref")
|
|
2326
2326
|
return Infinity;
|
|
2327
|
-
|
|
2327
|
+
count3++;
|
|
2328
2328
|
if (SIMPLE_INLINED.has(key))
|
|
2329
2329
|
continue;
|
|
2330
2330
|
if (typeof schema[key] == "object") {
|
|
2331
|
-
(0, util_1.eachItem)(schema[key], (sch) =>
|
|
2331
|
+
(0, util_1.eachItem)(schema[key], (sch) => count3 += countKeys(sch));
|
|
2332
2332
|
}
|
|
2333
|
-
if (
|
|
2333
|
+
if (count3 === Infinity)
|
|
2334
2334
|
return Infinity;
|
|
2335
2335
|
}
|
|
2336
|
-
return
|
|
2336
|
+
return count3;
|
|
2337
2337
|
}
|
|
2338
2338
|
function getFullPath(resolver, id = "", normalize) {
|
|
2339
2339
|
if (normalize !== false)
|
|
@@ -5871,8 +5871,8 @@ var require_contains = __commonJS({
|
|
|
5871
5871
|
cxt.result(valid2, () => cxt.reset());
|
|
5872
5872
|
function validateItemsWithCount() {
|
|
5873
5873
|
const schValid = gen.name("_valid");
|
|
5874
|
-
const
|
|
5875
|
-
validateItems(schValid, () => gen.if(schValid, () => checkLimits(
|
|
5874
|
+
const count3 = gen.let("count", 0);
|
|
5875
|
+
validateItems(schValid, () => gen.if(schValid, () => checkLimits(count3)));
|
|
5876
5876
|
}
|
|
5877
5877
|
function validateItems(_valid, block3) {
|
|
5878
5878
|
gen.forRange("i", 0, len, (i) => {
|
|
@@ -5885,16 +5885,16 @@ var require_contains = __commonJS({
|
|
|
5885
5885
|
block3();
|
|
5886
5886
|
});
|
|
5887
5887
|
}
|
|
5888
|
-
function checkLimits(
|
|
5889
|
-
gen.code((0, codegen_1._)`${
|
|
5888
|
+
function checkLimits(count3) {
|
|
5889
|
+
gen.code((0, codegen_1._)`${count3}++`);
|
|
5890
5890
|
if (max === void 0) {
|
|
5891
|
-
gen.if((0, codegen_1._)`${
|
|
5891
|
+
gen.if((0, codegen_1._)`${count3} >= ${min}`, () => gen.assign(valid2, true).break());
|
|
5892
5892
|
} else {
|
|
5893
|
-
gen.if((0, codegen_1._)`${
|
|
5893
|
+
gen.if((0, codegen_1._)`${count3} > ${max}`, () => gen.assign(valid2, false).break());
|
|
5894
5894
|
if (min === 1)
|
|
5895
5895
|
gen.assign(valid2, true);
|
|
5896
5896
|
else
|
|
5897
|
-
gen.if((0, codegen_1._)`${
|
|
5897
|
+
gen.if((0, codegen_1._)`${count3} >= ${min}`, () => gen.assign(valid2, true));
|
|
5898
5898
|
}
|
|
5899
5899
|
}
|
|
5900
5900
|
}
|
|
@@ -7869,6 +7869,35 @@ function parseMapBody(md4) {
|
|
|
7869
7869
|
return out;
|
|
7870
7870
|
}
|
|
7871
7871
|
|
|
7872
|
+
// ../core/src/model/trailTextLimits.ts
|
|
7873
|
+
var TRAIL_TEXT_LIMITS = {
|
|
7874
|
+
/** Characters of the destination. */
|
|
7875
|
+
destination: 1e4,
|
|
7876
|
+
/** Characters of the notes. */
|
|
7877
|
+
notes: 5e4,
|
|
7878
|
+
/** Assumptions a trail starts with. */
|
|
7879
|
+
assumptions: 100,
|
|
7880
|
+
/** Characters of one assumption. */
|
|
7881
|
+
assumption: 500
|
|
7882
|
+
};
|
|
7883
|
+
|
|
7884
|
+
// ../core/src/model/trailTextProblem.ts
|
|
7885
|
+
var count = (n) => n.toLocaleString("en-US");
|
|
7886
|
+
function trailTextProblem(t) {
|
|
7887
|
+
const L = TRAIL_TEXT_LIMITS;
|
|
7888
|
+
const destination = t.destination?.trim().length ?? 0;
|
|
7889
|
+
if (destination > L.destination)
|
|
7890
|
+
return `The destination is too long: ${count(destination)} characters, at most ${count(L.destination)}.`;
|
|
7891
|
+
const notes = t.notes?.trim().length ?? 0;
|
|
7892
|
+
if (notes > L.notes) return `The notes are too long: ${count(notes)} characters, at most ${count(L.notes)}.`;
|
|
7893
|
+
const assumptions = t.assumptions ?? [];
|
|
7894
|
+
if (assumptions.length > L.assumptions)
|
|
7895
|
+
return `Too many assumptions: ${count(assumptions.length)}, at most ${L.assumptions}. Each line is one assumption.`;
|
|
7896
|
+
const long = assumptions.findIndex((a) => a.trim().length > L.assumption);
|
|
7897
|
+
if (long >= 0) return `Assumption ${long + 1} is too long: at most ${L.assumption} characters on one line.`;
|
|
7898
|
+
return void 0;
|
|
7899
|
+
}
|
|
7900
|
+
|
|
7872
7901
|
// ../core/src/model/steps.ts
|
|
7873
7902
|
var STEPS = {
|
|
7874
7903
|
chart: ["Name destination", "Find frontier", "Create trail", "Create tickets + wire blocking", "Fire research"],
|
|
@@ -7877,8 +7906,15 @@ var STEPS = {
|
|
|
7877
7906
|
};
|
|
7878
7907
|
var stepTag = (mode, n) => `${mode[0].toUpperCase()}${mode.slice(1)} ${n}/${STEPS[mode].length}`;
|
|
7879
7908
|
|
|
7909
|
+
// ../core/src/planning/operations/operationError.ts
|
|
7910
|
+
var OperationError = class extends Error {
|
|
7911
|
+
};
|
|
7912
|
+
|
|
7880
7913
|
// ../core/src/planning/operations/chart.ts
|
|
7881
7914
|
async function chartMap(adapter, input2, hooks = {}) {
|
|
7915
|
+
const { destination, notes, assumptions } = input2.sections;
|
|
7916
|
+
const tooLong = trailTextProblem({ destination, notes, assumptions: assumptions?.map((a) => a.text) });
|
|
7917
|
+
if (tooLong) throw new OperationError(tooLong);
|
|
7882
7918
|
const plan2 = withMode(input2, input2.mode ?? DEFAULT_MAP_MODE);
|
|
7883
7919
|
const map2 = await adapter.createMap({
|
|
7884
7920
|
title: plan2.title,
|
|
@@ -7922,10 +7958,6 @@ function withMode(plan2, mode) {
|
|
|
7922
7958
|
};
|
|
7923
7959
|
}
|
|
7924
7960
|
|
|
7925
|
-
// ../core/src/planning/operations/operationError.ts
|
|
7926
|
-
var OperationError = class extends Error {
|
|
7927
|
-
};
|
|
7928
|
-
|
|
7929
7961
|
// ../core/src/planning/operations/assertNotArchived.ts
|
|
7930
7962
|
function assertNotArchived(map2) {
|
|
7931
7963
|
if (map2.archived)
|
|
@@ -11044,11 +11076,11 @@ function byScore(a, b) {
|
|
|
11044
11076
|
return b.score - a.score || a.since - b.since || a.id.localeCompare(b.id);
|
|
11045
11077
|
}
|
|
11046
11078
|
function fewerQuestions(items, waitedOn) {
|
|
11047
|
-
const
|
|
11079
|
+
const count3 = /* @__PURE__ */ new Map();
|
|
11048
11080
|
const key = (i) => `${i.mapId}\0${i.agent}`;
|
|
11049
|
-
for (const i of items) if (i.kind === "question")
|
|
11081
|
+
for (const i of items) if (i.kind === "question") count3.set(key(i), (count3.get(key(i)) ?? 0) + 1);
|
|
11050
11082
|
return items.map((i) => {
|
|
11051
|
-
const n = i.kind === "question" ?
|
|
11083
|
+
const n = i.kind === "question" ? count3.get(key(i)) ?? 1 : 1;
|
|
11052
11084
|
if (n < 2 || waitedOn.has(i.id)) return i;
|
|
11053
11085
|
return {
|
|
11054
11086
|
...i,
|
|
@@ -13619,6 +13651,17 @@ var SettingsLedger = class {
|
|
|
13619
13651
|
}
|
|
13620
13652
|
};
|
|
13621
13653
|
|
|
13654
|
+
// ../core/src/adapters/remote/mapBodyFits.ts
|
|
13655
|
+
function assertMapBodyFits(map2, o) {
|
|
13656
|
+
if (o.limit === void 0) return;
|
|
13657
|
+
const length = mapBody(map2).length;
|
|
13658
|
+
if (length <= o.limit) return;
|
|
13659
|
+
const n = (x) => x.toLocaleString("en-US");
|
|
13660
|
+
throw new OperationError(
|
|
13661
|
+
`This trail is too long for ${o.tracker}: ${n(length)} characters with its destination, notes and assumptions, at most ${n(o.limit)}. Shorten the notes.`
|
|
13662
|
+
);
|
|
13663
|
+
}
|
|
13664
|
+
|
|
13622
13665
|
// ../core/src/adapters/remote/sync/fingerprint.ts
|
|
13623
13666
|
var roundtrip = (s) => parseMapBody(serializeMapBody(s));
|
|
13624
13667
|
function fingerprint(e) {
|
|
@@ -14191,8 +14234,11 @@ var SyncedEdits = class extends SyncedWriter {
|
|
|
14191
14234
|
// ../core/src/adapters/remote/sync/syncedAdapter.ts
|
|
14192
14235
|
var MAX_DECISION = 999999999;
|
|
14193
14236
|
var SyncedAdapter = class extends SyncedEdits {
|
|
14237
|
+
/** The most characters the tracker takes in an issue body; undefined: no limit Teamtrail knows of. */
|
|
14238
|
+
mapBodyLimit = void 0;
|
|
14194
14239
|
lastDecision = 0;
|
|
14195
14240
|
async createMap(input2) {
|
|
14241
|
+
assertMapBodyFits(input2, { limit: this.mapBodyLimit, tracker: this.label });
|
|
14196
14242
|
let map2;
|
|
14197
14243
|
try {
|
|
14198
14244
|
map2 = await this.remoteCreateMap({
|
|
@@ -14229,7 +14275,11 @@ var SyncedAdapter = class extends SyncedEdits {
|
|
|
14229
14275
|
await this.change(
|
|
14230
14276
|
mapId,
|
|
14231
14277
|
"trail sections",
|
|
14232
|
-
(e) =>
|
|
14278
|
+
(e) => {
|
|
14279
|
+
const sections = roundtrip({ ...e.snap.map.sections, ...patch });
|
|
14280
|
+
assertMapBodyFits({ ...e.snap.map, sections }, { limit: this.mapBodyLimit, tracker: this.label });
|
|
14281
|
+
return { kind: "sections", sections };
|
|
14282
|
+
},
|
|
14233
14283
|
{
|
|
14234
14284
|
kind: "map.updated",
|
|
14235
14285
|
mapId,
|
|
@@ -14680,6 +14730,8 @@ async function setIssueLabel(gh, issue3, name2, on) {
|
|
|
14680
14730
|
var GitHubAdapter = class extends SyncedAdapter {
|
|
14681
14731
|
kind = "github";
|
|
14682
14732
|
label = "GitHub Issues";
|
|
14733
|
+
/** GitHub refuses an issue body over 65,536 characters. */
|
|
14734
|
+
mapBodyLimit = 65536;
|
|
14683
14735
|
location;
|
|
14684
14736
|
gh;
|
|
14685
14737
|
/** Issue number → REST id (sub-issue and dependency endpoints take ids, not numbers). */
|
|
@@ -20960,9 +21012,9 @@ function judgeFile(root, item2, strict, out) {
|
|
|
20960
21012
|
}
|
|
20961
21013
|
function removedTrail(root, mapId) {
|
|
20962
21014
|
const entries2 = readStateRecord(root, mapId).entries;
|
|
20963
|
-
const
|
|
21015
|
+
const count3 = (kind2) => Object.keys(entries2).filter((k) => k.startsWith(`${kind2}:`)).length;
|
|
20964
21016
|
const item2 = stateItemOf(`${mapId}/map.md`);
|
|
20965
|
-
const trail2 = { tickets:
|
|
21017
|
+
const trail2 = { tickets: count3("ticket"), decisions: count3("decision") };
|
|
20966
21018
|
return { ...item2, fields: ["removed"], counts: entries2.map?.f, signed: true, trail: trail2 };
|
|
20967
21019
|
}
|
|
20968
21020
|
function outsideChanges(root) {
|
|
@@ -22137,19 +22189,19 @@ var TEST_PATTERNS = [
|
|
|
22137
22189
|
|
|
22138
22190
|
// ../core/src/checkGuard/testFindings.ts
|
|
22139
22191
|
var TEST_PATH = /(^|\/)(tests?|__tests__|specs?|e2e)\/|[._-](test|spec)s?\.[^/]+$|(^|\/)test_[^/]*\.py$|Tests?\.(java|kt)$|\.rs$/;
|
|
22140
|
-
var
|
|
22192
|
+
var count2 = (text11, r) => text11 && r ? (text11.match(r) ?? []).length : 0;
|
|
22141
22193
|
var tests = (n) => `${n} test${n === 1 ? "" : "s"}`;
|
|
22142
22194
|
function weakened(file9, p, before, after) {
|
|
22143
|
-
const had =
|
|
22195
|
+
const had = count2(before, p.test);
|
|
22144
22196
|
if (after === null)
|
|
22145
22197
|
return had ? [{ kind: "deleted-tests", file: file9, text: `${file9} deleted (${tests(had)})` }] : [];
|
|
22146
22198
|
if (after === void 0) return [];
|
|
22147
22199
|
const out = [];
|
|
22148
|
-
const removed = had -
|
|
22200
|
+
const removed = had - count2(after, p.test);
|
|
22149
22201
|
if (removed > 0) out.push({ kind: "removed-tests", file: file9, text: `${tests(removed)} removed from ${file9}` });
|
|
22150
|
-
const skipped =
|
|
22202
|
+
const skipped = count2(after, p.skip) - count2(before, p.skip);
|
|
22151
22203
|
if (skipped > 0) out.push({ kind: "skipped", file: file9, text: `${tests(skipped)} skipped in ${file9}` });
|
|
22152
|
-
const focused =
|
|
22204
|
+
const focused = count2(after, p.focus) - count2(before, p.focus);
|
|
22153
22205
|
if (focused > 0) out.push({ kind: "focused", file: file9, text: `${tests(focused)} focused with .only in ${file9}` });
|
|
22154
22206
|
return out;
|
|
22155
22207
|
}
|
|
@@ -33075,7 +33127,7 @@ function parseArgs(argv2) {
|
|
|
33075
33127
|
process.exit(0);
|
|
33076
33128
|
case "-v":
|
|
33077
33129
|
case "--version":
|
|
33078
|
-
process.stdout.write(`${"0.
|
|
33130
|
+
process.stdout.write(`${"0.64.1"}
|
|
33079
33131
|
`);
|
|
33080
33132
|
process.exit(0);
|
|
33081
33133
|
case "--no-open":
|
|
@@ -34302,7 +34354,7 @@ function mcpHttpOptions(o, root) {
|
|
|
34302
34354
|
allowHosts: o.allowHosts,
|
|
34303
34355
|
leaseMinutes: o.leaseMinutes,
|
|
34304
34356
|
noRegister: o.noRegister,
|
|
34305
|
-
version: "0.
|
|
34357
|
+
version: "0.64.1"
|
|
34306
34358
|
};
|
|
34307
34359
|
}
|
|
34308
34360
|
|
|
@@ -36362,14 +36414,14 @@ function codePointLength(str14) {
|
|
|
36362
36414
|
const units = str14.length;
|
|
36363
36415
|
if (!highSurrogate.test(str14))
|
|
36364
36416
|
return units;
|
|
36365
|
-
let
|
|
36417
|
+
let count3 = units;
|
|
36366
36418
|
for (let i = 0; i < units - 1; i++) {
|
|
36367
36419
|
if ((str14.charCodeAt(i) & 64512) === 55296 && (str14.charCodeAt(i + 1) & 64512) === 56320) {
|
|
36368
|
-
|
|
36420
|
+
count3--;
|
|
36369
36421
|
i++;
|
|
36370
36422
|
}
|
|
36371
36423
|
}
|
|
36372
|
-
return
|
|
36424
|
+
return count3;
|
|
36373
36425
|
}
|
|
36374
36426
|
function getLengthableOrigin(input2) {
|
|
36375
36427
|
if (Array.isArray(input2))
|
|
@@ -44876,7 +44928,7 @@ import { randomUUID as randomUUID4 } from "node:crypto";
|
|
|
44876
44928
|
import path134 from "node:path";
|
|
44877
44929
|
|
|
44878
44930
|
// src/ownVersion.ts
|
|
44879
|
-
var OWN_VERSION = true ? "0.
|
|
44931
|
+
var OWN_VERSION = true ? "0.64.1" : void 0;
|
|
44880
44932
|
|
|
44881
44933
|
// src/mcp/trail/agentLeases.ts
|
|
44882
44934
|
var AgentLeases = class {
|
|
@@ -46662,7 +46714,7 @@ function ticketView(snap, t, records = []) {
|
|
|
46662
46714
|
}
|
|
46663
46715
|
function trailView(snap, docs, records, keyOf11) {
|
|
46664
46716
|
const states = deriveStates(snap.tickets, snap.map.mode);
|
|
46665
|
-
const
|
|
46717
|
+
const count3 = (st) => snap.tickets.filter((t) => states.get(t.id) === st).length;
|
|
46666
46718
|
const mine2 = docs.filter((d) => d.session.mapId === snap.map.id);
|
|
46667
46719
|
const usage = mine2.map((d) => d.session.usage).filter((u) => !!u);
|
|
46668
46720
|
return {
|
|
@@ -46671,20 +46723,20 @@ function trailView(snap, docs, records, keyOf11) {
|
|
|
46671
46723
|
title: snap.map.title,
|
|
46672
46724
|
mode: snap.map.mode,
|
|
46673
46725
|
destination: snap.map.sections.destination,
|
|
46674
|
-
progress: `${
|
|
46726
|
+
progress: `${count3("decided")}/${snap.tickets.filter((t) => states.get(t.id) !== "out-of-scope").length} decided`,
|
|
46675
46727
|
counts: {
|
|
46676
|
-
decided:
|
|
46677
|
-
claimed:
|
|
46678
|
-
ready:
|
|
46679
|
-
blocked:
|
|
46680
|
-
parked:
|
|
46681
|
-
outOfScope:
|
|
46682
|
-
...snap.map.verification ||
|
|
46728
|
+
decided: count3("decided"),
|
|
46729
|
+
claimed: count3("claimed"),
|
|
46730
|
+
ready: count3("frontier"),
|
|
46731
|
+
blocked: count3("blocked"),
|
|
46732
|
+
parked: count3("parked"),
|
|
46733
|
+
outOfScope: count3("out-of-scope"),
|
|
46734
|
+
...snap.map.verification || count3("verifying") || count3("rework") || count3("held") ? { verifying: count3("verifying"), rework: count3("rework"), waitingOnHuman: count3("held") } : {}
|
|
46683
46735
|
},
|
|
46684
46736
|
ready: snap.tickets.filter((t) => states.get(t.id) === "frontier").map((t) => ({ key: t.key, title: t.title, type: t.type, attention: attention(t) })),
|
|
46685
46737
|
claimed: snap.tickets.filter((t) => states.get(t.id) === "claimed").map((t) => ({ key: t.key, title: t.title, assignee: t.assignee })),
|
|
46686
46738
|
blocked: snap.tickets.filter((t) => states.get(t.id) === "blocked").map((t) => ({ key: t.key, title: t.title })),
|
|
46687
|
-
...snap.map.verification ||
|
|
46739
|
+
...snap.map.verification || count3("verifying") || count3("rework") || count3("held") ? {
|
|
46688
46740
|
verification: {
|
|
46689
46741
|
level: snap.map.verification ?? "off",
|
|
46690
46742
|
verifying: snap.tickets.filter((t) => states.get(t.id) === "verifying").map((t) => t.key),
|
|
@@ -46731,12 +46783,12 @@ function noTicketReason(snap, discovery) {
|
|
|
46731
46783
|
if (discovery.gate)
|
|
46732
46784
|
return `No ready ${discovery.gate.join(", ")} ticket, and implementation tickets wait for the discovery brief: ${discovery.next}`;
|
|
46733
46785
|
const states = deriveStates(snap.tickets, snap.map.mode);
|
|
46734
|
-
const
|
|
46786
|
+
const count3 = (state) => open4.filter((x) => states.get(x.id) === state).length;
|
|
46735
46787
|
const waiting2 = [
|
|
46736
|
-
{ label: "verifying", n:
|
|
46737
|
-
{ label: "waiting on the human", n:
|
|
46788
|
+
{ label: "verifying", n: count3("verifying") },
|
|
46789
|
+
{ label: "waiting on the human", n: count3("held") }
|
|
46738
46790
|
].filter((w) => w.n > 0).map((w) => `, ${w.n} ${w.label}`).join("");
|
|
46739
|
-
return `No ready ticket: ${
|
|
46791
|
+
return `No ready ticket: ${count3("claimed")} claimed, ${count3("blocked")} blocked, ${count3("parked")} parked${waiting2}.`;
|
|
46740
46792
|
}
|
|
46741
46793
|
|
|
46742
46794
|
// src/mcp/trail/ticketOps.ts
|
|
@@ -47781,6 +47833,8 @@ async function resumeTrail(ctx, trailRef) {
|
|
|
47781
47833
|
};
|
|
47782
47834
|
}
|
|
47783
47835
|
async function updateTrail(ctx, input2) {
|
|
47836
|
+
const tooLong = trailTextProblem({ destination: input2.destination, notes: input2.notes });
|
|
47837
|
+
if (tooLong) throw new OperationError(tooLong);
|
|
47784
47838
|
const snap = await ctx.resolveTrail(input2.trail);
|
|
47785
47839
|
const requests = await settingRequests(ctx, snap, input2);
|
|
47786
47840
|
const trail2 = await applyUpdate(ctx, { snap, input: { ...input2, mode: void 0, destination: void 0 } });
|
|
@@ -55164,7 +55218,7 @@ var ExperimentalMcpServerTasks = class {
|
|
|
55164
55218
|
|
|
55165
55219
|
// ../../node_modules/@modelcontextprotocol/sdk/dist/esm/server/mcp.js
|
|
55166
55220
|
function toolInputElementCount(value, max) {
|
|
55167
|
-
let
|
|
55221
|
+
let count3 = 0;
|
|
55168
55222
|
const stack = [value];
|
|
55169
55223
|
while (stack.length > 0) {
|
|
55170
55224
|
const node3 = stack.pop();
|
|
@@ -55172,8 +55226,8 @@ function toolInputElementCount(value, max) {
|
|
|
55172
55226
|
continue;
|
|
55173
55227
|
if (Array.isArray(node3)) {
|
|
55174
55228
|
for (const child2 of node3) {
|
|
55175
|
-
if (++
|
|
55176
|
-
return
|
|
55229
|
+
if (++count3 > max)
|
|
55230
|
+
return count3;
|
|
55177
55231
|
if (child2 !== null && typeof child2 === "object")
|
|
55178
55232
|
stack.push(child2);
|
|
55179
55233
|
}
|
|
@@ -55181,15 +55235,15 @@ function toolInputElementCount(value, max) {
|
|
|
55181
55235
|
for (const key in node3) {
|
|
55182
55236
|
if (!Object.prototype.hasOwnProperty.call(node3, key))
|
|
55183
55237
|
continue;
|
|
55184
|
-
if (++
|
|
55185
|
-
return
|
|
55238
|
+
if (++count3 > max)
|
|
55239
|
+
return count3;
|
|
55186
55240
|
const child2 = node3[key];
|
|
55187
55241
|
if (child2 !== null && typeof child2 === "object")
|
|
55188
55242
|
stack.push(child2);
|
|
55189
55243
|
}
|
|
55190
55244
|
}
|
|
55191
55245
|
}
|
|
55192
|
-
return
|
|
55246
|
+
return count3;
|
|
55193
55247
|
}
|
|
55194
55248
|
function resolveMaxToolInputElements(value) {
|
|
55195
55249
|
if (value === void 0 || value === Infinity)
|
|
@@ -57758,14 +57812,14 @@ function codePointLength2(str14) {
|
|
|
57758
57812
|
const units = str14.length;
|
|
57759
57813
|
if (!highSurrogate2.test(str14))
|
|
57760
57814
|
return units;
|
|
57761
|
-
let
|
|
57815
|
+
let count3 = units;
|
|
57762
57816
|
for (let i = 0; i < units - 1; i++) {
|
|
57763
57817
|
if ((str14.charCodeAt(i) & 64512) === 55296 && (str14.charCodeAt(i + 1) & 64512) === 56320) {
|
|
57764
|
-
|
|
57818
|
+
count3--;
|
|
57765
57819
|
i++;
|
|
57766
57820
|
}
|
|
57767
57821
|
}
|
|
57768
|
-
return
|
|
57822
|
+
return count3;
|
|
57769
57823
|
}
|
|
57770
57824
|
function getLengthableOrigin2(input2) {
|
|
57771
57825
|
if (Array.isArray(input2))
|
|
@@ -62145,8 +62199,8 @@ function az_default() {
|
|
|
62145
62199
|
}
|
|
62146
62200
|
|
|
62147
62201
|
// node_modules/zod/v4/locales/be.js
|
|
62148
|
-
function getBelarusianPlural(
|
|
62149
|
-
const absCount = Math.abs(
|
|
62202
|
+
function getBelarusianPlural(count3, one, few, many) {
|
|
62203
|
+
const absCount = Math.abs(count3);
|
|
62150
62204
|
const lastDigit = absCount % 10;
|
|
62151
62205
|
const lastTwoDigits = absCount % 100;
|
|
62152
62206
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -64792,8 +64846,8 @@ function hu_default() {
|
|
|
64792
64846
|
}
|
|
64793
64847
|
|
|
64794
64848
|
// node_modules/zod/v4/locales/hy.js
|
|
64795
|
-
function getArmenianPlural(
|
|
64796
|
-
return Math.abs(
|
|
64849
|
+
function getArmenianPlural(count3, one, many) {
|
|
64850
|
+
return Math.abs(count3) === 1 ? one : many;
|
|
64797
64851
|
}
|
|
64798
64852
|
function withDefiniteArticle(word) {
|
|
64799
64853
|
if (!word)
|
|
@@ -67531,8 +67585,8 @@ function ro_default() {
|
|
|
67531
67585
|
}
|
|
67532
67586
|
|
|
67533
67587
|
// node_modules/zod/v4/locales/ru.js
|
|
67534
|
-
function getRussianPlural(
|
|
67535
|
-
const absCount = Math.abs(
|
|
67588
|
+
function getRussianPlural(count3, one, few, many) {
|
|
67589
|
+
const absCount = Math.abs(count3);
|
|
67536
67590
|
const lastDigit = absCount % 10;
|
|
67537
67591
|
const lastTwoDigits = absCount % 100;
|
|
67538
67592
|
if (lastTwoDigits >= 11 && lastTwoDigits <= 19) {
|
|
@@ -77539,7 +77593,7 @@ ${footer}
|
|
|
77539
77593
|
function printGreeting() {
|
|
77540
77594
|
process.stdout.write(
|
|
77541
77595
|
greeting({
|
|
77542
|
-
version: "0.
|
|
77596
|
+
version: "0.64.1",
|
|
77543
77597
|
tagline: BRAND.tagline,
|
|
77544
77598
|
isTTY: !!process.stdout.isTTY,
|
|
77545
77599
|
columns: process.stdout.columns ?? 80,
|
|
@@ -80669,7 +80723,7 @@ async function serveLookout(opts, slackSetup) {
|
|
|
80669
80723
|
const root = path146.resolve(process.cwd(), opts.dir);
|
|
80670
80724
|
const mcp = createMcpHttp({
|
|
80671
80725
|
auth: tokenFileAuth(root),
|
|
80672
|
-
open: remoteAgentOpener({ root, version: "0.
|
|
80726
|
+
open: remoteAgentOpener({ root, version: "0.64.1" }),
|
|
80673
80727
|
thisMachineOnly: true
|
|
80674
80728
|
});
|
|
80675
80729
|
let hub;
|
|
@@ -80706,7 +80760,7 @@ async function serveLookout(opts, slackSetup) {
|
|
|
80706
80760
|
const howToSignIn = opts.open ? "Your browser opens ready to sign in: one click, within a minute. For another browser, open this link" : "Open it to sign in the browser";
|
|
80707
80761
|
process.stdout.write(
|
|
80708
80762
|
`
|
|
80709
|
-
${BRAND.name} ${"0.
|
|
80763
|
+
${BRAND.name} ${"0.64.1"} \xB7 ${BRAND.assistant.name} online
|
|
80710
80764
|
|
|
80711
80765
|
Lookout ${url2}
|
|
80712
80766
|
Sign in ${signInLink}
|
|
@@ -80725,7 +80779,7 @@ async function serveLookout(opts, slackSetup) {
|
|
|
80725
80779
|
openSignedIn({ root: bridge.root, mint, fallback: `${url2}${next}` });
|
|
80726
80780
|
}
|
|
80727
80781
|
const unlock = writeLookoutLock(bridge.root, url2);
|
|
80728
|
-
for (const w of await agentVersionWarnings(bridge.root, "0.
|
|
80782
|
+
for (const w of await agentVersionWarnings(bridge.root, "0.64.1"))
|
|
80729
80783
|
process.stdout.write(` Heads up ${w}
|
|
80730
80784
|
`);
|
|
80731
80785
|
const unlist = writeMcpEndpoint(bridge.root, {
|
|
@@ -80772,7 +80826,7 @@ async function mcpCommand(argv2) {
|
|
|
80772
80826
|
agent: o.agent,
|
|
80773
80827
|
leaseMinutes: o.leaseMinutes,
|
|
80774
80828
|
noRegister: o.noRegister,
|
|
80775
|
-
version: "0.
|
|
80829
|
+
version: "0.64.1"
|
|
80776
80830
|
});
|
|
80777
80831
|
}
|
|
80778
80832
|
function sandboxFlagFits(o, target2) {
|
|
@@ -80817,7 +80871,7 @@ async function connectCommand(argv2) {
|
|
|
80817
80871
|
protectConfig: !o.noProtectConfig
|
|
80818
80872
|
});
|
|
80819
80873
|
else {
|
|
80820
|
-
const self = selfCommand({ version: "0.
|
|
80874
|
+
const self = selfCommand({ version: "0.64.1", file: fileURLToPath2(import.meta.url) });
|
|
80821
80875
|
const protect = !o.noProtectConfig;
|
|
80822
80876
|
const sandbox = target2 === "claude" ? await askSandbox({ cwd: process.cwd(), flag: o.sandbox, protect }) : void 0;
|
|
80823
80877
|
runConnect(target2, {
|
|
@@ -80832,7 +80886,7 @@ async function connectCommand(argv2) {
|
|
|
80832
80886
|
process.stdout.write("\n");
|
|
80833
80887
|
}
|
|
80834
80888
|
async function main() {
|
|
80835
|
-
setRunningVersion("0.
|
|
80889
|
+
setRunningVersion("0.64.1");
|
|
80836
80890
|
const argv2 = process.argv.slice(2);
|
|
80837
80891
|
if (argv2[0] === "mcp") return mcpCommand(argv2.slice(1));
|
|
80838
80892
|
if (argv2[0] === "hook") {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "teamtrail",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.64.1",
|
|
4
4
|
"author": "Teamtrail",
|
|
5
5
|
"description": "Teamtrail: verified work from AI coding agents. Agents do the work, you make the calls, and nothing counts as done until it's verified.",
|
|
6
6
|
"type": "module",
|