@clagentic/console 1.10.0-beta.2 → 1.10.0-beta.4
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/lib/activity-clock.js +23 -0
- package/lib/build-sha.json +2 -2
- package/lib/build-update-offer.js +29 -0
- package/lib/cli-transcript-title.js +131 -0
- package/lib/daemon.js +5 -9
- package/lib/debug-log.js +17 -0
- package/lib/exit-flush.js +44 -0
- package/lib/grant-keys.js +66 -0
- package/lib/identity/config.js +118 -0
- package/lib/identity/contract.js +61 -0
- package/lib/identity/delivery.js +224 -0
- package/lib/identity/holder.js +87 -0
- package/lib/identity/index.js +229 -0
- package/lib/identity/jose.js +13 -0
- package/lib/identity/origin.js +28 -0
- package/lib/identity/owner.js +30 -0
- package/lib/identity/providers/gatekeeper.js +91 -0
- package/lib/identity/providers/jwks-self.js +85 -0
- package/lib/identity/providers/module.js +98 -0
- package/lib/identity/providers/signing-key.js +118 -0
- package/lib/identity/record.js +23 -0
- package/lib/identity/unavailable.js +29 -0
- package/lib/log-field.js +34 -0
- package/lib/project-http.js +2 -0
- package/lib/project-notifications.js +3 -0
- package/lib/project-prompt-responses.js +2 -1
- package/lib/project-session-grants.js +73 -0
- package/lib/project-sessions.js +12 -0
- package/lib/project-user-message.js +6 -5
- package/lib/project.js +2 -0
- package/lib/prompt-label.js +60 -0
- package/lib/prompt-registry.js +105 -10
- package/lib/prompt-source.js +65 -0
- package/lib/public/css/notifications-center.css +9 -0
- package/lib/public/css/overlays.css +18 -0
- package/lib/public/css/rewind.css +7 -0
- package/lib/public/modules/app-messages.js +3 -0
- package/lib/public/modules/app-notifications.js +5 -0
- package/lib/public/modules/build-notice-gate.js +73 -0
- package/lib/public/modules/diagnostics.js +43 -1
- package/lib/public/modules/prompt-label.js +44 -0
- package/lib/public/modules/prompts.js +9 -0
- package/lib/public/modules/session-grants.js +131 -0
- package/lib/public/modules/sidebar-sessions.js +11 -0
- package/lib/runtime-env.js +1 -1
- package/lib/sdk-bridge.js +135 -104
- package/lib/sdk-message-processor.js +14 -67
- package/lib/session-ai-title.js +80 -0
- package/lib/session-input.js +32 -2
- package/lib/sessions.js +21 -18
- package/lib/turn-initiator.js +29 -14
- package/lib/utils.js +5 -46
- package/lib/ws-schema.js +6 -3
- package/lib/yoke/adapters/claude-worker.js +5 -5
- package/lib/yoke/adapters/claude.js +5 -62
- package/lib/yoke/adapters/codex.js +4 -75
- package/lib/yoke/interface.js +3 -7
- package/package.json +3 -1
- package/scripts/vendor-identity-vectors.js +52 -0
package/lib/yoke/interface.js
CHANGED
|
@@ -69,11 +69,9 @@ var TOOL_POLICIES = ["ask", "allow-all"];
|
|
|
69
69
|
* .createToolServer(def): ToolServer (opaque)
|
|
70
70
|
* .createQuery(opts): QueryHandle
|
|
71
71
|
*
|
|
72
|
-
*
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
* opts: { cwd }
|
|
76
|
-
* Returns a short (3-8 word) title string.
|
|
72
|
+
* There is no title-generation method: an adapter never starts a query to
|
|
73
|
+
* title a session. A session's title is the vendor CLI's own (see
|
|
74
|
+
* lib/session-ai-title.js) or the first-line title.
|
|
77
75
|
*
|
|
78
76
|
* Additional session management (Claude SDK specific, may vary per adapter):
|
|
79
77
|
* .getSessionInfo(sessionId, opts): Promise<object|null>
|
|
@@ -139,7 +137,6 @@ var QUERY_HANDLE_OPTIONAL_METHODS = [
|
|
|
139
137
|
/**
|
|
140
138
|
* Adapter methods and properties the console uses beyond ADAPTER_METHODS.
|
|
141
139
|
* Optional: the console feature behind each is gated by a capability.
|
|
142
|
-
* .generateTitle(messages, opts) - session titles
|
|
143
140
|
* .getSessionInfo / .listSessions / .renameSession - capabilities
|
|
144
141
|
* sessionList, sessionRename
|
|
145
142
|
* .forkSession(sessionId, opts) - capability fork
|
|
@@ -153,7 +150,6 @@ var QUERY_HANDLE_OPTIONAL_METHODS = [
|
|
|
153
150
|
* capabilities, which can only narrow the declaration (resolveCapabilities).
|
|
154
151
|
*/
|
|
155
152
|
var ADAPTER_OPTIONAL_METHODS = [
|
|
156
|
-
"generateTitle",
|
|
157
153
|
"getSessionInfo",
|
|
158
154
|
"listSessions",
|
|
159
155
|
"renameSession",
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.10.0-beta.
|
|
6
|
+
"version": "1.10.0-beta.4",
|
|
7
7
|
"description": "Self-hosted console for Claude Code and Codex. Multi-user, browser-based, persistent AI sessions.",
|
|
8
8
|
"bin": {
|
|
9
9
|
"clagentic-console": "./bin/cli.js"
|
|
@@ -14,6 +14,7 @@
|
|
|
14
14
|
"prepack": "node scripts/write-build-sha.js",
|
|
15
15
|
"test": "node scripts/check-test-count.js test/*.test.js",
|
|
16
16
|
"test:prompt-history": "node scripts/prompt-harness-history.js",
|
|
17
|
+
"vendor:identity-vectors": "node scripts/vendor-identity-vectors.js",
|
|
17
18
|
"install:local-test": "node scripts/install-local-test.js",
|
|
18
19
|
"verify:installed-build": "node scripts/verify-installed.js",
|
|
19
20
|
"semantic-release": "semantic-release"
|
|
@@ -64,6 +65,7 @@
|
|
|
64
65
|
"@anthropic-ai/sdk": "0.104.2",
|
|
65
66
|
"@lydell/node-pty": "^1.2.0-beta.3",
|
|
66
67
|
"ajv": "^8.20.0",
|
|
68
|
+
"jose": "^6.2.3",
|
|
67
69
|
"nodemailer": "^10.1.0",
|
|
68
70
|
"qrcode-terminal": "^0.12.0",
|
|
69
71
|
"web-push": "^3.6.7",
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Copies the Identity Assertion conformance vectors into test/fixtures and
|
|
3
|
+
// records a pin (contract version, source ref, sha256 of each file) so a test
|
|
4
|
+
// can prove the vendored set is the one that was pinned.
|
|
5
|
+
//
|
|
6
|
+
// Usage: node scripts/vendor-identity-vectors.js <vectors/v1 dir> [--ref <source ref>]
|
|
7
|
+
//
|
|
8
|
+
// Only the published contract artifacts are copied (manifest.json, jwks.json).
|
|
9
|
+
// No code from the contract's home repository is read or imported.
|
|
10
|
+
|
|
11
|
+
var fs = require("fs");
|
|
12
|
+
var path = require("path");
|
|
13
|
+
var crypto = require("crypto");
|
|
14
|
+
|
|
15
|
+
var FILES = ["manifest.json", "jwks.json"];
|
|
16
|
+
var DEST = path.join(__dirname, "..", "test", "fixtures", "identity-contract", "v1");
|
|
17
|
+
|
|
18
|
+
function sha256(buf) {
|
|
19
|
+
return crypto.createHash("sha256").update(buf).digest("hex");
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function parseArgs(argv) {
|
|
23
|
+
var out = { source: null, ref: null };
|
|
24
|
+
for (var i = 0; i < argv.length; i++) {
|
|
25
|
+
if (argv[i] === "--ref") out.ref = argv[++i];
|
|
26
|
+
else if (!out.source) out.source = argv[i];
|
|
27
|
+
}
|
|
28
|
+
return out;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
function main() {
|
|
32
|
+
var args = parseArgs(process.argv.slice(2));
|
|
33
|
+
if (!args.source) {
|
|
34
|
+
console.error("usage: vendor-identity-vectors.js <vectors/v1 dir> [--ref <source ref>]");
|
|
35
|
+
process.exit(2);
|
|
36
|
+
}
|
|
37
|
+
fs.mkdirSync(DEST, { recursive: true });
|
|
38
|
+
var pin = { files: {} };
|
|
39
|
+
FILES.forEach(function (name) {
|
|
40
|
+
var buf = fs.readFileSync(path.join(args.source, name));
|
|
41
|
+
fs.writeFileSync(path.join(DEST, name), buf);
|
|
42
|
+
pin.files[name] = sha256(buf);
|
|
43
|
+
});
|
|
44
|
+
var manifest = JSON.parse(fs.readFileSync(path.join(DEST, "manifest.json"), "utf8"));
|
|
45
|
+
pin.contract_version = manifest.contract_version;
|
|
46
|
+
pin.cia = manifest.cia;
|
|
47
|
+
pin.source_ref = args.ref || null;
|
|
48
|
+
fs.writeFileSync(path.join(DEST, "PIN.json"), JSON.stringify(pin, null, 2) + "\n");
|
|
49
|
+
console.log("vendored contract " + pin.contract_version + " (cia " + pin.cia + ") into " + DEST);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
main();
|