@ethlete/agent-rules 0.1.0-next.3 → 0.1.0-next.4
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 +10 -0
- package/content/hooks/context-warning.py +61 -8
- package/content/skills/angular-patterns/SKILL.md +1 -1
- package/content/skills/rxjs-signals/SKILL.md +1 -1
- package/content/skills/theming/SKILL.md +1 -1
- package/package.json +1 -1
- package/src/lib/config.d.ts +4 -0
- package/src/lib/config.js +1 -1
- package/src/lib/config.js.map +1 -1
- package/src/lib/plan.js +5 -1
- package/src/lib/plan.js.map +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
# @ethlete/agent-rules
|
|
2
2
|
|
|
3
|
+
## 0.1.0-next.4
|
|
4
|
+
|
|
5
|
+
### Minor Changes
|
|
6
|
+
|
|
7
|
+
- [#3045](https://github.com/ethlete-io/ethdk/pull/3045) [`fcd14f0`](https://github.com/ethlete-io/ethdk/commit/fcd14f09b4b09f81b5bde9f128a0fac4b0e2245c) Thanks [@github-actions](https://github.com/apps/github-actions)! - Add `disableAutoHandoffSave` to `ethlete-agents.config.local.json`, to opt out of the context-warning hook's auto-mode auto-save at the critical tier while keeping its normal warnings.
|
|
8
|
+
|
|
9
|
+
### Patch Changes
|
|
10
|
+
|
|
11
|
+
- [#3045](https://github.com/ethlete-io/ethdk/pull/3045) [`eb1b0a9`](https://github.com/ethlete-io/ethdk/commit/eb1b0a9cfb4e868b13a2b8eb6fd13221a6e0a654) Thanks [@github-actions](https://github.com/apps/github-actions)! - `context-warning` hook: in auto mode, the critical-tier warning now saves a `/handoff` immediately instead of just recommending it.
|
|
12
|
+
|
|
3
13
|
## 0.1.0-next.3
|
|
4
14
|
|
|
5
15
|
### Patch Changes
|
|
@@ -6,6 +6,14 @@ the last main-chain assistant message in the session transcript, and emits a
|
|
|
6
6
|
warning (visible to both the user and Claude) when it crosses a threshold.
|
|
7
7
|
Recommends the /handoff skill so work can continue in a fresh session.
|
|
8
8
|
|
|
9
|
+
At the critical tier, if the session's permission_mode is "auto", the
|
|
10
|
+
instruction escalates from "recommend" to "just do it": auto mode already
|
|
11
|
+
means the user wants Claude acting without stopping to ask, and clearing +
|
|
12
|
+
resuming can't be triggered programmatically (no hook or tool can submit
|
|
13
|
+
input to a running session), so the best available automation is to save the
|
|
14
|
+
handoff file itself immediately rather than waiting for Claude to notice a
|
|
15
|
+
natural stopping point.
|
|
16
|
+
|
|
9
17
|
The thresholds are fractions of a token budget, and the budget is capped at the
|
|
10
18
|
200k long-context pricing boundary: on models with a larger window, every
|
|
11
19
|
request past that point bills the entire context at the premium rate, which
|
|
@@ -16,6 +24,9 @@ if the context shrinks again (e.g. after /compact).
|
|
|
16
24
|
|
|
17
25
|
Can be disabled per machine via a gitignored ethlete-agents.config.local.json
|
|
18
26
|
at the repo root: {"disableHooks": true} or {"disableHooks": ["context-warning"]}.
|
|
27
|
+
To keep the tiered warnings but drop just the auto-mode auto-save escalation,
|
|
28
|
+
use {"disableAutoHandoffSave": true} instead - the critical tier then falls
|
|
29
|
+
back to recommending /handoff, same as non-auto mode.
|
|
19
30
|
|
|
20
31
|
Fail-safe: any error exits 0 with no output — the hook must never block a prompt.
|
|
21
32
|
"""
|
|
@@ -54,19 +65,30 @@ CONTEXT_WINDOWS = (
|
|
|
54
65
|
DEFAULT_WINDOW = 200_000
|
|
55
66
|
|
|
56
67
|
|
|
57
|
-
def
|
|
58
|
-
"""
|
|
68
|
+
def load_local_config():
|
|
69
|
+
"""Parsed ethlete-agents.config.local.json at the repo root, or {} if missing/unreadable."""
|
|
59
70
|
root = os.environ.get("CLAUDE_PROJECT_DIR")
|
|
60
71
|
if not root:
|
|
61
|
-
return
|
|
72
|
+
return {}
|
|
62
73
|
try:
|
|
63
74
|
with open(os.path.join(root, LOCAL_CONFIG_FILE), encoding="utf-8") as f:
|
|
64
|
-
|
|
75
|
+
config = json.load(f)
|
|
65
76
|
except (OSError, ValueError, AttributeError):
|
|
66
|
-
return
|
|
77
|
+
return {}
|
|
78
|
+
return config if isinstance(config, dict) else {}
|
|
79
|
+
|
|
80
|
+
|
|
81
|
+
def disabled_locally(config):
|
|
82
|
+
"""True when the local config disables this hook (or all hooks) on this machine."""
|
|
83
|
+
disabled = config.get("disableHooks")
|
|
67
84
|
return disabled is True or (isinstance(disabled, list) and HOOK_NAME in disabled)
|
|
68
85
|
|
|
69
86
|
|
|
87
|
+
def auto_handoff_save_disabled(config):
|
|
88
|
+
"""True when the local config opts out of the auto-mode critical-tier auto-save."""
|
|
89
|
+
return config.get("disableAutoHandoffSave") is True
|
|
90
|
+
|
|
91
|
+
|
|
70
92
|
def window_for(model):
|
|
71
93
|
"""Context window for a model id, by first substring match; DEFAULT_WINDOW otherwise."""
|
|
72
94
|
if model:
|
|
@@ -106,15 +128,42 @@ def context_state(transcript_path):
|
|
|
106
128
|
return tokens, last_model
|
|
107
129
|
|
|
108
130
|
|
|
109
|
-
def messages(tier, tokens, budget, priced):
|
|
131
|
+
def messages(tier, tokens, budget, priced, auto_mode):
|
|
110
132
|
"""(systemMessage, additionalContext) for a tier.
|
|
111
133
|
|
|
112
134
|
priced: the budget is the pricing boundary, not the window — the reason to
|
|
113
135
|
hand off is cost, not an imminent auto-compact.
|
|
136
|
+
auto_mode: at the critical tier, escalates from "recommend /handoff" to
|
|
137
|
+
"save it now" — see the module docstring for why.
|
|
114
138
|
"""
|
|
115
139
|
k = f"~{tokens // 1000}k"
|
|
116
140
|
pct = round(tokens / budget * 100)
|
|
117
141
|
budget_k = f"{budget // 1000}k"
|
|
142
|
+
if tier == 2 and auto_mode and priced:
|
|
143
|
+
return (
|
|
144
|
+
f"🔴 Context is at {k} tokens — about to cross the {budget_k} long-context "
|
|
145
|
+
f"pricing boundary. Auto mode is active: saving a handoff now.",
|
|
146
|
+
f"[context-warning hook] The context is at {k} tokens — {pct}% of the "
|
|
147
|
+
f"{budget_k} long-context pricing boundary. Auto mode is active, so don't just "
|
|
148
|
+
"recommend a handoff — run the handoff skill's save mode right now (finish only "
|
|
149
|
+
"an in-flight atomic edit first, nothing new). Then tell the user exactly which "
|
|
150
|
+
"handoff file was written and that they should run /clear, then "
|
|
151
|
+
"'/handoff resume <slug>', to continue — clearing and resuming can't be done "
|
|
152
|
+
"programmatically, so this is the one step still on them.",
|
|
153
|
+
)
|
|
154
|
+
if tier == 2 and auto_mode:
|
|
155
|
+
return (
|
|
156
|
+
f"🔴 Context is at {k} tokens ({pct}% of the {budget_k} window) — "
|
|
157
|
+
f"auto-compact is imminent. Auto mode is active: saving a handoff now.",
|
|
158
|
+
f"[context-warning hook] The context window is at {k} tokens — {pct}% of "
|
|
159
|
+
f"this model's {budget_k} window (critical, ≥{int(CRITICAL_FRACTION * 100)}%). "
|
|
160
|
+
"Auto mode is active, so don't just recommend a handoff — run the handoff "
|
|
161
|
+
"skill's save mode right now (finish only an in-flight atomic edit first, "
|
|
162
|
+
"nothing new). Then tell the user exactly which handoff file was written and "
|
|
163
|
+
"that they should run /clear, then '/handoff resume <slug>', to continue — "
|
|
164
|
+
"clearing and resuming can't be done programmatically, so this is the one step "
|
|
165
|
+
"still on them.",
|
|
166
|
+
)
|
|
118
167
|
if tier == 2 and priced:
|
|
119
168
|
return (
|
|
120
169
|
f"🔴 Context is at {k} tokens — about to cross the {budget_k} long-context "
|
|
@@ -156,11 +205,13 @@ def messages(tier, tokens, budget, priced):
|
|
|
156
205
|
|
|
157
206
|
|
|
158
207
|
def main():
|
|
159
|
-
|
|
208
|
+
local_config = load_local_config()
|
|
209
|
+
if disabled_locally(local_config):
|
|
160
210
|
return
|
|
161
211
|
data = json.load(sys.stdin)
|
|
162
212
|
transcript_path = data.get("transcript_path")
|
|
163
213
|
session_id = data.get("session_id", "unknown")
|
|
214
|
+
auto_mode = data.get("permission_mode") == "auto" and not auto_handoff_save_disabled(local_config)
|
|
164
215
|
if not transcript_path or not os.path.isfile(transcript_path):
|
|
165
216
|
return
|
|
166
217
|
|
|
@@ -191,7 +242,9 @@ def main():
|
|
|
191
242
|
if tier <= prev_tier:
|
|
192
243
|
return # already warned at this tier (or context shrank — state re-armed above)
|
|
193
244
|
|
|
194
|
-
system_message, additional_context = messages(
|
|
245
|
+
system_message, additional_context = messages(
|
|
246
|
+
tier, tokens, budget, budget < window, auto_mode
|
|
247
|
+
)
|
|
195
248
|
|
|
196
249
|
print(
|
|
197
250
|
json.dumps(
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: angular-patterns
|
|
3
|
-
description: How to build Angular pieces the Ethlete way - templates, lifecycle, and when to reach for a component/directive/service/pipe vs a plain function. Read when writing or restructuring a component, directive, service, or pipe, wiring up lifecycle, or binding values in a template.
|
|
3
|
+
description: How to build Angular pieces the Ethlete way - templates, lifecycle, and when to reach for a component/directive/service/pipe vs a plain function. Read when writing or restructuring a component, directive, service, or pipe, wiring up lifecycle, or binding values in a template.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: both
|
|
6
6
|
requires: ['@ethlete/core']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: rxjs-signals
|
|
3
|
-
description: How to choose between signals and RxJS, and use each correctly - synchronous state vs asynchronous work, unsubscribing, and avoiding RxJS inside effects/computeds. Read when adding reactive state, wiring up an observable, or deciding whether something should be a signal or a stream.
|
|
3
|
+
description: How to choose between signals and RxJS, and use each correctly - synchronous state vs asynchronous work, unsubscribing, and avoiding RxJS inside effects/computeds. Read when adding reactive state, wiring up an observable, or deciding whether something should be a signal or a stream.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: both
|
|
6
6
|
requires: ['@ethlete/core']
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: theming
|
|
3
|
-
description: The two runtime theming systems in @ethlete/core - surface theming (elevation-aware neutrals) and color theming (semantic accent palettes)
|
|
3
|
+
description: The two runtime theming systems in @ethlete/core - surface theming (elevation-aware neutrals) and color theming (semantic accent palettes). Read BEFORE writing or reviewing CSS involving color, background, border, or interaction state, and when wiring theme context across overlay/portal boundaries.
|
|
4
4
|
kind: skill
|
|
5
5
|
scope: consumer
|
|
6
6
|
requires: ['@ethlete/core']
|
package/package.json
CHANGED
package/src/lib/config.d.ts
CHANGED
|
@@ -26,11 +26,15 @@ export type SyncConfig = {
|
|
|
26
26
|
* so nothing here may change what gets emitted:
|
|
27
27
|
*
|
|
28
28
|
* - `disableHooks: true` silences every generated hook, `["context-warning"]` just the named ones.
|
|
29
|
+
* - `disableAutoHandoffSave: true` keeps the context-warning hook's normal tiered messages (including
|
|
30
|
+
* in auto mode), but at the critical tier in auto mode it falls back to just recommending
|
|
31
|
+
* `/handoff` instead of writing the handoff file automatically.
|
|
29
32
|
* - `sdkSourcePath` points at a local `ethlete-sdk` checkout, which the SDK source and local-build
|
|
30
33
|
* skills read when they need the SDK's own sources instead of the published package.
|
|
31
34
|
*/
|
|
32
35
|
export type LocalConfig = {
|
|
33
36
|
disableHooks?: boolean | string[];
|
|
37
|
+
disableAutoHandoffSave?: boolean;
|
|
34
38
|
sdkSourcePath?: string;
|
|
35
39
|
};
|
|
36
40
|
export type LocalConfigState = {
|
package/src/lib/config.js
CHANGED
|
@@ -13,7 +13,7 @@ const readRawConfig = (root) => {
|
|
|
13
13
|
return {};
|
|
14
14
|
return JSON.parse((0, fs_1.readFileSync)(path, 'utf8'));
|
|
15
15
|
};
|
|
16
|
-
const LOCAL_CONFIG_KEYS = ['disableHooks', 'sdkSourcePath'];
|
|
16
|
+
const LOCAL_CONFIG_KEYS = ['disableHooks', 'disableAutoHandoffSave', 'sdkSourcePath'];
|
|
17
17
|
const readLocalConfig = (root) => {
|
|
18
18
|
const path = (0, path_1.join)(root, exports.LOCAL_CONFIG_FILE_NAME);
|
|
19
19
|
if (!(0, fs_1.existsSync)(path))
|
package/src/lib/config.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../../../libs/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,OAAO,CAAC,CAAC;IAE5B,OAAO;QACL,IAAI;QACJ,OAAO;QACP,MAAM,EAAE,GAAG,CAAC,OAAO,KAAK,KAAK,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,MAAM,CAAC;QAC/D,IAAI,kCAAO,IAAA,8BAAe,GAAE,GAAK,CAAC,MAAA,GAAG,CAAC,IAAI,mCAAI,EAAE,CAAC,CAAE;QACnD,OAAO,EAAE,MAAA,GAAG,CAAC,OAAO,mCAAI,EAAE;QAC1B,uBAAuB,EAAE,MAAA,GAAG,CAAC,uBAAuB,mCAAI,KAAK;QAC7D,KAAK,EAAE,MAAA,GAAG,CAAC,KAAK,mCAAI,EAAE;KACvB,CAAC;AACJ,CAAC,CAAC;AAjBW,QAAA,UAAU,cAiBrB"}
|
package/src/lib/plan.js
CHANGED
|
@@ -64,7 +64,7 @@ const collectLocalConfigWarnings = (root) => {
|
|
|
64
64
|
}
|
|
65
65
|
const warnings = [];
|
|
66
66
|
if (local.unknownKeys.length > 0) {
|
|
67
|
-
warnings.push(`${config_1.LOCAL_CONFIG_FILE_NAME} contains unsupported key(s): ${local.unknownKeys.join(', ')} — the local file supports "disableHooks" and "sdkSourcePath"; it never changes what sync writes.`);
|
|
67
|
+
warnings.push(`${config_1.LOCAL_CONFIG_FILE_NAME} contains unsupported key(s): ${local.unknownKeys.join(', ')} — the local file supports "disableHooks", "disableAutoHandoffSave" and "sdkSourcePath"; it never changes what sync writes.`);
|
|
68
68
|
}
|
|
69
69
|
warnings.push(...describeSdkSourcePath({ root, value: local.config.sdkSourcePath }));
|
|
70
70
|
const disable = local.config.disableHooks;
|
|
@@ -77,6 +77,10 @@ const collectLocalConfigWarnings = (root) => {
|
|
|
77
77
|
warnings.push(`${config_1.LOCAL_CONFIG_FILE_NAME} disables unknown hook(s): ${unknown.join(', ')}. Known hooks: ${Object.keys(claude_hooks_1.CLAUDE_HOOKS).join(', ')}.`);
|
|
78
78
|
}
|
|
79
79
|
}
|
|
80
|
+
const disableAutoHandoffSave = local.config.disableAutoHandoffSave;
|
|
81
|
+
if (disableAutoHandoffSave !== undefined && typeof disableAutoHandoffSave !== 'boolean') {
|
|
82
|
+
warnings.push(`${config_1.LOCAL_CONFIG_FILE_NAME} has an invalid "disableAutoHandoffSave" value — use true or false.`);
|
|
83
|
+
}
|
|
80
84
|
return warnings;
|
|
81
85
|
};
|
|
82
86
|
const collectWarnings = (config) => {
|
package/src/lib/plan.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan.js","sourceRoot":"","sources":["../../../../../libs/agent-rules/src/lib/plan.ts"],"names":[],"mappings":";;;AAAA,2BAAuE;AACvE,+BAAqC;AACrC,qCAA+E;AAC/E,qCAAsD;AACtD,iDAA0D;AAC1D,2DAA2D;AAC3D,yDAA+G;AAC/G,6CAA8C;AAC9C,2CAAwD;AACxD,+CAA8D;AAC9D,6CAA8C;AAY9C,MAAM,kBAAkB,GAAG,sCAAsC,CAAC;AAElE,MAAM,iBAAiB,GAAG,CAAC,KAAoB,EAAE,aAA0B,EAAE,EAAE,CAC7E,KAAK,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CACrB,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,kBAAkB,CAAC,CAAC;KACxC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,CAAC,CAAW,CAAC;KAClC,MAAM,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;KAC1C,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC,EAAE,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAC9D,CAAC;AAEJ,MAAM,YAAY,GAAG,CAAC,IAAY,EAAE,YAAoB,EAAE,EAAE;I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