@aaac/runtime 0.2.10 → 0.3.1

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.
@@ -1,3 +1,3 @@
1
- export { c as GuardrailCheckEntry, G as GuardrailContext, a as GuardrailDiagnostic, d as ProjectConfig, e as ProjectConfigSchema, R as ResolvedConfig, f as buildGuardrailContext, l as loadProjectConfig, p as parseProjectManifest, r as readProjectManifest } from '../index-BHlvPqIp.js';
1
+ export { c as GuardrailCheckEntry, G as GuardrailContext, a as GuardrailDiagnostic, d as ProjectConfig, e as ProjectConfigSchema, R as ResolvedConfig, f as buildGuardrailContext, l as loadProjectConfig, p as parseProjectManifest, r as readProjectManifest } from '../index-DeZsmlij.js';
2
2
  import 'zod';
3
3
  import '../guardrail-hooks-BgHe8PrP.js';
@@ -114,6 +114,7 @@ declare const ProjectConfigSchema: z.ZodObject<{
114
114
  }, z.core.$strict>>;
115
115
  sync_command: z.ZodOptional<z.ZodString>;
116
116
  check_command: z.ZodOptional<z.ZodString>;
117
+ local_hook_install: z.ZodOptional<z.ZodBoolean>;
117
118
  }, z.core.$strict>>;
118
119
  }, z.core.$strict>>;
119
120
  active_guardrail_policy: z.ZodOptional<z.ZodString>;
package/dist/index.d.ts CHANGED
@@ -5,8 +5,8 @@ export { ModelClass } from '@aaac/contracts';
5
5
  import { z } from 'zod';
6
6
  import { b as GuardrailCheckFunctions, a as GuardrailRuleData, G as GuardrailHooks, H as HookResponse, c as GuardrailCheckResult } from './guardrail-hooks-BgHe8PrP.js';
7
7
  export { d as GuardrailAction, e as GuardrailRule, f as HookContext, U as UNRESOLVED_GUARDRAIL_ACTION, g as createGuardrailHooks, h as createGuardrailHooksFromRules, i as getBlockingViolations, j as getWarnings, k as hasBlockingViolation } from './guardrail-hooks-BgHe8PrP.js';
8
- import { G as GuardrailContext, P as ProgressLogConfig, R as ResolvedConfig, a as GuardrailDiagnostic } from './index-BHlvPqIp.js';
9
- export { b as PROJECT_CONFIG_FILENAME } from './index-BHlvPqIp.js';
8
+ import { G as GuardrailContext, P as ProgressLogConfig, R as ResolvedConfig, a as GuardrailDiagnostic } from './index-DeZsmlij.js';
9
+ export { b as PROJECT_CONFIG_FILENAME } from './index-DeZsmlij.js';
10
10
  import { OtelEmitter } from '@aaac/observability';
11
11
  export { ExecutionEnvelope } from '@aaac/observability';
12
12
  export { a as NavigationContext, N as NavigationContextOptions, b as buildNavigationContext } from './navigation-context-DJjCkrcj.js';
@@ -1566,6 +1566,7 @@ declare const ClaudeConfigSchema: z.ZodObject<{
1566
1566
  guard_command: z.ZodOptional<z.ZodString>;
1567
1567
  sync_command: z.ZodOptional<z.ZodString>;
1568
1568
  check_command: z.ZodOptional<z.ZodString>;
1569
+ local_hook_install: z.ZodDefault<z.ZodBoolean>;
1569
1570
  component_id: z.ZodOptional<z.ZodString>;
1570
1571
  }, z.core.$strip>;
1571
1572
  type ClaudeConfig = z.infer<typeof ClaudeConfigSchema>;
@@ -1608,6 +1609,11 @@ interface CheckResult {
1608
1609
  path: string;
1609
1610
  reason: "missing" | "changed" | "orphaned";
1610
1611
  }>;
1612
+ /**
1613
+ * Rendered files this check did not compare: the hook-install files absent
1614
+ * from disk in a project that declares `local_hook_install`. Empty otherwise.
1615
+ */
1616
+ skipped: string[];
1611
1617
  }
1612
1618
  /**
1613
1619
  * Materialize `.claude/*` and the CLAUDE.md integration block from the embedded DSL.
@@ -1620,6 +1626,11 @@ declare function syncClaude(opts: SyncOptions): Promise<SyncResult>;
1620
1626
  * Read-only drift gate. Reports files whose on-disk content differs from a
1621
1627
  * fresh render. For CLAUDE.md, drift means the aaac:claude-native block is
1622
1628
  * missing or stale (content outside the block is ignored).
1629
+ *
1630
+ * A project that keeps the hook install out of version control
1631
+ * (`local_hook_install`) has none of it in a fresh clone, so an install file
1632
+ * absent from disk is listed in `skipped` rather than compared. One that is
1633
+ * present is compared like any other, and the CLAUDE.md block is never skipped.
1623
1634
  */
1624
1635
  declare function checkClaude(opts: SyncOptions): Promise<CheckResult>;
1625
1636