@claudexor/gateway 1.0.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/LICENSE +21 -0
- package/README.md +7 -0
- package/dist/gateway.d.ts +38 -0
- package/dist/gateway.d.ts.map +1 -0
- package/dist/gateway.js +74 -0
- package/dist/gateway.js.map +1 -0
- package/dist/gating.d.ts +10 -0
- package/dist/gating.d.ts.map +1 -0
- package/dist/gating.js +45 -0
- package/dist/gating.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +3 -0
- package/dist/index.js.map +1 -0
- package/package.json +41 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 joi-lab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
# @claudexor/gateway
|
|
2
|
+
|
|
3
|
+
Internal package of [Claudexor](https://github.com/razzant/claudexor) — HarnessGateway: discovery, conformance intent-gating, and harness selection.
|
|
4
|
+
|
|
5
|
+
Published as part of the Claudexor toolchain; it follows the monorepo's
|
|
6
|
+
lockstep version and has no separate semver contract. Use the `claudexor`
|
|
7
|
+
CLI (or `@claudexor/cli`) as the supported entry point.
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { ConformanceCheck, HarnessManifest, Intent } from "@claudexor/schema";
|
|
2
|
+
import type { AdapterRegistry, DoctorSpec, HarnessAdapter } from "@claudexor/core";
|
|
3
|
+
export interface HarnessStatus {
|
|
4
|
+
id: string;
|
|
5
|
+
available: boolean;
|
|
6
|
+
status: "ok" | "degraded" | "unavailable";
|
|
7
|
+
manifest: HarnessManifest | null;
|
|
8
|
+
enabledIntents: Intent[];
|
|
9
|
+
disabledIntents: Intent[];
|
|
10
|
+
checks: ConformanceCheck[];
|
|
11
|
+
reasons: string[];
|
|
12
|
+
}
|
|
13
|
+
/**
|
|
14
|
+
* Wraps an adapter registry with discovery and conformance role-gating.
|
|
15
|
+
* (Route SELECTION lives in the budget router and orchestrator routing —
|
|
16
|
+
* this class only reports what exists and what each harness may do.)
|
|
17
|
+
*/
|
|
18
|
+
export declare class HarnessGateway {
|
|
19
|
+
private readonly registry;
|
|
20
|
+
constructor(registry: AdapterRegistry);
|
|
21
|
+
list(): string[];
|
|
22
|
+
get(id: string): HarnessAdapter | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Discover + conformance-probe harnesses. When `only` is given, ONLY those
|
|
25
|
+
* adapters are probed (so `doctor --harness X` / `auth status X` pay one
|
|
26
|
+
* harness's discovery cost — incl. any paid smoke — instead of probing every
|
|
27
|
+
* registered adapter and post-filtering). Unknown ids in `only` are skipped.
|
|
28
|
+
*/
|
|
29
|
+
statusAll(spec: DoctorSpec, only?: string[]): Promise<HarnessStatus[]>;
|
|
30
|
+
private statusAllForAdapters;
|
|
31
|
+
/**
|
|
32
|
+
* Doctor-VERIFIED real harnesses only (`status === "ok"`). Degraded routes
|
|
33
|
+
* (key present but unproven) are excluded — claims of "doctor-verified"
|
|
34
|
+
* availability must never include them.
|
|
35
|
+
*/
|
|
36
|
+
doctorOkReal(spec?: DoctorSpec, intent?: Intent): Promise<string[]>;
|
|
37
|
+
}
|
|
38
|
+
//# sourceMappingURL=gateway.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway.d.ts","sourceRoot":"","sources":["../src/gateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AACnF,OAAO,KAAK,EAAE,eAAe,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAInF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,IAAI,GAAG,UAAU,GAAG,aAAa,CAAC;IAC1C,QAAQ,EAAE,eAAe,GAAG,IAAI,CAAC;IACjC,cAAc,EAAE,MAAM,EAAE,CAAC;IACzB,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,MAAM,EAAE,gBAAgB,EAAE,CAAC;IAC3B,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;GAIG;AACH,qBAAa,cAAc;IACb,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBAAR,QAAQ,EAAE,eAAe;IAEtD,IAAI,IAAI,MAAM,EAAE;IAIhB,GAAG,CAAC,EAAE,EAAE,MAAM,GAAG,cAAc,GAAG,SAAS;IAI3C;;;;;OAKG;IACG,SAAS,CAAC,IAAI,EAAE,UAAU,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;YAM9D,oBAAoB;IA6BlC;;;;OAIG;IACG,YAAY,CAAC,IAAI,GAAE,UAAmC,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CAYlG"}
|
package/dist/gateway.js
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { runDoctor } from "@claudexor/core";
|
|
2
|
+
import { allowedIntents } from "./gating.js";
|
|
3
|
+
/**
|
|
4
|
+
* Wraps an adapter registry with discovery and conformance role-gating.
|
|
5
|
+
* (Route SELECTION lives in the budget router and orchestrator routing —
|
|
6
|
+
* this class only reports what exists and what each harness may do.)
|
|
7
|
+
*/
|
|
8
|
+
export class HarnessGateway {
|
|
9
|
+
registry;
|
|
10
|
+
constructor(registry) {
|
|
11
|
+
this.registry = registry;
|
|
12
|
+
}
|
|
13
|
+
list() {
|
|
14
|
+
return [...this.registry.keys()];
|
|
15
|
+
}
|
|
16
|
+
get(id) {
|
|
17
|
+
return this.registry.get(id);
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Discover + conformance-probe harnesses. When `only` is given, ONLY those
|
|
21
|
+
* adapters are probed (so `doctor --harness X` / `auth status X` pay one
|
|
22
|
+
* harness's discovery cost — incl. any paid smoke — instead of probing every
|
|
23
|
+
* registered adapter and post-filtering). Unknown ids in `only` are skipped.
|
|
24
|
+
*/
|
|
25
|
+
async statusAll(spec, only) {
|
|
26
|
+
const all = [...this.registry.values()];
|
|
27
|
+
const adapters = only && only.length > 0 ? all.filter((a) => only.includes(a.id)) : all;
|
|
28
|
+
return this.statusAllForAdapters(adapters, spec);
|
|
29
|
+
}
|
|
30
|
+
async statusAllForAdapters(adapters, spec) {
|
|
31
|
+
const out = [];
|
|
32
|
+
for (const adapter of adapters) {
|
|
33
|
+
let manifest = null;
|
|
34
|
+
let discoverError = null;
|
|
35
|
+
try {
|
|
36
|
+
manifest = await adapter.discover();
|
|
37
|
+
}
|
|
38
|
+
catch (err) {
|
|
39
|
+
// A crashed discover() must stay distinguishable from "not installed":
|
|
40
|
+
// the message rides the status reasons instead of vanishing.
|
|
41
|
+
manifest = null;
|
|
42
|
+
discoverError = `discover failed: ${err instanceof Error ? err.message : String(err)}`;
|
|
43
|
+
}
|
|
44
|
+
const report = (await runDoctor(new Map([[adapter.id, adapter]]), spec))[0] ?? null;
|
|
45
|
+
const status = report?.status ?? "unavailable";
|
|
46
|
+
out.push({
|
|
47
|
+
id: adapter.id,
|
|
48
|
+
available: manifest !== null && status !== "unavailable",
|
|
49
|
+
status,
|
|
50
|
+
manifest,
|
|
51
|
+
enabledIntents: manifest ? allowedIntents(manifest, report) : [],
|
|
52
|
+
disabledIntents: report?.disabled_intents ?? [],
|
|
53
|
+
checks: report?.checks ?? [],
|
|
54
|
+
reasons: [...(discoverError ? [discoverError] : []), ...(report?.reasons ?? [])],
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
return out;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Doctor-VERIFIED real harnesses only (`status === "ok"`). Degraded routes
|
|
61
|
+
* (key present but unproven) are excluded — claims of "doctor-verified"
|
|
62
|
+
* availability must never include them.
|
|
63
|
+
*/
|
|
64
|
+
async doctorOkReal(spec = { cwd: process.cwd() }, intent) {
|
|
65
|
+
const statuses = await this.statusAllForAdapters([...this.registry.values()], spec);
|
|
66
|
+
return statuses
|
|
67
|
+
.filter((s) => s.manifest?.kind !== "fake" &&
|
|
68
|
+
s.status === "ok" &&
|
|
69
|
+
s.enabledIntents.length > 0 &&
|
|
70
|
+
(intent === undefined || s.enabledIntents.includes(intent)))
|
|
71
|
+
.map((s) => s.id);
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
//# sourceMappingURL=gateway.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gateway.js","sourceRoot":"","sources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GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,IAAI,CAAC,CAAC;QACpF,OAAO,QAAQ;aACZ,MAAM,CACL,CAAC,CAAC,EAAE,EAAE,CACJ,CAAC,CAAC,QAAQ,EAAE,IAAI,KAAK,MAAM;YAC3B,CAAC,CAAC,MAAM,KAAK,IAAI;YACjB,CAAC,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC;YAC3B,CAAC,MAAM,KAAK,SAAS,IAAI,CAAC,CAAC,cAAc,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAC9D;aACA,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IACtB,CAAC;CACF"}
|
package/dist/gating.d.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import type { ConformanceReport, HarnessCapabilities, HarnessManifest, Intent } from "@claudexor/schema";
|
|
2
|
+
/** Map declared capabilities to the intents an adapter could in principle play. */
|
|
3
|
+
export declare function capabilityIntents(caps: HarnessCapabilities): Intent[];
|
|
4
|
+
/**
|
|
5
|
+
* Compute the intents an adapter may actually be assigned, gating critical roles
|
|
6
|
+
* behind conformance. A degraded adapter keeps only the intents it explicitly
|
|
7
|
+
* still enables; an unavailable adapter gets none.
|
|
8
|
+
*/
|
|
9
|
+
export declare function allowedIntents(manifest: HarnessManifest, report: ConformanceReport | null): Intent[];
|
|
10
|
+
//# sourceMappingURL=gating.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gating.d.ts","sourceRoot":"","sources":["../src/gating.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAEzG,mFAAmF;AACnF,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,mBAAmB,GAAG,MAAM,EAAE,CAWrE;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,eAAe,EAAE,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,MAAM,EAAE,CAepG"}
|
package/dist/gating.js
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/** Map declared capabilities to the intents an adapter could in principle play. */
|
|
2
|
+
export function capabilityIntents(caps) {
|
|
3
|
+
const intents = [];
|
|
4
|
+
if (caps.plan)
|
|
5
|
+
intents.push("plan", "spec");
|
|
6
|
+
if (caps.implement)
|
|
7
|
+
intents.push("implement", "repair");
|
|
8
|
+
if (caps.create_from_scratch)
|
|
9
|
+
intents.push("create_from_scratch");
|
|
10
|
+
if (caps.review)
|
|
11
|
+
intents.push("review");
|
|
12
|
+
if (caps.verify)
|
|
13
|
+
intents.push("verify");
|
|
14
|
+
if (caps.synthesize)
|
|
15
|
+
intents.push("synthesize");
|
|
16
|
+
if (caps.read_files)
|
|
17
|
+
intents.push("explain", "audit");
|
|
18
|
+
if (caps.orchestrate)
|
|
19
|
+
intents.push("orchestrate");
|
|
20
|
+
return [...new Set(intents)];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* Compute the intents an adapter may actually be assigned, gating critical roles
|
|
24
|
+
* behind conformance. A degraded adapter keeps only the intents it explicitly
|
|
25
|
+
* still enables; an unavailable adapter gets none.
|
|
26
|
+
*/
|
|
27
|
+
export function allowedIntents(manifest, report) {
|
|
28
|
+
const base = capabilityIntents(manifest.capabilities);
|
|
29
|
+
if (!report || report.status === "unavailable")
|
|
30
|
+
return [];
|
|
31
|
+
if (report.status === "ok") {
|
|
32
|
+
// If the report enumerates enabled intents, intersect; otherwise trust capabilities.
|
|
33
|
+
if (report.enabled_intents.length > 0) {
|
|
34
|
+
return base.filter((i) => report.enabled_intents.includes(i));
|
|
35
|
+
}
|
|
36
|
+
return base;
|
|
37
|
+
}
|
|
38
|
+
// Degraded means the adapter is only trusted for the roles the doctor
|
|
39
|
+
// explicitly re-enabled. Capability declarations alone are not enough once
|
|
40
|
+
// conformance/auth is degraded.
|
|
41
|
+
if (report.enabled_intents.length === 0)
|
|
42
|
+
return [];
|
|
43
|
+
return base.filter((i) => report.enabled_intents.includes(i) && !report.disabled_intents.includes(i));
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=gating.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gating.js","sourceRoot":"","sources":["../src/gating.ts"],"names":[],"mappings":"AAEA,mFAAmF;AACnF,MAAM,UAAU,iBAAiB,CAAC,IAAyB;IACzD,MAAM,OAAO,GAAa,EAAE,CAAC;IAC7B,IAAI,IAAI,CAAC,IAAI;QAAE,OAAO,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5C,IAAI,IAAI,CAAC,SAAS;QAAE,OAAO,CAAC,IAAI,CAAC,WAAW,EAAE,QAAQ,CAAC,CAAC;IACxD,IAAI,IAAI,CAAC,mBAAmB;QAAE,OAAO,CAAC,IAAI,CAAC,qBAAqB,CAAC,CAAC;IAClE,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,IAAI,IAAI,CAAC,MAAM;QAAE,OAAO,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;IACxC,IAAI,IAAI,CAAC,UAAU;QAAE,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;IAChD,IAAI,IAAI,CAAC,UAAU;QAAE,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,OAAO,CAAC,CAAC;IACtD,IAAI,IAAI,CAAC,WAAW;QAAE,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;IAClD,OAAO,CAAC,GAAG,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC;AAC/B,CAAC;AAED;;;;GAIG;AACH,MAAM,UAAU,cAAc,CAAC,QAAyB,EAAE,MAAgC;IACxF,MAAM,IAAI,GAAG,iBAAiB,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;IACtD,IAAI,CAAC,MAAM,IAAI,MAAM,CAAC,MAAM,KAAK,aAAa;QAAE,OAAO,EAAE,CAAC;IAC1D,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,EAAE,CAAC;QAC3B,qFAAqF;QACrF,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACtC,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;QAChE,CAAC;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACD,sEAAsE;IACtE,2EAA2E;IAC3E,gCAAgC;IAChC,IAAI,MAAM,CAAC,eAAe,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACnD,OAAO,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,CAAC;AACxG,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,cAAc,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@claudexor/gateway",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"license": "MIT",
|
|
5
|
+
"description": "HarnessGateway: discovery, conformance intent-gating, and harness selection.",
|
|
6
|
+
"type": "module",
|
|
7
|
+
"main": "./dist/index.js",
|
|
8
|
+
"types": "./dist/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
12
|
+
"default": "./dist/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"files": [
|
|
16
|
+
"dist"
|
|
17
|
+
],
|
|
18
|
+
"dependencies": {
|
|
19
|
+
"@claudexor/core": "1.0.0",
|
|
20
|
+
"@claudexor/schema": "1.0.0"
|
|
21
|
+
},
|
|
22
|
+
"repository": {
|
|
23
|
+
"type": "git",
|
|
24
|
+
"url": "git+https://github.com/razzant/claudexor.git",
|
|
25
|
+
"directory": "packages/gateway"
|
|
26
|
+
},
|
|
27
|
+
"homepage": "https://github.com/razzant/claudexor#readme",
|
|
28
|
+
"bugs": {
|
|
29
|
+
"url": "https://github.com/razzant/claudexor/issues"
|
|
30
|
+
},
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=20.19"
|
|
33
|
+
},
|
|
34
|
+
"publishConfig": {
|
|
35
|
+
"access": "public"
|
|
36
|
+
},
|
|
37
|
+
"scripts": {
|
|
38
|
+
"build": "tsc",
|
|
39
|
+
"typecheck": "tsc --noEmit"
|
|
40
|
+
}
|
|
41
|
+
}
|