@intutic/sync-daemon 3.0.4 → 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 +1 -1
- package/dist/agentReporter.d.ts +1 -1
- package/dist/configReader.d.ts +1 -1
- package/dist/harness/claudeCodeHooks.d.ts +4 -23
- package/dist/harness/claudeCodeHooks.d.ts.map +1 -1
- package/dist/harness/cursorHooks.d.ts +1 -1
- package/dist/harness/cursorHooks.js +1 -1
- package/dist/lib/scopeMatchPy.js +1 -1
- package/dist/syncCycle.d.ts +1 -1
- package/dist/syncCycle.js +1 -1
- package/dist/trajectoryMonitor.d.ts +1 -1
- package/dist/trajectoryMonitor.js +1 -1
- package/package.json +6 -6
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 —
|
|
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
|
|
package/dist/agentReporter.d.ts
CHANGED
|
@@ -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
|
|
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
|
package/dist/configReader.d.ts
CHANGED
|
@@ -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
|
|
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.
|
|
26
|
-
patterns: z.
|
|
27
|
-
|
|
28
|
-
|
|
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,eAAO,MAAM,sBAAsB,IAA8B,CAAA;AAmBjE,eAAO,MAAM,wBAAwB
|
|
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,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` (
|
|
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` (
|
|
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
|
package/dist/lib/scopeMatchPy.js
CHANGED
|
@@ -44,7 +44,7 @@ SCOPE_MOVE_FROM_KEYS = ("source", "source_path", "from", "old_path")
|
|
|
44
44
|
SCOPE_MOVE_TO_KEYS = ("destination", "destination_path", "to", "new_path")
|
|
45
45
|
SCOPE_TARGET_MAX_BYTES = 512
|
|
46
46
|
PLAN_EXEMPT_TOOLS = ("read", "readfile", "view", "cat", "open_file", "glob", "grep", "ls", "list_dir", "search",
|
|
47
|
-
"todowrite")
|
|
47
|
+
"todowrite", "read_file", "list_directory")
|
|
48
48
|
FILE_WRITE_SHELL_PHRASES = ("sed -i", "perl -i", "perl -pi", "git apply", "git am", "git checkout", "git switch",
|
|
49
49
|
"git restore", "git reset", "git merge", "git pull", "git rebase", "git cherry-pick",
|
|
50
50
|
"git revert", "git stash pop", "git stash apply", "patch -p")
|
package/dist/syncCycle.d.ts
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` (
|
|
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` (
|
|
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
|
-
* `
|
|
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
|
-
* `
|
|
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.
|
|
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": "^
|
|
112
|
-
"@intutic/
|
|
113
|
-
"@intutic/mcp-governance-proxy": "3.0.
|
|
114
|
-
"@intutic/shared-types": "3.0.
|
|
115
|
-
"@intutic/
|
|
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",
|