@clagentic/console 1.11.0 → 1.12.0-beta.2
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/README.md +1 -0
- package/bin/cli.js +14 -2
- package/lib/build-changes.js +8 -2
- package/lib/build-sha.json +2 -2
- package/lib/build-update-offer.js +31 -7
- package/lib/claude-settings-env.js +142 -0
- package/lib/cli/arg-validation.js +1 -1
- package/lib/cli/duration.js +27 -0
- package/lib/cli/ipc-subcommands.js +26 -0
- package/lib/cli/schedule-input-subcommands.js +1 -22
- package/lib/cli/session-subcommands.js +38 -7
- package/lib/daemon.js +26 -0
- package/lib/notification-prefs.js +257 -0
- package/lib/notify/core.js +175 -0
- package/lib/notify/index.js +31 -0
- package/lib/notify/live-prompts.js +36 -0
- package/lib/notify/payload.js +63 -0
- package/lib/notify/target.js +5 -0
- package/lib/notify/type-registry.js +64 -0
- package/lib/notify/types.js +20 -0
- package/lib/open-sockets.js +27 -0
- package/lib/outbound-access.js +74 -0
- package/lib/outbound-entry.js +109 -0
- package/lib/outbound-ledger.js +306 -0
- package/lib/outbound-query.js +153 -0
- package/lib/pending-prompts.js +31 -16
- package/lib/project-connection.js +40 -1
- package/lib/project-filesystem.js +20 -5
- package/lib/project-http.js +9 -1
- package/lib/project-loop.js +25 -13
- package/lib/project-notifications.js +206 -42
- package/lib/project-prompt-responses.js +1 -1
- package/lib/project-sessions.js +30 -1
- package/lib/project.js +15 -1
- package/lib/prompt-registry.js +92 -24
- package/lib/prompt-reminders.js +282 -0
- package/lib/prompt-source.js +43 -8
- package/lib/public/app.js +1 -0
- package/lib/public/css/diagnostics.css +28 -0
- package/lib/public/css/home-hub.css +12 -0
- package/lib/public/css/icon-strip.css +9 -0
- package/lib/public/css/input.css +93 -0
- package/lib/public/css/menus.css +22 -0
- package/lib/public/css/mobile-nav.css +11 -0
- package/lib/public/css/server-settings.css +24 -0
- package/lib/public/css/sidebar.css +24 -0
- package/lib/public/index.html +6 -0
- package/lib/public/modules/activity-state.js +20 -4
- package/lib/public/modules/app-connection.js +22 -5
- package/lib/public/modules/app-header.js +2 -0
- package/lib/public/modules/app-messages.js +6 -2
- package/lib/public/modules/app-notifications.js +65 -40
- package/lib/public/modules/app-projects.js +3 -1
- package/lib/public/modules/app-rate-limit.js +12 -6
- package/lib/public/modules/app-rendering.js +26 -3
- package/lib/public/modules/build-update-sessions.js +81 -0
- package/lib/public/modules/collapsible-text.js +77 -0
- package/lib/public/modules/diagnostics.js +9 -2
- package/lib/public/modules/env-shadow-notice.js +34 -0
- package/lib/public/modules/keep-alive.js +66 -0
- package/lib/public/modules/notification-prefs.js +151 -0
- package/lib/public/modules/notify-client.js +153 -0
- package/lib/public/modules/project-settings.js +5 -0
- package/lib/public/modules/prompt-reminders-setting.js +13 -0
- package/lib/public/modules/prompt-state.js +3 -3
- package/lib/public/modules/prompts.js +1 -1
- package/lib/public/modules/server-settings.js +3 -0
- package/lib/public/modules/sidebar-mobile.js +8 -0
- package/lib/public/modules/sidebar-sessions.js +27 -0
- package/lib/public/modules/terminal-links.js +175 -0
- package/lib/public/modules/terminal.js +19 -103
- package/lib/public/notify-sw-logic.js +300 -0
- package/lib/public/notify-target.js +97 -0
- package/lib/public/sw.js +15 -62
- package/lib/push-audience.js +84 -0
- package/lib/push.js +87 -20
- package/lib/runtime-env.js +1 -0
- package/lib/sdk-bridge.js +83 -36
- package/lib/sdk-message-processor.js +148 -49
- package/lib/sender-ref.js +3 -0
- package/lib/server.js +80 -4
- package/lib/session-directory.js +6 -4
- package/lib/session-input-ipc.js +11 -1
- package/lib/session-input.js +95 -14
- package/lib/session-liveness.js +53 -0
- package/lib/session-reclaim.js +37 -2
- package/lib/sessions.js +58 -4
- package/lib/usage-store.js +403 -0
- package/lib/vendor-auth.js +33 -2
- package/lib/ws-schema.js +13 -2
- package/lib/yoke/adapters/claude-vendor.js +11 -1
- package/lib/yoke/adapters/claude.js +17 -0
- package/lib/yoke/adapters/codex.js +5 -1
- package/lib/yoke/auth-checks.js +17 -2
- package/lib/yoke/index.js +21 -3
- package/lib/yoke/provider-credentials.js +24 -0
- package/lib/yoke/registry.js +8 -1
- package/package.json +2 -2
- package/scripts/check-test-count.js +14 -0
|
@@ -87,7 +87,31 @@ function completeProvider(env) {
|
|
|
87
87
|
return null;
|
|
88
88
|
}
|
|
89
89
|
|
|
90
|
+
var PROVIDER_LABELS = {
|
|
91
|
+
bedrock: "Amazon Bedrock",
|
|
92
|
+
vertex: "Google Vertex AI",
|
|
93
|
+
foundry: "Microsoft Foundry",
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
/**
|
|
97
|
+
* Which cloud provider the environment SELECTS, whether or not its credential
|
|
98
|
+
* set is complete. completeProvider answers "can it authenticate"; this answers
|
|
99
|
+
* "is it the provider the session talks to", which is what an auth-like error
|
|
100
|
+
* must be attributed to.
|
|
101
|
+
* @param {object} env process.env-shaped
|
|
102
|
+
* @returns {?string} "bedrock" | "vertex" | "foundry" | null
|
|
103
|
+
*/
|
|
104
|
+
function configuredProvider(env) {
|
|
105
|
+
if (!env) return null;
|
|
106
|
+
if (env.CLAUDE_CODE_USE_BEDROCK === "1") return "bedrock";
|
|
107
|
+
if (env.CLAUDE_CODE_USE_VERTEX === "1") return "vertex";
|
|
108
|
+
if (env.CLAUDE_CODE_USE_FOUNDRY === "1") return "foundry";
|
|
109
|
+
return null;
|
|
110
|
+
}
|
|
111
|
+
|
|
90
112
|
module.exports = {
|
|
113
|
+
PROVIDER_LABELS: PROVIDER_LABELS,
|
|
114
|
+
configuredProvider: configuredProvider,
|
|
91
115
|
CREDENTIAL_GROUPS: CREDENTIAL_GROUPS,
|
|
92
116
|
groupOf: groupOf,
|
|
93
117
|
completeProvider: completeProvider,
|
package/lib/yoke/registry.js
CHANGED
|
@@ -104,7 +104,9 @@ function validateCredentialGroups(descriptor) {
|
|
|
104
104
|
* detail ({path, version, reason}) is shown beside the agent
|
|
105
105
|
* recheck optional function(): forget what the probe remembered, so
|
|
106
106
|
* the next probe looks again (a user installed or updated it)
|
|
107
|
-
* checkAuth function() -> boolean
|
|
107
|
+
* checkAuth function(runtimeEnvOverlay, osUsers) -> boolean; the overlay is the
|
|
108
|
+
* Settings variables of the runtime asked about, or null;
|
|
109
|
+
* osUsers is true under os-users mode
|
|
108
110
|
* installHint string one line telling the user how to install it
|
|
109
111
|
* loginCommand string the one place the login command is written
|
|
110
112
|
* osUsersSupported boolean can run under per-user OS isolation; when false the
|
|
@@ -123,6 +125,10 @@ function validateCredentialGroups(descriptor) {
|
|
|
123
125
|
* be owned by the descriptor
|
|
124
126
|
* nativeInstructionFiles string[] project instruction files the agent reads
|
|
125
127
|
* itself, so the console does not inject them again
|
|
128
|
+
* effectiveRuntimeEnv optional function(env, osUsers) -> env; the environment this
|
|
129
|
+
* agent's CLI actually sees, given the composed one
|
|
130
|
+
* (a file the CLI applies over it). Read only to
|
|
131
|
+
* classify, never handed on
|
|
126
132
|
* interruptMessage string shown when the user stops a turn
|
|
127
133
|
* capabilityReasons optional object capability key -> the line shown beside a
|
|
128
134
|
* control this agent has disabled, in place of the
|
|
@@ -151,6 +157,7 @@ function register(descriptor) {
|
|
|
151
157
|
requireFunction(descriptor, "checkAuth");
|
|
152
158
|
requireFunction(descriptor, "createAdapter");
|
|
153
159
|
if (descriptor.recheck !== undefined) requireFunction(descriptor, "recheck");
|
|
160
|
+
if (descriptor.effectiveRuntimeEnv !== undefined) requireFunction(descriptor, "effectiveRuntimeEnv");
|
|
154
161
|
requireBoolean(descriptor, "osUsersSupported");
|
|
155
162
|
requireBoolean(descriptor, "needsRuntimeEnv");
|
|
156
163
|
if (descriptor.capabilityReasons === undefined) descriptor = Object.assign({}, descriptor, { capabilityReasons: {} });
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.12.0-beta.2",
|
|
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"
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
"Chad (original Clay author)"
|
|
62
62
|
],
|
|
63
63
|
"dependencies": {
|
|
64
|
-
"@anthropic-ai/claude-agent-sdk": "0.3.
|
|
64
|
+
"@anthropic-ai/claude-agent-sdk": "0.3.318",
|
|
65
65
|
"@anthropic-ai/sdk": "0.104.2",
|
|
66
66
|
"@lydell/node-pty": "^1.2.0-beta.3",
|
|
67
67
|
"ajv": "^8.20.0",
|
|
@@ -392,8 +392,22 @@ if (require.main === module) {
|
|
|
392
392
|
|
|
393
393
|
var REPORTER_PATH = path.join(__dirname, "test-file-completion-reporter.js");
|
|
394
394
|
|
|
395
|
+
// --test-timeout bounds each test and also each file as a whole (measured on
|
|
396
|
+
// Node 22: a file of four 1 s tests is cancelled at --test-timeout=2500, as
|
|
397
|
+
// a file, though no test in it ran past 1 s). There is no separate per-file
|
|
398
|
+
// flag, so this one value is the per-file bound: a file that hangs (an open
|
|
399
|
+
// handle, a child that never connects) fails by name instead of stalling the
|
|
400
|
+
// buffered run, and a file whose tests legitimately add up to more than it
|
|
401
|
+
// is cancelled too. A slow file is therefore split, not given a higher
|
|
402
|
+
// bound (prompt-invariants was one file of 10 slow parts, about 12 minutes
|
|
403
|
+
// alone; split into one file per slice each takes about 15 s). 300 s is
|
|
404
|
+
// about 20 times the slowest file measured on a loaded host. A test that
|
|
405
|
+
// needs its own tighter bound sets the `timeout` option on itself.
|
|
406
|
+
var testTimeoutMs = Number(process.env.CHECK_TEST_COUNT_TEST_TIMEOUT_MS) || 300000;
|
|
407
|
+
|
|
395
408
|
var result = spawnSync(process.execPath, [
|
|
396
409
|
"--test",
|
|
410
|
+
"--test-timeout=" + testTimeoutMs,
|
|
397
411
|
"--test-reporter=tap", "--test-reporter-destination=stdout",
|
|
398
412
|
"--test-reporter=" + REPORTER_PATH, "--test-reporter-destination=stderr",
|
|
399
413
|
].concat(files), {
|