@oscharko-dev/keiko 1.1.1 → 1.1.3
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/ui/csp-hashes.json +7 -7
- package/dist/ui/static/404.html +1 -1
- package/dist/ui/static/__next.__PAGE__.txt +2 -2
- package/dist/ui/static/__next._full.txt +3 -3
- package/dist/ui/static/__next._tree.txt +1 -1
- package/dist/ui/static/_next/static/chunks/0bkvv_4vdnwcc.js +1 -0
- package/dist/ui/static/_next/static/chunks/0k931k8qwqyft.js +1 -0
- package/dist/ui/static/_next/static/chunks/1cluynrv3wmyz.js +1 -0
- package/dist/ui/static/_next/static/chunks/{07d68bcqo__-x.js → 3npt49rhl5w41.js} +1 -1
- package/dist/ui/static/_next/static/chunks/{0lwq5bbayfz9a.js → 3x47uozrkxs0n.js} +1 -1
- package/dist/ui/static/_not-found/__next._full.txt +1 -1
- package/dist/ui/static/_not-found/__next._not-found.__PAGE__.txt +1 -1
- package/dist/ui/static/_not-found/__next._tree.txt +1 -1
- package/dist/ui/static/_not-found.html +1 -1
- package/dist/ui/static/_not-found.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next._full.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next._tree.txt +1 -1
- package/dist/ui/static/atlassian-connectors/__next.atlassian-connectors.__PAGE__.txt +1 -1
- package/dist/ui/static/atlassian-connectors.html +1 -1
- package/dist/ui/static/atlassian-connectors.txt +1 -1
- package/dist/ui/static/index.html +1 -1
- package/dist/ui/static/index.txt +3 -3
- package/dist/ui/static/launch/__next._full.txt +3 -3
- package/dist/ui/static/launch/__next._tree.txt +1 -1
- package/dist/ui/static/launch/__next.launch.__PAGE__.txt +2 -2
- package/dist/ui/static/launch.html +1 -1
- package/dist/ui/static/launch.txt +3 -3
- package/dist/ui/static/local-knowledge/__next._full.txt +3 -3
- package/dist/ui/static/local-knowledge/__next._tree.txt +1 -1
- package/dist/ui/static/local-knowledge/__next.local-knowledge.__PAGE__.txt +2 -2
- package/dist/ui/static/local-knowledge/capsule/__next._full.txt +3 -3
- package/dist/ui/static/local-knowledge/capsule/__next._tree.txt +1 -1
- package/dist/ui/static/local-knowledge/capsule/__next.local-knowledge.capsule.__PAGE__.txt +2 -2
- package/dist/ui/static/local-knowledge/capsule.html +1 -1
- package/dist/ui/static/local-knowledge/capsule.txt +3 -3
- package/dist/ui/static/local-knowledge.html +1 -1
- package/dist/ui/static/local-knowledge.txt +3 -3
- package/node_modules/@oscharko-dev/keiko-cli/package.json +14 -14
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-connectors/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/activity-log-registry.generated.js +3 -3
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/git-repository.js +10 -4
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts +15 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-contracts/dist/governed-tool-catalog.js +18 -0
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/dist/version.js +2 -2
- package/node_modules/@oscharko-dev/keiko-contracts/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-evaluations/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-evidence/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-git/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-git/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-git/package.json +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/editor-agent-catalog.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/editor-agent-catalog.js +6 -11
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-harness/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-local-knowledge/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-capture/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-consolidation/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-governance/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-retrieval/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-memory-vault/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-model-gateway/package.json +4 -4
- package/node_modules/@oscharko-dev/keiko-quality-intelligence/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-sandbox/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-sdk/package.json +9 -9
- package/node_modules/@oscharko-dev/keiko-security/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-security/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-security/package.json +2 -2
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts +31 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/devLanePortableCodingRuntime.js +99 -10
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts +17 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map +1 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js +37 -0
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js +15 -6
- package/node_modules/@oscharko-dev/keiko-server/package.json +22 -22
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.d.ts +2 -2
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.d.ts.map +1 -1
- package/node_modules/@oscharko-dev/keiko-tool-catalog/dist/dialect.js +7 -9
- package/node_modules/@oscharko-dev/keiko-tool-catalog/package.json +3 -3
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-tools/package.json +7 -7
- package/node_modules/@oscharko-dev/keiko-verification/package.json +5 -5
- package/node_modules/@oscharko-dev/keiko-workflows/package.json +10 -10
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.d.ts +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/dist/version.js +1 -1
- package/node_modules/@oscharko-dev/keiko-workspace/package.json +3 -3
- package/package.json +31 -29
- package/release-impact.catalog.json +106 -0
- package/vendor/{oscharko-dev-keiko-cli-1.1.1.tgz → oscharko-dev-keiko-cli-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-connectors-1.1.1.tgz → oscharko-dev-keiko-connectors-1.1.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-contracts-1.1.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-evaluations-1.1.1.tgz → oscharko-dev-keiko-evaluations-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-evidence-1.1.1.tgz → oscharko-dev-keiko-evidence-1.1.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-harness-1.1.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-local-knowledge-1.1.1.tgz → oscharko-dev-keiko-local-knowledge-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-capture-1.1.1.tgz → oscharko-dev-keiko-memory-capture-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-consolidation-1.1.1.tgz → oscharko-dev-keiko-memory-consolidation-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-governance-1.1.1.tgz → oscharko-dev-keiko-memory-governance-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-retrieval-1.1.1.tgz → oscharko-dev-keiko-memory-retrieval-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-memory-vault-1.1.1.tgz → oscharko-dev-keiko-memory-vault-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-model-gateway-1.1.1.tgz → oscharko-dev-keiko-model-gateway-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-quality-intelligence-1.1.1.tgz → oscharko-dev-keiko-quality-intelligence-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sandbox-1.1.1.tgz → oscharko-dev-keiko-sandbox-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-sdk-1.1.1.tgz → oscharko-dev-keiko-sdk-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-security-1.1.1.tgz → oscharko-dev-keiko-security-1.1.3.tgz} +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.3.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.3.tgz +0 -0
- package/vendor/{oscharko-dev-keiko-tools-1.1.1.tgz → oscharko-dev-keiko-tools-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-verification-1.1.1.tgz → oscharko-dev-keiko-verification-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workflows-1.1.1.tgz → oscharko-dev-keiko-workflows-1.1.3.tgz} +0 -0
- package/vendor/{oscharko-dev-keiko-workspace-1.1.1.tgz → oscharko-dev-keiko-workspace-1.1.3.tgz} +0 -0
- package/dist/ui/static/_next/static/chunks/02ug3u_si269z.js +0 -1
- package/dist/ui/static/_next/static/chunks/1n5p49jpwwwi8.js +0 -1
- package/dist/ui/static/_next/static/chunks/1qsl7dx87n-af.js +0 -1
- package/vendor/oscharko-dev-keiko-contracts-1.1.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-git-1.1.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-harness-1.1.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-server-1.1.1.tgz +0 -0
- package/vendor/oscharko-dev-keiko-tool-catalog-1.1.1.tgz +0 -0
- /package/dist/ui/static/_next/static/{O8nJnzNap09wp0fCD_lk- → I8XgE7OTMPfaqDeyVALyl}/_buildManifest.js +0 -0
- /package/dist/ui/static/_next/static/{O8nJnzNap09wp0fCD_lk- → I8XgE7OTMPfaqDeyVALyl}/_clientMiddlewareManifest.js +0 -0
- /package/dist/ui/static/_next/static/{O8nJnzNap09wp0fCD_lk- → I8XgE7OTMPfaqDeyVALyl}/_ssgManifest.js +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscharko-dev/keiko-sdk",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Internal SDK package: public agent, workflow, verification, workspace, evidence, and evaluation surface that the root product facade re-exports (Issue #426, ADR-0019). Not published independently.",
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
},
|
|
22
22
|
"private": true,
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@oscharko-dev/keiko-contracts": "1.1.
|
|
25
|
-
"@oscharko-dev/keiko-evaluations": "1.1.
|
|
26
|
-
"@oscharko-dev/keiko-evidence": "1.1.
|
|
27
|
-
"@oscharko-dev/keiko-harness": "1.1.
|
|
28
|
-
"@oscharko-dev/keiko-model-gateway": "1.1.
|
|
29
|
-
"@oscharko-dev/keiko-verification": "1.1.
|
|
30
|
-
"@oscharko-dev/keiko-workflows": "1.1.
|
|
31
|
-
"@oscharko-dev/keiko-workspace": "1.1.
|
|
24
|
+
"@oscharko-dev/keiko-contracts": "1.1.3",
|
|
25
|
+
"@oscharko-dev/keiko-evaluations": "1.1.3",
|
|
26
|
+
"@oscharko-dev/keiko-evidence": "1.1.3",
|
|
27
|
+
"@oscharko-dev/keiko-harness": "1.1.3",
|
|
28
|
+
"@oscharko-dev/keiko-model-gateway": "1.1.3",
|
|
29
|
+
"@oscharko-dev/keiko-verification": "1.1.3",
|
|
30
|
+
"@oscharko-dev/keiko-workflows": "1.1.3",
|
|
31
|
+
"@oscharko-dev/keiko-workspace": "1.1.3"
|
|
32
32
|
}
|
|
33
33
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const KEIKO_SECURITY_VERSION: "1.1.
|
|
1
|
+
export declare const KEIKO_SECURITY_VERSION: "1.1.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
// Version anchor for @oscharko-dev/keiko-security. Pinned to the package's package.json version.
|
|
2
2
|
// Lets consumers assert which security primitive contract they linked against (ADR-0019 leaf-package
|
|
3
3
|
// pattern, mirroring @oscharko-dev/keiko-contracts).
|
|
4
|
-
export const KEIKO_SECURITY_VERSION = "1.1.
|
|
4
|
+
export const KEIKO_SECURITY_VERSION = "1.1.3";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscharko-dev/keiko-security",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Internal workspace package: shared Keiko security primitives (redaction, safe error shaping, secret collection, content hashing, trust-boundary helpers). Not published independently.",
|
|
@@ -101,6 +101,6 @@
|
|
|
101
101
|
},
|
|
102
102
|
"private": true,
|
|
103
103
|
"peerDependencies": {
|
|
104
|
-
"@oscharko-dev/keiko-contracts": "1.1.
|
|
104
|
+
"@oscharko-dev/keiko-contracts": "1.1.3"
|
|
105
105
|
}
|
|
106
106
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { LongLivedRuntimeQualification } from "@oscharko-dev/keiko-contracts/runtime/runtime-qualification";
|
|
2
|
+
import { type ServerDiagnosticSink } from "../diagnostics-log.js";
|
|
2
3
|
import type { PortableSidecarRuntimeVerification } from "../update-portable-sidecar-verification.js";
|
|
4
|
+
import { type NpmLaneRuntimeApproval } from "./npmLaneRuntimeApprovals.js";
|
|
3
5
|
import type { SecureWorkspaceTextReadArtifact } from "./secureWorkspaceTextReadArtifact.js";
|
|
4
6
|
export declare const KEIKO_CODING_RUNTIME_DEV_LANE_ENV = "KEIKO_CODING_RUNTIME_DEV_LANE";
|
|
5
7
|
export declare const DEV_LANE_STAGED_PAYLOADS_DIR = ".portable-sidecar-payloads";
|
|
@@ -8,6 +10,8 @@ export declare const DEV_LANE_HELPER_RELATIVE_PATH = "native/keiko-secure-worksp
|
|
|
8
10
|
export declare const DEV_LANE_RUNTIME_SUPERVISOR_RELATIVE_PATH = "native/keiko-runtime-supervisor";
|
|
9
11
|
export type DevLaneOpenCodeTarget = "windows-x64" | "macos-arm64" | "macos-x64";
|
|
10
12
|
export type DevLaneOpenCodeRefusalReason = "platform-unsupported" | "packaged-install-present" | "not-a-dev-checkout" | "payload-missing" | "payload-unapproved" | "payload-tampered" | "native-helper-directory-untrusted" | "secure-read-helper-missing" | "secure-read-helper-stale";
|
|
13
|
+
/** Which digest-verified, unsigned lane activated the runtime: a checkout, or an npm runtime package. */
|
|
14
|
+
export type DevLaneName = "dev-checkout" | "npm-runtime-package";
|
|
11
15
|
export interface DevLaneSecureReadBinding {
|
|
12
16
|
readonly helperPath: string;
|
|
13
17
|
readonly helperSizeBytes: number;
|
|
@@ -21,7 +25,7 @@ export interface DevLaneSecureReadBinding {
|
|
|
21
25
|
*/
|
|
22
26
|
export interface DevLanePortableOpenCodeRuntime {
|
|
23
27
|
readonly evidenceClass: "functional-not-platform-qualified";
|
|
24
|
-
readonly lane:
|
|
28
|
+
readonly lane: DevLaneName;
|
|
25
29
|
readonly installRoot: string;
|
|
26
30
|
readonly target: DevLaneOpenCodeTarget;
|
|
27
31
|
readonly sidecar: PortableSidecarRuntimeVerification;
|
|
@@ -47,6 +51,10 @@ export interface DevLaneOpenCodeDiscoveryInput {
|
|
|
47
51
|
readonly arch?: string | undefined;
|
|
48
52
|
/** The trusted launcher probes before native regeneration without establishing process authority. */
|
|
49
53
|
readonly admitRuntimeSupervisor?: boolean | undefined;
|
|
54
|
+
/** Receives the redacted diagnostic of a verification that failed unexpectedly. */
|
|
55
|
+
readonly diagnostics?: ServerDiagnosticSink | undefined;
|
|
56
|
+
/** Hermetic test seam; production callers never supply the npm lane's trust anchor. */
|
|
57
|
+
readonly npmLaneApprovals?: Readonly<Partial<Record<string, NpmLaneRuntimeApproval>>> | undefined;
|
|
50
58
|
}
|
|
51
59
|
export declare function devLaneEnvEnabled(value: string | undefined): boolean;
|
|
52
60
|
/**
|
|
@@ -56,6 +64,21 @@ export declare function devLaneEnvEnabled(value: string | undefined): boolean;
|
|
|
56
64
|
* the lane regardless of what is staged. Packaged installs never reach the verification steps.
|
|
57
65
|
*/
|
|
58
66
|
export declare function discoverDevLaneOpenCode(input: DevLaneOpenCodeDiscoveryInput): DevLaneOpenCodeDiscovery;
|
|
67
|
+
/**
|
|
68
|
+
* The npm lane (#3577): an npm-installed Keiko carries no coding engine, so without this lane it
|
|
69
|
+
* lists its coding models and can never start a run. A customer who cannot install a desktop
|
|
70
|
+
* package installs `@oscharko-dev/keiko-coding-runtime-<platform>` next to Keiko instead, and this
|
|
71
|
+
* discovers it through ordinary module resolution from Keiko's own package root.
|
|
72
|
+
*
|
|
73
|
+
* It is the dev lane's verification with a different trust anchor, never a weaker one: the OpenCode
|
|
74
|
+
* executable tree, its license and its SBOM must match the review-approved digests, the helper must
|
|
75
|
+
* match the digest of the binary Keiko built, and the native directory may hold nothing else. All of
|
|
76
|
+
* those digests are compiled into this server (npmLaneRuntimeApprovals.ts), so a runtime package
|
|
77
|
+
* cannot vouch for itself and a planted package of the same name verifies or is refused. No opt-in
|
|
78
|
+
* is asked: installing the package is the operator's decision. `inactive` means no package is
|
|
79
|
+
* installed; a present package that fails verification is `refused` and logged.
|
|
80
|
+
*/
|
|
81
|
+
export declare function discoverNpmLaneOpenCode(input: DevLaneOpenCodeDiscoveryInput): DevLaneOpenCodeDiscovery;
|
|
59
82
|
/**
|
|
60
83
|
* KEIKO-0180 (and #3099 P2 follow-up): SINGLE canonical formula shared by the production tree
|
|
61
84
|
* walker, the discovery pipeline, and tests. Given a set of `(relativePath, sha256)` pairs,
|
|
@@ -69,4 +92,11 @@ export declare function computePortableSidecarPayloadTreeDigest(entries: readonl
|
|
|
69
92
|
readonly relativePath: string;
|
|
70
93
|
readonly sha256: string;
|
|
71
94
|
}[]): string;
|
|
95
|
+
/**
|
|
96
|
+
* Cross-process helper-source digest. The staging script records `sourceTreeSha256` in one
|
|
97
|
+
* process and discovery re-derives it in another; a locale-dependent collation could diverge
|
|
98
|
+
* between those processes and report a false stale helper, so this ordering is plain
|
|
99
|
+
* code-unit comparison — locale-independent by construction. The staging script mirrors it.
|
|
100
|
+
*/
|
|
101
|
+
export declare function hashHelperSourceTree(root: string): string;
|
|
72
102
|
//# sourceMappingURL=devLanePortableCodingRuntime.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devLanePortableCodingRuntime.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/devLanePortableCodingRuntime.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"devLanePortableCodingRuntime.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/devLanePortableCodingRuntime.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,6DAA6D,CAAC;AAEjH,OAAO,EAIL,KAAK,oBAAoB,EAC1B,MAAM,uBAAuB,CAAC;AAE/B,OAAO,KAAK,EAAE,kCAAkC,EAAE,MAAM,4CAA4C,CAAC;AACrG,OAAO,EAEL,KAAK,sBAAsB,EAC5B,MAAM,8BAA8B,CAAC;AAKtC,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAE5F,eAAO,MAAM,iCAAiC,kCAAkC,CAAC;AACjF,eAAO,MAAM,4BAA4B,+BAA+B,CAAC;AACzE,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/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/coding-runtime/devLanePortableCodingRuntime.js
CHANGED
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { createHash } from "node:crypto";
|
|
2
|
-
import { existsSync, lstatSync, readdirSync, readFileSync, statSync } from "node:fs";
|
|
3
|
-
import {
|
|
1
|
+
import { createHash, randomUUID } from "node:crypto";
|
|
2
|
+
import { existsSync, lstatSync, readdirSync, readFileSync, realpathSync, statSync } from "node:fs";
|
|
3
|
+
import { createRequire } from "node:module";
|
|
4
|
+
import { basename, dirname, join, relative, resolve, sep } from "node:path";
|
|
5
|
+
import { DEFAULT_SERVER_DIAGNOSTIC_SUMMARY, emitServerDiagnostic, serverDiagnosticFromError, } from "../diagnostics-log.js";
|
|
4
6
|
import { productionUpdateFacts } from "../update-install-mode.js";
|
|
7
|
+
import { NPM_LANE_RUNTIME_APPROVALS, } from "./npmLaneRuntimeApprovals.js";
|
|
5
8
|
import { OPEN_CODE_V2_PINNED_PROTOCOL_SURFACE_SHA256, OPEN_CODE_V2_PROTOCOL_SURFACE_ALGORITHM, } from "./opencodeProtocolSurface.js";
|
|
6
9
|
export const KEIKO_CODING_RUNTIME_DEV_LANE_ENV = "KEIKO_CODING_RUNTIME_DEV_LANE";
|
|
7
10
|
export const DEV_LANE_STAGED_PAYLOADS_DIR = ".portable-sidecar-payloads";
|
|
@@ -58,19 +61,105 @@ function discoverEnabledLane(input) {
|
|
|
58
61
|
if (!trustedNativeHelperDirectory(stagedTargetRoot, target)) {
|
|
59
62
|
return refused("native-helper-directory-untrusted");
|
|
60
63
|
}
|
|
61
|
-
return activatedDevLaneRuntime(target, stagedTargetRoot, payload.sidecar, secureRead.binding, runtimeSupervisor);
|
|
64
|
+
return activatedDevLaneRuntime("dev-checkout", target, stagedTargetRoot, payload.sidecar, secureRead.binding, runtimeSupervisor);
|
|
65
|
+
}
|
|
66
|
+
const NPM_LANE_RUNTIME_DIR = "runtime";
|
|
67
|
+
/**
|
|
68
|
+
* The npm lane (#3577): an npm-installed Keiko carries no coding engine, so without this lane it
|
|
69
|
+
* lists its coding models and can never start a run. A customer who cannot install a desktop
|
|
70
|
+
* package installs `@oscharko-dev/keiko-coding-runtime-<platform>` next to Keiko instead, and this
|
|
71
|
+
* discovers it through ordinary module resolution from Keiko's own package root.
|
|
72
|
+
*
|
|
73
|
+
* It is the dev lane's verification with a different trust anchor, never a weaker one: the OpenCode
|
|
74
|
+
* executable tree, its license and its SBOM must match the review-approved digests, the helper must
|
|
75
|
+
* match the digest of the binary Keiko built, and the native directory may hold nothing else. All of
|
|
76
|
+
* those digests are compiled into this server (npmLaneRuntimeApprovals.ts), so a runtime package
|
|
77
|
+
* cannot vouch for itself and a planted package of the same name verifies or is refused. No opt-in
|
|
78
|
+
* is asked: installing the package is the operator's decision. `inactive` means no package is
|
|
79
|
+
* installed; a present package that fails verification is `refused` and logged.
|
|
80
|
+
*/
|
|
81
|
+
export function discoverNpmLaneOpenCode(input) {
|
|
82
|
+
const target = targetFromDiscoveryInput(input);
|
|
83
|
+
if (target === undefined || target === "windows-x64")
|
|
84
|
+
return { outcome: "inactive" };
|
|
85
|
+
const approval = (input.npmLaneApprovals ?? NPM_LANE_RUNTIME_APPROVALS)[target];
|
|
86
|
+
if (approval === undefined)
|
|
87
|
+
return { outcome: "inactive" };
|
|
88
|
+
try {
|
|
89
|
+
const packageRoot = npmLaneRuntimePackageRoot(input.env, approval.packageName);
|
|
90
|
+
if (packageRoot === undefined)
|
|
91
|
+
return { outcome: "inactive" };
|
|
92
|
+
return discoverNpmLanePackage(join(packageRoot, NPM_LANE_RUNTIME_DIR), target, approval);
|
|
93
|
+
}
|
|
94
|
+
catch (error) {
|
|
95
|
+
// A verification that cannot be completed (an unreadable file, a directory that changed under
|
|
96
|
+
// the walk) is a refusal, and the reason it could not be completed is evidence of its own.
|
|
97
|
+
emitServerDiagnostic(input.diagnostics, serverDiagnosticFromError({
|
|
98
|
+
correlationId: randomUUID(),
|
|
99
|
+
operation: "coding.runtime.discover",
|
|
100
|
+
source: "coding.runtime.discovery",
|
|
101
|
+
error,
|
|
102
|
+
redact: () => DEFAULT_SERVER_DIAGNOSTIC_SUMMARY,
|
|
103
|
+
}));
|
|
104
|
+
return refused("payload-tampered");
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
/**
|
|
108
|
+
* Node's own lookup order for a package requested from Keiko's package root, walked by hand: "not
|
|
109
|
+
* installed" is the ordinary state of an npm installation and is an empty result here, not an
|
|
110
|
+
* exception to swallow.
|
|
111
|
+
*/
|
|
112
|
+
function npmLaneRuntimePackageRoot(env, packageName) {
|
|
113
|
+
const keikoRoot = productionUpdateFacts(env).packageRoot;
|
|
114
|
+
if (keikoRoot === undefined)
|
|
115
|
+
return undefined;
|
|
116
|
+
const lookup = createRequire(join(keikoRoot, "package.json")).resolve.paths(packageName) ?? [];
|
|
117
|
+
const manifest = lookup
|
|
118
|
+
.map((directory) => join(directory, packageName, "package.json"))
|
|
119
|
+
.find((candidate) => existsSync(candidate));
|
|
120
|
+
return manifest === undefined ? undefined : realpathSync(dirname(manifest));
|
|
121
|
+
}
|
|
122
|
+
function discoverNpmLanePackage(runtimeRoot, target, approval) {
|
|
123
|
+
const payload = verifiedPayload(join(runtimeRoot, SIDECAR_NAME), target, approval);
|
|
124
|
+
if (!payload.ok)
|
|
125
|
+
return refused(payload.refusal);
|
|
126
|
+
const helperPath = join(runtimeRoot, helperRelativePath(target));
|
|
127
|
+
if (!isRegularFile(helperPath))
|
|
128
|
+
return refused("secure-read-helper-missing");
|
|
129
|
+
if (sha256File(helperPath) !== approval.helperSha256 ||
|
|
130
|
+
statSync(helperPath).size !== approval.helperSizeBytes) {
|
|
131
|
+
return refused("secure-read-helper-stale");
|
|
132
|
+
}
|
|
133
|
+
if (!trustedNativeHelperDirectory(runtimeRoot, target)) {
|
|
134
|
+
return refused("native-helper-directory-untrusted");
|
|
135
|
+
}
|
|
136
|
+
const secureRead = {
|
|
137
|
+
helperPath,
|
|
138
|
+
helperSizeBytes: approval.helperSizeBytes,
|
|
139
|
+
artifact: {
|
|
140
|
+
target: secureReadTarget(target),
|
|
141
|
+
installRelativePath: `runtime/${helperRelativePath(target)}`,
|
|
142
|
+
sha256: approval.helperSha256,
|
|
143
|
+
protocol: "KSR1/KSS1",
|
|
144
|
+
sourceCommit: approval.helperSourceCommit,
|
|
145
|
+
sourceTreeSha256: approval.helperSourceTreeSha256,
|
|
146
|
+
// Verified by its content digest against the server's own pin, never by a signature chain.
|
|
147
|
+
signed: true,
|
|
148
|
+
},
|
|
149
|
+
};
|
|
150
|
+
return activatedDevLaneRuntime("npm-runtime-package", target, runtimeRoot, payload.sidecar, secureRead, undefined);
|
|
62
151
|
}
|
|
63
152
|
function targetFromDiscoveryInput(input) {
|
|
64
153
|
return devLaneTarget(input.platform ?? process.platform, input.arch ?? process.arch);
|
|
65
154
|
}
|
|
66
|
-
function activatedDevLaneRuntime(target, stagedTargetRoot, sidecar, secureRead, runtimeSupervisor) {
|
|
155
|
+
function activatedDevLaneRuntime(lane, target, stagedTargetRoot, sidecar, secureRead, runtimeSupervisor) {
|
|
67
156
|
const runtime = {
|
|
68
157
|
evidenceClass: "functional-not-platform-qualified",
|
|
69
|
-
lane
|
|
158
|
+
lane,
|
|
70
159
|
installRoot: join(stagedTargetRoot, SIDECAR_NAME),
|
|
71
160
|
target,
|
|
72
161
|
sidecar,
|
|
73
|
-
qualification: devLaneQualification(target, sidecar, secureRead, runtimeSupervisor),
|
|
162
|
+
qualification: devLaneQualification(lane, target, sidecar, secureRead, runtimeSupervisor),
|
|
74
163
|
secureRead,
|
|
75
164
|
};
|
|
76
165
|
if (runtimeSupervisor === undefined)
|
|
@@ -340,9 +429,9 @@ function isCommitSha(value) {
|
|
|
340
429
|
* A deterministic receipt over the dev-lane admission facts. It satisfies the structural
|
|
341
430
|
* qualification identity the supervisor requires; it is not a platform qualification receipt.
|
|
342
431
|
*/
|
|
343
|
-
function devLaneQualification(target, sidecar, secureRead, runtimeSupervisor) {
|
|
432
|
+
function devLaneQualification(lane, target, sidecar, secureRead, runtimeSupervisor) {
|
|
344
433
|
const binding = JSON.stringify({
|
|
345
|
-
lane
|
|
434
|
+
lane,
|
|
346
435
|
target,
|
|
347
436
|
executableTreeSha256: sidecar.executableTreeSha256,
|
|
348
437
|
helperSha256: secureRead.artifact.sha256,
|
|
@@ -425,7 +514,7 @@ function hashDirectoryTree(root) {
|
|
|
425
514
|
* between those processes and report a false stale helper, so this ordering is plain
|
|
426
515
|
* code-unit comparison — locale-independent by construction. The staging script mirrors it.
|
|
427
516
|
*/
|
|
428
|
-
function hashHelperSourceTree(root) {
|
|
517
|
+
export function hashHelperSourceTree(root) {
|
|
429
518
|
return hashTree(root, compareCodeUnits);
|
|
430
519
|
}
|
|
431
520
|
function compareCodeUnits(left, right) {
|
package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type NpmLaneOpenCodeTarget = "macos-arm64" | "macos-x64";
|
|
2
|
+
export interface NpmLaneRuntimeApproval {
|
|
3
|
+
readonly packageName: string;
|
|
4
|
+
readonly upstreamVersion: string;
|
|
5
|
+
readonly adapterName: string;
|
|
6
|
+
readonly adapterVersion: string;
|
|
7
|
+
readonly executableTreeSha256: string;
|
|
8
|
+
readonly licenseSha256: string;
|
|
9
|
+
readonly protocolSchemaSha256: string;
|
|
10
|
+
readonly sbomSha256: string;
|
|
11
|
+
readonly helperSha256: string;
|
|
12
|
+
readonly helperSizeBytes: number;
|
|
13
|
+
readonly helperSourceCommit: string;
|
|
14
|
+
readonly helperSourceTreeSha256: string;
|
|
15
|
+
}
|
|
16
|
+
export declare const NPM_LANE_RUNTIME_APPROVALS: Readonly<Record<NpmLaneOpenCodeTarget, NpmLaneRuntimeApproval>>;
|
|
17
|
+
//# sourceMappingURL=npmLaneRuntimeApprovals.d.ts.map
|
package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"npmLaneRuntimeApprovals.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/npmLaneRuntimeApprovals.ts"],"names":[],"mappings":"AAWA,MAAM,MAAM,qBAAqB,GAAG,aAAa,GAAG,WAAW,CAAC;AAEhE,MAAM,WAAW,sBAAsB;IACrC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,EAAE,MAAM,CAAC;IAC7B,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,QAAQ,CAAC,sBAAsB,EAAE,MAAM,CAAC;CACzC;AAYD,eAAO,MAAM,0BAA0B,EAAE,QAAQ,CAC/C,MAAM,CAAC,qBAAqB,EAAE,sBAAsB,CAAC,CAkBrD,CAAC"}
|
package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/npmLaneRuntimeApprovals.js
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
// Trust anchor of the npm coding-runtime lane (#3577). An npm installation carries neither
|
|
2
|
+
// portable-runtime-approvals.json nor the helper source tree, so the digests the lane verifies
|
|
3
|
+
// against are compiled into the server: the runtime package can then never vouch for itself.
|
|
4
|
+
//
|
|
5
|
+
// The sidecar fields restate the review-approved catalog entry for the same target, and
|
|
6
|
+
// npmLaneRuntimeApprovals.test.ts fails when they stop agreeing with
|
|
7
|
+
// portable-runtime-approvals.json. The helper digests are the binaries
|
|
8
|
+
// scripts/build-coding-runtime-npm-package.mjs produced from `helperSourceTreeSha256`; the same test
|
|
9
|
+
// pins that source digest to native/secure-workspace-read, so a helper source change forces a rebuild
|
|
10
|
+
// and a new pin instead of silently shipping a stale helper.
|
|
11
|
+
const SHARED = {
|
|
12
|
+
upstreamVersion: "2.0.10",
|
|
13
|
+
adapterName: "keiko-coding-sidecar",
|
|
14
|
+
adapterVersion: "2",
|
|
15
|
+
licenseSha256: "625f0f619133f89bbbb2abe37369613dfa1885eba1e50d02170deb62bb42cb6b",
|
|
16
|
+
protocolSchemaSha256: "1362671d8cfdcb925b3a9fd61eaa20152e4c587746445a0b03504674b25c88ec",
|
|
17
|
+
helperSourceCommit: "98b77857ecb39e936269f875f8ade3688870629f",
|
|
18
|
+
helperSourceTreeSha256: "97a7a11c6dc2e1512b976c846141e0459d26094097a77b822dc7b895ad3bb4aa",
|
|
19
|
+
};
|
|
20
|
+
export const NPM_LANE_RUNTIME_APPROVALS = Object.freeze({
|
|
21
|
+
"macos-arm64": Object.freeze({
|
|
22
|
+
...SHARED,
|
|
23
|
+
packageName: "@oscharko-dev/keiko-coding-runtime-darwin-arm64",
|
|
24
|
+
executableTreeSha256: "3b54ba4d809b06ddcbdd87862593c160ad5d96fffcea944000227a9e0785c8fe",
|
|
25
|
+
sbomSha256: "99a6c65ad998b01362c9f2d1e2412643bf19df8e912a9fac8b31e05e38e0ece5",
|
|
26
|
+
helperSha256: "d5640f16bfa39433905c9da81614c4256c972f6b0515f0c647dc7ae0946b8e39",
|
|
27
|
+
helperSizeBytes: 34_504,
|
|
28
|
+
}),
|
|
29
|
+
"macos-x64": Object.freeze({
|
|
30
|
+
...SHARED,
|
|
31
|
+
packageName: "@oscharko-dev/keiko-coding-runtime-darwin-x64",
|
|
32
|
+
executableTreeSha256: "df5ade313d45afb848c6ce2f5634c62f47ad0fa8f7c889e9cbd58f6903632710",
|
|
33
|
+
sbomSha256: "e6aec95fa10da6afc27f8116960c80f37ae6fb49be8d908f8fb12139c2795bbf",
|
|
34
|
+
helperSha256: "65bbbd0af34e44969d17ec70cf0caedbef87de87fb676b4a8c8ef753556444fd",
|
|
35
|
+
helperSizeBytes: 13_664,
|
|
36
|
+
}),
|
|
37
|
+
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productionOpenCodeActivation.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/productionOpenCodeActivation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wCAAwC,EACxC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,+BAA+B,CAAC;AAWvC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"productionOpenCodeActivation.d.ts","sourceRoot":"","sources":["../../src/coding-runtime/productionOpenCodeActivation.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EACV,wCAAwC,EACxC,mCAAmC,EACnC,uCAAuC,EACxC,MAAM,+BAA+B,CAAC;AAWvC,OAAO,KAAK,EAAE,gCAAgC,EAAE,MAAM,8BAA8B,CAAC;AAErF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAE/D,OAAO,KAAK,EAAE,+BAA+B,EAAE,MAAM,sCAAsC,CAAC;AAW5F,OAAO,KAAK,EACV,8BAA8B,EAE/B,MAAM,gCAAgC,CAAC;AAExC,OAAO,KAAK,EAAE,oCAAoC,EAAE,MAAM,sCAAsC,CAAC;AAEjG,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,8BAA8B,CAAC;AAE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E;IACpE,QAAQ,CAAC,WAAW,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;CAClD;AAED,MAAM,MAAM,kCAAkC,GAC1C;IACE,QAAQ,CAAC,KAAK,EAAE,uBAAuB,CAAC;IACxC,4FAA4F;IAC5F,QAAQ,CAAC,aAAa,EAAE,mCAAmC,CAAC;IAC5D,QAAQ,CAAC,iBAAiB,CAAC,EAAE,SAAS,CAAC;CACxC,GACD;IACE,QAAQ,CAAC,KAAK,CAAC,EAAE,SAAS,CAAC;IAC3B,QAAQ,CAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IACnC,QAAQ,CAAC,iBAAiB,EAAE,uCAAuC,CAAC;CACrE,CAAC;AAEN,MAAM,WAAW,mCAAmC;IAClD,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAC;IAC5B,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;CAChC;AAED,gFAAgF;AAChF,wBAAgB,mCAAmC,CACjD,GAAG,EAAE,MAAM,CAAC,UAAU,GACrB,mCAAmC,GAAG,SAAS,CAQjD;AAoCD;;;;;GAKG;AACH,wBAAgB,mCAAmC,CACjD,KAAK,EAAE,iCAAiC,GACvC,kCAAkC,CAkBpC"}
|
package/node_modules/@oscharko-dev/keiko-server/dist/coding-runtime/productionOpenCodeActivation.js
CHANGED
|
@@ -5,7 +5,7 @@ import { activityLogEvent, defineActivityLogOperation, } from "@oscharko-dev/kei
|
|
|
5
5
|
import { codingSidecarDisabledByPolicy } from "../coding-sidecar-gateway.js";
|
|
6
6
|
import { UNKNOWN_CORRELATION_ID } from "../correlation.js";
|
|
7
7
|
import { processServerLogSink } from "../process-log-sink.js";
|
|
8
|
-
import { discoverDevLaneOpenCode, } from "./devLanePortableCodingRuntime.js";
|
|
8
|
+
import { discoverDevLaneOpenCode, discoverNpmLaneOpenCode, } from "./devLanePortableCodingRuntime.js";
|
|
9
9
|
import { createDevLaneSecureWorkspaceTextReadPort } from "./devLaneSecureWorkspaceTextRead.js";
|
|
10
10
|
import { createProductionOpenCodeBackend } from "./productionOpenCodeBackend.js";
|
|
11
11
|
import { createPackagedSecureWorkspaceTextReadPort } from "./packagedSecureWorkspaceTextRead.js";
|
|
@@ -22,7 +22,7 @@ const CODING_RUNTIME_DEV_LANE_ACTIVATED_OPERATION = defineActivityLogOperation({
|
|
|
22
22
|
type: "string",
|
|
23
23
|
dataClass: "closed-enum",
|
|
24
24
|
required: true,
|
|
25
|
-
values: ["dev-checkout"],
|
|
25
|
+
values: ["dev-checkout", "npm-runtime-package"],
|
|
26
26
|
},
|
|
27
27
|
target: {
|
|
28
28
|
type: "string",
|
|
@@ -62,7 +62,7 @@ const CODING_RUNTIME_DEV_LANE_REFUSED_OPERATION = defineActivityLogOperation({
|
|
|
62
62
|
type: "string",
|
|
63
63
|
dataClass: "closed-enum",
|
|
64
64
|
required: true,
|
|
65
|
-
values: ["dev-checkout"],
|
|
65
|
+
values: ["dev-checkout", "npm-runtime-package"],
|
|
66
66
|
},
|
|
67
67
|
reason: {
|
|
68
68
|
type: "string",
|
|
@@ -171,11 +171,20 @@ function resolveRuntime(input) {
|
|
|
171
171
|
const packaged = discoverQualifiedPortableOpenCode(host);
|
|
172
172
|
if (packaged !== undefined)
|
|
173
173
|
return { portable: packaged };
|
|
174
|
+
const activityLog = input.activityLog ?? processServerLogSink();
|
|
175
|
+
// An installed npm runtime package decides the npm installation's outcome, refusal included: a
|
|
176
|
+
// package that fails verification must surface its reason, not fall through to a dev lane that
|
|
177
|
+
// an npm installation can never satisfy and that would report `platform-unqualified` instead.
|
|
178
|
+
const npmLane = discoverNpmLaneOpenCode(host);
|
|
179
|
+
if (npmLane.outcome !== "inactive") {
|
|
180
|
+
recordDevLaneDiscovery(activityLog, npmLane, "npm-runtime-package");
|
|
181
|
+
return devLaneRuntime(npmLane);
|
|
182
|
+
}
|
|
174
183
|
const discovery = discoverDevLaneOpenCode(host);
|
|
175
|
-
recordDevLaneDiscovery(
|
|
184
|
+
recordDevLaneDiscovery(activityLog, discovery, "dev-checkout");
|
|
176
185
|
return devLaneRuntime(discovery);
|
|
177
186
|
}
|
|
178
|
-
function recordDevLaneDiscovery(activityLog, discovery) {
|
|
187
|
+
function recordDevLaneDiscovery(activityLog, discovery, lane) {
|
|
179
188
|
if (discovery.outcome === "inactive")
|
|
180
189
|
return;
|
|
181
190
|
if (discovery.outcome === "activated") {
|
|
@@ -193,7 +202,7 @@ function recordDevLaneDiscovery(activityLog, discovery) {
|
|
|
193
202
|
level: "warn",
|
|
194
203
|
correlationId: UNKNOWN_CORRELATION_ID,
|
|
195
204
|
errorKind: devLaneRefusalErrorKind(discovery.reason),
|
|
196
|
-
}, { lane
|
|
205
|
+
}, { lane, reason: discovery.reason }));
|
|
197
206
|
}
|
|
198
207
|
function devLaneRefusalErrorKind(reason) {
|
|
199
208
|
if (reason === "payload-tampered")
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscharko-dev/keiko-server",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Internal server package: local loopback BFF runtime (HTTP/SSE/WebSocket router, CSP, host check, CSRF gate, terminal, browser, files, run engine, SQLite-backed UI store) that mediates the browser presentation tier and the Node-side domain packages (ADR-0019). Not published independently.",
|
|
@@ -55,26 +55,26 @@
|
|
|
55
55
|
},
|
|
56
56
|
"private": true,
|
|
57
57
|
"peerDependencies": {
|
|
58
|
-
"@oscharko-dev/keiko-connectors": "1.1.
|
|
59
|
-
"@oscharko-dev/keiko-contracts": "1.1.
|
|
60
|
-
"@oscharko-dev/keiko-evidence": "1.1.
|
|
61
|
-
"@oscharko-dev/keiko-git": "1.1.
|
|
62
|
-
"@oscharko-dev/keiko-harness": "1.1.
|
|
63
|
-
"@oscharko-dev/keiko-local-knowledge": "1.1.
|
|
64
|
-
"@oscharko-dev/keiko-memory-capture": "1.1.
|
|
65
|
-
"@oscharko-dev/keiko-memory-consolidation": "1.1.
|
|
66
|
-
"@oscharko-dev/keiko-memory-governance": "1.1.
|
|
67
|
-
"@oscharko-dev/keiko-memory-retrieval": "1.1.
|
|
68
|
-
"@oscharko-dev/keiko-memory-vault": "1.1.
|
|
69
|
-
"@oscharko-dev/keiko-model-gateway": "1.1.
|
|
70
|
-
"@oscharko-dev/keiko-quality-intelligence": "1.1.
|
|
71
|
-
"@oscharko-dev/keiko-sandbox": "1.1.
|
|
72
|
-
"@oscharko-dev/keiko-sdk": "1.1.
|
|
73
|
-
"@oscharko-dev/keiko-security": "1.1.
|
|
74
|
-
"@oscharko-dev/keiko-tool-catalog": "1.1.
|
|
75
|
-
"@oscharko-dev/keiko-tools": "1.1.
|
|
76
|
-
"@oscharko-dev/keiko-verification": "1.1.
|
|
77
|
-
"@oscharko-dev/keiko-workflows": "1.1.
|
|
78
|
-
"@oscharko-dev/keiko-workspace": "1.1.
|
|
58
|
+
"@oscharko-dev/keiko-connectors": "1.1.3",
|
|
59
|
+
"@oscharko-dev/keiko-contracts": "1.1.3",
|
|
60
|
+
"@oscharko-dev/keiko-evidence": "1.1.3",
|
|
61
|
+
"@oscharko-dev/keiko-git": "1.1.3",
|
|
62
|
+
"@oscharko-dev/keiko-harness": "1.1.3",
|
|
63
|
+
"@oscharko-dev/keiko-local-knowledge": "1.1.3",
|
|
64
|
+
"@oscharko-dev/keiko-memory-capture": "1.1.3",
|
|
65
|
+
"@oscharko-dev/keiko-memory-consolidation": "1.1.3",
|
|
66
|
+
"@oscharko-dev/keiko-memory-governance": "1.1.3",
|
|
67
|
+
"@oscharko-dev/keiko-memory-retrieval": "1.1.3",
|
|
68
|
+
"@oscharko-dev/keiko-memory-vault": "1.1.3",
|
|
69
|
+
"@oscharko-dev/keiko-model-gateway": "1.1.3",
|
|
70
|
+
"@oscharko-dev/keiko-quality-intelligence": "1.1.3",
|
|
71
|
+
"@oscharko-dev/keiko-sandbox": "1.1.3",
|
|
72
|
+
"@oscharko-dev/keiko-sdk": "1.1.3",
|
|
73
|
+
"@oscharko-dev/keiko-security": "1.1.3",
|
|
74
|
+
"@oscharko-dev/keiko-tool-catalog": "1.1.3",
|
|
75
|
+
"@oscharko-dev/keiko-tools": "1.1.3",
|
|
76
|
+
"@oscharko-dev/keiko-verification": "1.1.3",
|
|
77
|
+
"@oscharko-dev/keiko-workflows": "1.1.3",
|
|
78
|
+
"@oscharko-dev/keiko-workspace": "1.1.3"
|
|
79
79
|
}
|
|
80
80
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import { NATIVE_TOOL_CATALOG_RUNTIME, type CatalogJsonObject, type CatalogRuntimeRef, type CatalogVersionRef } from "@oscharko-dev/keiko-contracts/runtime/governed-tool-catalog";
|
|
2
2
|
export declare const CATALOG_DIALECTS: readonly ["gateway-json-schema", "managed-runtime-json-schema", "editor-json-schema", "child-agent-json-schema", "legacy-json-schema"];
|
|
3
|
-
export
|
|
3
|
+
export { NATIVE_TOOL_CATALOG_RUNTIME };
|
|
4
4
|
export declare function assertCatalogDialect(dialect: CatalogVersionRef, runtime: CatalogRuntimeRef): void;
|
|
5
5
|
/** The five adapters share the closed core; OpenCode's required-field transform must be lossless. */
|
|
6
6
|
export declare function projectCatalogSchema(schema: CatalogJsonObject, dialect: CatalogVersionRef, input: boolean): CatalogJsonObject;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dialect.d.ts","sourceRoot":"","sources":["../src/dialect.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"dialect.d.ts","sourceRoot":"","sources":["../src/dialect.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,2BAA2B,EAC3B,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACvB,MAAM,6DAA6D,CAAC;AAKrE,eAAO,MAAM,gBAAgB,wIAMlB,CAAC;AAQZ,OAAO,EAAE,2BAA2B,EAAE,CAAC;AAEvC,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,iBAAiB,EAAE,OAAO,EAAE,iBAAiB,GAAG,IAAI,CAcjG;AA0BD,qGAAqG;AACrG,wBAAgB,oBAAoB,CAClC,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,iBAAiB,EAC1B,KAAK,EAAE,OAAO,GACb,iBAAiB,CAInB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { NATIVE_TOOL_CATALOG_RUNTIME, } from "@oscharko-dev/keiko-contracts/runtime/governed-tool-catalog";
|
|
2
2
|
import { catalogArray, catalogObject } from "./json.js";
|
|
3
3
|
import { compileCatalogSchema } from "./schema.js";
|
|
4
4
|
import { requireCatalog } from "./errors.js";
|
|
@@ -10,14 +10,12 @@ export const CATALOG_DIALECTS = Object.freeze([
|
|
|
10
10
|
"legacy-json-schema",
|
|
11
11
|
]);
|
|
12
12
|
const DIALECT_IDS = new Set(CATALOG_DIALECTS);
|
|
13
|
-
// The native ("keiko") adapter runtime identity every non-OpenCode dialect pins against.
|
|
14
|
-
//
|
|
15
|
-
// literal
|
|
16
|
-
//
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
version: KEIKO_PRODUCT_VERSION,
|
|
20
|
-
});
|
|
13
|
+
// The native ("keiko") adapter runtime identity every non-OpenCode dialect pins against. One value,
|
|
14
|
+
// owned by the contracts leaf and re-exported here for `legacy.ts` and `child.ts`, so no registration
|
|
15
|
+
// set can bind a hand-copied literal that drifts from `assertCatalogDialect` (b3-25). It names the
|
|
16
|
+
// native tool-calling contract, not the release: a version bump must not move catalog identity
|
|
17
|
+
// (#3565).
|
|
18
|
+
export { NATIVE_TOOL_CATALOG_RUNTIME };
|
|
21
19
|
export function assertCatalogDialect(dialect, runtime) {
|
|
22
20
|
requireCatalog(dialect.version === 1 && DIALECT_IDS.has(dialect.id), "unsupported-dialect");
|
|
23
21
|
if (dialect.id === "managed-runtime-json-schema") {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscharko-dev/keiko-tool-catalog",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Internal pure governed-tool descriptors, schema projections, compatibility, and catalog identities.",
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"private": true,
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@oscharko-dev/keiko-contracts": "1.1.
|
|
25
|
-
"@oscharko-dev/keiko-security": "1.1.
|
|
24
|
+
"@oscharko-dev/keiko-contracts": "1.1.3",
|
|
25
|
+
"@oscharko-dev/keiko-security": "1.1.3"
|
|
26
26
|
}
|
|
27
27
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const KEIKO_TOOLS_VERSION: "1.1.
|
|
1
|
+
export declare const KEIKO_TOOLS_VERSION: "1.1.3";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscharko-dev/keiko-tools",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Internal tools package: Keiko safe tool-execution layer — terminal-policy command allowlist, env-isolated no-shell spawn, atomic patch workflow, browser CDP adapter, and the WorkspaceWriter boundary (ADR-0006 / ADR-0017). Not published independently.",
|
|
@@ -40,11 +40,11 @@
|
|
|
40
40
|
},
|
|
41
41
|
"private": true,
|
|
42
42
|
"peerDependencies": {
|
|
43
|
-
"@oscharko-dev/keiko-contracts": "1.1.
|
|
44
|
-
"@oscharko-dev/keiko-git": "1.1.
|
|
45
|
-
"@oscharko-dev/keiko-sandbox": "1.1.
|
|
46
|
-
"@oscharko-dev/keiko-security": "1.1.
|
|
47
|
-
"@oscharko-dev/keiko-workspace": "1.1.
|
|
48
|
-
"@oscharko-dev/keiko-tool-catalog": "1.1.
|
|
43
|
+
"@oscharko-dev/keiko-contracts": "1.1.3",
|
|
44
|
+
"@oscharko-dev/keiko-git": "1.1.3",
|
|
45
|
+
"@oscharko-dev/keiko-sandbox": "1.1.3",
|
|
46
|
+
"@oscharko-dev/keiko-security": "1.1.3",
|
|
47
|
+
"@oscharko-dev/keiko-workspace": "1.1.3",
|
|
48
|
+
"@oscharko-dev/keiko-tool-catalog": "1.1.3"
|
|
49
49
|
}
|
|
50
50
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@oscharko-dev/keiko-verification",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"description": "Internal verification package: deterministic verification orchestrator — plan construction, resource-limit policy, best-effort memory monitoring, command classification, and audit/Markdown summaries (ADR-0007, ADR-0019). Not published independently.",
|
|
@@ -21,9 +21,9 @@
|
|
|
21
21
|
},
|
|
22
22
|
"private": true,
|
|
23
23
|
"peerDependencies": {
|
|
24
|
-
"@oscharko-dev/keiko-contracts": "1.1.
|
|
25
|
-
"@oscharko-dev/keiko-security": "1.1.
|
|
26
|
-
"@oscharko-dev/keiko-tools": "1.1.
|
|
27
|
-
"@oscharko-dev/keiko-workspace": "1.1.
|
|
24
|
+
"@oscharko-dev/keiko-contracts": "1.1.3",
|
|
25
|
+
"@oscharko-dev/keiko-security": "1.1.3",
|
|
26
|
+
"@oscharko-dev/keiko-tools": "1.1.3",
|
|
27
|
+
"@oscharko-dev/keiko-workspace": "1.1.3"
|
|
28
28
|
}
|
|
29
29
|
}
|