sprag-cli 3.70.0 → 3.71.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.ko.md +7 -1
- package/README.md +7 -1
- package/bin/cli.js +47 -5
- package/docs/CODEX.ko.md +2 -2
- package/docs/CODEX.md +4 -4
- package/docs/TEAM.ko.md +74 -19
- package/docs/TEAM.md +75 -19
- package/package.json +2 -1
- package/presets/agents.json +118 -0
- package/presets/doc2md/convert.py +1 -1
- package/presets/ratchet-rules.json +12 -2
- package/src/cli-entry.js +40 -0
- package/src/codex/hooks.js +11 -10
- package/src/codex/panel-setup.js +2 -1
- package/src/codex/panel.js +2 -1
- package/src/commands/brief.js +2 -0
- package/src/commands/codex.js +3 -2
- package/src/commands/harness.js +2 -3
- package/src/commands/install.js +19 -18
- package/src/commands/presets.js +158 -0
- package/src/commands/profile-map.js +2 -2
- package/src/commands/route-scan.js +9 -7
- package/src/commands/team.js +82 -26
- package/src/commands/update-check.js +2 -2
- package/src/debug.js +3 -2
- package/src/delegation-agents.js +48 -60
- package/src/doc2md.cjs +4 -3
- package/src/env.cjs +7 -0
- package/src/env.js +19 -0
- package/src/first-run-note.js +3 -2
- package/src/harness.js +4 -14
- package/src/hook.cjs +4 -3
- package/src/preset-sign.js +106 -0
- package/src/preset-sync.js +133 -0
- package/src/presets-source.js +209 -0
- package/src/prompt.js +2 -1
- package/src/route-scan.js +14 -1
- package/src/seed-rules.js +14 -16
- package/src/star-note.js +3 -2
- package/src/statusline-guard.js +144 -0
- package/src/stdin-payload.js +33 -4
- package/src/team-prompts.js +353 -0
- package/src/team-ratchet.js +116 -16
- package/src/team-sync.js +336 -37
- package/src/update-check.js +3 -2
package/src/update-check.js
CHANGED
|
@@ -29,10 +29,11 @@
|
|
|
29
29
|
* once-a-day pass as the version check, and its absence never blocks the
|
|
30
30
|
* notice — a version number alone is still worth saying.
|
|
31
31
|
*
|
|
32
|
-
* Opt out with
|
|
32
|
+
* Opt out with SPRAG_NO_UPDATE_CHECK=1 or NO_UPDATE_NOTIFIER (the de-facto
|
|
33
33
|
* standard env var — anyone who set it for other CLIs meant us too).
|
|
34
34
|
*/
|
|
35
35
|
|
|
36
|
+
import { envVar } from './env.js';
|
|
36
37
|
import { readFileSync, writeFileSync, existsSync, mkdirSync } from 'node:fs';
|
|
37
38
|
import { spawn } from 'node:child_process';
|
|
38
39
|
import { join, dirname, sep } from 'node:path';
|
|
@@ -63,7 +64,7 @@ export function updateStatePath() {
|
|
|
63
64
|
}
|
|
64
65
|
|
|
65
66
|
export function updateCheckDisabled() {
|
|
66
|
-
return
|
|
67
|
+
return envVar('NO_UPDATE_CHECK') === '1' || !!process.env.NO_UPDATE_NOTIFIER;
|
|
67
68
|
}
|
|
68
69
|
|
|
69
70
|
export function readUpdateState() {
|