@intutic/cli 2.2.0 → 2.4.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/README.md +8 -8
- package/dist/cli.d.ts +0 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +582 -21
- package/dist/cli.js.map +1 -1
- package/dist/commands/apiCommand.d.ts +40 -0
- package/dist/commands/apiCommand.d.ts.map +1 -0
- package/dist/commands/apiCommand.js +88 -0
- package/dist/commands/apiCommand.js.map +1 -0
- package/dist/commands/budget.d.ts +4 -0
- package/dist/commands/budget.d.ts.map +1 -1
- package/dist/commands/budget.js +8 -0
- package/dist/commands/budget.js.map +1 -1
- package/dist/commands/budgetLimits.d.ts +70 -0
- package/dist/commands/budgetLimits.d.ts.map +1 -0
- package/dist/commands/budgetLimits.js +223 -0
- package/dist/commands/budgetLimits.js.map +1 -0
- package/dist/commands/compliance.d.ts +122 -0
- package/dist/commands/compliance.d.ts.map +1 -0
- package/dist/commands/compliance.js +278 -0
- package/dist/commands/compliance.js.map +1 -0
- package/dist/commands/connect.d.ts +26 -1
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/connect.js +109 -51
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/credentials.d.ts +6 -2
- package/dist/commands/credentials.d.ts.map +1 -1
- package/dist/commands/credentials.js +99 -10
- package/dist/commands/credentials.js.map +1 -1
- package/dist/commands/decision.d.ts +4 -4
- package/dist/commands/decision.js +4 -4
- package/dist/commands/disconnect.d.ts +4 -0
- package/dist/commands/disconnect.d.ts.map +1 -1
- package/dist/commands/disconnect.js +17 -3
- package/dist/commands/disconnect.js.map +1 -1
- package/dist/commands/doctor.d.ts +0 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +0 -1
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/enforce.d.ts +1 -1
- package/dist/commands/enforce.js +1 -1
- package/dist/commands/enterprise.d.ts +3 -2
- package/dist/commands/enterprise.d.ts.map +1 -1
- package/dist/commands/enterprise.js +11 -3
- package/dist/commands/enterprise.js.map +1 -1
- package/dist/commands/env.js +1 -1
- package/dist/commands/exec.d.ts +2 -3
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +4 -5
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/gateLiveness.d.ts +15 -0
- package/dist/commands/gateLiveness.d.ts.map +1 -0
- package/dist/commands/gateLiveness.js +34 -0
- package/dist/commands/gateLiveness.js.map +1 -0
- package/dist/commands/gateway.d.ts +14 -4
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +34 -4
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/github.d.ts +20 -0
- package/dist/commands/github.d.ts.map +1 -0
- package/dist/commands/github.js +41 -0
- package/dist/commands/github.js.map +1 -0
- package/dist/commands/guardrails.d.ts +28 -2
- package/dist/commands/guardrails.d.ts.map +1 -1
- package/dist/commands/guardrails.js +233 -24
- package/dist/commands/guardrails.js.map +1 -1
- package/dist/commands/incidents.d.ts +32 -0
- package/dist/commands/incidents.d.ts.map +1 -0
- package/dist/commands/incidents.js +94 -0
- package/dist/commands/incidents.js.map +1 -0
- package/dist/commands/init.d.ts +1 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +1 -2
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install-daemon.d.ts +1 -1
- package/dist/commands/install-daemon.js +2 -2
- package/dist/commands/integrity.d.ts +10 -2
- package/dist/commands/integrity.d.ts.map +1 -1
- package/dist/commands/integrity.js +3 -3
- package/dist/commands/integrity.js.map +1 -1
- package/dist/commands/inventory.d.ts +60 -0
- package/dist/commands/inventory.d.ts.map +1 -0
- package/dist/commands/inventory.js +141 -0
- package/dist/commands/inventory.js.map +1 -0
- package/dist/commands/judge.d.ts +1 -1
- package/dist/commands/judge.js +2 -2
- package/dist/commands/judge.js.map +1 -1
- package/dist/commands/login.d.ts +0 -1
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +0 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/logout.d.ts +0 -1
- package/dist/commands/logout.d.ts.map +1 -1
- package/dist/commands/logout.js +0 -1
- package/dist/commands/logout.js.map +1 -1
- package/dist/commands/mcp.d.ts +31 -0
- package/dist/commands/mcp.d.ts.map +1 -0
- package/dist/commands/mcp.js +65 -0
- package/dist/commands/mcp.js.map +1 -0
- package/dist/commands/notifications.d.ts +54 -0
- package/dist/commands/notifications.d.ts.map +1 -0
- package/dist/commands/notifications.js +151 -0
- package/dist/commands/notifications.js.map +1 -0
- package/dist/commands/org.d.ts +3 -3
- package/dist/commands/org.js +3 -3
- package/dist/commands/policy.d.ts +6 -1
- package/dist/commands/policy.d.ts.map +1 -1
- package/dist/commands/policy.js +77 -37
- package/dist/commands/policy.js.map +1 -1
- package/dist/commands/rollback.d.ts.map +1 -1
- package/dist/commands/rollback.js +3 -1
- package/dist/commands/rollback.js.map +1 -1
- package/dist/commands/routing.d.ts +1 -1
- package/dist/commands/routing.js +1 -1
- package/dist/commands/rules.d.ts +74 -0
- package/dist/commands/rules.d.ts.map +1 -0
- package/dist/commands/rules.js +283 -0
- package/dist/commands/rules.js.map +1 -0
- package/dist/commands/settings.d.ts +44 -0
- package/dist/commands/settings.d.ts.map +1 -0
- package/dist/commands/settings.js +110 -0
- package/dist/commands/settings.js.map +1 -0
- package/dist/commands/setup.d.ts +1 -1
- package/dist/commands/setup.js +1 -1
- package/dist/commands/siem.d.ts +53 -0
- package/dist/commands/siem.d.ts.map +1 -0
- package/dist/commands/siem.js +132 -0
- package/dist/commands/siem.js.map +1 -0
- package/dist/commands/skill.d.ts +5 -5
- package/dist/commands/skill.js +7 -7
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/status.d.ts +0 -1
- package/dist/commands/status.d.ts.map +1 -1
- package/dist/commands/status.js +2 -3
- package/dist/commands/status.js.map +1 -1
- package/dist/commands/syncContext.d.ts +0 -1
- package/dist/commands/syncContext.d.ts.map +1 -1
- package/dist/commands/syncContext.js +0 -1
- package/dist/commands/syncContext.js.map +1 -1
- package/dist/commands/team.d.ts +2 -2
- package/dist/commands/team.js +2 -2
- package/dist/commands/traces.d.ts +0 -3
- package/dist/commands/traces.d.ts.map +1 -1
- package/dist/commands/traces.js +0 -3
- package/dist/commands/traces.js.map +1 -1
- package/dist/commands/usage.d.ts +41 -0
- package/dist/commands/usage.d.ts.map +1 -0
- package/dist/commands/usage.js +129 -0
- package/dist/commands/usage.js.map +1 -0
- package/dist/commands/whoami.d.ts +0 -1
- package/dist/commands/whoami.d.ts.map +1 -1
- package/dist/commands/whoami.js +0 -1
- package/dist/commands/whoami.js.map +1 -1
- package/dist/config/keychain.d.ts +0 -1
- package/dist/config/keychain.d.ts.map +1 -1
- package/dist/config/keychain.js +0 -1
- package/dist/config/keychain.js.map +1 -1
- package/dist/config/paths.d.ts +0 -1
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +0 -1
- package/dist/config/paths.js.map +1 -1
- package/dist/config/store.d.ts +0 -1
- package/dist/config/store.d.ts.map +1 -1
- package/dist/config/store.js +0 -1
- package/dist/config/store.js.map +1 -1
- package/dist/harness/ag2.d.ts +1 -1
- package/dist/harness/ag2.js +1 -1
- package/dist/harness/agentFramework.d.ts +1 -1
- package/dist/harness/agentFramework.js +1 -1
- package/dist/harness/agenticOrchestrator.d.ts +1 -1
- package/dist/harness/agenticOrchestrator.js +2 -2
- package/dist/harness/agenticOrchestrator.js.map +1 -1
- package/dist/harness/agentsMd.d.ts +24 -0
- package/dist/harness/agentsMd.d.ts.map +1 -0
- package/dist/harness/agentsMd.js +28 -0
- package/dist/harness/agentsMd.js.map +1 -0
- package/dist/harness/aider.d.ts +3 -1
- package/dist/harness/aider.d.ts.map +1 -1
- package/dist/harness/aider.js +9 -7
- package/dist/harness/aider.js.map +1 -1
- package/dist/harness/antigravity.d.ts +23 -5
- package/dist/harness/antigravity.d.ts.map +1 -1
- package/dist/harness/antigravity.js +45 -55
- package/dist/harness/antigravity.js.map +1 -1
- package/dist/harness/autogen.d.ts +1 -1
- package/dist/harness/autogen.js +2 -2
- package/dist/harness/autogen.js.map +1 -1
- package/dist/harness/claudeCode.d.ts +22 -1
- package/dist/harness/claudeCode.d.ts.map +1 -1
- package/dist/harness/claudeCode.js +47 -3
- package/dist/harness/claudeCode.js.map +1 -1
- package/dist/harness/cline.d.ts.map +1 -1
- package/dist/harness/cline.js +14 -23
- package/dist/harness/cline.js.map +1 -1
- package/dist/harness/codex.d.ts +6 -1
- package/dist/harness/codex.d.ts.map +1 -1
- package/dist/harness/codex.js +23 -21
- package/dist/harness/codex.js.map +1 -1
- package/dist/harness/continue.d.ts +10 -4
- package/dist/harness/continue.d.ts.map +1 -1
- package/dist/harness/continue.js +22 -22
- package/dist/harness/continue.js.map +1 -1
- package/dist/harness/cursor.d.ts +5 -2
- package/dist/harness/cursor.d.ts.map +1 -1
- package/dist/harness/cursor.js +19 -23
- package/dist/harness/cursor.js.map +1 -1
- package/dist/harness/detector.d.ts +0 -1
- package/dist/harness/detector.d.ts.map +1 -1
- package/dist/harness/detector.js +0 -1
- package/dist/harness/detector.js.map +1 -1
- package/dist/harness/dsh.d.ts +5 -3
- package/dist/harness/dsh.d.ts.map +1 -1
- package/dist/harness/dsh.js +17 -29
- package/dist/harness/dsh.js.map +1 -1
- package/dist/harness/eve.d.ts +3 -4
- package/dist/harness/eve.d.ts.map +1 -1
- package/dist/harness/eve.js +3 -4
- package/dist/harness/eve.js.map +1 -1
- package/dist/harness/githubCopilot.d.ts +4 -1
- package/dist/harness/githubCopilot.d.ts.map +1 -1
- package/dist/harness/githubCopilot.js +12 -20
- package/dist/harness/githubCopilot.js.map +1 -1
- package/dist/harness/goose.d.ts +7 -3
- package/dist/harness/goose.d.ts.map +1 -1
- package/dist/harness/goose.js +18 -21
- package/dist/harness/goose.js.map +1 -1
- package/dist/harness/grok.d.ts +2 -2
- package/dist/harness/grok.d.ts.map +1 -1
- package/dist/harness/grok.js +13 -24
- package/dist/harness/grok.js.map +1 -1
- package/dist/harness/hermes.d.ts +6 -0
- package/dist/harness/hermes.d.ts.map +1 -1
- package/dist/harness/hermes.js +17 -16
- package/dist/harness/hermes.js.map +1 -1
- package/dist/harness/muse.d.ts +3 -7
- package/dist/harness/muse.d.ts.map +1 -1
- package/dist/harness/muse.js +15 -35
- package/dist/harness/muse.js.map +1 -1
- package/dist/harness/n8n.d.ts +13 -14
- package/dist/harness/n8n.d.ts.map +1 -1
- package/dist/harness/n8n.js +21 -181
- package/dist/harness/n8n.js.map +1 -1
- package/dist/harness/openWebUI.d.ts.map +1 -1
- package/dist/harness/openWebUI.js +5 -4
- package/dist/harness/openWebUI.js.map +1 -1
- package/dist/harness/openaiAgents.d.ts +1 -1
- package/dist/harness/openaiAgents.js +2 -2
- package/dist/harness/openaiAgents.js.map +1 -1
- package/dist/harness/openclaw.d.ts +8 -0
- package/dist/harness/openclaw.d.ts.map +1 -1
- package/dist/harness/openclaw.js +27 -12
- package/dist/harness/openclaw.js.map +1 -1
- package/dist/harness/opencode.d.ts +4 -5
- package/dist/harness/opencode.d.ts.map +1 -1
- package/dist/harness/opencode.js +15 -30
- package/dist/harness/opencode.js.map +1 -1
- package/dist/harness/openhands.d.ts +9 -3
- package/dist/harness/openhands.d.ts.map +1 -1
- package/dist/harness/openhands.js +30 -24
- package/dist/harness/openhands.js.map +1 -1
- package/dist/harness/pi.d.ts +7 -2
- package/dist/harness/pi.d.ts.map +1 -1
- package/dist/harness/pi.js +19 -18
- package/dist/harness/pi.js.map +1 -1
- package/dist/harness/rooCode.d.ts +12 -5
- package/dist/harness/rooCode.d.ts.map +1 -1
- package/dist/harness/rooCode.js +23 -39
- package/dist/harness/rooCode.js.map +1 -1
- package/dist/harness/rulesFiles.d.ts +53 -0
- package/dist/harness/rulesFiles.d.ts.map +1 -0
- package/dist/harness/rulesFiles.js +106 -0
- package/dist/harness/rulesFiles.js.map +1 -0
- package/dist/harness/smolagents.d.ts +2 -2
- package/dist/harness/smolagents.js +3 -3
- package/dist/harness/smolagents.js.map +1 -1
- package/dist/harness/types.d.ts +20 -6
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/harness/types.js +1 -95
- package/dist/harness/types.js.map +1 -1
- package/dist/harness/windsurf.d.ts +6 -1
- package/dist/harness/windsurf.d.ts.map +1 -1
- package/dist/harness/windsurf.js +21 -24
- package/dist/harness/windsurf.js.map +1 -1
- package/dist/harness/xirp.d.ts +1 -2
- package/dist/harness/xirp.d.ts.map +1 -1
- package/dist/harness/xirp.js +2 -3
- package/dist/harness/xirp.js.map +1 -1
- package/dist/lib/api.d.ts +27 -1
- package/dist/lib/api.d.ts.map +1 -1
- package/dist/lib/api.js +55 -18
- package/dist/lib/api.js.map +1 -1
- package/dist/lib/ciscoScanner.d.ts +1 -1
- package/dist/lib/ciscoScanner.js +1 -1
- package/dist/lib/decisionsLogRefresh.d.ts.map +1 -1
- package/dist/lib/decisionsLogRefresh.js +6 -7
- package/dist/lib/decisionsLogRefresh.js.map +1 -1
- package/dist/lib/deviceReport.d.ts +15 -0
- package/dist/lib/deviceReport.d.ts.map +1 -1
- package/dist/lib/deviceReport.js +30 -0
- package/dist/lib/deviceReport.js.map +1 -1
- package/dist/lib/gitHooks.d.ts +0 -1
- package/dist/lib/gitHooks.d.ts.map +1 -1
- package/dist/lib/gitHooks.js +8 -9
- package/dist/lib/gitHooks.js.map +1 -1
- package/dist/lib/gracefulShutdown.d.ts +1 -1
- package/dist/lib/gracefulShutdown.js +1 -1
- package/dist/lib/hash.d.ts +0 -1
- package/dist/lib/hash.d.ts.map +1 -1
- package/dist/lib/hash.js +0 -1
- package/dist/lib/hash.js.map +1 -1
- package/dist/lib/inventory.d.ts +47 -0
- package/dist/lib/inventory.d.ts.map +1 -0
- package/dist/lib/inventory.js +106 -0
- package/dist/lib/inventory.js.map +1 -0
- package/dist/lib/logger.d.ts +0 -1
- package/dist/lib/logger.d.ts.map +1 -1
- package/dist/lib/logger.js +0 -1
- package/dist/lib/logger.js.map +1 -1
- package/dist/lib/mdmManifest.d.ts +30 -2
- package/dist/lib/mdmManifest.d.ts.map +1 -1
- package/dist/lib/mdmManifest.js +50 -2
- package/dist/lib/mdmManifest.js.map +1 -1
- package/dist/lib/onboarding.d.ts +0 -1
- package/dist/lib/onboarding.d.ts.map +1 -1
- package/dist/lib/onboarding.js +1 -2
- package/dist/lib/onboarding.js.map +1 -1
- package/dist/lib/policySnapshot.d.ts +3 -2
- package/dist/lib/policySnapshot.d.ts.map +1 -1
- package/dist/lib/policySnapshot.js +6 -3
- package/dist/lib/policySnapshot.js.map +1 -1
- package/dist/lib/process.d.ts +5 -1
- package/dist/lib/process.d.ts.map +1 -1
- package/dist/lib/process.js +13 -4
- package/dist/lib/process.js.map +1 -1
- package/dist/lib/providerProbe.d.ts +3 -3
- package/dist/lib/providerProbe.d.ts.map +1 -1
- package/dist/lib/providerProbe.js +15 -7
- package/dist/lib/providerProbe.js.map +1 -1
- package/dist/lib/sandbox/firecracker.d.ts +3 -3
- package/dist/lib/sandbox/firecracker.js +3 -3
- package/dist/lib/sandbox/index.d.ts +2 -2
- package/dist/lib/sandbox/index.js +2 -2
- package/dist/lib/sandbox/oci.d.ts +1 -1
- package/dist/lib/sandbox/oci.js +1 -1
- package/dist/lib/sandbox/types.d.ts +1 -1
- package/dist/lib/sandbox/types.js +1 -1
- package/dist/lib/sopFrontMatter.d.ts +1 -1
- package/dist/lib/sopFrontMatter.js +1 -1
- package/package.json +6 -5
- package/resources/sandbox/Dockerfile +1 -1
- package/resources/sandbox/entrypoint.sh +4 -4
- package/resources/sandbox/firecracker-launch.sh +1 -1
- package/dist/harness/base.d.ts +0 -24
- package/dist/harness/base.d.ts.map +0 -1
- package/dist/harness/base.js +0 -74
- package/dist/harness/base.js.map +0 -1
package/dist/harness/cursor.js
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* cursor.ts — Cursor adapter (full implementation with 3-level hooks).
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
4
|
+
* - Writes the rule sets to `.cursor/rules/intutic-governance.mdc`, a project
|
|
5
|
+
* rule with `alwaysApply: true`, which Cursor adds to every request
|
|
6
|
+
* (https://cursor.com/docs/context/rules; a plain `.md` there is ignored).
|
|
7
|
+
* Earlier versions overwrote `.cursorrules`, a single file the current docs
|
|
8
|
+
* no longer describe; the user's own copy of it comes back.
|
|
6
9
|
* - Injects hooks.json at project-level AND user-level
|
|
7
10
|
* - Enterprise system-level (/etc/cursor) is handled by the system administrator
|
|
8
11
|
*
|
|
@@ -12,18 +15,17 @@
|
|
|
12
15
|
import { access } from 'node:fs/promises';
|
|
13
16
|
import { join } from 'node:path';
|
|
14
17
|
import { homedir } from 'node:os';
|
|
15
|
-
import { HarnessType } from '@intutic/shared-types';
|
|
16
|
-
import { hashFile } from '../lib/hash.js';
|
|
17
|
-
import { buildMarkdownContent } from './base.js';
|
|
18
|
+
import { HarnessType, rulesFrontMatterOf } from '@intutic/shared-types';
|
|
18
19
|
import { writeCursorHooks } from '@intutic/sync-daemon/harness/cursorHooks';
|
|
19
|
-
import {
|
|
20
|
-
const CONFIG_FILE = '.
|
|
20
|
+
import { ownRulesFileHash, retireLegacyRulesFile, writeOwnRulesFile } from './rulesFiles.js';
|
|
21
|
+
const CONFIG_FILE = '.cursor/rules/intutic-governance.mdc';
|
|
22
|
+
const LEGACY_FILE = '.cursorrules';
|
|
21
23
|
export const cursorAdapter = {
|
|
22
24
|
type: HarnessType.CURSOR,
|
|
23
25
|
configFileName: CONFIG_FILE,
|
|
24
26
|
async detect(workspaceRoot) {
|
|
25
27
|
// .cursorrules or .cursor/ directory
|
|
26
|
-
for (const marker of [
|
|
28
|
+
for (const marker of [LEGACY_FILE, '.cursor']) {
|
|
27
29
|
try {
|
|
28
30
|
await access(join(workspaceRoot, marker));
|
|
29
31
|
return true;
|
|
@@ -39,23 +41,17 @@ export const cursorAdapter = {
|
|
|
39
41
|
return false;
|
|
40
42
|
}
|
|
41
43
|
},
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
const content = buildMarkdownContent(sops, proxyUrl);
|
|
46
|
-
await writeOwnedFile(filePath, workspaceRoot, content);
|
|
47
|
-
// 2. Inject hooks.json at project + user level (writeSystemLevel=false;
|
|
48
|
-
// system level requires sudo execution)
|
|
44
|
+
/** hooks.json at project + user level; the system level needs
|
|
45
|
+
* administrator rights and is `intutic enterprise install`'s job. */
|
|
46
|
+
async installGate(workspaceRoot, proxyUrl) {
|
|
49
47
|
await writeCursorHooks(workspaceRoot, proxyUrl, '', false);
|
|
50
|
-
return filePath;
|
|
51
48
|
},
|
|
52
|
-
async
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
}
|
|
49
|
+
async writeConfig(workspaceRoot, sops, proxyUrl) {
|
|
50
|
+
await retireLegacyRulesFile(workspaceRoot, LEGACY_FILE);
|
|
51
|
+
return writeOwnRulesFile(workspaceRoot, CONFIG_FILE, sops, proxyUrl, rulesFrontMatterOf(HarnessType.CURSOR, 'Intutic governance rules'));
|
|
52
|
+
},
|
|
53
|
+
readCurrentHash(workspaceRoot) {
|
|
54
|
+
return ownRulesFileHash(workspaceRoot, CONFIG_FILE);
|
|
59
55
|
},
|
|
60
56
|
};
|
|
61
57
|
//# sourceMappingURL=cursor.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/harness/cursor.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/harness/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA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IAAI,EAAE,QAAQ,EAAE,kBAAkB,CAAC,WAAW,CAAC,MAAM,EAAE,0BAA0B,CAAC,CAAC,CAAA;IAC1I,CAAC;IAED,eAAe,CAAC,aAAqB;QACnC,OAAO,gBAAgB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAA;IACrD,CAAC;CACF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AA6CjD,uCAAuC;AACvC,eAAO,MAAM,YAAY,EAAE,eAAe,EA2CzC,CAAA;AAED;;;;;GAKG;AACH,wBAAsB,eAAe,CAAC,aAAa,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,EAAE,CAAC,CAgBvF;AAED;;;;;GAKG;AACH,wBAAgB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,eAAe,GAAG,SAAS,CAEpE"}
|
package/dist/harness/detector.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detector.js","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"detector.js","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAIH,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAC3C,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AACnD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAA;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,E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kBAAkB;IAClB,UAAU;IACV,gBAAgB;IAChB,mBAAmB;IACnB,oBAAoB;IACpB,gBAAgB;CACjB,CAAA;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,aAAqB;IACzD,MAAM,OAAO,GAAsB,EAAE,CAAA;IAErC,KAAK,MAAM,OAAO,IAAI,YAAY,EAAE,CAAC;QACnC,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,MAAM,CAAC,aAAa,CAAC,CAAA;QACpD,OAAO,CAAC,IAAI,CAAC;YACX,IAAI,EAAE,OAAO,CAAC,IAAI;YAClB,UAAU,EAAE,OAAO,CAAC,cAAc;gBAChC,CAAC,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,cAAc,CAAC;gBAC7C,CAAC,CAAC,EAAE;YACN,QAAQ;YACR,WAAW,EAAE,IAAI;SAClB,CAAC,CAAA;IACJ,CAAC;IAED,OAAO,OAAO,CAAA;AAChB,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,UAAU,CAAC,IAAY;IACrC,OAAO,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;AAClD,CAAC"}
|
package/dist/harness/dsh.d.ts
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
* dsh.ts — DeepSeek "dsh" adapter (binary `dsh`, `@deepseek-ai/dsh`,
|
|
3
3
|
* developer preview since 2026-08-13).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `
|
|
5
|
+
* Rule sets go into the workspace's `AGENTS.md` through the shared writer
|
|
6
|
+
* (agentsMd.ts): dsh's default profile loads every `AGENTS.md` and
|
|
7
|
+
* `CLAUDE.md` from the git root down to where it runs
|
|
8
|
+
* (https://github.com/deepseek-ai/deepseek-harness/blob/5badb15009ae1756c3afe0ae0cef1faafc290ccc/packages/context/agent-instructions/README.md).
|
|
9
|
+
* The governance-critical half — the
|
|
8
10
|
* `tools/pre-execute` Cordis plugin registration (`cordis.patch.yml` per
|
|
9
11
|
* profile), the profile's `@intutic/gate` dependency, and the `llm-deepseek`
|
|
10
12
|
* egress override in that same patch file — is delegated entirely to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsh.d.ts","sourceRoot":"","sources":["../../src/harness/dsh.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dsh.d.ts","sourceRoot":"","sources":["../../src/harness/dsh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAMH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD,eAAO,MAAM,UAAU,EAAE,eA4DxB,CAAA"}
|
package/dist/harness/dsh.js
CHANGED
|
@@ -2,9 +2,11 @@
|
|
|
2
2
|
* dsh.ts — DeepSeek "dsh" adapter (binary `dsh`, `@deepseek-ai/dsh`,
|
|
3
3
|
* developer preview since 2026-08-13).
|
|
4
4
|
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* `
|
|
5
|
+
* Rule sets go into the workspace's `AGENTS.md` through the shared writer
|
|
6
|
+
* (agentsMd.ts): dsh's default profile loads every `AGENTS.md` and
|
|
7
|
+
* `CLAUDE.md` from the git root down to where it runs
|
|
8
|
+
* (https://github.com/deepseek-ai/deepseek-harness/blob/5badb15009ae1756c3afe0ae0cef1faafc290ccc/packages/context/agent-instructions/README.md).
|
|
9
|
+
* The governance-critical half — the
|
|
8
10
|
* `tools/pre-execute` Cordis plugin registration (`cordis.patch.yml` per
|
|
9
11
|
* profile), the profile's `@intutic/gate` dependency, and the `llm-deepseek`
|
|
10
12
|
* egress override in that same patch file — is delegated entirely to
|
|
@@ -17,15 +19,11 @@
|
|
|
17
19
|
import { access } from 'node:fs/promises';
|
|
18
20
|
import { join } from 'node:path';
|
|
19
21
|
import { HarnessType } from '@intutic/shared-types';
|
|
20
|
-
import { writeDshHooks, resolveDshHome
|
|
22
|
+
import { writeDshHooks, resolveDshHome } from '@intutic/sync-daemon/harness/dshHooks';
|
|
23
|
+
import { AGENTS_MD, agentsMdHash, writeAgentsMd } from './agentsMd.js';
|
|
21
24
|
export const dshAdapter = {
|
|
22
25
|
type: HarnessType.DEEPSEEK_HARNESS,
|
|
23
|
-
|
|
24
|
-
// this harness's HARNESS_CONFIG_FILES entry. detect/writeConfig/
|
|
25
|
-
// readCurrentHash below resolve dsh's real, $DSH_HOME-anchored paths
|
|
26
|
-
// directly, the same way goose.ts bypasses configFileName's
|
|
27
|
-
// workspaceRoot-join for its own home-anchored config.
|
|
28
|
-
configFileName: '',
|
|
26
|
+
configFileName: AGENTS_MD,
|
|
29
27
|
async detect(_workspaceRoot) {
|
|
30
28
|
const dshHome = resolveDshHome();
|
|
31
29
|
// 1. `$DSH_HOME`/`~/.dsh` exists at all (settings.yaml, .credentials.yaml,
|
|
@@ -67,27 +65,17 @@ export const dshAdapter = {
|
|
|
67
65
|
// the CLI adapters this mirrors, not as an independent signal.
|
|
68
66
|
return false;
|
|
69
67
|
},
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
// harness gets, and it happens for every existing profile, not one file.
|
|
68
|
+
// The plugin registration + egress row in each profile patch is the
|
|
69
|
+
// entirety of what this harness gets, and it happens for every existing
|
|
70
|
+
// profile, not one file.
|
|
71
|
+
async installGate(workspaceRoot, proxyUrl) {
|
|
75
72
|
await writeDshHooks(workspaceRoot, proxyUrl, '');
|
|
76
|
-
const dshHome = resolveDshHome();
|
|
77
|
-
const profiles = await listDshProfileDirs(dshHome);
|
|
78
|
-
// Representative path for the connect-summary UI, matching the "return
|
|
79
|
-
// the path written" contract every other adapter follows — the first
|
|
80
|
-
// profile's patch file when one exists, otherwise the $DSH_HOME root
|
|
81
|
-
// itself (nothing was written yet; the next sync cycle picks it up once
|
|
82
|
-
// a profile exists, per dshHooks.ts's own module doc).
|
|
83
|
-
return profiles.length > 0 ? join(profiles[0], 'cordis.patch.yml') : dshHome;
|
|
84
73
|
},
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
return null;
|
|
74
|
+
writeConfig(workspaceRoot, sops, proxyUrl) {
|
|
75
|
+
return writeAgentsMd(workspaceRoot, sops, proxyUrl);
|
|
76
|
+
},
|
|
77
|
+
readCurrentHash(workspaceRoot) {
|
|
78
|
+
return agentsMdHash(workspaceRoot);
|
|
91
79
|
},
|
|
92
80
|
};
|
|
93
81
|
//# sourceMappingURL=dsh.js.map
|
package/dist/harness/dsh.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsh.js","sourceRoot":"","sources":["../../src/harness/dsh.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"dsh.js","sourceRoot":"","sources":["../../src/harness/dsh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,uCAAuC,CAAA;AACrF,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAEtE,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,IAAI,EAAE,WAAW,CAAC,gBAAgB;IAClC,cAAc,EAAE,SAAS;IAEzB,KAAK,CAAC,MAAM,CAAC,cAAsB;QACjC,MAAM,OAAO,GAAG,cAAc,EAAE,CAAA;QAEhC,2EAA2E;QAC3E,yEAAyE;QACzE,KAAK,MAAM,MAAM,IAAI,CAAC,eAAe,EAAE,mBAAmB,EAAE,UAAU,CAAC,EAAE,CAAC;YACxE,IAAI,CAAC;gBACH,MAAM,MA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C,aAAa,CAAC,CAAA;IACpC,CAAC;CACF,CAAA"}
|
package/dist/harness/eve.d.ts
CHANGED
|
@@ -16,20 +16,19 @@
|
|
|
16
16
|
* No version floor: eve is pre-1.0 (0.39.x at integration time) and the
|
|
17
17
|
* `approval` surface `@intutic/gate/eve` targets has no known major-version
|
|
18
18
|
* boundary to gate on — the churn risk is handled by the gate package's own
|
|
19
|
-
* pinned devDependency verification instead
|
|
19
|
+
* pinned devDependency verification instead.
|
|
20
20
|
*
|
|
21
21
|
* PREVIEW-CHURN NOTE (same shield the dsh integration established): eve is a
|
|
22
22
|
* fast-moving preview product. `@intutic/gate/eve` was verified against
|
|
23
23
|
* eve@0.71.0's shipped `.d.ts` (first 0.39.1) — see that module's doc for exactly what was
|
|
24
|
-
* confirmed vs. assumed
|
|
24
|
+
* confirmed vs. assumed.
|
|
25
25
|
*
|
|
26
26
|
* LLM-egress note carried into the generated `.env.intutic`: eve routes
|
|
27
27
|
* models through the Vercel AI Gateway by default, whose wire protocol the
|
|
28
28
|
* Intutic proxy does not parse — and like the plain Vercel AI SDK it is
|
|
29
29
|
* built on, eve has no env-var base-URL override. Only the in-code
|
|
30
30
|
* direct-provider path (`defineAgent({ model: withIntuticProxy(...)(...) })`)
|
|
31
|
-
* routes through the proxy. See
|
|
32
|
-
* `apps/docs/integrations/eve.md`.
|
|
31
|
+
* routes through the proxy. See `apps/docs/integrations/eve.md`.
|
|
33
32
|
*
|
|
34
33
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
35
34
|
* @module
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve.d.ts","sourceRoot":"","sources":["../../src/harness/eve.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"eve.d.ts","sourceRoot":"","sources":["../../src/harness/eve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAKH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAiBjD,2EAA2E;AAC3E,eAAO,MAAM,UAAU,EAAE,eAWxB,CAAA"}
|
package/dist/harness/eve.js
CHANGED
|
@@ -16,20 +16,19 @@
|
|
|
16
16
|
* No version floor: eve is pre-1.0 (0.39.x at integration time) and the
|
|
17
17
|
* `approval` surface `@intutic/gate/eve` targets has no known major-version
|
|
18
18
|
* boundary to gate on — the churn risk is handled by the gate package's own
|
|
19
|
-
* pinned devDependency verification instead
|
|
19
|
+
* pinned devDependency verification instead.
|
|
20
20
|
*
|
|
21
21
|
* PREVIEW-CHURN NOTE (same shield the dsh integration established): eve is a
|
|
22
22
|
* fast-moving preview product. `@intutic/gate/eve` was verified against
|
|
23
23
|
* eve@0.71.0's shipped `.d.ts` (first 0.39.1) — see that module's doc for exactly what was
|
|
24
|
-
* confirmed vs. assumed
|
|
24
|
+
* confirmed vs. assumed.
|
|
25
25
|
*
|
|
26
26
|
* LLM-egress note carried into the generated `.env.intutic`: eve routes
|
|
27
27
|
* models through the Vercel AI Gateway by default, whose wire protocol the
|
|
28
28
|
* Intutic proxy does not parse — and like the plain Vercel AI SDK it is
|
|
29
29
|
* built on, eve has no env-var base-URL override. Only the in-code
|
|
30
30
|
* direct-provider path (`defineAgent({ model: withIntuticProxy(...)(...) })`)
|
|
31
|
-
* routes through the proxy. See
|
|
32
|
-
* `apps/docs/integrations/eve.md`.
|
|
31
|
+
* routes through the proxy. See `apps/docs/integrations/eve.md`.
|
|
33
32
|
*
|
|
34
33
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
35
34
|
* @module
|
package/dist/harness/eve.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"eve.js","sourceRoot":"","sources":["../../src/harness/eve.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"eve.js","sourceRoot":"","sources":["../../src/harness/eve.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AACvC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAEnD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAA;AAE9D,MAAM,IAAI,GAAG,qBAAqB,CAAC;IACjC,IAAI,EAAE,WAAW,CAAC,GAAG;IACrB,KAAK,EAAE,KAAK;IACZ,QAAQ,EAAE,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC;IAC3B,UAAU,EAAE,eAAe;IAC3B,UAAU,EAAE,wEAAwE;IACpF,YAAY,EACV,6FAA6F;QAC7F,qFAAqF;QACrF,sFAAsF;QACtF,yFAAyF;IAC3F,QAAQ,EAAE,KAAK;CAChB,CAAC,CAAA;AAEF,2EAA2E;AAC3E,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,GAAG,IAAI;IAEP,KAAK,CAAC,MAAM,CAAC,aAAqB;QAChC,IAAI,CAAC,CAAC,MAAM,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC;YAAE,OAAO,KAAK,CAAA;QACrD,IAAI,CAAC;YACH,OAAO,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,aAAa,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAA;QACjE,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAA,CAAC,6DAA6D;QAC5E,CAAC;IACH,CAAC;CACF,CAAA"}
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* githubCopilot.ts — GitHub Copilot adapter.
|
|
3
3
|
*
|
|
4
4
|
* Detects GitHub Copilot presence (.git, .github, or .github/copilot-instructions.md),
|
|
5
|
-
* writes
|
|
5
|
+
* writes the rule sets as a marked section of `.github/copilot-instructions.md`
|
|
6
|
+
* (the repository-wide instructions file Copilot adds to every chat, agent
|
|
7
|
+
* and code-review request; https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions),
|
|
8
|
+
* keeping the team's own instructions in it, and installs the
|
|
6
9
|
* VS Code agent-mode PreToolUse gate (`.github/hooks/intutic-governance.json`
|
|
7
10
|
* and `~/.copilot/hooks/intutic-governance.json`) — see githubCopilotHooks.ts.
|
|
8
11
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"githubCopilot.d.ts","sourceRoot":"","sources":["../../src/harness/githubCopilot.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"githubCopilot.d.ts","sourceRoot":"","sources":["../../src/harness/githubCopilot.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAOjD,eAAO,MAAM,oBAAoB,EAAE,eA6BlC,CAAA"}
|
|
@@ -2,7 +2,10 @@
|
|
|
2
2
|
* githubCopilot.ts — GitHub Copilot adapter.
|
|
3
3
|
*
|
|
4
4
|
* Detects GitHub Copilot presence (.git, .github, or .github/copilot-instructions.md),
|
|
5
|
-
* writes
|
|
5
|
+
* writes the rule sets as a marked section of `.github/copilot-instructions.md`
|
|
6
|
+
* (the repository-wide instructions file Copilot adds to every chat, agent
|
|
7
|
+
* and code-review request; https://docs.github.com/en/copilot/how-tos/configure-custom-instructions/add-repository-instructions),
|
|
8
|
+
* keeping the team's own instructions in it, and installs the
|
|
6
9
|
* VS Code agent-mode PreToolUse gate (`.github/hooks/intutic-governance.json`
|
|
7
10
|
* and `~/.copilot/hooks/intutic-governance.json`) — see githubCopilotHooks.ts.
|
|
8
11
|
*
|
|
@@ -13,10 +16,9 @@ import { join } from 'node:path';
|
|
|
13
16
|
import { access } from 'node:fs/promises';
|
|
14
17
|
import { existsSync } from 'node:fs';
|
|
15
18
|
import { HarnessType } from '@intutic/shared-types';
|
|
16
|
-
import { hashFile } from '../lib/hash.js';
|
|
17
|
-
import { buildMarkdownContent } from './base.js';
|
|
18
19
|
import { loadCredentials } from '../config/store.js';
|
|
19
|
-
import { writeGithubCopilotHooks
|
|
20
|
+
import { writeGithubCopilotHooks } from '@intutic/sync-daemon';
|
|
21
|
+
import { rulesSectionHash, writeRulesSectionFile } from './rulesFiles.js';
|
|
20
22
|
const CONFIG_FILE = '.github/copilot-instructions.md';
|
|
21
23
|
export const githubCopilotAdapter = {
|
|
22
24
|
type: HarnessType.GITHUB_COPILOT,
|
|
@@ -35,25 +37,15 @@ export const githubCopilotAdapter = {
|
|
|
35
37
|
return false;
|
|
36
38
|
}
|
|
37
39
|
},
|
|
38
|
-
async
|
|
39
|
-
// The gate is installed even with zero SOPs: it is what refuses tool
|
|
40
|
-
// calls, and the built-in protections apply without any SOP.
|
|
40
|
+
async installGate(workspaceRoot, proxyUrl) {
|
|
41
41
|
const creds = await loadCredentials();
|
|
42
42
|
await writeGithubCopilotHooks(workspaceRoot, proxyUrl, creds?.workspaceId || 'local');
|
|
43
|
-
if (sops.length === 0)
|
|
44
|
-
return null;
|
|
45
|
-
const filePath = join(workspaceRoot, CONFIG_FILE);
|
|
46
|
-
const content = buildMarkdownContent(sops, proxyUrl);
|
|
47
|
-
await writeOwnedFile(filePath, workspaceRoot, content);
|
|
48
|
-
return filePath;
|
|
49
43
|
},
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
return null;
|
|
56
|
-
}
|
|
44
|
+
writeConfig(workspaceRoot, sops, proxyUrl) {
|
|
45
|
+
return writeRulesSectionFile(workspaceRoot, CONFIG_FILE, sops, proxyUrl);
|
|
46
|
+
},
|
|
47
|
+
readCurrentHash(workspaceRoot) {
|
|
48
|
+
return rulesSectionHash(workspaceRoot, CONFIG_FILE);
|
|
57
49
|
},
|
|
58
50
|
};
|
|
59
51
|
//# sourceMappingURL=githubCopilot.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"githubCopilot.js","sourceRoot":"","sources":["../../src/harness/github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AA;QACrC,MAAM,uBAAuB,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,IAAI,OAAO,CAAC,CAAA;IACvF,CAAC;IAED,WAAW,CAAC,aAAqB,EAAE,IAAoB,EAAE,QAAgB;QACvE,OAAO,qBAAqB,CAAC,aAAa,EAAE,WAAW,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;IAC1E,CAAC;IAED,eAAe,CAAC,aAAqB;QACnC,OAAO,gBAAgB,CAAC,aAAa,EAAE,WAAW,CAAC,CAAA;IACrD,CAAC;CACF,CAAA"}
|
package/dist/harness/goose.d.ts
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* goose.ts — Goose adapter (full implementation).
|
|
3
3
|
*
|
|
4
|
-
* Detects the Goose CLI agent, writes
|
|
5
|
-
*
|
|
6
|
-
* the
|
|
4
|
+
* Detects the Goose CLI agent, writes the rule sets as a marked section of
|
|
5
|
+
* the workspace's `.goosehints` (which Goose loads, with `AGENTS.md`, from
|
|
6
|
+
* every directory between the git root and where it runs, at the start of
|
|
7
|
+
* every session;
|
|
8
|
+
* https://github.com/block/goose/blob/0f4768025f517f5812f6d962a90aa52d509863cf/crates/goose/src/hints/load_hints.rs),
|
|
9
|
+
* injects the Intutic governance plugin (PreToolUse hooks + immutable flags),
|
|
10
|
+
* and merges the proxy URL into ~/.config/goose/config.yaml.
|
|
7
11
|
*
|
|
8
12
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
9
13
|
* @module
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goose.d.ts","sourceRoot":"","sources":["../../src/harness/goose.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"goose.d.ts","sourceRoot":"","sources":["../../src/harness/goose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAOjD,eAAO,MAAM,YAAY,EAAE,eAyB1B,CAAA"}
|
package/dist/harness/goose.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* goose.ts — Goose adapter (full implementation).
|
|
3
3
|
*
|
|
4
|
-
* Detects the Goose CLI agent, writes
|
|
5
|
-
*
|
|
6
|
-
* the
|
|
4
|
+
* Detects the Goose CLI agent, writes the rule sets as a marked section of
|
|
5
|
+
* the workspace's `.goosehints` (which Goose loads, with `AGENTS.md`, from
|
|
6
|
+
* every directory between the git root and where it runs, at the start of
|
|
7
|
+
* every session;
|
|
8
|
+
* https://github.com/block/goose/blob/0f4768025f517f5812f6d962a90aa52d509863cf/crates/goose/src/hints/load_hints.rs),
|
|
9
|
+
* injects the Intutic governance plugin (PreToolUse hooks + immutable flags),
|
|
10
|
+
* and merges the proxy URL into ~/.config/goose/config.yaml.
|
|
7
11
|
*
|
|
8
12
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
9
13
|
* @module
|
|
@@ -12,13 +16,13 @@ import { access } from 'node:fs/promises';
|
|
|
12
16
|
import { join } from 'node:path';
|
|
13
17
|
import { homedir } from 'node:os';
|
|
14
18
|
import { HarnessType } from '@intutic/shared-types';
|
|
15
|
-
import { hashFile } from '../lib/hash.js';
|
|
16
19
|
import { writeGooseHooks } from '@intutic/sync-daemon/harness/gooseHooks';
|
|
17
|
-
|
|
18
|
-
const
|
|
20
|
+
import { rulesSectionHash, writeRulesSectionFile } from './rulesFiles.js';
|
|
21
|
+
const RULES_FILE = '.goosehints';
|
|
22
|
+
const GOOSE_CONFIG = join(homedir(), '.config', 'goose', 'config.yaml');
|
|
19
23
|
export const gooseAdapter = {
|
|
20
24
|
type: HarnessType.GOOSE,
|
|
21
|
-
configFileName:
|
|
25
|
+
configFileName: RULES_FILE,
|
|
22
26
|
async detect(_workspaceRoot) {
|
|
23
27
|
try {
|
|
24
28
|
await access(GOOSE_CONFIG);
|
|
@@ -28,22 +32,15 @@ export const gooseAdapter = {
|
|
|
28
32
|
return false;
|
|
29
33
|
}
|
|
30
34
|
},
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
// and its governance is the PreToolUse plugin, whose gate is compiled from
|
|
34
|
-
// the shared protected-path list rather than from this array.
|
|
35
|
-
async writeConfig(_workspaceRoot, _sops, proxyUrl) {
|
|
36
|
-
// Write governance plugin + config proxy URL (gooseHooks handles both)
|
|
35
|
+
/** The governance plugin and the config proxy URL (gooseHooks handles both). */
|
|
36
|
+
async installGate(_workspaceRoot, proxyUrl) {
|
|
37
37
|
await writeGooseHooks(proxyUrl);
|
|
38
|
-
return GOOSE_CONFIG;
|
|
39
38
|
},
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
return null;
|
|
46
|
-
}
|
|
39
|
+
writeConfig(workspaceRoot, sops, proxyUrl) {
|
|
40
|
+
return writeRulesSectionFile(workspaceRoot, RULES_FILE, sops, proxyUrl);
|
|
41
|
+
},
|
|
42
|
+
readCurrentHash(workspaceRoot) {
|
|
43
|
+
return rulesSectionHash(workspaceRoot, RULES_FILE);
|
|
47
44
|
},
|
|
48
45
|
};
|
|
49
46
|
//# sourceMappingURL=goose.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"goose.js","sourceRoot":"","sources":["../../src/harness/goose.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"goose.js","sourceRoot":"","sources":["../../src/harness/goose.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,EAAE,eAAe,EAAE,MAAM,yCAAyC,CAAA;AACzE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAEzE,MAAM,UAAU,GAAG,aAAa,CAAA;AAChC,MAAM,YAAY,GAAG,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE,OAAO,EAAE,aAAa,CAAC,CAAA;AAEvE,MAAM,CAAC,MAAM,YAAY,GAAoB;IAC3C,IAAI,EAAE,WAAW,CAAC,KAAK;IACvB,cAAc,EAAE,UAAU;IAE1B,KAAK,CAAC,MAAM,CAAC,cAAsB;QACjC,IAAI,CAAC;YACH,MAAM,MAAM,CAAC,YAAY,CAAC,CAAA;YAC1B,OAAO,IAAI,CAAA;QACb,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,KAAK,CAAA;QACd,CAAC;IACH,CAAC;IAED,gFAAgF;IAChF,KAAK,CAAC,WAAW,CAAC,cAAsB,EAAE,QAAgB;QACxD,MAAM,eAAe,CAAC,QAAQ,CAAC,CAAA;IACjC,CAAC;IAED,WAAW,CAAC,aAAqB,EAAE,IAAoB,EAAE,QAAgB;QACvE,OAAO,qBAAqB,CAAC,aAAa,EAAE,UAAU,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAA;IACzE,CAAC;IAED,eAAe,CAAC,aAAqB;QACnC,OAAO,gBAAgB,CAAC,aAAa,EAAE,UAAU,CAAC,CAAA;IACpD,CAAC;CACF,CAAA"}
|
package/dist/harness/grok.d.ts
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* grok.ts — xAI Grok Build adapter (binary `grok`, GA 2026-05, open-sourced
|
|
3
3
|
* 2026-07-15).
|
|
4
4
|
*
|
|
5
|
-
* Detects the Grok Build CLI, writes AGENTS.md
|
|
6
|
-
*
|
|
5
|
+
* Detects the Grok Build CLI, writes the rule sets into `AGENTS.md` through
|
|
6
|
+
* the shared writer (agentsMd.ts), and injects the Intutic
|
|
7
7
|
* governance hook (`grokHooks.ts` — PreToolUse, no matcher, confirmed
|
|
8
8
|
* `{"decision":"deny","reason":"..."}` stdout contract) plus the
|
|
9
9
|
* `config.toml` `[model.*]` `base_url` merge.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../src/harness/grok.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"grok.d.ts","sourceRoot":"","sources":["../../src/harness/grok.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAIjD,eAAO,MAAM,WAAW,EAAE,eAmCzB,CAAA"}
|
package/dist/harness/grok.js
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
* grok.ts — xAI Grok Build adapter (binary `grok`, GA 2026-05, open-sourced
|
|
3
3
|
* 2026-07-15).
|
|
4
4
|
*
|
|
5
|
-
* Detects the Grok Build CLI, writes AGENTS.md
|
|
6
|
-
*
|
|
5
|
+
* Detects the Grok Build CLI, writes the rule sets into `AGENTS.md` through
|
|
6
|
+
* the shared writer (agentsMd.ts), and injects the Intutic
|
|
7
7
|
* governance hook (`grokHooks.ts` — PreToolUse, no matcher, confirmed
|
|
8
8
|
* `{"decision":"deny","reason":"..."}` stdout contract) plus the
|
|
9
9
|
* `config.toml` `[model.*]` `base_url` merge.
|
|
@@ -15,17 +15,14 @@ import { access } from 'node:fs/promises';
|
|
|
15
15
|
import { join } from 'node:path';
|
|
16
16
|
import { homedir } from 'node:os';
|
|
17
17
|
import { HarnessType } from '@intutic/shared-types';
|
|
18
|
-
import { hashFile } from '../lib/hash.js';
|
|
19
|
-
import { buildMarkdownContent } from './base.js';
|
|
20
18
|
import { writeGrokHooks } from '@intutic/sync-daemon/harness/grokHooks';
|
|
21
|
-
import {
|
|
22
|
-
const CONFIG_FILE = 'AGENTS.md';
|
|
19
|
+
import { AGENTS_MD, agentsMdHash, writeAgentsMd } from './agentsMd.js';
|
|
23
20
|
export const grokAdapter = {
|
|
24
21
|
type: HarnessType.GROK,
|
|
25
|
-
configFileName:
|
|
22
|
+
configFileName: AGENTS_MD,
|
|
26
23
|
async detect(workspaceRoot) {
|
|
27
24
|
// Workspace-local `.grok/` (project config/hooks dir) or AGENTS.md.
|
|
28
|
-
for (const marker of ['.grok',
|
|
25
|
+
for (const marker of ['.grok', AGENTS_MD]) {
|
|
29
26
|
try {
|
|
30
27
|
await access(join(workspaceRoot, marker));
|
|
31
28
|
return true;
|
|
@@ -53,24 +50,16 @@ export const grokAdapter = {
|
|
|
53
50
|
catch { /* ignore */ }
|
|
54
51
|
return false;
|
|
55
52
|
},
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
const filePath = join(workspaceRoot, CONFIG_FILE);
|
|
60
|
-
const content = buildMarkdownContent(sops, proxyUrl);
|
|
61
|
-
await writeOwnedFile(filePath, workspaceRoot, content);
|
|
62
|
-
// 2. PreToolUse gate (project + user level) + config.toml model base_url
|
|
63
|
-
// merge (project + user level).
|
|
53
|
+
/** PreToolUse gate (project + user level) + config.toml model base_url
|
|
54
|
+
* merge (project + user level). */
|
|
55
|
+
async installGate(workspaceRoot, proxyUrl) {
|
|
64
56
|
await writeGrokHooks(workspaceRoot, proxyUrl, '');
|
|
65
|
-
return filePath;
|
|
66
57
|
},
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
return null;
|
|
73
|
-
}
|
|
58
|
+
writeConfig(workspaceRoot, sops, proxyUrl) {
|
|
59
|
+
return writeAgentsMd(workspaceRoot, sops, proxyUrl);
|
|
60
|
+
},
|
|
61
|
+
readCurrentHash(workspaceRoot) {
|
|
62
|
+
return agentsMdHash(workspaceRoot);
|
|
74
63
|
},
|
|
75
64
|
};
|
|
76
65
|
//# sourceMappingURL=grok.js.map
|
package/dist/harness/grok.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"grok.js","sourceRoot":"","sources":["../../src/harness/grok.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"grok.js","sourceRoot":"","sources":["../../src/harness/grok.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAA;AACzC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAA;AAGnD,OAAO,EAAE,cAAc,EAAE,MAAM,wCAAwC,CAAA;AACvE,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAEtE,MAAM,CAAC,MAAM,WAAW,GAAoB;IAC1C,IAAI,EAAE,WAAW,CAAC,IAAI;IACtB,cAAc,EAAE,SAAS;IAEzB,KAAK,CAAC,MAAM,CAAC,aAAqB;QAChC,oEAAoE;QACpE,KAAK,MAAM,MAAM,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,EAAE,CAAC;YAC1C,IAAI,CAAC;gBAAC,MAAM,MAAM,CAAC,IAAI,CAAC,aAAa,EAAE,MAAM,CAAC,CAAC,CAAC;gBAAC,OAAO,IAAI,CAAA;YAAC,CAAC;YAAC,MAAM,CAAC,CAAC,kBAAkB,CAAC,CAAC;QAC7F,CAAC;QACD,0EAA0E;QAC1E,IAAI,CAAC;YAAC,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,OAAO,C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
+
* Hermes loads the `AGENTS.md` files between the git root and where it runs,
|
|
8
|
+
* unless a `.hermes.md` or `HERMES.md` is found first, which takes their
|
|
9
|
+
* place; the rule sets go into the workspace's `AGENTS.md` through the shared
|
|
10
|
+
* writer (agentsMd.ts;
|
|
11
|
+
* https://github.com/NousResearch/hermes-agent/blob/8ac5c74432d1f217033993c8370e911b2c91b04a/agent/prompt_builder.py).
|
|
12
|
+
*
|
|
7
13
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
8
14
|
* @module
|
|
9
15
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hermes.d.ts","sourceRoot":"","sources":["../../src/harness/hermes.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"hermes.d.ts","sourceRoot":"","sources":["../../src/harness/hermes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAQH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAOjD,eAAO,MAAM,aAAa,EAAE,eA4B3B,CAAA"}
|