tickmarkr 1.85.0 → 1.87.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 +4 -2
- package/dist/adapters/catalog-remote.d.ts +64 -0
- package/dist/adapters/catalog-remote.js +287 -0
- package/dist/adapters/catalog.d.ts +108 -0
- package/dist/adapters/catalog.js +189 -0
- package/dist/adapters/claude-code.js +5 -3
- package/dist/adapters/fake.js +33 -4
- package/dist/adapters/model-lints.d.ts +25 -5
- package/dist/adapters/model-lints.js +184 -50
- package/dist/adapters/model-windows.d.ts +31 -0
- package/dist/adapters/model-windows.js +69 -0
- package/dist/adapters/prompt.d.ts +5 -1
- package/dist/adapters/prompt.js +13 -4
- package/dist/adapters/registry.d.ts +34 -27
- package/dist/adapters/registry.js +215 -112
- package/dist/adapters/types.js +15 -3
- package/dist/brand.d.ts +5 -1
- package/dist/brand.js +18 -2
- package/dist/cli/commands/doctor.d.ts +3 -0
- package/dist/cli/commands/doctor.js +43 -21
- package/dist/cli/commands/fleet.d.ts +7 -0
- package/dist/cli/commands/fleet.js +94 -74
- package/dist/cli/commands/init.js +118 -5
- package/dist/cli/commands/plan.js +11 -1
- package/dist/cli/commands/resume.js +7 -1
- package/dist/cli/commands/status.js +44 -18
- package/dist/compile/gsd.d.ts +2 -1
- package/dist/compile/gsd.js +68 -2
- package/dist/compile/native.d.ts +14 -0
- package/dist/compile/native.js +168 -12
- package/dist/config/config.d.ts +20 -5
- package/dist/config/config.js +96 -64
- package/dist/config/fleet-overlay.d.ts +25 -20
- package/dist/config/fleet-overlay.js +195 -77
- package/dist/config/fleet-why.d.ts +23 -0
- package/dist/config/fleet-why.js +42 -0
- package/dist/drivers/herdr.d.ts +1 -0
- package/dist/drivers/herdr.js +70 -19
- package/dist/gates/acceptance.js +7 -2
- package/dist/gates/llm.d.ts +0 -1
- package/dist/gates/llm.js +5 -30
- package/dist/gates/review.d.ts +2 -1
- package/dist/gates/review.js +9 -7
- package/dist/gates/run-gates.d.ts +1 -0
- package/dist/gates/run-gates.js +21 -2
- package/dist/gates/verdict-cause.d.ts +4 -0
- package/dist/gates/verdict-cause.js +63 -0
- package/dist/graph/schema.d.ts +6 -0
- package/dist/graph/schema.js +8 -5
- package/dist/route/preference.d.ts +1 -1
- package/dist/route/preference.js +8 -1
- package/dist/route/router.d.ts +0 -5
- package/dist/route/router.js +16 -20
- package/dist/run/consult.d.ts +6 -0
- package/dist/run/consult.js +49 -26
- package/dist/run/daemon.js +81 -20
- package/dist/run/journal.js +87 -7
- package/dist/tui/cockpit/capture.d.ts +12 -0
- package/dist/tui/cockpit/capture.js +37 -1
- package/dist/tui/cockpit/components.js +8 -8
- package/dist/tui/cockpit/theme.d.ts +32 -26
- package/dist/tui/cockpit/theme.js +11 -5
- package/dist/tui/ink/components.d.ts +0 -15
- package/dist/tui/ink/components.js +0 -17
- package/dist/tui/ink/fleet-app.d.ts +4 -1
- package/dist/tui/ink/fleet-app.js +134 -13
- package/fixtures/gateway-models.json +1 -0
- package/fixtures/sample.native.md +1 -1
- package/package.json +1 -1
- package/skills/tickmarkr-overseer/SKILL.md +464 -34
- package/skills/tickmarkr-overseer/scripts/watch-artifacts.sh +86 -0
- package/skills/tickmarkr-overseer/scripts/watch-panes.sh +1 -1
- package/dist/tui/ink/studio-app.d.ts +0 -59
- package/dist/tui/ink/studio-app.js +0 -320
- package/dist/tui/save.d.ts +0 -38
- package/dist/tui/save.js +0 -96
- package/dist/tui/staging.d.ts +0 -29
- package/dist/tui/staging.js +0 -78
package/dist/tui/staging.js
DELETED
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
import { fleetEditableEquals } from "../config/config.js";
|
|
2
|
-
/**
|
|
3
|
-
* Staged-changes buffer for the Fleet Studio write path.
|
|
4
|
-
*
|
|
5
|
-
* - The loaded state is captured at construction and never mutated.
|
|
6
|
-
* - Edits apply to an in-memory buffer only.
|
|
7
|
-
* - `revert()` discards the buffer and restores the loaded state.
|
|
8
|
-
* - The delta is computed through the existing `fleetEditableEquals` comparison.
|
|
9
|
-
* - No code path in this module writes to disk.
|
|
10
|
-
*/
|
|
11
|
-
export class FleetStaging {
|
|
12
|
-
loaded;
|
|
13
|
-
buffer;
|
|
14
|
-
constructor(loaded) {
|
|
15
|
-
this.loaded = structuredClone(loaded);
|
|
16
|
-
this.buffer = structuredClone(loaded);
|
|
17
|
-
}
|
|
18
|
-
/** Read-only snapshot of the originally loaded state. */
|
|
19
|
-
get loadedState() {
|
|
20
|
-
return structuredClone(this.loaded);
|
|
21
|
-
}
|
|
22
|
-
/** Current buffered (possibly edited) state. */
|
|
23
|
-
get current() {
|
|
24
|
-
return structuredClone(this.buffer);
|
|
25
|
-
}
|
|
26
|
-
/** Apply an edit to the buffer. Never touches disk. */
|
|
27
|
-
apply(edit) {
|
|
28
|
-
edit(this.buffer);
|
|
29
|
-
}
|
|
30
|
-
/** Discard all buffered edits and restore the loaded state. */
|
|
31
|
-
revert() {
|
|
32
|
-
this.buffer = structuredClone(this.loaded);
|
|
33
|
-
}
|
|
34
|
-
/** True when the buffer differs from the loaded state. */
|
|
35
|
-
get isDirty() {
|
|
36
|
-
return !fleetEditableEquals(this.loaded, this.buffer);
|
|
37
|
-
}
|
|
38
|
-
/** Number of distinct staged changes vs the loaded state. */
|
|
39
|
-
get changeCount() {
|
|
40
|
-
return fleetEditableDeltaCount(this.loaded, this.buffer);
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
/** Count changed leaves using the same equality semantics as `fleetEditableEquals`. */
|
|
44
|
-
function fleetEditableDeltaCount(initial, edited) {
|
|
45
|
-
let count = 0;
|
|
46
|
-
if (JSON.stringify(initial.denyAdapters) !== JSON.stringify(edited.denyAdapters)) {
|
|
47
|
-
count += 1;
|
|
48
|
-
}
|
|
49
|
-
if (JSON.stringify(initial.denyModels) !== JSON.stringify(edited.denyModels)) {
|
|
50
|
-
count += 1;
|
|
51
|
-
}
|
|
52
|
-
const mapKeys = new Set([...Object.keys(initial.map), ...Object.keys(edited.map)]);
|
|
53
|
-
for (const shape of mapKeys) {
|
|
54
|
-
if (JSON.stringify(initial.map[shape]) !== JSON.stringify(edited.map[shape])) {
|
|
55
|
-
count += 1;
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
const floorKeys = new Set([...Object.keys(initial.floors), ...Object.keys(edited.floors)]);
|
|
59
|
-
for (const shape of floorKeys) {
|
|
60
|
-
if (initial.floors[shape] !== edited.floors[shape]) {
|
|
61
|
-
count += 1;
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
const adapterKeys = new Set([...Object.keys(initial.tiers), ...Object.keys(edited.tiers)]);
|
|
65
|
-
for (const adapter of adapterKeys) {
|
|
66
|
-
const modelKeys = new Set([
|
|
67
|
-
...Object.keys(initial.tiers[adapter] ?? {}),
|
|
68
|
-
...Object.keys(edited.tiers[adapter] ?? {}),
|
|
69
|
-
]);
|
|
70
|
-
for (const model of modelKeys) {
|
|
71
|
-
if (JSON.stringify(initial.tiers[adapter]?.[model]) !==
|
|
72
|
-
JSON.stringify(edited.tiers[adapter]?.[model])) {
|
|
73
|
-
count += 1;
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
|
-
return count;
|
|
78
|
-
}
|