@khorsheed/dsh-local-agent-claude-code 0.1.0-rc.8 → 0.2.0-rc.3
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/CHANGELOG.md +15 -0
- package/README.en.md +38 -31
- package/README.i18n.yaml +2 -2
- package/README.md +34 -31
- package/cordis.patch.yml +17 -24
- package/lib/client.js +843 -316
- package/lib/index.js +1491 -1520
- package/lib/tool.js +40 -0
- package/lib/types/claude-cli-provider.d.ts +13 -4
- package/lib/types/claude-cli-provider.js +61 -49
- package/lib/types/client/SettingsCard.d.ts +75 -24
- package/lib/types/client/SettingsCard.js +106 -128
- package/lib/types/client/index.d.ts +12 -25
- package/lib/types/client/index.js +135 -50
- package/lib/types/client/locales.d.ts +36 -24
- package/lib/types/client/locales.js +40 -28
- package/lib/types/endpoint-auth.d.ts +181 -0
- package/lib/types/endpoint-auth.js +281 -0
- package/lib/types/index.d.ts +32 -16
- package/lib/types/index.js +128 -62
- package/lib/types/live-driver.d.ts +9 -1
- package/lib/types/live-driver.js +18 -18
- package/lib/types/live-switch.d.ts +4 -1
- package/lib/types/model-broker.d.ts +4 -2
- package/lib/types/model-broker.js +19 -8
- package/lib/types/model-catalog.d.ts +35 -6
- package/lib/types/model-catalog.js +58 -68
- package/lib/types/provision.d.ts +34 -27
- package/lib/types/provision.js +49 -31
- package/lib/types/records.d.ts +4 -62
- package/lib/types/records.js +5 -382
- package/lib/types/tool.d.ts +54 -0
- package/lib/types/tool.js +34 -0
- package/locale/en.json +2 -2
- package/locale/zh.json +2 -2
- package/package.json +25 -23
- package/lib/invariant.js +0 -31
- package/lib/types/invariant.d.ts +0 -16
- package/lib/types/invariant.js +0 -33
package/lib/types/invariant.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Package-owned invariant companion for `@khorsheed/dsh-local-agent-claude-code`.
|
|
3
|
-
* @module @khorsheed/dsh-local-agent-claude-code/invariant
|
|
4
|
-
*/
|
|
5
|
-
const PACKAGE_NAME = '@khorsheed/dsh-local-agent-claude-code';
|
|
6
|
-
/** Cordis companion plugin name. */
|
|
7
|
-
export const name = 'local-agent-claude-code-invariant';
|
|
8
|
-
/** Service required before the companion can reserve package ownership. */
|
|
9
|
-
export const inject = ['invariants'];
|
|
10
|
-
/**
|
|
11
|
-
* The claude-code harness definition is this bundle's contract with the core
|
|
12
|
-
* registry: whenever a `claude-code` harness registers, its scoped-home
|
|
13
|
-
* variable must be the one this bundle pins.
|
|
14
|
-
*/
|
|
15
|
-
const install = (ctx, fail) => {
|
|
16
|
-
ctx.on('internal/dispatch', (_mode, eventName, args) => {
|
|
17
|
-
if (eventName !== 'localAgent/harness-added')
|
|
18
|
-
return;
|
|
19
|
-
const harness = args[0];
|
|
20
|
-
if (harness.name !== 'claude-code')
|
|
21
|
-
return;
|
|
22
|
-
if (harness.homeEnvVar !== 'CLAUDE_CONFIG_DIR') {
|
|
23
|
-
fail('claude-code harness registered with a home env other than the local-agent-claude-code contract');
|
|
24
|
-
}
|
|
25
|
-
}, { global: true });
|
|
26
|
-
};
|
|
27
|
-
/**
|
|
28
|
-
* Register this package's invariant companion.
|
|
29
|
-
* @param ctx - plugin context carrying the invariant registry.
|
|
30
|
-
* @returns the installed registration's disposer.
|
|
31
|
-
*/
|
|
32
|
-
export const apply = (ctx) => Promise.resolve(ctx.invariants.register(PACKAGE_NAME, install));
|
|
33
|
-
/* jscpd:ignore-end */
|