@cspeach/cli 1.1.33 → 1.1.35
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/agent/anthropic-provider.js +2 -0
- package/dist/agent/azure-profile.js +7 -0
- package/dist/agent/connection-profile.js +49 -0
- package/dist/agent/loop.js +182 -39
- package/dist/agent/provider-shape.js +36 -0
- package/dist/agent/providers/ai-hub-provider.js +6 -5
- package/dist/agent/providers/azure-provider.js +125 -0
- package/dist/agent/providers/byok-provider.js +8 -7
- package/dist/agent/providers/factory.js +8 -3
- package/dist/agent/providers/local-provider.js +18 -22
- package/dist/agent/risk-gate.js +202 -0
- package/dist/agent/summarise-via-provider.js +55 -8
- package/dist/agent/tool-dispatch.js +19 -0
- package/dist/agent/turn-error-ux.js +22 -0
- package/dist/auth/api-key.js +10 -5
- package/dist/auth/auth-file.js +35 -6
- package/dist/auth/azure/azure-key.js +21 -0
- package/dist/auth/azure/azure-log.js +45 -0
- package/dist/auth/azure/cache-store.js +171 -0
- package/dist/auth/azure/clear.js +28 -0
- package/dist/auth/azure/loopback.js +192 -0
- package/dist/auth/azure/msal-client.js +41 -0
- package/dist/auth/azure/sign-in.js +219 -0
- package/dist/auth/azure/startup-sign-in.js +64 -0
- package/dist/auth/azure/token-provider.js +116 -0
- package/dist/auth/key-resolver.js +258 -0
- package/dist/auth/me.js +11 -5
- package/dist/cli.js +21 -2
- package/dist/commands/compact.js +12 -1
- package/dist/commands/config-set.js +74 -3
- package/dist/commands/config-show.js +25 -0
- package/dist/commands/cost.js +19 -6
- package/dist/commands/help.js +2 -2
- package/dist/commands/login-azure.js +33 -0
- package/dist/commands/login.js +56 -8
- package/dist/commands/logout.js +34 -10
- package/dist/commands/plan-boundary.js +4 -4
- package/dist/commands/plan-model-tier.js +8 -3
- package/dist/commands/usage.js +6 -0
- package/dist/commands/whoami.js +113 -9
- package/dist/config/loader.js +5 -0
- package/dist/connection/azure-auth.js +135 -0
- package/dist/connection/azure-errors.js +103 -0
- package/dist/connection/azure-facts.js +21 -0
- package/dist/connection/azure-gate.js +40 -0
- package/dist/connection/azure-last-call.js +5 -0
- package/dist/connection/azure-turn-error.js +25 -0
- package/dist/connection/cache.js +70 -0
- package/dist/connection/fetch.js +33 -0
- package/dist/connection/guard.js +94 -0
- package/dist/connection/limit-gate.js +26 -0
- package/dist/connection/local-usage.js +71 -0
- package/dist/connection/login-step.js +62 -0
- package/dist/connection/startup.js +67 -0
- package/dist/connection/state.js +68 -0
- package/dist/connection/types.js +1 -0
- package/dist/cost/cost-log.js +3 -1
- package/dist/cost/credits-wire.js +1 -1
- package/dist/cost/credits.js +4 -0
- package/dist/cost/display-mode.js +7 -0
- package/dist/cost/router-spend.js +3 -0
- package/dist/cost/session-cost.js +4 -0
- package/dist/doctor/checks/azure.js +100 -0
- package/dist/doctor/checks/credits.js +4 -3
- package/dist/doctor/checks/usage-reporting.js +22 -0
- package/dist/doctor/run.js +7 -0
- package/dist/lib/graceful-exit.js +17 -0
- package/dist/licence/licence-check.js +205 -0
- package/dist/licence/paths.js +6 -0
- package/dist/licence/turn-gate.js +66 -0
- package/dist/models/model-identity.js +65 -0
- package/dist/models/resolve.js +8 -0
- package/dist/models/server-config.js +3 -2
- package/dist/one-shot.js +86 -2
- package/dist/projects/answer-blockers.js +25 -12
- package/dist/renderer/change-card.js +28 -4
- package/dist/renderer/footer-line.js +7 -1
- package/dist/renderer/notices.js +27 -13
- package/dist/renderer/progress-chatter.js +3 -1
- package/dist/renderer/status-footer.js +13 -6
- package/dist/renderer/tool-labels.js +8 -2
- package/dist/renderer/verify-chain.js +41 -18
- package/dist/renderer/wrap-rows.js +87 -0
- package/dist/repl/ask-or-no.js +18 -0
- package/dist/repl/builtin-commands.js +10 -2
- package/dist/repl/post-turn-status.js +3 -2
- package/dist/repl/safety-confirm.js +47 -2
- package/dist/repl/session-spend-line.js +4 -1
- package/dist/repl/startup-account.js +51 -0
- package/dist/repl.js +217 -48
- package/dist/router/byok-classifier.js +41 -14
- package/dist/router/classifier.js +5 -16
- package/dist/router/router-target.js +41 -0
- package/dist/sap/connection-manager.js +15 -0
- package/dist/sap/onboarding.js +70 -64
- package/dist/sap/session-end.js +66 -0
- package/dist/session/audit-export.js +11 -4
- package/dist/skills/manifest-client.js +37 -4
- package/dist/skills/skills-cache.js +115 -0
- package/dist/skills/source-authed.js +276 -0
- package/dist/tools/ask-question.js +1 -1
- package/dist/tools/filesystem/glob.js +12 -3
- package/dist/tools/filesystem/grep.js +14 -3
- package/dist/tools/sap-read.js +22 -22
- package/dist/tools/sap-write.js +249 -18
- package/dist/tools/snapshot.js +26 -0
- package/dist/tools/tool-loading.js +9 -10
- package/dist/ui/app.js +19 -9
- package/dist/ui/approval-modal.js +37 -5
- package/dist/ui/live-area.js +14 -1
- package/dist/ui/widgets/ask-card.js +183 -107
- package/dist/ui/widgets/coaching-picker.js +22 -1
- package/dist/ui/widgets/confirm-card.js +102 -76
- package/dist/usage/usage-queue.js +323 -0
- package/dist/usage/usage-reporter.js +270 -0
- package/package.json +4 -3
- package/dist/skills/bundled-skills.js +0 -286
- package/dist/skills/source-bundled.js +0 -20
- package/dist/skills/source-manifest.js +0 -36
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { BUNDLED_SKILLS } from './bundled-skills.js';
|
|
2
|
-
export function createBundledSkillSource() {
|
|
3
|
-
return {
|
|
4
|
-
async getSkillBody(name) {
|
|
5
|
-
const body = BUNDLED_SKILLS[name];
|
|
6
|
-
if (!body) {
|
|
7
|
-
const avail = Object.keys(BUNDLED_SKILLS);
|
|
8
|
-
throw new Error(`skill '${name}' not bundled in this CLI build (local mode).` +
|
|
9
|
-
` This CLI ships ${avail.length} skills. Upgrade CLI for newer skills, or switch to byok/ai-hub mode for live manifest fetch.`);
|
|
10
|
-
}
|
|
11
|
-
return body;
|
|
12
|
-
},
|
|
13
|
-
async listAvailableSkills() {
|
|
14
|
-
return Object.keys(BUNDLED_SKILLS);
|
|
15
|
-
},
|
|
16
|
-
describe() {
|
|
17
|
-
return `bundled with CLI binary (${Object.keys(BUNDLED_SKILLS).length} skills)`;
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
}
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { ManifestClient } from './manifest-client.js';
|
|
2
|
-
export function createManifestSkillSource(manifestUrl) {
|
|
3
|
-
const client = new ManifestClient(manifestUrl);
|
|
4
|
-
let cachedManifest = null;
|
|
5
|
-
// Task 5 (2026-09-27) — BYOK / AI-hub fetch the skill body on every model
|
|
6
|
-
// call (the system prompt is built client-side). Cache the sha-verified body
|
|
7
|
-
// for the source's lifetime, like the manifest, so each tool-loop round does
|
|
8
|
-
// not hit the network. Failures are not cached.
|
|
9
|
-
const bodyCache = new Map();
|
|
10
|
-
async function getManifest() {
|
|
11
|
-
if (!cachedManifest)
|
|
12
|
-
cachedManifest = await client.fetchAndVerifyManifest();
|
|
13
|
-
return cachedManifest;
|
|
14
|
-
}
|
|
15
|
-
return {
|
|
16
|
-
async getSkillBody(name) {
|
|
17
|
-
const m = await getManifest();
|
|
18
|
-
const entry = m.skills.find(s => s.name === name);
|
|
19
|
-
if (!entry)
|
|
20
|
-
throw new Error(`skill '${name}' not found in manifest (available: ${m.skills.map(s => s.name).join(', ')})`);
|
|
21
|
-
const cached = bodyCache.get(name);
|
|
22
|
-
if (cached && cached.sha256 === entry.sha256)
|
|
23
|
-
return cached;
|
|
24
|
-
const body = await client.fetchSkillBody(name, entry.body_url, { expectedSha256: entry.sha256 });
|
|
25
|
-
bodyCache.set(name, body);
|
|
26
|
-
return body;
|
|
27
|
-
},
|
|
28
|
-
async listAvailableSkills() {
|
|
29
|
-
const m = await getManifest();
|
|
30
|
-
return m.skills.map(s => s.name);
|
|
31
|
-
},
|
|
32
|
-
describe() {
|
|
33
|
-
return `public signed manifest at ${manifestUrl}`;
|
|
34
|
-
},
|
|
35
|
-
};
|
|
36
|
-
}
|