@intutic/sync-daemon 3.0.5 → 3.0.7

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/README.md CHANGED
@@ -62,7 +62,7 @@ intutic connect --interval 10000 # Custom sync interval (milliseconds)
62
62
 
63
63
  ## Part of Intutic
64
64
 
65
- This package is part of the [Intutic](https://github.com/intutic/intutic) monorepo — an open-core AI governance control plane for developer teams.
65
+ This package is part of the [Intutic](https://github.com/intutic/intutic) monorepo — policy as code for AI agents, enforced at the tool call.
66
66
 
67
67
  ## License
68
68
 
@@ -101,7 +101,7 @@ interface AgentFacets {
101
101
  /**
102
102
  * sha256 of the `SKILL.md` content this row describes, as the judge
103
103
  * receives it (`skillContentForTransport`: the first 65536 characters) (Phase S5) —
104
- * lets `services/control-plane/src/routes/agents.ts` look up
104
+ * lets the control plane look up
105
105
  * a previously-judged semantic verdict
106
106
  * (`services/semanticSkillAnalysisService.ts`'s `skills:semantic:*`
107
107
  * Valkey entry) keyed by the exact content this cycle read, without this
@@ -29,7 +29,7 @@ export declare function redactConfigText(text: string): string;
29
29
  * was missing an `Array.isArray` guard the control-plane side had). Both
30
30
  * sides now derive from `packages/shared-types/src/governanceCoverage.ts`'s
31
31
  * single mapping — safe for this module to depend on since it is a leaf
32
- * package, not `services/control-plane` itself, so the publicly-mirrored
32
+ * package, not the control plane itself, so the publicly-mirrored
33
33
  * `services/sync-daemon` still never imports from the enterprise-only
34
34
  * service.
35
35
  */
@@ -22,29 +22,10 @@ export declare const REVIEW_REQUESTS_BASENAME = "review-requests.jsonl";
22
22
  export declare const REVIEW_REQUESTS_LOG = ".intutic/events/review-requests.jsonl";
23
23
  export declare const REVIEW_REQUEST_VERSION = 1;
24
24
  export declare const SopHookConstraintsSchema: z.ZodObject<{
25
- highRiskTools: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
26
- patterns: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
27
- /**
28
- * Actions that must not run until a human has approved the run.
29
- *
30
- * Distinct from `patterns`, which is a permanent denial. This is a *hold*: the
31
- * action is legitimate, and someone wants to see it before it happens.
32
- *
33
- * This is the half of the review gate that is genuinely pre-execution. The
34
- * proxy can only refuse the request *after* a harness has already run the tool
35
- * — it sees the call in the next message. The hook runs before, so declaring
36
- * `action:deploy` here stops the push itself, not merely everything after it.
37
- */
38
- reviewBefore: z.ZodEffects<z.ZodDefault<z.ZodArray<z.ZodString, "many">>, string[], unknown>;
39
- }, "strip", z.ZodTypeAny, {
40
- highRiskTools: string[];
41
- patterns: string[];
42
- reviewBefore: string[];
43
- }, {
44
- highRiskTools?: unknown;
45
- patterns?: unknown;
46
- reviewBefore?: unknown;
47
- }>;
25
+ highRiskTools: z.ZodPreprocess<z.ZodDefault<z.ZodArray<z.ZodString>>, unknown>;
26
+ patterns: z.ZodPreprocess<z.ZodDefault<z.ZodArray<z.ZodString>>, unknown>;
27
+ reviewBefore: z.ZodPreprocess<z.ZodDefault<z.ZodArray<z.ZodString>>, unknown>;
28
+ }, z.core.$strip>;
48
29
  export type SopHookConstraints = z.infer<typeof SopHookConstraintsSchema>;
49
30
  export declare function parseSopConstraints(sops: SyncSopEntry[], settings?: Record<string, unknown> | import('@intutic/shared-types').WorkspaceSettings): SopHookConstraints;
50
31
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"claudeCodeHooks.d.ts","sourceRoot":"","sources":["../../src/harness/claudeCodeHooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AACvB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AA8BzD,gFAAgF;AAChF,eAAO,MAAM,eAAe,sCAAsC,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,0BAAgC,CAAA;AACrE,eAAO,MAAM,mBAAmB,0CAA2B,CAAA;AAC3D,e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,eAAO,MAAM,eAAe,sCAAsC,CAAA;AAElE;;;;GAIG;AACH,eAAO,MAAM,wBAAwB,0BAAgC,CAAA;AACrE,eAAO,MAAM,mBAAmB,0CAA2B,CAAA;AAC3D,eAAO,MAAM,sBAAsB,IAA8B,CAAA;AAmBjE,eAAO,MAAM,wBAAwB;;;;iBAenC,CAAA;AAEF,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAA;AAsCzE,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,uBAAuB,EAAE,iBAAiB,GACrF,kBAAkB,CAgHpB;AAED;;;;;;;;;GASG;AACH,wBAAsB,qBAAqB,CACzC,aAAa,EAAE,MAAM,EACrB,IAAI,EAAE,YAAY,EAAE,EACpB,QAAQ,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,uBAAuB,EAAE,iBAAiB,EACtF,eAAe,CAAC,EAAE,MAAM,EACxB,WAAW,CAAC,EAAE,MAAM,EACpB,WAAW,SAAgB,GAC1B,OAAO,CAAC,IAAI,CAAC,CAoXf;AAkPD;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,CAWjB;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAsB,mBAAmB,CACvC,aAAa,EAAE,MAAM,EACrB,eAAe,EAAE,MAAM,EACvB,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,MAAM,CAAC,CAQjB"}
@@ -37,7 +37,7 @@ export declare function systemHooksDirFor(platform: NodeJS.Platform): string;
37
37
  /**
38
38
  * Build a Cursor hooks.json config object.
39
39
  *
40
- * Exported so `enterprise install` (`tools/cli/src/lib/mdmManifest.ts`) can
40
+ * Exported so `enterprise install` (the control-plane CLI plugin's mdmManifest) can
41
41
  * populate its generated MDM hooks manifest from the SAME shape this file
42
42
  * writes, rather than a hand-retyped literal — which is exactly how that
43
43
  * manifest drifted before (it named `pre-tool-check.js`, this file's real
@@ -65,7 +65,7 @@ export function systemHooksDirFor(platform) {
65
65
  /**
66
66
  * Build a Cursor hooks.json config object.
67
67
  *
68
- * Exported so `enterprise install` (`tools/cli/src/lib/mdmManifest.ts`) can
68
+ * Exported so `enterprise install` (the control-plane CLI plugin's mdmManifest) can
69
69
  * populate its generated MDM hooks manifest from the SAME shape this file
70
70
  * writes, rather than a hand-retyped literal — which is exactly how that
71
71
  * manifest drifted before (it named `pre-tool-check.js`, this file's real
@@ -2,7 +2,7 @@
2
2
  * syncCycle.ts — the per-cycle work `intutic connect` runs against the
3
3
  * control plane.
4
4
  *
5
- * `intutic connect` (tools/cli/src/commands/connect.ts) owns the loop: it
5
+ * `intutic connect` (the control-plane CLI plugin's connect command) owns the loop: it
6
6
  * polls the control plane, listens for pushed config over the WebSocket, and
7
7
  * on each cycle calls the helpers below. They live here, not in the CLI, so
8
8
  * they can be tested without starting a daemon and so the gate-side caches
package/dist/syncCycle.js CHANGED
@@ -2,7 +2,7 @@
2
2
  * syncCycle.ts — the per-cycle work `intutic connect` runs against the
3
3
  * control plane.
4
4
  *
5
- * `intutic connect` (tools/cli/src/commands/connect.ts) owns the loop: it
5
+ * `intutic connect` (the control-plane CLI plugin's connect command) owns the loop: it
6
6
  * polls the control plane, listens for pushed config over the WebSocket, and
7
7
  * on each cycle calls the helpers below. They live here, not in the CLI, so
8
8
  * they can be tested without starting a daemon and so the gate-side caches
@@ -2,7 +2,7 @@
2
2
  * Trajectory Monitor — Daemon-side session watcher.
3
3
  *
4
4
  * Runs in the `intutic connect` process, not a Worker thread:
5
- * `tools/cli/src/commands/connect.ts` subscribes to the Valkey pub/sub
5
+ * the `connect` command (the control-plane CLI plugin) subscribes to the Valkey pub/sub
6
6
  * `trace:live:*` channels and passes each event to `handleTraceEvent`. Events
7
7
  * are buffered per session in a sliding window, and trajectory summaries are
8
8
  * submitted to the control plane for analysis.
@@ -2,7 +2,7 @@
2
2
  * Trajectory Monitor — Daemon-side session watcher.
3
3
  *
4
4
  * Runs in the `intutic connect` process, not a Worker thread:
5
- * `tools/cli/src/commands/connect.ts` subscribes to the Valkey pub/sub
5
+ * the `connect` command (the control-plane CLI plugin) subscribes to the Valkey pub/sub
6
6
  * `trace:live:*` channels and passes each event to `handleTraceEvent`. Events
7
7
  * are buffered per session in a sliding window, and trajectory summaries are
8
8
  * submitted to the control plane for analysis.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@intutic/sync-daemon",
3
- "version": "3.0.5",
3
+ "version": "3.0.7",
4
4
  "description": "Intutic Sync Daemon — bidirectional state sync between control plane and developer workspaces",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -108,11 +108,11 @@
108
108
  "smol-toml": "^1.9.0",
109
109
  "ws": "^8.21.0",
110
110
  "yaml": "^2.9.0",
111
- "zod": "^3",
112
- "@intutic/id": "3.0.5",
113
- "@intutic/logger": "3.0.5",
114
- "@intutic/mcp-governance-proxy": "3.0.5",
115
- "@intutic/shared-types": "3.0.5"
111
+ "zod": "^4.6.6",
112
+ "@intutic/id": "3.0.7",
113
+ "@intutic/mcp-governance-proxy": "3.0.7",
114
+ "@intutic/shared-types": "3.0.7",
115
+ "@intutic/logger": "3.0.7"
116
116
  },
117
117
  "devDependencies": {
118
118
  "@types/node": "^22",