@cotal-ai/connector-jcode 0.30.2 → 0.32.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/extension.d.ts.map +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +55 -10
- package/dist/index.js +40 -41
- package/dist/mcp.js +9 -9
- package/dist/startup-diagnostics.d.ts +13 -0
- package/dist/startup-diagnostics.d.ts.map +1 -1
- package/package.json +3 -3
|
@@ -7,6 +7,19 @@ export declare class JcodeReadinessProviderRefusal extends Error {
|
|
|
7
7
|
readonly value: string;
|
|
8
8
|
constructor(providerCode: string, parameter: "model" | "reasoning effort", value: string);
|
|
9
9
|
}
|
|
10
|
+
/** A Jcode reasoning-effort refusal with only fields safe for an external observer/UI.
|
|
11
|
+
* The underlying HarnessError can include arbitrary provider response text and must never escape
|
|
12
|
+
* through the host's startup diagnostic. */
|
|
13
|
+
export declare class JcodeEffortRefusal extends Error {
|
|
14
|
+
readonly requestedTier: string;
|
|
15
|
+
readonly effectiveModel: string;
|
|
16
|
+
readonly acceptedLadder: readonly string[];
|
|
17
|
+
readonly providerCode = "invalid_request";
|
|
18
|
+
constructor(requestedTier: string, effectiveModel: string, acceptedLadder: readonly string[]);
|
|
19
|
+
}
|
|
20
|
+
/** Compose a bounded effort-refusal diagnostic. `invalid_request` is intentionally fixed: Jcode
|
|
21
|
+
* rejected this API operation, while provider-supplied codes and text are untrusted. */
|
|
22
|
+
export declare function jcodeEffortRefusal(error: unknown, requestedTier: string, effectiveModel: string): JcodeEffortRefusal;
|
|
10
23
|
/**
|
|
11
24
|
* Classify only the Jcode SDK's invalid-request response and only when both fields are safely
|
|
12
25
|
* extractable. Everything else retains the existing scrubbed startup diagnostic.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startup-diagnostics.d.ts","sourceRoot":"","sources":["../src/startup-diagnostics.ts"],"names":[],"mappings":"AAEA;;mGAEmG;AACnG,qBAAa,6BAA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|
3
3
|
"description": "Cotal connector for Jcode: a host-mode mesh peer driven through Jcode's Harness API bridge.",
|
|
4
|
-
"version": "0.
|
|
4
|
+
"version": "0.32.0",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
"esbuild": "^0.28.0",
|
|
29
29
|
"tsx": "^4.22.4",
|
|
30
30
|
"zod": "^4.4.3",
|
|
31
|
-
"@cotal-ai/connector-core": "0.
|
|
31
|
+
"@cotal-ai/connector-core": "0.32.0",
|
|
32
32
|
"@cotal-ai/smoke-kit": "0.0.0",
|
|
33
|
-
"@cotal-ai/core": "0.
|
|
33
|
+
"@cotal-ai/core": "0.32.0"
|
|
34
34
|
},
|
|
35
35
|
"files": [
|
|
36
36
|
"dist"
|