@intutic/cli 2.0.0 → 2.2.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/cli.js +131 -130
- package/dist/cli.js.map +1 -1
- package/dist/commands/attenuate.d.ts.map +1 -1
- package/dist/commands/attenuate.js +4 -2
- package/dist/commands/attenuate.js.map +1 -1
- package/dist/commands/budget.d.ts.map +1 -1
- package/dist/commands/budget.js +2 -2
- package/dist/commands/budget.js.map +1 -1
- package/dist/commands/connect.d.ts.map +1 -1
- package/dist/commands/connect.js +138 -49
- package/dist/commands/connect.js.map +1 -1
- package/dist/commands/disconnect.d.ts +25 -0
- package/dist/commands/disconnect.d.ts.map +1 -0
- package/dist/commands/disconnect.js +252 -0
- package/dist/commands/disconnect.js.map +1 -0
- package/dist/commands/doctor.d.ts +19 -1
- package/dist/commands/doctor.d.ts.map +1 -1
- package/dist/commands/doctor.js +33 -41
- package/dist/commands/doctor.js.map +1 -1
- package/dist/commands/enforce.d.ts +10 -0
- package/dist/commands/enforce.d.ts.map +1 -1
- package/dist/commands/enforce.js +36 -0
- package/dist/commands/enforce.js.map +1 -1
- package/dist/commands/env.d.ts +1 -1
- package/dist/commands/env.d.ts.map +1 -1
- package/dist/commands/env.js +2 -7
- package/dist/commands/env.js.map +1 -1
- package/dist/commands/exec.d.ts +7 -8
- package/dist/commands/exec.d.ts.map +1 -1
- package/dist/commands/exec.js +59 -60
- package/dist/commands/exec.js.map +1 -1
- package/dist/commands/gateway.d.ts +2 -0
- package/dist/commands/gateway.d.ts.map +1 -1
- package/dist/commands/gateway.js +16 -3
- package/dist/commands/gateway.js.map +1 -1
- package/dist/commands/guardrails.d.ts.map +1 -1
- package/dist/commands/guardrails.js +18 -1
- package/dist/commands/guardrails.js.map +1 -1
- package/dist/commands/init.d.ts +5 -2
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/commands/init.js +38 -22
- package/dist/commands/init.js.map +1 -1
- package/dist/commands/install-daemon.d.ts +1 -1
- package/dist/commands/install-daemon.d.ts.map +1 -1
- package/dist/commands/install-daemon.js +5 -3
- package/dist/commands/install-daemon.js.map +1 -1
- package/dist/commands/integrity.d.ts +31 -2
- package/dist/commands/integrity.d.ts.map +1 -1
- package/dist/commands/integrity.js +116 -3
- package/dist/commands/integrity.js.map +1 -1
- package/dist/commands/judge.d.ts +8 -4
- package/dist/commands/judge.d.ts.map +1 -1
- package/dist/commands/judge.js +41 -21
- package/dist/commands/judge.js.map +1 -1
- package/dist/commands/login.d.ts +1 -0
- package/dist/commands/login.d.ts.map +1 -1
- package/dist/commands/login.js +16 -1
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/predict-cost.d.ts +1 -2
- package/dist/commands/predict-cost.d.ts.map +1 -1
- package/dist/commands/predict-cost.js +1 -4
- package/dist/commands/predict-cost.js.map +1 -1
- package/dist/commands/setup.d.ts +1 -2
- package/dist/commands/setup.d.ts.map +1 -1
- package/dist/commands/setup.js +11 -68
- package/dist/commands/setup.js.map +1 -1
- package/dist/commands/skill.d.ts +1 -0
- package/dist/commands/skill.d.ts.map +1 -1
- package/dist/commands/skill.js +17 -3
- package/dist/commands/skill.js.map +1 -1
- package/dist/commands/start.d.ts.map +1 -1
- package/dist/commands/start.js +5 -1
- package/dist/commands/start.js.map +1 -1
- package/dist/commands/syncContext.d.ts.map +1 -1
- package/dist/commands/syncContext.js +15 -5
- package/dist/commands/syncContext.js.map +1 -1
- package/dist/config/paths.d.ts +25 -3
- package/dist/config/paths.d.ts.map +1 -1
- package/dist/config/paths.js +47 -7
- package/dist/config/paths.js.map +1 -1
- package/dist/harness/agentFramework.d.ts +25 -0
- package/dist/harness/agentFramework.d.ts.map +1 -0
- package/dist/harness/agentFramework.js +37 -0
- package/dist/harness/agentFramework.js.map +1 -0
- package/dist/harness/agentcore.d.ts +6 -3
- package/dist/harness/agentcore.d.ts.map +1 -1
- package/dist/harness/agentcore.js +7 -4
- package/dist/harness/agentcore.js.map +1 -1
- package/dist/harness/agenticOrchestrator.d.ts +3 -5
- package/dist/harness/agenticOrchestrator.d.ts.map +1 -1
- package/dist/harness/agenticOrchestrator.js +3 -5
- package/dist/harness/agenticOrchestrator.js.map +1 -1
- package/dist/harness/aiSdkHarness.d.ts +1 -1
- package/dist/harness/aiSdkHarness.js +1 -1
- package/dist/harness/aiSdkWorkflow.d.ts +1 -1
- package/dist/harness/aiSdkWorkflow.d.ts.map +1 -1
- package/dist/harness/aiSdkWorkflow.js +5 -3
- package/dist/harness/aiSdkWorkflow.js.map +1 -1
- package/dist/harness/aider.d.ts +4 -3
- package/dist/harness/aider.d.ts.map +1 -1
- package/dist/harness/aider.js +7 -6
- package/dist/harness/aider.js.map +1 -1
- package/dist/harness/antigravity.d.ts +4 -2
- package/dist/harness/antigravity.d.ts.map +1 -1
- package/dist/harness/antigravity.js +15 -12
- package/dist/harness/antigravity.js.map +1 -1
- package/dist/harness/base.d.ts +5 -1
- package/dist/harness/base.d.ts.map +1 -1
- package/dist/harness/base.js +9 -8
- package/dist/harness/base.js.map +1 -1
- package/dist/harness/cline.d.ts +10 -4
- package/dist/harness/cline.d.ts.map +1 -1
- package/dist/harness/cline.js +40 -32
- package/dist/harness/cline.js.map +1 -1
- package/dist/harness/codex.d.ts +10 -4
- package/dist/harness/codex.d.ts.map +1 -1
- package/dist/harness/codex.js +30 -32
- package/dist/harness/codex.js.map +1 -1
- package/dist/harness/continue.d.ts +8 -5
- package/dist/harness/continue.d.ts.map +1 -1
- package/dist/harness/continue.js +27 -63
- package/dist/harness/continue.js.map +1 -1
- package/dist/harness/cursor.d.ts.map +1 -1
- package/dist/harness/cursor.js +2 -6
- package/dist/harness/cursor.js.map +1 -1
- package/dist/harness/detector.d.ts +1 -1
- package/dist/harness/detector.d.ts.map +1 -1
- package/dist/harness/detector.js +3 -1
- package/dist/harness/detector.js.map +1 -1
- package/dist/harness/dsh.d.ts +2 -2
- package/dist/harness/dsh.js +3 -3
- package/dist/harness/dsh.js.map +1 -1
- package/dist/harness/eve.d.ts +1 -1
- package/dist/harness/eve.js +1 -1
- package/dist/harness/githubCopilot.d.ts +4 -2
- package/dist/harness/githubCopilot.d.ts.map +1 -1
- package/dist/harness/githubCopilot.js +13 -8
- package/dist/harness/githubCopilot.js.map +1 -1
- package/dist/harness/grok.d.ts.map +1 -1
- package/dist/harness/grok.js +4 -6
- package/dist/harness/grok.js.map +1 -1
- package/dist/harness/jsSdkGatedAdapter.d.ts.map +1 -1
- package/dist/harness/jsSdkGatedAdapter.js +8 -9
- package/dist/harness/jsSdkGatedAdapter.js.map +1 -1
- package/dist/harness/langgraph.d.ts.map +1 -1
- package/dist/harness/langgraph.js +8 -10
- package/dist/harness/langgraph.js.map +1 -1
- package/dist/harness/muse.d.ts.map +1 -1
- package/dist/harness/muse.js +4 -6
- package/dist/harness/muse.js.map +1 -1
- package/dist/harness/n8n.d.ts +12 -2
- package/dist/harness/n8n.d.ts.map +1 -1
- package/dist/harness/n8n.js +66 -3
- package/dist/harness/n8n.js.map +1 -1
- package/dist/harness/openWebUI.d.ts +7 -2
- package/dist/harness/openWebUI.d.ts.map +1 -1
- package/dist/harness/openWebUI.js +15 -4
- package/dist/harness/openWebUI.js.map +1 -1
- package/dist/harness/openaiAgents.d.ts.map +1 -1
- package/dist/harness/openaiAgents.js +4 -1
- package/dist/harness/openaiAgents.js.map +1 -1
- package/dist/harness/opencode.d.ts +3 -2
- package/dist/harness/opencode.d.ts.map +1 -1
- package/dist/harness/opencode.js +7 -8
- package/dist/harness/opencode.js.map +1 -1
- package/dist/harness/openhands.d.ts +3 -2
- package/dist/harness/openhands.d.ts.map +1 -1
- package/dist/harness/openhands.js +40 -27
- package/dist/harness/openhands.js.map +1 -1
- package/dist/harness/rooCode.d.ts +6 -5
- package/dist/harness/rooCode.d.ts.map +1 -1
- package/dist/harness/rooCode.js +13 -18
- package/dist/harness/rooCode.js.map +1 -1
- package/dist/harness/sdkGatedAdapter.d.ts.map +1 -1
- package/dist/harness/sdkGatedAdapter.js +8 -9
- package/dist/harness/sdkGatedAdapter.js.map +1 -1
- package/dist/harness/trueforge.js +2 -2
- package/dist/harness/trueforge.js.map +1 -1
- package/dist/harness/types.d.ts.map +1 -1
- package/dist/harness/types.js +4 -1
- package/dist/harness/types.js.map +1 -1
- package/dist/harness/windsurf.d.ts +4 -2
- package/dist/harness/windsurf.d.ts.map +1 -1
- package/dist/harness/windsurf.js +14 -11
- package/dist/harness/windsurf.js.map +1 -1
- package/dist/harness/xirp.d.ts +5 -7
- package/dist/harness/xirp.d.ts.map +1 -1
- package/dist/harness/xirp.js +5 -7
- package/dist/harness/xirp.js.map +1 -1
- package/dist/lib/envInjector.d.ts +16 -6
- package/dist/lib/envInjector.d.ts.map +1 -1
- package/dist/lib/envInjector.js +99 -88
- package/dist/lib/envInjector.js.map +1 -1
- package/dist/lib/localProxy.d.ts +19 -0
- package/dist/lib/localProxy.d.ts.map +1 -0
- package/dist/lib/localProxy.js +33 -0
- package/dist/lib/localProxy.js.map +1 -0
- package/dist/lib/onboarding.d.ts +1 -1
- package/dist/lib/onboarding.d.ts.map +1 -1
- package/dist/lib/onboarding.js +21 -27
- package/dist/lib/onboarding.js.map +1 -1
- package/dist/lib/otelPropagation.d.ts +1 -1
- package/dist/lib/otelPropagation.js +1 -1
- package/dist/lib/policySnapshot.d.ts +2 -1
- package/dist/lib/policySnapshot.d.ts.map +1 -1
- package/dist/lib/policySnapshot.js +11 -4
- package/dist/lib/policySnapshot.js.map +1 -1
- package/dist/lib/sandbox/image.d.ts +27 -0
- package/dist/lib/sandbox/image.d.ts.map +1 -0
- package/dist/lib/sandbox/image.js +54 -0
- package/dist/lib/sandbox/image.js.map +1 -0
- package/dist/lib/sandbox/oci.d.ts +1 -0
- package/dist/lib/sandbox/oci.d.ts.map +1 -1
- package/dist/lib/sandbox/oci.js +4 -0
- package/dist/lib/sandbox/oci.js.map +1 -1
- package/dist/lib/sandbox/types.d.ts +5 -0
- package/dist/lib/sandbox/types.d.ts.map +1 -1
- package/package.json +6 -5
- package/resources/sandbox/Dockerfile +30 -0
- package/resources/sandbox/entrypoint.sh +108 -0
- package/resources/sandbox/firecracker-launch.sh +120 -0
- package/dist/harness/vscodeSettingsWriter.d.ts +0 -40
- package/dist/harness/vscodeSettingsWriter.d.ts.map +0 -1
- package/dist/harness/vscodeSettingsWriter.js +0 -116
- package/dist/harness/vscodeSettingsWriter.js.map +0 -1
package/dist/harness/cline.js
CHANGED
|
@@ -1,29 +1,36 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* cline.ts — Cline adapter
|
|
2
|
+
* cline.ts — Cline adapter.
|
|
3
3
|
*
|
|
4
|
-
* Detects the Cline VS Code extension, writes Intutic governance rules
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Detects the Cline VS Code extension, writes Intutic governance rules to
|
|
5
|
+
* `.clinerules/intutic-governance.md` and installs the PreToolUse gate at
|
|
6
|
+
* `.clinerules/hooks/PreToolUse` (see clineHooks.ts — `.clinerules` is a
|
|
7
|
+
* directory so both fit; a flat `.clinerules` an earlier version wrote is
|
|
8
|
+
* converted, one the user wrote is left alone).
|
|
9
|
+
*
|
|
10
|
+
* Cline keeps its API provider and base URL in its own settings panel, not in
|
|
11
|
+
* any file this adapter can write, so routing Cline through the proxy is a
|
|
12
|
+
* manual step (see the Cline integration page).
|
|
7
13
|
*
|
|
8
14
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
9
15
|
* @module
|
|
10
16
|
*/
|
|
11
|
-
import { access, readdir
|
|
12
|
-
import { join
|
|
17
|
+
import { access, readdir } from 'node:fs/promises';
|
|
18
|
+
import { join } from 'node:path';
|
|
13
19
|
import { homedir } from 'node:os';
|
|
14
20
|
import { HarnessType } from '@intutic/shared-types';
|
|
15
21
|
import { hashFile } from '../lib/hash.js';
|
|
22
|
+
import { loadCredentials } from '../config/store.js';
|
|
16
23
|
import { newIso } from '@intutic/id';
|
|
17
|
-
import { writeClineHooks } from '@intutic/sync-daemon/harness/clineHooks';
|
|
18
|
-
import {
|
|
19
|
-
const CONFIG_FILE = '.clinerules';
|
|
24
|
+
import { writeClineHooks, ensureClinerulesDirectory } from '@intutic/sync-daemon/harness/clineHooks';
|
|
25
|
+
import { keepOriginal, writeOwnedFile } from '@intutic/sync-daemon';
|
|
26
|
+
const CONFIG_FILE = '.clinerules/intutic-governance.md';
|
|
20
27
|
export const clineAdapter = {
|
|
21
28
|
type: HarnessType.CLINE,
|
|
22
29
|
configFileName: CONFIG_FILE,
|
|
23
30
|
async detect(workspaceRoot) {
|
|
24
|
-
// Check for .clinerules in workspace
|
|
31
|
+
// Check for .clinerules (file or directory) in workspace
|
|
25
32
|
try {
|
|
26
|
-
await access(join(workspaceRoot,
|
|
33
|
+
await access(join(workspaceRoot, '.clinerules'));
|
|
27
34
|
return true;
|
|
28
35
|
}
|
|
29
36
|
catch {
|
|
@@ -40,27 +47,28 @@ export const clineAdapter = {
|
|
|
40
47
|
}
|
|
41
48
|
},
|
|
42
49
|
async writeConfig(workspaceRoot, sops, proxyUrl) {
|
|
43
|
-
// 1.
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
//
|
|
63
|
-
await
|
|
50
|
+
// 1. Rules, as one file in the .clinerules directory Cline reads.
|
|
51
|
+
let filePath = null;
|
|
52
|
+
// Kept before `.clinerules` is created, so disconnect knows it made the directory.
|
|
53
|
+
await keepOriginal(join(workspaceRoot, CONFIG_FILE), workspaceRoot);
|
|
54
|
+
if (await ensureClinerulesDirectory(workspaceRoot)) {
|
|
55
|
+
filePath = join(workspaceRoot, CONFIG_FILE);
|
|
56
|
+
const instructions = sops.length > 0
|
|
57
|
+
? sops.map((sop) => `## ${sop.title}\n\n${sop.content}`).join('\n\n---\n\n')
|
|
58
|
+
: '# Intutic governance active — no SOP rules configured yet.';
|
|
59
|
+
const content = [
|
|
60
|
+
'# Intutic Governance Rules (auto-generated)',
|
|
61
|
+
'# DO NOT EDIT — managed by intutic sync daemon',
|
|
62
|
+
`# Last sync: ${newIso()}`,
|
|
63
|
+
'',
|
|
64
|
+
instructions,
|
|
65
|
+
'',
|
|
66
|
+
].join('\n');
|
|
67
|
+
await writeOwnedFile(filePath, workspaceRoot, content);
|
|
68
|
+
}
|
|
69
|
+
// 2. The PreToolUse gate in .clinerules/hooks/.
|
|
70
|
+
const creds = await loadCredentials();
|
|
71
|
+
await writeClineHooks(workspaceRoot, proxyUrl, creds?.workspaceId || 'local');
|
|
64
72
|
return filePath;
|
|
65
73
|
},
|
|
66
74
|
async readCurrentHash(workspaceRoot) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cline.js","sourceRoot":"","sources":["../../src/harness/cline.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"cline.js","sourceRoot":"","sources":["../../src/harness/cline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAClD,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,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAA;AACpC,OAAO,EAAE,eAAe,EAAE,yBAAyB,EAAE,MAAM,yCAAyC,CAAA;AACpG,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAEnE,MAAM,WAAW,GAAG,mCAAmC,CAAA;A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CAAC;gBAC5E,CAAC,CAAC,4DAA4D,CAAA;YAEhE,MAAM,OAAO,GAAG;gBACd,6CAA6C;gBAC7C,gDAAgD;gBAChD,gBAAgB,MAAM,EAAE,EAAE;gBAC1B,EAAE;gBACF,YAAY;gBACZ,EAAE;aACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;YAEZ,MAAM,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;QACxD,CAAC;QAED,gDAAgD;QAChD,MAAM,KAAK,GAAG,MAAM,eAAe,EAAE,CAAA;QACrC,MAAM,eAAe,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,IAAI,OAAO,CAAC,CAAA;QAE7E,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,aAAqB;QACzC,IAAI,CAAC;YACH,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAA;QACzD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;CACF,CAAA"}
|
package/dist/harness/codex.d.ts
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* codex.ts — Codex adapter
|
|
2
|
+
* codex.ts — Codex adapter.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Writes three things:
|
|
5
|
+
* - `.env.intutic` in the workspace, with the proxy base URLs for shells and
|
|
6
|
+
* scripts that source it;
|
|
7
|
+
* - `openai_base_url` in Codex's user config (`$CODEX_HOME/config.toml`,
|
|
8
|
+
* `~/.codex/config.toml` by default), merged into the user's file, so Codex
|
|
9
|
+
* routes LLM calls through the proxy without sourcing anything — see
|
|
10
|
+
* codexConfigMerger.ts;
|
|
11
|
+
* - the PreToolUse gate, registered in `~/.codex/hooks.json` and the
|
|
12
|
+
* project's `.codex/hooks.json` — see codexHooks.ts.
|
|
7
13
|
*
|
|
8
14
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
9
15
|
* @module
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/harness/codex.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"codex.d.ts","sourceRoot":"","sources":["../../src/harness/codex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAMH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAcjD,eAAO,MAAM,YAAY,EAAE,eAqD1B,CAAA"}
|
package/dist/harness/codex.js
CHANGED
|
@@ -1,21 +1,32 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* codex.ts — Codex adapter
|
|
2
|
+
* codex.ts — Codex adapter.
|
|
3
3
|
*
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
*
|
|
4
|
+
* Writes three things:
|
|
5
|
+
* - `.env.intutic` in the workspace, with the proxy base URLs for shells and
|
|
6
|
+
* scripts that source it;
|
|
7
|
+
* - `openai_base_url` in Codex's user config (`$CODEX_HOME/config.toml`,
|
|
8
|
+
* `~/.codex/config.toml` by default), merged into the user's file, so Codex
|
|
9
|
+
* routes LLM calls through the proxy without sourcing anything — see
|
|
10
|
+
* codexConfigMerger.ts;
|
|
11
|
+
* - the PreToolUse gate, registered in `~/.codex/hooks.json` and the
|
|
12
|
+
* project's `.codex/hooks.json` — see codexHooks.ts.
|
|
7
13
|
*
|
|
8
14
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
9
15
|
* @module
|
|
10
16
|
*/
|
|
11
|
-
import { join
|
|
12
|
-
import { writeFile, rename, mkdir } from 'node:fs/promises';
|
|
17
|
+
import { join } from 'node:path';
|
|
13
18
|
import { homedir } from 'node:os';
|
|
14
|
-
import { HarnessType } from '@intutic/shared-types';
|
|
19
|
+
import { HarnessType, anthropicBaseUrl, openaiBaseUrl, proxyHost } from '@intutic/shared-types';
|
|
15
20
|
import { hashFile } from '../lib/hash.js';
|
|
21
|
+
import { loadCredentials } from '../config/store.js';
|
|
16
22
|
import { newIso } from '@intutic/id';
|
|
23
|
+
import { writeCodexHooks, mergeCodexConfig, writeOwnedFile } from '@intutic/sync-daemon';
|
|
17
24
|
const CONFIG_FILE = '.env.intutic';
|
|
18
|
-
|
|
25
|
+
/** Codex's user config directory, resolved at call time so CODEX_HOME and
|
|
26
|
+
* HOME changes (and tests that move them) are honoured. */
|
|
27
|
+
function codexHome() {
|
|
28
|
+
return process.env.CODEX_HOME || join(homedir(), '.codex');
|
|
29
|
+
}
|
|
19
30
|
export const codexAdapter = {
|
|
20
31
|
type: HarnessType.CODEX,
|
|
21
32
|
configFileName: CONFIG_FILE,
|
|
@@ -45,33 +56,20 @@ export const codexAdapter = {
|
|
|
45
56
|
`# Last sync: ${newIso()}`,
|
|
46
57
|
'# Source this file: source .env.intutic',
|
|
47
58
|
'',
|
|
48
|
-
`export ANTHROPIC_BASE_URL="${proxyUrl}"`,
|
|
49
|
-
`export OPENAI_BASE_URL="${proxyUrl}"`,
|
|
50
|
-
`export INTUTIC_PROXY_URL="${proxyUrl}"`,
|
|
59
|
+
`export ANTHROPIC_BASE_URL="${anthropicBaseUrl(proxyUrl)}"`,
|
|
60
|
+
`export OPENAI_BASE_URL="${openaiBaseUrl(proxyUrl)}"`,
|
|
61
|
+
`export INTUTIC_PROXY_URL="${proxyHost(proxyUrl)}"`,
|
|
51
62
|
`export INTUTIC_SOP_COUNT=${sops.length}`,
|
|
52
63
|
'',
|
|
53
64
|
].join('\n');
|
|
54
|
-
await
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
await
|
|
58
|
-
//
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
`# Last sync: ${newIso()}`,
|
|
63
|
-
'',
|
|
64
|
-
'[model_providers.litellm]',
|
|
65
|
-
`base_url = "${proxyUrl}"`,
|
|
66
|
-
'',
|
|
67
|
-
'[model_providers.openai]',
|
|
68
|
-
`base_url = "${proxyUrl}"`,
|
|
69
|
-
'',
|
|
70
|
-
].join('\n');
|
|
71
|
-
await mkdir(dirname(CODEX_CONFIG), { recursive: true });
|
|
72
|
-
const tmpToml = CODEX_CONFIG + '.intutic-tmp';
|
|
73
|
-
await writeFile(tmpToml, codexToml, 'utf-8');
|
|
74
|
-
await rename(tmpToml, CODEX_CONFIG);
|
|
65
|
+
await writeOwnedFile(filePath, workspaceRoot, envContent);
|
|
66
|
+
// 2. Codex user config — persists proxy routing across sessions without
|
|
67
|
+
// env sourcing. Merged; a config.toml that does not parse is left alone.
|
|
68
|
+
await mergeCodexConfig(join(codexHome(), 'config.toml'), openaiBaseUrl(proxyUrl));
|
|
69
|
+
// 3. The PreToolUse gate. The routing above governs LLM egress only; the
|
|
70
|
+
// gate is what refuses tool calls.
|
|
71
|
+
const creds = await loadCredentials();
|
|
72
|
+
await writeCodexHooks(workspaceRoot, proxyUrl, creds?.workspaceId || 'local');
|
|
75
73
|
return filePath;
|
|
76
74
|
},
|
|
77
75
|
async readCurrentHash(workspaceRoot) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/harness/codex.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"codex.js","sourceRoot":"","sources":["../../src/harness/codex.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,aAAa,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAA;AAG/F,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,C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G;YACjB,6CAA6C;YAC7C,gDAAgD;YAChD,gBAAgB,MAAM,EAAE,EAAE;YAC1B,yCAAyC;YACzC,EAAE;YACF,8BAA8B,gBAAgB,CAAC,QAAQ,CAAC,GAAG;YAC3D,2BAA2B,aAAa,CAAC,QAAQ,CAAC,GAAG;YACrD,6BAA6B,SAAS,CAAC,QAAQ,CAAC,GAAG;YACnD,4BAA4B,IAAI,CAAC,MAAM,EAAE;YACzC,EAAE;SACH,CAAC,IAAI,CAAC,IAAI,CAAC,CAAA;QAEZ,MAAM,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,UAAU,CAAC,CAAA;QAEzD,wEAAwE;QACxE,4EAA4E;QAC5E,MAAM,gBAAgB,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,aAAa,CAAC,EAAE,aAAa,CAAC,QAAQ,CAAC,CAAC,CAAA;QAEjF,yEAAyE;QACzE,sCAAsC;QACtC,MAAM,KAAK,GAAG,MAAM,eAAe,EAAE,CAAA;QACrC,MAAM,eAAe,CAAC,aAAa,EAAE,QAAQ,EAAE,KAAK,EAAE,WAAW,IAAI,OAAO,CAAC,CAAA;QAE7E,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,aAAqB;QACzC,IAAI,CAAC;YACH,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAA;QACzD,CAAC;QAAC,MAAM,CAAC;YACP,OAAO,IAAI,CAAA;QACb,CAAC;IACH,CAAC;CACF,CAAA"}
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* continue.ts — Continue adapter
|
|
2
|
+
* continue.ts — Continue adapter.
|
|
3
3
|
*
|
|
4
|
-
* Detects the Continue AI coding assistant and
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Detects the Continue AI coding assistant and:
|
|
5
|
+
* - sets `apiBase` on each OpenAI/Anthropic model in `~/.continue/config.yaml`
|
|
6
|
+
* so its LLM calls reach the proxy (merged; see continueConfigMerger.ts);
|
|
7
|
+
* - installs the Continue CLI (`cn`) PreToolUse gate in
|
|
8
|
+
* `~/.continue/settings.json` and `<repo>/.continue/settings.json` (see
|
|
9
|
+
* continueHooks.ts). The IDE extension has no hook system, so for it proxy
|
|
10
|
+
* routing is the only mechanism.
|
|
8
11
|
*
|
|
9
12
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
10
13
|
* @module
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continue.d.ts","sourceRoot":"","sources":["../../src/harness/continue.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"continue.d.ts","sourceRoot":"","sources":["../../src/harness/continue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAWjD,eAAO,MAAM,eAAe,EAAE,eA6B7B,CAAA"}
|
package/dist/harness/continue.js
CHANGED
|
@@ -1,29 +1,34 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* continue.ts — Continue adapter
|
|
2
|
+
* continue.ts — Continue adapter.
|
|
3
3
|
*
|
|
4
|
-
* Detects the Continue AI coding assistant and
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* Detects the Continue AI coding assistant and:
|
|
5
|
+
* - sets `apiBase` on each OpenAI/Anthropic model in `~/.continue/config.yaml`
|
|
6
|
+
* so its LLM calls reach the proxy (merged; see continueConfigMerger.ts);
|
|
7
|
+
* - installs the Continue CLI (`cn`) PreToolUse gate in
|
|
8
|
+
* `~/.continue/settings.json` and `<repo>/.continue/settings.json` (see
|
|
9
|
+
* continueHooks.ts). The IDE extension has no hook system, so for it proxy
|
|
10
|
+
* routing is the only mechanism.
|
|
8
11
|
*
|
|
9
12
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
10
13
|
* @module
|
|
11
14
|
*/
|
|
12
|
-
import { access, readdir
|
|
15
|
+
import { access, readdir } 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';
|
|
18
|
+
import { HarnessType, openaiBaseUrl } from '@intutic/shared-types';
|
|
16
19
|
import { hashFile } from '../lib/hash.js';
|
|
17
|
-
import {
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
20
|
+
import { loadCredentials } from '../config/store.js';
|
|
21
|
+
import { mergeContinueConfig, writeContinueHooks } from '@intutic/sync-daemon';
|
|
22
|
+
/** `~/.continue/<name>`, resolved at call time so HOME changes (and tests
|
|
23
|
+
* that move HOME) are honoured. */
|
|
24
|
+
function continuePath(name) {
|
|
25
|
+
return join(homedir(), '.continue', name);
|
|
26
|
+
}
|
|
22
27
|
export const continueAdapter = {
|
|
23
28
|
type: HarnessType.CONTINUE,
|
|
24
|
-
configFileName:
|
|
29
|
+
configFileName: continuePath('config.yaml'),
|
|
25
30
|
async detect(_workspaceRoot) {
|
|
26
|
-
for (const p of [
|
|
31
|
+
for (const p of [continuePath('config.yaml'), continuePath('config.json')]) {
|
|
27
32
|
try {
|
|
28
33
|
await access(p);
|
|
29
34
|
return true;
|
|
@@ -31,64 +36,23 @@ export const continueAdapter = {
|
|
|
31
36
|
catch { /* fall through */ }
|
|
32
37
|
}
|
|
33
38
|
try {
|
|
34
|
-
const entries = await readdir(join(
|
|
39
|
+
const entries = await readdir(join(homedir(), '.vscode', 'extensions'));
|
|
35
40
|
return entries.some((e) => e.startsWith('continue.continue-'));
|
|
36
41
|
}
|
|
37
42
|
catch {
|
|
38
43
|
return false;
|
|
39
44
|
}
|
|
40
45
|
},
|
|
41
|
-
async writeConfig(
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
}
|
|
48
|
-
catch {
|
|
49
|
-
raw = '';
|
|
50
|
-
}
|
|
51
|
-
// Inject apiBase under each `- name:` model entry.
|
|
52
|
-
// Simple line-based approach that handles the common config.yaml structure.
|
|
53
|
-
const lines = raw.split('\n');
|
|
54
|
-
const result = [];
|
|
55
|
-
let inModels = false;
|
|
56
|
-
for (let i = 0; i < lines.length; i++) {
|
|
57
|
-
const line = lines[i];
|
|
58
|
-
result.push(line);
|
|
59
|
-
if (line.trim() === 'models:') {
|
|
60
|
-
inModels = true;
|
|
61
|
-
continue;
|
|
62
|
-
}
|
|
63
|
-
if (inModels && line.trim().startsWith('- name:')) {
|
|
64
|
-
// After each model entry start, inject apiBase if not already present
|
|
65
|
-
const next = lines[i + 1] ?? '';
|
|
66
|
-
if (!next.trim().startsWith('apiBase:')) {
|
|
67
|
-
result.push(` apiBase: "${proxyUrl}"`);
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
if (inModels && line.trim() && !line.startsWith(' ') && !line.trim().startsWith('-') && !line.trim().startsWith('models:')) {
|
|
71
|
-
inModels = false;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
// If config.yaml is empty or has no models section yet, write a minimal config
|
|
75
|
-
if (!raw.includes('models:')) {
|
|
76
|
-
result.push('# Intutic proxy config (auto-generated)');
|
|
77
|
-
result.push(`# Last sync: ${newIso()}`);
|
|
78
|
-
result.push('models:');
|
|
79
|
-
result.push(' - name: "Intutic Governed Model"');
|
|
80
|
-
result.push(` apiBase: "${proxyUrl}"`);
|
|
81
|
-
}
|
|
82
|
-
const content = result.join('\n');
|
|
83
|
-
await mkdir(CONTINUE_DIR, { recursive: true });
|
|
84
|
-
const tmp = CONFIG_YAML + '.intutic-tmp';
|
|
85
|
-
await writeFile(tmp, content, 'utf-8');
|
|
86
|
-
await rename(tmp, CONFIG_YAML);
|
|
87
|
-
return CONFIG_YAML;
|
|
46
|
+
async writeConfig(workspaceRoot, _sops, proxyUrl) {
|
|
47
|
+
const configYaml = continuePath('config.yaml');
|
|
48
|
+
const routed = await mergeContinueConfig(configYaml, openaiBaseUrl(proxyUrl));
|
|
49
|
+
const creds = await loadCredentials();
|
|
50
|
+
await writeContinueHooks(workspaceRoot, proxyUrl, creds?.workspaceId || 'local');
|
|
51
|
+
return routed > 0 ? configYaml : null;
|
|
88
52
|
},
|
|
89
53
|
async readCurrentHash(_workspaceRoot) {
|
|
90
54
|
try {
|
|
91
|
-
return await hashFile(
|
|
55
|
+
return await hashFile(continuePath('config.yaml'));
|
|
92
56
|
}
|
|
93
57
|
catch {
|
|
94
58
|
return null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"continue.js","sourceRoot":"","sources":["../../src/harness/continue.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"continue.js","sourceRoot":"","sources":["../../src/harness/continue.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAEH,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAClD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAA;AACjC,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAA;AAGlE,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAA;AACpD,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9E;oCACoC;AACpC,SAAS,YAAY,CAAC,IAAY;IAChC,OAAO,IAAI,CAAC,OAAO,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,CAAA;AAC3C,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C,IAAI,EAAE,WAAW,CAAC,QAAQ;IAC1B,cAAc,EAAE,YAAY,CAAC,aAAa,CAAC;IAE3C,KAAK,CAAC,MAAM,CAAC,cAAsB;QACjC,KAAK,MAAM,CAAC,IAAI,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 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/harness/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"cursor.d.ts","sourceRoot":"","sources":["../../src/harness/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQjD,eAAO,MAAM,aAAa,EAAE,eA6B3B,CAAA"}
|
package/dist/harness/cursor.js
CHANGED
|
@@ -16,8 +16,7 @@ import { HarnessType } from '@intutic/shared-types';
|
|
|
16
16
|
import { hashFile } from '../lib/hash.js';
|
|
17
17
|
import { buildMarkdownContent } from './base.js';
|
|
18
18
|
import { writeCursorHooks } from '@intutic/sync-daemon/harness/cursorHooks';
|
|
19
|
-
import {
|
|
20
|
-
import { dirname } from 'node:path';
|
|
19
|
+
import { writeOwnedFile } from '@intutic/sync-daemon';
|
|
21
20
|
const CONFIG_FILE = '.cursorrules';
|
|
22
21
|
export const cursorAdapter = {
|
|
23
22
|
type: HarnessType.CURSOR,
|
|
@@ -44,10 +43,7 @@ export const cursorAdapter = {
|
|
|
44
43
|
// 1. Write .cursorrules markdown governance text
|
|
45
44
|
const filePath = join(workspaceRoot, CONFIG_FILE);
|
|
46
45
|
const content = buildMarkdownContent(sops, proxyUrl);
|
|
47
|
-
await
|
|
48
|
-
const tmp = filePath + '.intutic-tmp';
|
|
49
|
-
await writeFile(tmp, content, 'utf-8');
|
|
50
|
-
await rename(tmp, filePath);
|
|
46
|
+
await writeOwnedFile(filePath, workspaceRoot, content);
|
|
51
47
|
// 2. Inject hooks.json at project + user level (writeSystemLevel=false;
|
|
52
48
|
// system level requires sudo execution)
|
|
53
49
|
await writeCursorHooks(workspaceRoot, proxyUrl, '', false);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/harness/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;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,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"cursor.js","sourceRoot":"","sources":["../../src/harness/cursor.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;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,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAA;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,0CAA0C,CAAA;AAC3E,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AAErD,MAAM,WAAW,GAAG,cAAc,CAAA;AAElC,MAAM,CAAC,MAAM,aAAa,GAAoB;IAC5C,IAAI,EAAE,WAAW,CAAC,MAAM;IACxB,cAAc,EAAE,WAAW;IAE3B,KAAK,CAAC,MAAM,CAAC,aAAqB;QAChC,qCAAqC;QACrC,KAAK,MAAM,MAAM,IAAI,CAAC,WAAW,EAAE,SAAS,CAAC,EAAE,CAAC;YAC9C,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,kDAAkD;QAClD,IAAI,CAAC;YAAC,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,CAAC,CAAC,CAAC;YAAC,OAAO,IAAI,CAAA;QAAC,CAAC;QAAC,MAAM,CAAC;YAAC,OAAO,KAAK,CAAA;QAAC,CAAC;IACtF,CAAC;IAED,KAAK,CAAC,WAAW,CAAC,aAAqB,EAAE,IAAoB,EAAE,QAAgB;QAC7E,iDAAiD;QACjD,MAAM,QAAQ,GAAG,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAA;QACjD,MAAM,OAAO,GAAG,oBAAoB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAA;QACpD,MAAM,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,OAAO,CAAC,CAAA;QAEtD,wEAAwE;QACxE,2CAA2C;QAC3C,MAAM,gBAAgB,CAAC,aAAa,EAAE,QAAQ,EAAE,EAAE,EAAE,KAAK,CAAC,CAAA;QAE1D,OAAO,QAAQ,CAAA;IACjB,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,aAAqB;QACzC,IAAI,CAAC;YAAC,OAAO,MAAM,QAAQ,CAAC,IAAI,CAAC,aAAa,EAAE,WAAW,CAAC,CAAC,CAAA;QAAC,CAAC;QAAC,MAAM,CAAC;YAAC,OAAO,IAAI,CAAA;QAAC,CAAC;IACvF,CAAC;CACF,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Harness detector — auto-detect which AI harnesses are present.
|
|
3
3
|
*
|
|
4
|
-
* Instantiates all
|
|
4
|
+
* Instantiates all 42 adapters and checks each for presence in
|
|
5
5
|
* the workspace. Returns a DetectedHarness array for reporting.
|
|
6
6
|
*
|
|
7
7
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAC5D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"detector.d.ts","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;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,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Harness detector — auto-detect which AI harnesses are present.
|
|
3
3
|
*
|
|
4
|
-
* Instantiates all
|
|
4
|
+
* Instantiates all 42 adapters and checks each for presence in
|
|
5
5
|
* the workspace. Returns a DetectedHarness array for reporting.
|
|
6
6
|
*
|
|
7
7
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
@@ -42,6 +42,7 @@ import { openaiAgentsAdapter } from './openaiAgents.js';
|
|
|
42
42
|
import { pydanticAiAdapter } from './pydanticAi.js';
|
|
43
43
|
import { smolagentsAdapter } from './smolagents.js';
|
|
44
44
|
import { strandsAdapter } from './strands.js';
|
|
45
|
+
import { agentFrameworkAdapter } from './agentFramework.js';
|
|
45
46
|
import { mastraAdapter } from './mastra.js';
|
|
46
47
|
import { vercelAiSdkAdapter } from './vercelAiSdk.js';
|
|
47
48
|
import { eveAdapter } from './eve.js';
|
|
@@ -86,6 +87,7 @@ export const ALL_ADAPTERS = [
|
|
|
86
87
|
pydanticAiAdapter,
|
|
87
88
|
smolagentsAdapter,
|
|
88
89
|
strandsAdapter,
|
|
90
|
+
agentFrameworkAdapter,
|
|
89
91
|
mastraAdapter,
|
|
90
92
|
vercelAiSdkAdapter,
|
|
91
93
|
eveAdapter,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"detector.js","sourceRoot":"","sources":["../../src/harness/detector.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;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,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAA;AACrC,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,cAAc,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAA;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,oBAAoB,CAAA;AACzD,OAAO,EAAE,YAAY,EAAE,MAAM,YAAY,CAAA;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAA;AACjD,OAAO,EAAE,eAAe,EAAE,MAAM,e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CAAC,IAAI,KAAK,IAAI,CAAC,CAAA;AAClD,CAAC"}
|
package/dist/harness/dsh.d.ts
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* adapter could write governance text into (see `types.ts`'s
|
|
7
7
|
* `HARNESS_CONFIG_FILES.dsh`). The governance-critical half — the
|
|
8
8
|
* `tools/pre-execute` Cordis plugin registration (`cordis.patch.yml` per
|
|
9
|
-
* profile), the profile's `@intutic/gate` dependency, and the `
|
|
10
|
-
*
|
|
9
|
+
* profile), the profile's `@intutic/gate` dependency, and the `llm-deepseek`
|
|
10
|
+
* egress override in that same patch file — is delegated entirely to
|
|
11
11
|
* `@intutic/sync-daemon`'s `dshHooks.ts`, the same split Goose/Muse Code's
|
|
12
12
|
* adapters use for their own plugin installation.
|
|
13
13
|
*
|
package/dist/harness/dsh.js
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
* adapter could write governance text into (see `types.ts`'s
|
|
7
7
|
* `HARNESS_CONFIG_FILES.dsh`). The governance-critical half — the
|
|
8
8
|
* `tools/pre-execute` Cordis plugin registration (`cordis.patch.yml` per
|
|
9
|
-
* profile), the profile's `@intutic/gate` dependency, and the `
|
|
10
|
-
*
|
|
9
|
+
* profile), the profile's `@intutic/gate` dependency, and the `llm-deepseek`
|
|
10
|
+
* egress override in that same patch file — is delegated entirely to
|
|
11
11
|
* `@intutic/sync-daemon`'s `dshHooks.ts`, the same split Goose/Muse Code's
|
|
12
12
|
* adapters use for their own plugin installation.
|
|
13
13
|
*
|
|
@@ -70,7 +70,7 @@ export const dshAdapter = {
|
|
|
70
70
|
async writeConfig(workspaceRoot, _sops, proxyUrl) {
|
|
71
71
|
// No rules/markdown file for dsh — `sops` are not consulted here (same
|
|
72
72
|
// "no text-rules file" posture as goose.ts's own adapter). The plugin
|
|
73
|
-
// registration +
|
|
73
|
+
// registration + egress row in each profile patch is the entirety of what this
|
|
74
74
|
// harness gets, and it happens for every existing profile, not one file.
|
|
75
75
|
await writeDshHooks(workspaceRoot, proxyUrl, '');
|
|
76
76
|
const dshHome = resolveDshHome();
|
package/dist/harness/dsh.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dsh.js","sourceRoot":"","sources":["../../src/harness/dsh.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;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,kBAAkB,EAAE,MAAM,uCAAuC,CAAA;AAEzG,MAAM,CAAC,MAAM,UAAU,GAAoB;IACzC,IAAI,EAAE,WAAW,CAAC,gBAAgB;IAClC,0EAA0E;IAC1E,iEAAiE;IACjE,qEAAqE;IACrE,4DAA4D;IAC5D,uDAAuD;IACvD,cAAc,EAAE,EAAE;IAElB,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,MAAM,CAAC,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;gBACnC,OAAO,IAAI,CAAA;YACb,CAAC;YAAC,MAAM,CAAC;gBACP,cAAc;YAChB,CAAC;QACH,CAAC;QAED,qEAAqE;QACrE,sEAAsE;QACtE,MAAM,QAAQ,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,QAAQ,KAAK,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAA;QACzF,IAAI,CAAC;YACH,MAAM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AQ,GAAG,MAAM,kBAAkB,CAAC,OAAO,CAAC,CAAA;QAClD,uEAAuE;QACvE,qEAAqE;QACrE,qEAAqE;QACrE,wEAAwE;QACxE,uDAAuD;QACvD,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAE,EAAE,kBAAkB,CAAC,CAAC,CAAC,CAAC,OAAO,CAAA;IAC/E,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,cAAsB;QAC1C,wEAAwE;QACxE,mEAAmE;QACnE,wEAAwE;QACxE,sEAAsE;QACtE,OAAO,IAAI,CAAA;IACb,CAAC;CACF,CAAA"}
|
package/dist/harness/eve.d.ts
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
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
|
-
* eve@0.
|
|
23
|
+
* eve@0.71.0's shipped `.d.ts` (first 0.39.1) — see that module's doc for exactly what was
|
|
24
24
|
* confirmed vs. assumed, and docs/TECH_DEBT.md TD-410/TD-411/TD-412.
|
|
25
25
|
*
|
|
26
26
|
* LLM-egress note carried into the generated `.env.intutic`: eve routes
|
package/dist/harness/eve.js
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
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
|
-
* eve@0.
|
|
23
|
+
* eve@0.71.0's shipped `.d.ts` (first 0.39.1) — see that module's doc for exactly what was
|
|
24
24
|
* confirmed vs. assumed, and docs/TECH_DEBT.md TD-410/TD-411/TD-412.
|
|
25
25
|
*
|
|
26
26
|
* LLM-egress note carried into the generated `.env.intutic`: eve routes
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* githubCopilot.ts — GitHub Copilot adapter.
|
|
3
3
|
*
|
|
4
|
-
* Detects GitHub Copilot presence (.git, .github, or .github/copilot-instructions.md)
|
|
5
|
-
*
|
|
4
|
+
* Detects GitHub Copilot presence (.git, .github, or .github/copilot-instructions.md),
|
|
5
|
+
* writes Markdown rules to `.github/copilot-instructions.md`, and installs the
|
|
6
|
+
* VS Code agent-mode PreToolUse gate (`.github/hooks/intutic-governance.json`
|
|
7
|
+
* and `~/.copilot/hooks/intutic-governance.json`) — see githubCopilotHooks.ts.
|
|
6
8
|
*
|
|
7
9
|
* HLD §3.14 — Harness Onboarding Matrix
|
|
8
10
|
* @module
|
|
@@ -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;;;;;;;;;;GAUG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAQjD,eAAO,MAAM,oBAAoB,EAAE,eAqClC,CAAA"}
|