claude-token-saver 3.42.2 β 3.42.3
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/package.json +1 -1
- package/src/cohesion.js +1 -1
- package/src/commands/handoff.js +2 -2
- package/src/commands/history.js +3 -3
- package/src/commands/update-check.js +2 -2
- package/src/commands/upgrade.js +4 -4
- package/src/harness-templates.js +4 -4
- package/src/korean-style.js +1 -1
- package/src/update-check.js +1 -1
package/package.json
CHANGED
package/src/cohesion.js
CHANGED
|
@@ -63,7 +63,7 @@ export async function cohesionInjection({ cfg = loadConfig() } = {}) {
|
|
|
63
63
|
if (!text) return null;
|
|
64
64
|
return [
|
|
65
65
|
'[sprag cohesion] Follow this guidance for English prose in this session.',
|
|
66
|
-
'The user enabled it in
|
|
66
|
+
'The user enabled it in sprag.',
|
|
67
67
|
'',
|
|
68
68
|
text,
|
|
69
69
|
].join('\n');
|
package/src/commands/handoff.js
CHANGED
|
@@ -4,8 +4,8 @@
|
|
|
4
4
|
* session can pick up where this one stopped. Pairs with the cap-warn chip:
|
|
5
5
|
* when statusline shows π¨ 5H 90%+, run this to back up state before the cap
|
|
6
6
|
* hits.
|
|
7
|
-
*
|
|
8
|
-
*
|
|
7
|
+
* sprag handoff # write to cwd
|
|
8
|
+
* sprag handoff --cwd PATH # custom directory
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
import { readStdinJson, extractCaps } from '../stdin-payload.js';
|
package/src/commands/history.js
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* Subcommand: history β print recent warning transitions captured by the
|
|
3
3
|
* statusline. One markdown file per day, persisted under the platform-
|
|
4
4
|
* specific user-data dir.
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
5
|
+
* sprag history # last 7 days
|
|
6
|
+
* sprag history --days 30 # custom window
|
|
7
|
+
* sprag history --list # just list available dates
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
|
|
@@ -57,8 +57,8 @@ export async function run({ hasFlag, version }) {
|
|
|
57
57
|
? `μ λ²μ μ΄ μμ΅λλ€: v${version} β ${s.latest}`
|
|
58
58
|
: `Update available: v${version} β ${s.latest}`);
|
|
59
59
|
console.log(lang === 'ko'
|
|
60
|
-
? `μ
κ·Έλ μ΄λ: ${upgradeCommand()} (λλ
|
|
61
|
-
: `Upgrade with: ${upgradeCommand()} (or:
|
|
60
|
+
? `μ
κ·Έλ μ΄λ: ${upgradeCommand()} (λλ sprag upgrade)`
|
|
61
|
+
: `Upgrade with: ${upgradeCommand()} (or: sprag upgrade)`);
|
|
62
62
|
if (s.dismissed) {
|
|
63
63
|
console.log(lang === 'ko'
|
|
64
64
|
? 'μ΄ λ²μ μ μ¬μ©μκ° ν λ² λκΈ΄ μνλΌ, μΈμ
μμ μμλ λ€μ λ¬»μ§ μμ΅λλ€.'
|
package/src/commands/upgrade.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* Subcommand: upgrade β install the latest release with the package manager
|
|
3
3
|
* that put this copy on disk.
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
5
|
+
* sprag upgrade # refresh the check, then install
|
|
6
|
+
* sprag upgrade --print # show the command, run nothing
|
|
7
7
|
*
|
|
8
8
|
* This is the command the model runs after the user says yes to the
|
|
9
9
|
* session-start offer, so it prints the exact command it is about to execute
|
|
@@ -63,6 +63,6 @@ export async function run({ hasFlag, version }) {
|
|
|
63
63
|
// the statusline chip clears on the next render instead of lingering.
|
|
64
64
|
await refreshUpdateState(s.latest);
|
|
65
65
|
console.log(lang === 'ko'
|
|
66
|
-
? `μ€μΉκ° λλ¬μ΅λλ€. μ μ
Έμμ
|
|
67
|
-
: `Done. In a fresh shell, run
|
|
66
|
+
? `μ€μΉκ° λλ¬μ΅λλ€. μ μ
Έμμ sprag --version μΌλ‘ ${s.latest} μΈμ§ νμΈνμμμ€.`
|
|
67
|
+
: `Done. In a fresh shell, run sprag --version to confirm ${s.latest}.`);
|
|
68
68
|
}
|
package/src/harness-templates.js
CHANGED
|
@@ -49,7 +49,7 @@ export const MODEL_RATCHET_IMPORT_RE = /^@(?:~\/\.claude|\.claude)\/ratchet-mode
|
|
|
49
49
|
export function harnessClaudeMdBlock(scope = 'project') {
|
|
50
50
|
const sections = HARNESS_SECTIONS.map((s) => s.heading).join('\n\n... (see full block below)');
|
|
51
51
|
return `${HARNESS_BLOCK_BEGIN}
|
|
52
|
-
## π
· Harness Rules (
|
|
52
|
+
## π
· Harness Rules (sprag)
|
|
53
53
|
|
|
54
54
|
μ΄ μΉμ
μ \`sprag harness init\`μ΄ μμ±ν©λλ€. 5κ°μ§ μμΉ λͺ¨λλ₯Ό
|
|
55
55
|
μ§ν€λ©΄ statuslineμ \`π
· 5/5\`λ‘ νμλκ³ , λΉ μ§ κ² μμΌλ©΄ \`π
· 3/5\` μμΌλ‘
|
|
@@ -59,7 +59,7 @@ export function harnessClaudeMdBlock(scope = 'project') {
|
|
|
59
59
|
${HARNESS_SECTIONS[0].heading}
|
|
60
60
|
- κ°μ μλ¬Β·μ€ν΄Β·λ°λ³΅ μμ
μ΄ ν λ² λ λ°μνλ©΄ μ¦μ \`.claude/ratchet.md\`μ
|
|
61
61
|
"쑰건 β νλ" ν μ€λ‘ λ£° μΆκ°.
|
|
62
|
-
-
|
|
62
|
+
- spragκ° ν보λ₯Ό κ°μ§νλ©΄ statuslineμ \`π
·β ratchet?\`λ‘ μλ¦Ό.
|
|
63
63
|
\`sprag harness promote "<rule>" --project|--global\`λ‘ μΉμΈ.
|
|
64
64
|
- **scopeλ νμ μ¬μ©μμκ² λ¨Όμ λ¬Όμ΄λ³Ό κ²** β νλ‘μ νΈ νμ μ΄λ©΄ \`--project\`,
|
|
65
65
|
λꡬ·νκ²½ μΌλ° λ£°μ΄λ©΄ \`--global\`(\`~/.claude/ratchet.md\`). Bash νκ²½μ
|
|
@@ -69,7 +69,7 @@ ${HARNESS_SECTIONS[0].heading}
|
|
|
69
69
|
μ§μ°λ©΄ ratchet.mdλ 컨ν
μ€νΈμ λ€μ΄μ€μ§ μμΌλ μ§μ°μ§ λ§ κ².
|
|
70
70
|
- **λͺ¨λΈ νΌν
λ«μ³**: \`.claude/ratchet-model.md\`(νλ‘μ νΈ)μ
|
|
71
71
|
\`~/.claude/ratchet-model.md\`(κΈλ‘λ²)μ μλ ν°μ΄ μμ λ£°λ ratchet.mdμ
|
|
72
|
-
λμΌνκ² λ°λ₯Ό κ². μ΄ νμΌμ
|
|
72
|
+
λμΌνκ² λ°λ₯Ό κ². μ΄ νμΌμ spragκ° λ‘κ·Έ κΈ°λ°μΌλ‘ μλ
|
|
73
73
|
μμ±Β·κ°±μ νλ―λ‘ μ§μ μμ νμ§ λ§ κ² (κ΄λ¦¬: \`route-scan rules\`).
|
|
74
74
|
|
|
75
75
|
${HARNESS_SECTIONS[1].heading}
|
|
@@ -123,7 +123,7 @@ ${HARNESS_BLOCK_END}
|
|
|
123
123
|
}
|
|
124
124
|
|
|
125
125
|
export function harnessRatchetMdInitial() {
|
|
126
|
-
return `# Ratchet Rules (auto-grown by
|
|
126
|
+
return `# Ratchet Rules (auto-grown by sprag)
|
|
127
127
|
|
|
128
128
|
κ°μ μ€μκ° λ λ² λ°μνλ©΄ μ¬κΈ°μ ν μ€ μΆκ°λ©λλ€. νμ: "YYYY-MM-DD: <쑰건> β <νλ>".
|
|
129
129
|
|
package/src/korean-style.js
CHANGED
|
@@ -181,7 +181,7 @@ export function koreanStyleInjection({ cfg = loadConfig() } = {}) {
|
|
|
181
181
|
if (!text) return null;
|
|
182
182
|
return [
|
|
183
183
|
'[sprag korean-style] μ΄ μΈμ
μμ νκ΅μ΄λ₯Ό μΆλ ₯ν λλ μλ μ§μΉ¨μ λ°λ₯΄μμμ€.',
|
|
184
|
-
'μ΄ μ§μΉ¨μ μ¬μ©μκ°
|
|
184
|
+
'μ΄ μ§μΉ¨μ μ¬μ©μκ° spragμ μ€μ ν κ²μ
λλ€.',
|
|
185
185
|
...koreanScopeLines(cfg),
|
|
186
186
|
'νκΈ° κ·μΉ(μμΈ μμ΄ μ μ©): λꡬ νΈμΆ μΈμμ νκ΅μ΄λ₯Ό λΉλ‘―ν λΉASCII λ¬Έμμ΄μ λ΄μ λμλ λ°λμ 리ν°λ΄ UTF-8λ‘ μμ±νκ³ , \\uXXXX μ λμ½λ μ΄μ€μΌμ΄νλ‘λ μ λ μμ±νμ§ λ§μμμ€. μ΄μ€μΌμ΄νλ‘ μμ±νλ©΄ κΈμκ° κΉ¨μ§ μ± νμΌμ κΈ°λ‘λλ μ¬λ‘κ° μμ£Ό λ°μν©λλ€.',
|
|
187
187
|
`(μΆμ²: ${KOREAN_STYLE_SOURCE})`,
|
package/src/update-check.js
CHANGED