@crewhaus/runtime-core 0.6.0 → 0.7.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/dist/index.js +2 -2
- package/dist/observability.js +6 -5
- package/package.json +42 -42
package/dist/index.js
CHANGED
|
@@ -2478,12 +2478,12 @@ export async function runChatLoop(opts) {
|
|
|
2478
2478
|
const diskSettings = loadSettingsRules(opts.settingsDir ?? process.cwd());
|
|
2479
2479
|
if (diskSettings.length === 0)
|
|
2480
2480
|
return base;
|
|
2481
|
-
const seen = new Set(base.settings.map((r) => `${r.type}
|
|
2481
|
+
const seen = new Set(base.settings.map((r) => `${r.type}\u0000${r.pattern}`));
|
|
2482
2482
|
return {
|
|
2483
2483
|
...base,
|
|
2484
2484
|
settings: [
|
|
2485
2485
|
...base.settings,
|
|
2486
|
-
...diskSettings.filter((r) => !seen.has(`${r.type}
|
|
2486
|
+
...diskSettings.filter((r) => !seen.has(`${r.type}\u0000${r.pattern}`)),
|
|
2487
2487
|
],
|
|
2488
2488
|
};
|
|
2489
2489
|
})();
|
package/dist/observability.js
CHANGED
|
@@ -339,11 +339,12 @@ export function attachAlertWatchdog(bus, runContext, env, options = {}) {
|
|
|
339
339
|
}
|
|
340
340
|
/**
|
|
341
341
|
* Cheap in-run thresholds for the digest tally. Keep in sync with
|
|
342
|
-
* `DEFAULT_ADVICE_THRESHOLDS` in `
|
|
343
|
-
* library owns the canonical values, but runtime-core cannot
|
|
344
|
-
*
|
|
345
|
-
*
|
|
346
|
-
*
|
|
342
|
+
* `DEFAULT_ADVICE_THRESHOLDS` in `@crewhaus/harness-advice` (advise-rules.ts)
|
|
343
|
+
* — the rule library owns the canonical values, but runtime-core cannot
|
|
344
|
+
* import them: harness-advice depends on runtime-core (through the compiler),
|
|
345
|
+
* so the edge only runs one way and the digest mirrors them here instead (a
|
|
346
|
+
* drift only ever means the nudge line appears/hides slightly off the report;
|
|
347
|
+
* the report itself is always authoritative).
|
|
347
348
|
*/
|
|
348
349
|
const DIGEST_THRESHOLDS = {
|
|
349
350
|
toolFailureMinCalls: 5,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@crewhaus/runtime-core",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Minimal runtime imported by generated harness bundles",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -16,47 +16,47 @@
|
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
18
|
"@anthropic-ai/sdk": "^0.96.0",
|
|
19
|
-
"@crewhaus/abort-controller": "0.
|
|
20
|
-
"@crewhaus/adapter-anthropic": "0.
|
|
21
|
-
"@crewhaus/agent-context-isolation": "0.
|
|
22
|
-
"@crewhaus/boundary-classifier": "0.
|
|
23
|
-
"@crewhaus/circuit-breaker": "0.
|
|
24
|
-
"@crewhaus/compaction-autocompact": "0.
|
|
25
|
-
"@crewhaus/compaction-curator": "0.
|
|
26
|
-
"@crewhaus/compaction-snip": "0.
|
|
27
|
-
"@crewhaus/cost-tracker": "0.
|
|
28
|
-
"@crewhaus/egress-classifier": "0.
|
|
29
|
-
"@crewhaus/errors": "0.
|
|
30
|
-
"@crewhaus/event-log": "0.
|
|
31
|
-
"@crewhaus/hooks-engine": "0.
|
|
32
|
-
"@crewhaus/metrics-collector": "0.
|
|
33
|
-
"@crewhaus/model-plan": "0.
|
|
34
|
-
"@crewhaus/model-router": "0.
|
|
35
|
-
"@crewhaus/otel-exporter": "0.
|
|
36
|
-
"@crewhaus/permission-engine": "0.
|
|
37
|
-
"@crewhaus/prompt-cache-manager": "0.
|
|
38
|
-
"@crewhaus/prompt-injection-detector": "0.
|
|
39
|
-
"@crewhaus/rate-limiter": "0.
|
|
40
|
-
"@crewhaus/recovery-engine": "0.
|
|
41
|
-
"@crewhaus/routing-store": "0.
|
|
42
|
-
"@crewhaus/run-context": "0.
|
|
43
|
-
"@crewhaus/session-store": "0.
|
|
44
|
-
"@crewhaus/skills-registry": "0.
|
|
45
|
-
"@crewhaus/slash-commands": "0.
|
|
46
|
-
"@crewhaus/state-store": "0.
|
|
47
|
-
"@crewhaus/streaming-tool-executor": "0.
|
|
48
|
-
"@crewhaus/sub-agent-permission-inheritance": "0.
|
|
49
|
-
"@crewhaus/structured-event-printer": "0.
|
|
50
|
-
"@crewhaus/tenancy": "0.
|
|
51
|
-
"@crewhaus/token-budget": "0.
|
|
52
|
-
"@crewhaus/tool-catalog": "0.
|
|
53
|
-
"@crewhaus/tool-executor": "0.
|
|
54
|
-
"@crewhaus/tool-loop-detection": "0.
|
|
55
|
-
"@crewhaus/tool-orchestrator": "0.
|
|
56
|
-
"@crewhaus/tool-result-store": "0.
|
|
57
|
-
"@crewhaus/trace-event-bus": "0.
|
|
58
|
-
"@crewhaus/turn-state-machine": "0.
|
|
59
|
-
"@crewhaus/worker-runtime": "0.
|
|
19
|
+
"@crewhaus/abort-controller": "0.7.0",
|
|
20
|
+
"@crewhaus/adapter-anthropic": "0.7.0",
|
|
21
|
+
"@crewhaus/agent-context-isolation": "0.7.0",
|
|
22
|
+
"@crewhaus/boundary-classifier": "0.7.0",
|
|
23
|
+
"@crewhaus/circuit-breaker": "0.7.0",
|
|
24
|
+
"@crewhaus/compaction-autocompact": "0.7.0",
|
|
25
|
+
"@crewhaus/compaction-curator": "0.7.0",
|
|
26
|
+
"@crewhaus/compaction-snip": "0.7.0",
|
|
27
|
+
"@crewhaus/cost-tracker": "0.7.0",
|
|
28
|
+
"@crewhaus/egress-classifier": "0.7.0",
|
|
29
|
+
"@crewhaus/errors": "0.7.0",
|
|
30
|
+
"@crewhaus/event-log": "0.7.0",
|
|
31
|
+
"@crewhaus/hooks-engine": "0.7.0",
|
|
32
|
+
"@crewhaus/metrics-collector": "0.7.0",
|
|
33
|
+
"@crewhaus/model-plan": "0.7.0",
|
|
34
|
+
"@crewhaus/model-router": "0.7.0",
|
|
35
|
+
"@crewhaus/otel-exporter": "0.7.0",
|
|
36
|
+
"@crewhaus/permission-engine": "0.7.0",
|
|
37
|
+
"@crewhaus/prompt-cache-manager": "0.7.0",
|
|
38
|
+
"@crewhaus/prompt-injection-detector": "0.7.0",
|
|
39
|
+
"@crewhaus/rate-limiter": "0.7.0",
|
|
40
|
+
"@crewhaus/recovery-engine": "0.7.0",
|
|
41
|
+
"@crewhaus/routing-store": "0.7.0",
|
|
42
|
+
"@crewhaus/run-context": "0.7.0",
|
|
43
|
+
"@crewhaus/session-store": "0.7.0",
|
|
44
|
+
"@crewhaus/skills-registry": "0.7.0",
|
|
45
|
+
"@crewhaus/slash-commands": "0.7.0",
|
|
46
|
+
"@crewhaus/state-store": "0.7.0",
|
|
47
|
+
"@crewhaus/streaming-tool-executor": "0.7.0",
|
|
48
|
+
"@crewhaus/sub-agent-permission-inheritance": "0.7.0",
|
|
49
|
+
"@crewhaus/structured-event-printer": "0.7.0",
|
|
50
|
+
"@crewhaus/tenancy": "0.7.0",
|
|
51
|
+
"@crewhaus/token-budget": "0.7.0",
|
|
52
|
+
"@crewhaus/tool-catalog": "0.7.0",
|
|
53
|
+
"@crewhaus/tool-executor": "0.7.0",
|
|
54
|
+
"@crewhaus/tool-loop-detection": "0.7.0",
|
|
55
|
+
"@crewhaus/tool-orchestrator": "0.7.0",
|
|
56
|
+
"@crewhaus/tool-result-store": "0.7.0",
|
|
57
|
+
"@crewhaus/trace-event-bus": "0.7.0",
|
|
58
|
+
"@crewhaus/turn-state-machine": "0.7.0",
|
|
59
|
+
"@crewhaus/worker-runtime": "0.7.0",
|
|
60
60
|
"zod": "^3.23.8",
|
|
61
61
|
"zod-to-json-schema": "^3.23.5"
|
|
62
62
|
},
|