geneseed 4.32.0 → 5.0.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/CHANGELOG.md +85 -0
- package/DESIGN.md +2 -2
- package/README.md +6 -5
- package/SHIPPED.md +4 -3
- package/adapters/bob/README.md +6 -5
- package/adapters/claude-code/README.md +4 -3
- package/adapters/claude-code/skills/geneseed/SKILL.md +1 -1
- package/adapters/openclaude/README.md +4 -3
- package/adapters/opencode/GLOBAL-HARNESS-SPEC.md +3 -1
- package/adapters/opencode/HOW-OPENCODE-LOADS.md +2 -1
- package/adapters/opencode/README.md +18 -18
- package/adapters/opencode/plugins/geneseed-activity.js +57 -1
- package/adapters/opencode/plugins/geneseed-context.js +85 -18
- package/adapters/opencode/plugins/geneseed-guard.js +437 -76
- package/adapters/opencode/plugins/geneseed-learn.js +97 -23
- package/bin/geneseed-cli.mjs +17 -25
- package/bin/geneseed-hook.mjs +23 -8
- package/docs/DESIGN.md +175 -0
- package/docs/PRD.md +111 -0
- package/docs/README.md +3 -2
- package/docs/architecture.md +145 -0
- package/docs/concepts/agents.md +1 -1
- package/docs/concepts/collaboration.md +1 -1
- package/docs/concepts/enforcement-table.md +1 -1
- package/docs/concepts/exclusions.md +5 -5
- package/docs/concepts/footprint.md +1 -1
- package/docs/concepts/foreman-mode.md +2 -2
- package/docs/concepts/hooks.md +22 -8
- package/docs/concepts/host-matrix.md +2 -2
- package/docs/concepts/hosts.md +1 -1
- package/docs/concepts/kits.md +3 -1
- package/docs/concepts/ownership.md +1 -1
- package/docs/concepts/rules.md +15 -2
- package/docs/concepts/shared-tier.md +73 -0
- package/docs/concepts/skills.md +2 -2
- package/docs/concepts/themes.md +1 -1
- package/docs/extending.md +13 -12
- package/docs/guides/install-claude-code.md +1 -1
- package/docs/guides/install-opencode.md +1 -1
- package/docs/guides/migrate.md +4 -2
- package/docs/guides/project-context.md +2 -2
- package/docs/guides/setup-footprint.md +1 -1
- package/docs/guides/uninstall.md +2 -1
- package/docs/guides/upgrade-to-5.md +116 -0
- package/docs/guides/upgrade.md +21 -9
- package/docs/guides/wiki.md +3 -3
- package/docs/reference/env-context.md +5 -3
- package/docs/reference/environment.md +1 -1
- package/docs/reference/glossary.md +2 -0
- package/docs/reference/opencode-plugins.md +3 -3
- package/docs/reference/plugin-activity.md +1 -1
- package/docs/reference/plugin-context.md +1 -0
- package/docs/reference/plugin-guard.md +14 -6
- package/docs/reference/plugin-learn.md +13 -6
- package/docs/reference/troubleshoot-hooks.md +3 -3
- package/docs/reference/troubleshoot-update.md +14 -0
- package/docs/token-footprint.md +4 -3
- package/docs/understand/a-day.md +2 -2
- package/docs/understand/design-choices-install.md +2 -1
- package/docs/understand/enforced-vs-asked.md +1 -1
- package/docs/understand/machine-bob.md +2 -0
- package/docs/understand/machine-claude.md +7 -5
- package/docs/understand/machine-opencode.md +7 -5
- package/docs/understand/on-your-machine.md +4 -0
- package/docs/understand/take-it-out.md +1 -1
- package/docs/web-ui.md +126 -68
- package/harness.config.json +1 -1
- package/js/README.md +10 -6
- package/js/build/args.mjs +10 -8
- package/js/build/bundle.mjs +11 -13
- package/js/build/driver.mjs +66 -65
- package/js/build/emit-claude.mjs +22 -16
- package/js/build/emit-common.mjs +4 -5
- package/js/build/emit-opencode.mjs +22 -22
- package/js/build/fold.mjs +515 -0
- package/js/build/generate.mjs +41 -52
- package/js/build/render.mjs +115 -29
- package/js/build/source.mjs +4 -1
- package/js/build/stubs.mjs +70 -9
- package/js/build/version.mjs +10 -10
- package/js/cli-table.json +23 -83
- package/js/hosts/activity.mjs +2 -2
- package/js/hosts/geneseed-dir.mjs +1 -1
- package/js/hosts/hooks-context.mjs +389 -99
- package/js/hosts/hooks-learn.mjs +38 -7
- package/js/hosts/hooks-prims.mjs +4 -2
- package/js/hosts/hooks.mjs +114 -39
- package/js/hosts/hosts.mjs +150 -51
- package/js/hosts/installs.mjs +55 -167
- package/js/hosts/link.mjs +3 -5
- package/js/hosts/mcp.mjs +1 -1
- package/js/hosts/memory-files.mjs +219 -17
- package/js/hosts/ownership-gate.mjs +1 -1
- package/js/hosts/settings.mjs +18 -13
- package/js/hosts/shim.mjs +4 -33
- package/js/hosts/store-watch.mjs +189 -0
- package/js/inspect/checks-authoring.mjs +3 -3
- package/js/inspect/checks-build.mjs +45 -18
- package/js/inspect/checks-counts.mjs +4 -4
- package/js/inspect/checks-repo.mjs +13 -14
- package/js/inspect/cost.mjs +24 -2
- package/js/inspect/diff.mjs +123 -123
- package/js/inspect/doctor.mjs +22 -27
- package/js/inspect/excludes.mjs +181 -62
- package/js/inspect/inventory.mjs +22 -27
- package/js/inspect/registry.mjs +106 -30
- package/js/inspect/scan.mjs +5 -5
- package/js/inspect/status.mjs +141 -119
- package/js/inspect/validate.mjs +22 -24
- package/js/lib/fs.mjs +47 -50
- package/js/lib/json.mjs +10 -17
- package/js/lib/machine-dir.mjs +73 -0
- package/js/lib/paths.mjs +22 -33
- package/js/lib/proc.mjs +1 -1
- package/js/lib/prompt.mjs +19 -27
- package/js/lib/text.mjs +8 -12
- package/js/lib/udiff.mjs +11 -15
- package/js/loop/catalog.mjs +2 -3
- package/js/maintain/memory.mjs +17 -17
- package/js/maintain/migrate.mjs +79 -89
- package/js/maintain/setup.mjs +43 -32
- package/js/maintain/uninstall.mjs +43 -61
- package/js/maintain/update.mjs +200 -93
- package/js/ui/anim.mjs +21 -35
- package/js/ui/cli.mjs +36 -58
- package/js/ui/menu.mjs +22 -45
- package/js/ui/tui.mjs +27 -67
- package/js/web/actions.mjs +34 -34
- package/js/web/api.mjs +130 -74
- package/js/web/catalog.mjs +175 -46
- package/js/web/docs.mjs +33 -12
- package/js/web/doctor-worker.mjs +14 -0
- package/js/web/handler.mjs +14 -5
- package/js/web/routes.mjs +17 -19
- package/js/web/state.mjs +78 -19
- package/js/web/update-check.mjs +25 -10
- package/js/web/user-files.mjs +50 -105
- package/package.json +7 -4
- package/registry.json +48 -55
- package/src/AGENT.md.tmpl +13 -14
- package/src/agents/_self-improvement.md +1 -1
- package/src/agents/_template.md +1 -1
- package/src/agents/advocate.md +1 -1
- package/src/agents/architect.md +1 -1
- package/src/agents/developer.md +1 -1
- package/src/agents/devops-engineer.md +1 -1
- package/src/agents/docker-expert.md +1 -1
- package/src/agents/docs.md +1 -1
- package/src/agents/empiricist.md +1 -1
- package/src/agents/explorer.md +1 -1
- package/src/agents/framer.md +1 -1
- package/src/agents/historian.md +1 -1
- package/src/agents/kubernetes-specialist.md +1 -1
- package/src/agents/memory-curator.md +2 -2
- package/src/agents/operator.md +1 -1
- package/src/agents/performance.md +1 -1
- package/src/agents/pragmatist.md +1 -1
- package/src/agents/react-engineer.md +1 -1
- package/src/agents/react-reviewer.md +1 -1
- package/src/agents/researcher.md +1 -1
- package/src/agents/reviewer.md +1 -1
- package/src/agents/security.md +1 -1
- package/src/agents/skeptic.md +1 -1
- package/src/agents/spring-boot-engineer.md +1 -1
- package/src/agents/spring-reviewer.md +1 -1
- package/src/agents/spring-security.md +1 -1
- package/src/agents/steward.md +1 -1
- package/src/agents/tester.md +1 -1
- package/src/agents/user-advocate.md +1 -1
- package/src/agents/visionary.md +1 -1
- package/src/memory/README.md +1 -1
- package/src/skills/_self-improvement.md +2 -2
- package/src/skills/daydream/SKILL.md +2 -2
- package/src/skills/daydream/instructions.md +1 -1
- package/src/skills/geneseed.md +1 -1
- package/src/skills/learn-mode.md +1 -2
- package/src/skills/profile.md +2 -2
- package/src/skills/rule/approve.md +69 -0
- package/src/skills/rule/consolidate.md +3 -3
- package/src/skills/rule.md +13 -5
- package/src/skills/skill-forge.md +1 -1
- package/src/skills/teach.md +29 -12
- package/src/skills/wiki.md +1 -1
- package/themes/_TEMPLATE.json +1 -2
- package/themes/biker.json +1 -2
- package/themes/commentator.json +1 -2
- package/themes/cyberpunk.json +1 -2
- package/themes/gamer.json +1 -2
- package/themes/imperial.json +1 -2
- package/themes/joker.json +1 -2
- package/themes/marvin.json +1 -2
- package/themes/mean.json +1 -2
- package/themes/military.json +1 -2
- package/themes/neutral.json +1 -2
- package/themes/pirate.json +1 -2
- package/themes/sports.json +1 -2
- package/themes/verstappen.json +1 -2
- package/themes/wizard.json +1 -2
- package/web/dist/assets/Activity-D8G4eClY.js +1 -0
- package/web/dist/assets/ActivityDetail-BtOBYk3M.js +1 -0
- package/web/dist/assets/AgentGlyph-k6o3gCM1.js +1 -0
- package/web/dist/assets/Bonsai-B_y20b3i.js +1 -0
- package/web/dist/assets/{CopyButton-C5Li6awl.js → CopyButton-CHQte7Ap.js} +1 -1
- package/web/dist/assets/Dashboard-B8uXeJZ_.js +2 -0
- package/web/dist/assets/Docs-Dgv_MWfT.js +5 -0
- package/web/dist/assets/GreenhouseView-CSzTMSl_.js +1 -0
- package/web/dist/assets/Installs-BDk9lqBI.js +3 -0
- package/web/dist/assets/JournalView-CvRk1-m5.js +1 -0
- package/web/dist/assets/Kits-CoITzxWM.js +1 -0
- package/web/dist/assets/Laws-Ctf5r9rE.js +3 -0
- package/web/dist/assets/Library-DNwHYVXt.js +3 -0
- package/web/dist/assets/{Loops-CzitjxGV.js → Loops-S85PMQ8m.js} +2 -2
- package/web/dist/assets/{Markdown-C4S4tTA7.js → Markdown-0ORz7tAc.js} +21 -21
- package/web/dist/assets/OperatorHudView-DuGz_sTk.js +1 -0
- package/web/dist/assets/Personal-afJNwvRS.js +2 -0
- package/web/dist/assets/{RailCats-D5weYPCS.js → RailCats-AW92uhsX.js} +1 -1
- package/web/dist/assets/Settings-CGDFz-6j.js +1 -0
- package/web/dist/assets/Tabs-1qLrnqmn.js +1 -0
- package/web/dist/assets/api-C46vAuqp.js +1 -0
- package/web/dist/assets/controls-D4wmg_pl.js +1 -0
- package/web/dist/assets/index-COTd4TRZ.js +3 -0
- package/web/dist/assets/index-CtorA7uK.css +1 -0
- package/web/dist/assets/motion-RlUl1osO.js +1 -0
- package/web/dist/assets/{sections-ChwaobfW.js → sections-CtFz7HFH.js} +1 -1
- package/web/dist/index.html +5 -5
- package/src/skills/quiz.md +0 -44
- package/web/dist/assets/Activity-Bjy64wHC.js +0 -1
- package/web/dist/assets/ActivityDetail-B0AaipP8.js +0 -1
- package/web/dist/assets/Bonsai-CJniRqaH.js +0 -1
- package/web/dist/assets/Dashboard-B-6DTmae.js +0 -2
- package/web/dist/assets/Docs-LRc30XL9.js +0 -5
- package/web/dist/assets/GreenhouseView-CcoYlaWo.js +0 -1
- package/web/dist/assets/Installs-dp1epTcE.js +0 -3
- package/web/dist/assets/JournalView-nFP4poCf.js +0 -1
- package/web/dist/assets/KitApply-DwyZUj57.js +0 -1
- package/web/dist/assets/Kits-C0IEdZXe.js +0 -1
- package/web/dist/assets/Laws-CkykmQWu.js +0 -3
- package/web/dist/assets/Library-Guh9HBZU.js +0 -2
- package/web/dist/assets/OperatorHudView-DLGNulIY.js +0 -1
- package/web/dist/assets/Personal-BMtberL8.js +0 -2
- package/web/dist/assets/Tabs-uYJqfuQt.js +0 -1
- package/web/dist/assets/api-BxjLd7Qd.js +0 -1
- package/web/dist/assets/index-DA7BiaE5.js +0 -3
- package/web/dist/assets/index-dbbDGFDq.css +0 -1
- package/web/dist/assets/motion-Bccx3zE8.js +0 -1
package/js/build/version.mjs
CHANGED
|
@@ -14,6 +14,7 @@ import { parseJson } from '../lib/json.mjs';
|
|
|
14
14
|
import { isDir } from '../lib/fs.mjs';
|
|
15
15
|
import { relPosix } from '../lib/text.mjs';
|
|
16
16
|
import { rglobFiles } from './emit-common.mjs';
|
|
17
|
+
import { sourceGeneration } from './render.mjs';
|
|
17
18
|
import { createHash } from 'node:crypto';
|
|
18
19
|
import { readFileSync } from 'node:fs';
|
|
19
20
|
|
|
@@ -31,17 +32,13 @@ import { readFileSync } from 'node:fs';
|
|
|
31
32
|
* in the output; reproducing the wrong one changes the fingerprint of every install.
|
|
32
33
|
*/
|
|
33
34
|
export function sourceFingerprint(cfg) {
|
|
34
|
-
// Once per
|
|
35
|
-
//
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
FINGERPRINT.set(cfg, fp);
|
|
40
|
-
return fp;
|
|
35
|
+
// Once per source generation — every emit (84 of them in `doctor --all`) hashed the whole tree
|
|
36
|
+
// again, and the web daemon is long-lived, so the key has to see an edit: render.mjs says how.
|
|
37
|
+
const generation = sourceGeneration(cfg);
|
|
38
|
+
generation.fingerprint ??= hashSource(cfg);
|
|
39
|
+
return generation.fingerprint;
|
|
41
40
|
}
|
|
42
41
|
|
|
43
|
-
const FINGERPRINT = new WeakMap();
|
|
44
|
-
|
|
45
42
|
function hashSource(cfg) {
|
|
46
43
|
const h = createHash('sha256');
|
|
47
44
|
const files = [];
|
|
@@ -51,8 +48,11 @@ function hashSource(cfg) {
|
|
|
51
48
|
const keyed = files.map((p) => [relPosix(cfg.root, p), p]);
|
|
52
49
|
keyed.sort((a, b) => (a[0] < b[0] ? -1 : a[0] > b[0] ? 1 : 0));
|
|
53
50
|
for (const [rel, p] of keyed) {
|
|
51
|
+
// A file deleted since the walk listed it is not in the tree any more (as in `sourceStamp`).
|
|
52
|
+
let bytes;
|
|
53
|
+
try { bytes = readFileSync(p); } catch (e) { if (e.code === 'ENOENT') continue; throw e; }
|
|
54
54
|
h.update(Buffer.from(`${rel}\0`, 'utf8'));
|
|
55
|
-
h.update(
|
|
55
|
+
h.update(bytes);
|
|
56
56
|
h.update(Buffer.from([0]));
|
|
57
57
|
}
|
|
58
58
|
return h.digest('hex').slice(0, 12);
|
package/js/cli-table.json
CHANGED
|
@@ -42,36 +42,9 @@
|
|
|
42
42
|
},
|
|
43
43
|
{
|
|
44
44
|
"name": "bootstrap",
|
|
45
|
-
"help": "update everything (
|
|
45
|
+
"help": "update everything (upgrade) with a progress UI, then run setup",
|
|
46
46
|
"description": "",
|
|
47
|
-
"positionals": [
|
|
48
|
-
{
|
|
49
|
-
"names": [],
|
|
50
|
-
"dest": "ref",
|
|
51
|
-
"metavar": null,
|
|
52
|
-
"help": "accepted for back-compat; ignored (git follows the current branch)",
|
|
53
|
-
"choices": null,
|
|
54
|
-
"default": null,
|
|
55
|
-
"required": false,
|
|
56
|
-
"nargs": "?",
|
|
57
|
-
"is_flag": false,
|
|
58
|
-
"type": null,
|
|
59
|
-
"hidden": false
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"names": [],
|
|
63
|
-
"dest": "extra",
|
|
64
|
-
"metavar": null,
|
|
65
|
-
"help": "",
|
|
66
|
-
"choices": null,
|
|
67
|
-
"default": null,
|
|
68
|
-
"required": false,
|
|
69
|
-
"nargs": "*",
|
|
70
|
-
"is_flag": false,
|
|
71
|
-
"type": null,
|
|
72
|
-
"hidden": true
|
|
73
|
-
}
|
|
74
|
-
],
|
|
47
|
+
"positionals": [],
|
|
75
48
|
"options": [
|
|
76
49
|
{
|
|
77
50
|
"names": [
|
|
@@ -247,6 +220,21 @@
|
|
|
247
220
|
"type": null,
|
|
248
221
|
"hidden": false
|
|
249
222
|
},
|
|
223
|
+
{
|
|
224
|
+
"names": [
|
|
225
|
+
"--shared-tier"
|
|
226
|
+
],
|
|
227
|
+
"dest": "shared_tier",
|
|
228
|
+
"metavar": null,
|
|
229
|
+
"help": "let a per-repo install also read the machine-wide shared tier: on|off (default: off; refused for a global or bundle emit). Benefit: This project sees your machine-wide rules, profile and memory map, so what you taught one tool or repo applies here too. Cost: About 1 500 tokens at every session start, growing with your rules. The hook budget is fixed at 9 000 characters, and the tier loads before this project's docs, so a large tier can push them down to a lazy listing.",
|
|
230
|
+
"choices": null,
|
|
231
|
+
"default": null,
|
|
232
|
+
"required": false,
|
|
233
|
+
"nargs": null,
|
|
234
|
+
"is_flag": false,
|
|
235
|
+
"type": null,
|
|
236
|
+
"hidden": false
|
|
237
|
+
},
|
|
250
238
|
{
|
|
251
239
|
"names": [
|
|
252
240
|
"--out"
|
|
@@ -608,7 +596,7 @@
|
|
|
608
596
|
},
|
|
609
597
|
{
|
|
610
598
|
"name": "exclude",
|
|
611
|
-
"help": "manage sovereign-repo exclusions: folders where the GLOBAL installs go dormant (hooks silent, preamble suppressed); stored in
|
|
599
|
+
"help": "manage sovereign-repo exclusions: folders where the GLOBAL installs go dormant (hooks silent, preamble suppressed); stored in the shared tier's excludes.json, with the repo-side wiring per host",
|
|
612
600
|
"description": "",
|
|
613
601
|
"positionals": [
|
|
614
602
|
{
|
|
@@ -748,7 +736,7 @@
|
|
|
748
736
|
],
|
|
749
737
|
"dest": "memory",
|
|
750
738
|
"metavar": null,
|
|
751
|
-
"help": "
|
|
739
|
+
"help": "memory dir to dedup against and index into (default: $GENESEED_MEMORY, else $GENESEED_HARNESS/memory, else a project install in the cwd or ./Harness, else the shared tier, else the OpenCode config store); the only way to a memory/ no install owns",
|
|
752
740
|
"choices": null,
|
|
753
741
|
"default": null,
|
|
754
742
|
"required": false,
|
|
@@ -1068,7 +1056,7 @@
|
|
|
1068
1056
|
},
|
|
1069
1057
|
{
|
|
1070
1058
|
"name": "memory",
|
|
1071
|
-
"help": "manage the memory store: list the facts the agent reads, or remove one by name (archived into memory/archive/; --purge deletes)",
|
|
1059
|
+
"help": "manage the memory store: list the facts the agent reads, or remove one by name (archived into memory/archive/; --purge deletes). A global install's store is the shared tier, ~/.config/geneseed/memory; a project install keeps its own",
|
|
1072
1060
|
"description": "",
|
|
1073
1061
|
"positionals": [
|
|
1074
1062
|
{
|
|
@@ -1160,7 +1148,7 @@
|
|
|
1160
1148
|
},
|
|
1161
1149
|
{
|
|
1162
1150
|
"name": "migrate",
|
|
1163
|
-
"help": "move this machine from the git-checkout install shape to the npm one: re-emit every registered install,
|
|
1151
|
+
"help": "move this machine from the git-checkout install shape to the npm one: re-emit every registered install, repoint the hook shim at the npm package, and report what must be fixed by hand. Use --dry-run alone to preview the shared-tier fold",
|
|
1164
1152
|
"description": "",
|
|
1165
1153
|
"positionals": [],
|
|
1166
1154
|
"options": [
|
|
@@ -1170,7 +1158,7 @@
|
|
|
1170
1158
|
],
|
|
1171
1159
|
"dest": "dry_run",
|
|
1172
1160
|
"metavar": null,
|
|
1173
|
-
"help": "survey and print the plan; write nothing",
|
|
1161
|
+
"help": "survey and print the plan, with the fold each global install would run and any orphan; write nothing",
|
|
1174
1162
|
"choices": null,
|
|
1175
1163
|
"default": false,
|
|
1176
1164
|
"required": false,
|
|
@@ -1381,28 +1369,6 @@
|
|
|
1381
1369
|
],
|
|
1382
1370
|
"mutex": []
|
|
1383
1371
|
},
|
|
1384
|
-
{
|
|
1385
|
-
"name": "sync-self",
|
|
1386
|
-
"help": "refresh the orchestration layer — launchers + update scripts (cross-platform; an alias of upgrade)",
|
|
1387
|
-
"description": "",
|
|
1388
|
-
"positionals": [
|
|
1389
|
-
{
|
|
1390
|
-
"names": [],
|
|
1391
|
-
"dest": "ref",
|
|
1392
|
-
"metavar": null,
|
|
1393
|
-
"help": "",
|
|
1394
|
-
"choices": null,
|
|
1395
|
-
"default": null,
|
|
1396
|
-
"required": false,
|
|
1397
|
-
"nargs": "?",
|
|
1398
|
-
"is_flag": false,
|
|
1399
|
-
"type": null,
|
|
1400
|
-
"hidden": true
|
|
1401
|
-
}
|
|
1402
|
-
],
|
|
1403
|
-
"options": [],
|
|
1404
|
-
"mutex": []
|
|
1405
|
-
},
|
|
1406
1372
|
{
|
|
1407
1373
|
"name": "theme",
|
|
1408
1374
|
"help": "create a user OpenCode colour theme (solid + transparent) in the live themes dir; survives rebuilds",
|
|
@@ -1631,7 +1597,7 @@
|
|
|
1631
1597
|
},
|
|
1632
1598
|
{
|
|
1633
1599
|
"name": "uninstall",
|
|
1634
|
-
"help": "remove a global or project-scoped Geneseed install (manifest-tracked); memory/notebook are never deleted (--archive-memory moves them aside)",
|
|
1600
|
+
"help": "remove a global or project-scoped Geneseed install (manifest-tracked); memory/notebook are never deleted (--archive-memory moves them aside), and the shared tier, ~/.config/geneseed, is left alone",
|
|
1635
1601
|
"description": "",
|
|
1636
1602
|
"positionals": [],
|
|
1637
1603
|
"options": [
|
|
@@ -1711,19 +1677,6 @@
|
|
|
1711
1677
|
"help": "",
|
|
1712
1678
|
"description": "",
|
|
1713
1679
|
"positionals": [
|
|
1714
|
-
{
|
|
1715
|
-
"names": [],
|
|
1716
|
-
"dest": "ref",
|
|
1717
|
-
"metavar": null,
|
|
1718
|
-
"help": "",
|
|
1719
|
-
"choices": null,
|
|
1720
|
-
"default": null,
|
|
1721
|
-
"required": false,
|
|
1722
|
-
"nargs": "?",
|
|
1723
|
-
"is_flag": false,
|
|
1724
|
-
"type": null,
|
|
1725
|
-
"hidden": true
|
|
1726
|
-
},
|
|
1727
1680
|
{
|
|
1728
1681
|
"names": [],
|
|
1729
1682
|
"dest": "theme",
|
|
@@ -1746,19 +1699,6 @@
|
|
|
1746
1699
|
"help": "self-update: git pull the install's origin (ff-only), validate, then rebuild the bundle + every install",
|
|
1747
1700
|
"description": "",
|
|
1748
1701
|
"positionals": [
|
|
1749
|
-
{
|
|
1750
|
-
"names": [],
|
|
1751
|
-
"dest": "ref",
|
|
1752
|
-
"metavar": null,
|
|
1753
|
-
"help": "",
|
|
1754
|
-
"choices": null,
|
|
1755
|
-
"default": null,
|
|
1756
|
-
"required": false,
|
|
1757
|
-
"nargs": "?",
|
|
1758
|
-
"is_flag": false,
|
|
1759
|
-
"type": null,
|
|
1760
|
-
"hidden": true
|
|
1761
|
-
},
|
|
1762
1702
|
{
|
|
1763
1703
|
"names": [],
|
|
1764
1704
|
"dest": "theme",
|
package/js/hosts/activity.mjs
CHANGED
|
@@ -69,12 +69,12 @@ const SNAPSHOT_NAME = /^[A-Za-z0-9_.-]{1,128}\.json$/;
|
|
|
69
69
|
* a hook writer, with no pid, this is the only one, so a session left waiting on the user for
|
|
70
70
|
* longer than this moves to the archive at the next sweep and comes back on its next prompt.
|
|
71
71
|
*/
|
|
72
|
-
|
|
72
|
+
const ACTIVITY_STALE_SECONDS = 1800;
|
|
73
73
|
/** The archive keeps the newest this many ended sessions, and none older than a week. */
|
|
74
74
|
export const ARCHIVE_KEEP = 50;
|
|
75
75
|
export const ARCHIVE_MAX_AGE_SECONDS = 7 * 24 * 3600;
|
|
76
76
|
/** One Stop reads at most this much new transcript; a longer delta keeps its newest bytes. */
|
|
77
|
-
|
|
77
|
+
const TRANSCRIPT_CAP = 2 * 1024 * 1024;
|
|
78
78
|
|
|
79
79
|
// The plugin's caps, so a hook snapshot is the same size as a plugin one.
|
|
80
80
|
const FILE_CAP = 8;
|
|
@@ -47,7 +47,7 @@ export function writeGeneseedGitignore(file) {
|
|
|
47
47
|
}
|
|
48
48
|
|
|
49
49
|
/** The seeded list, relative to the git root. */
|
|
50
|
-
|
|
50
|
+
const SEED_REL = '.geneseed/protected-checks.txt';
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
53
|
* What a project's checks live in. A string ending `/` is a folder, any other string a file; a
|