@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 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}${r.pattern}`));
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}${r.pattern}`)),
2486
+ ...diskSettings.filter((r) => !seen.has(`${r.type}\u0000${r.pattern}`)),
2487
2487
  ],
2488
2488
  };
2489
2489
  })();
@@ -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 `apps/cli/src/advise-rules.ts` — the rule
343
- * library owns the canonical values, but runtime-core cannot import from
344
- * apps/cli, so the digest mirrors them here (a drift only ever means the
345
- * nudge line appears/hides slightly off the report; the report itself is
346
- * always authoritative).
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.6.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.6.0",
20
- "@crewhaus/adapter-anthropic": "0.6.0",
21
- "@crewhaus/agent-context-isolation": "0.6.0",
22
- "@crewhaus/boundary-classifier": "0.6.0",
23
- "@crewhaus/circuit-breaker": "0.6.0",
24
- "@crewhaus/compaction-autocompact": "0.6.0",
25
- "@crewhaus/compaction-curator": "0.6.0",
26
- "@crewhaus/compaction-snip": "0.6.0",
27
- "@crewhaus/cost-tracker": "0.6.0",
28
- "@crewhaus/egress-classifier": "0.6.0",
29
- "@crewhaus/errors": "0.6.0",
30
- "@crewhaus/event-log": "0.6.0",
31
- "@crewhaus/hooks-engine": "0.6.0",
32
- "@crewhaus/metrics-collector": "0.6.0",
33
- "@crewhaus/model-plan": "0.6.0",
34
- "@crewhaus/model-router": "0.6.0",
35
- "@crewhaus/otel-exporter": "0.6.0",
36
- "@crewhaus/permission-engine": "0.6.0",
37
- "@crewhaus/prompt-cache-manager": "0.6.0",
38
- "@crewhaus/prompt-injection-detector": "0.6.0",
39
- "@crewhaus/rate-limiter": "0.6.0",
40
- "@crewhaus/recovery-engine": "0.6.0",
41
- "@crewhaus/routing-store": "0.6.0",
42
- "@crewhaus/run-context": "0.6.0",
43
- "@crewhaus/session-store": "0.6.0",
44
- "@crewhaus/skills-registry": "0.6.0",
45
- "@crewhaus/slash-commands": "0.6.0",
46
- "@crewhaus/state-store": "0.6.0",
47
- "@crewhaus/streaming-tool-executor": "0.6.0",
48
- "@crewhaus/sub-agent-permission-inheritance": "0.6.0",
49
- "@crewhaus/structured-event-printer": "0.6.0",
50
- "@crewhaus/tenancy": "0.6.0",
51
- "@crewhaus/token-budget": "0.6.0",
52
- "@crewhaus/tool-catalog": "0.6.0",
53
- "@crewhaus/tool-executor": "0.6.0",
54
- "@crewhaus/tool-loop-detection": "0.6.0",
55
- "@crewhaus/tool-orchestrator": "0.6.0",
56
- "@crewhaus/tool-result-store": "0.6.0",
57
- "@crewhaus/trace-event-bus": "0.6.0",
58
- "@crewhaus/turn-state-machine": "0.6.0",
59
- "@crewhaus/worker-runtime": "0.6.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
  },