@kodycodes/cli 3.22.7 → 3.22.8
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 +8 -7
- package/dist/api-token-store.d.ts +0 -2
- package/dist/api-token.d.ts +5 -20
- package/dist/{auth-W5RWT6IP.js → auth-4N35PHF7.js} +8 -8
- package/dist/auth-bootstrap.d.ts +3 -18
- package/dist/bin.js +13 -14
- package/dist/bin.js.map +1 -1
- package/dist/capability-proxy.d.ts +5 -35
- package/dist/{chunk-FHLTB67D.js → chunk-2Y4VVWIL.js} +3 -3
- package/dist/chunk-2Y4VVWIL.js.map +6 -0
- package/dist/{chunk-K2G6GYKA.js → chunk-62N7DN7L.js} +1 -1
- package/dist/{chunk-K2G6GYKA.js.map → chunk-62N7DN7L.js.map} +1 -1
- package/dist/{chunk-4LAKIU3Y.js → chunk-C7GRF5V5.js} +2 -2
- package/dist/{chunk-ZUROJOJ2.js → chunk-CA7AAWGW.js} +3 -5
- package/dist/chunk-CA7AAWGW.js.map +6 -0
- package/dist/{chunk-XV6D6HSG.js → chunk-DH5RPHG6.js} +1 -2
- package/dist/chunk-DH5RPHG6.js.map +6 -0
- package/dist/{chunk-G7GRULRW.js → chunk-DHCDUGD2.js} +2 -2
- package/dist/{chunk-YQRMKXCC.js → chunk-DJ6XKQEC.js} +4 -6
- package/dist/chunk-DJ6XKQEC.js.map +6 -0
- package/dist/{chunk-SLNAWWQK.js → chunk-E4R3Y6MM.js} +1 -1
- package/dist/{chunk-SLNAWWQK.js.map → chunk-E4R3Y6MM.js.map} +1 -1
- package/dist/{chunk-DEI4SMFK.js → chunk-F34Q7D5C.js} +4 -8
- package/dist/{chunk-DEI4SMFK.js.map → chunk-F34Q7D5C.js.map} +1 -1
- package/dist/{chunk-M7PRSUCC.js → chunk-IOG54R4P.js} +1 -1
- package/dist/{chunk-M7PRSUCC.js.map → chunk-IOG54R4P.js.map} +1 -1
- package/dist/{chunk-76OYRT4A.js → chunk-LQNGII7U.js} +1 -1
- package/dist/{chunk-76OYRT4A.js.map → chunk-LQNGII7U.js.map} +1 -1
- package/dist/{chunk-RD6ZJU2N.js → chunk-LTSHQAUL.js} +5 -5
- package/dist/{chunk-2XPH7L2P.js → chunk-MIT3TUWB.js} +1 -1
- package/dist/{chunk-2XPH7L2P.js.map → chunk-MIT3TUWB.js.map} +1 -1
- package/dist/{chunk-VP2O3HLT.js → chunk-NKH2L5RA.js} +17 -1
- package/dist/chunk-NKH2L5RA.js.map +6 -0
- package/dist/{chunk-CWQVWIAQ.js → chunk-NZ7JT42A.js} +2 -2
- package/dist/{chunk-CWQVWIAQ.js.map → chunk-NZ7JT42A.js.map} +1 -1
- package/dist/{chunk-FPYLVYHC.js → chunk-OKIL5IUB.js} +58 -42
- package/dist/chunk-OKIL5IUB.js.map +6 -0
- package/dist/{chunk-2FU3OO7F.js → chunk-PQPGW43A.js} +5 -19
- package/dist/chunk-PQPGW43A.js.map +6 -0
- package/dist/{chunk-NPQ2XAK5.js → chunk-QL776E77.js} +3 -3
- package/dist/chunk-QL776E77.js.map +6 -0
- package/dist/{chunk-D6XME4RY.js → chunk-RE7LNPRO.js} +2 -5
- package/dist/{chunk-D6XME4RY.js.map → chunk-RE7LNPRO.js.map} +1 -1
- package/dist/{chunk-ZXNYKFSN.js → chunk-SX3MQHCJ.js} +5 -5
- package/dist/{chunk-ZXNYKFSN.js.map → chunk-SX3MQHCJ.js.map} +1 -1
- package/dist/{chunk-OXBMXZ6S.js → chunk-T3V6WFHI.js} +2 -2
- package/dist/{chunk-5E2HSGBZ.js → chunk-UQIY7RY4.js} +4 -5
- package/dist/chunk-UQIY7RY4.js.map +6 -0
- package/dist/{chunk-SLBG76VX.js → chunk-VA5KCKCC.js} +9 -9
- package/dist/{chunk-SLBG76VX.js.map → chunk-VA5KCKCC.js.map} +1 -1
- package/dist/{chunk-DBNNDB7I.js → chunk-WAZTX2ED.js} +9 -9
- package/dist/{chunk-DBNNDB7I.js.map → chunk-WAZTX2ED.js.map} +1 -1
- package/dist/{chunk-F3XGCTRQ.js → chunk-XAXNNOEC.js} +122 -71
- package/dist/chunk-XAXNNOEC.js.map +6 -0
- package/dist/{chunk-OKM2QMOV.js → chunk-ZU5QBMXR.js} +6 -11
- package/dist/{chunk-OKM2QMOV.js.map → chunk-ZU5QBMXR.js.map} +1 -1
- package/dist/cli.d.ts +10 -1
- package/dist/cli.js +15 -14
- package/dist/{commands-MZMI3MEY.js → commands-QL2SLSIL.js} +23 -37
- package/dist/commands-QL2SLSIL.js.map +6 -0
- package/dist/credential-call-map.d.ts +0 -6
- package/dist/credential-dir.d.ts +0 -2
- package/dist/credentialed-fetch-scan.d.ts +2 -2
- package/dist/defaults.d.ts +5 -5
- package/dist/dev/dev-assets.d.ts +0 -2
- package/dist/dev/dev-bundler.d.ts +0 -5
- package/dist/dev/dev-events.d.ts +2 -2
- package/dist/dev/dev-port.d.ts +1 -1
- package/dist/dev/error-page.d.ts +2 -4
- package/dist/dev/live-reload.d.ts +2 -1
- package/dist/dev/workerd-process.d.ts +0 -1
- package/dist/{dev-command-XIQY56LW.js → dev-command-P73A4I3C.js} +16 -19
- package/dist/{dev-command-XIQY56LW.js.map → dev-command-P73A4I3C.js.map} +1 -1
- package/dist/dev-command.d.ts +0 -9
- package/dist/execution-context/auto-update.d.ts +1 -66
- package/dist/execution-context/client.d.ts +2 -3
- package/dist/execution-context/commands.d.ts +0 -11
- package/dist/execution-context/daemon.d.ts +1 -6
- package/dist/execution-context/fs-access.d.ts +5 -4
- package/dist/execution-context/host-commands.d.ts +3 -47
- package/dist/execution-context/host-fs-bridge.d.ts +0 -2
- package/dist/execution-context/keystore.d.ts +0 -1
- package/dist/execution-context/runner-lock.d.ts +0 -8
- package/dist/execution-context/service-commands.d.ts +17 -8
- package/dist/execution-context/service.d.ts +3 -13
- package/dist/execution-context/windows-command.d.ts +0 -2
- package/dist/fetch-body-secret-resolution.d.ts +0 -1
- package/dist/{git-credential-BT363OJQ.js → git-credential-L5AR3JRT.js} +9 -9
- package/dist/help.d.ts +0 -6
- package/dist/host-catalog.d.ts +2 -5
- package/dist/host-config.d.ts +2 -3
- package/dist/{install-NTS5BOCR.js → install-24DK5RBH.js} +3 -5
- package/dist/{install-NTS5BOCR.js.map → install-24DK5RBH.js.map} +1 -1
- package/dist/install-hosts.d.ts +2 -1
- package/dist/install.d.ts +0 -5
- package/dist/invoke-passthrough.d.ts +0 -1
- package/dist/local-egress.d.ts +2 -1
- package/dist/{local-execute-BI5253MQ.js → local-execute-WDKUY2JK.js} +14 -14
- package/dist/{local-package-graph-WFDNSNOJ.js → local-package-graph-3TRAIUBT.js} +6 -18
- package/dist/local-package-graph.d.ts +0 -34
- package/dist/{local-package-run-RRELUZEM.js → local-package-run-N3O2SD3L.js} +15 -15
- package/dist/local-runtime-bridge.d.ts +2 -5
- package/dist/local-runtime-source.d.ts +0 -2
- package/dist/login-callback-page.d.ts +3 -2
- package/dist/mock/load-package-mocks.d.ts +0 -1
- package/dist/mock/mock-fetch-gateway.d.ts +0 -3
- package/dist/mock/mock-server.d.ts +0 -1
- package/dist/mock/mock-storage.d.ts +2 -2
- package/dist/mock/mock-supported.d.ts +2 -1
- package/dist/{mock-dep-resolve-G7TA4CJB.js → mock-dep-resolve-IVZOW4QE.js} +9 -9
- package/dist/{mock-fetch-gateway-QNUFNYAH.js → mock-fetch-gateway-VAGQFWVN.js} +5 -9
- package/dist/{mock-local-deps-K2NARQ7F.js → mock-local-deps-AUAWEK46.js} +9 -13
- package/dist/mock-local-deps.d.ts +0 -4
- package/dist/{mock-server-2FMSQMBT.js → mock-server-7P53AZUZ.js} +6 -8
- package/dist/node-engine.d.ts +0 -2
- package/dist/oauth-browser.d.ts +0 -3
- package/dist/{open-api-client-DJL2PE7P.js → open-api-client-QVDDK27F.js} +7 -15
- package/dist/open-api-client.d.ts +0 -6
- package/dist/{org-SGFIXD42.js → org-NWSSC7L7.js} +3 -10
- package/dist/org-NWSSC7L7.js.map +6 -0
- package/dist/org.d.ts +0 -2
- package/dist/package-collaborators.d.ts +2 -4
- package/dist/package-local-runtime-source.d.ts +2 -2
- package/dist/{package-manifest-KCLPIMOZ.js → package-manifest-AEBPXNCJ.js} +3 -3
- package/dist/package-manifest.d.ts +7 -6
- package/dist/process-info.d.ts +0 -2
- package/dist/publish-exit.d.ts +0 -11
- package/dist/{remote-execute-KUSUI6UT.js → remote-execute-PBSB32YY.js} +8 -8
- package/dist/{run-executor-4TY5KNQQ.js → run-executor-TSI7J56V.js} +16 -16
- package/dist/{setup-git-KBH7GA6E.js → setup-git-S57U4NT5.js} +8 -38
- package/dist/setup-git.d.ts +5 -59
- package/dist/{skill-IY263IXV.js → skill-QM3N6H55.js} +3 -3
- package/dist/skill-refresh.js +2 -2
- package/dist/{store-ZPBJTYRI.js → store-4G2J5DRZ.js} +3 -9
- package/dist/store.d.ts +2 -6
- package/dist/{structured-error-QYNRZZKC.js → structured-error-KS24XUSZ.js} +2 -4
- package/dist/structured-error.d.ts +2 -2
- package/dist/{whoami-SGE7VKGY.js → whoami-RUMTWBZL.js} +6 -7
- package/dist/{whoami-SGE7VKGY.js.map → whoami-RUMTWBZL.js.map} +1 -1
- package/dist/whoami.d.ts +0 -11
- package/dist/workerd-binary.d.ts +2 -3
- package/package.json +1 -1
- package/dist/chunk-2FU3OO7F.js.map +0 -6
- package/dist/chunk-5E2HSGBZ.js.map +0 -6
- package/dist/chunk-7PRJ36I5.js +0 -23
- package/dist/chunk-7PRJ36I5.js.map +0 -6
- package/dist/chunk-F3XGCTRQ.js.map +0 -6
- package/dist/chunk-FHLTB67D.js.map +0 -6
- package/dist/chunk-FPYLVYHC.js.map +0 -6
- package/dist/chunk-NPQ2XAK5.js.map +0 -6
- package/dist/chunk-VP2O3HLT.js.map +0 -6
- package/dist/chunk-XV6D6HSG.js.map +0 -6
- package/dist/chunk-YQRMKXCC.js.map +0 -6
- package/dist/chunk-ZUROJOJ2.js.map +0 -6
- package/dist/commands-MZMI3MEY.js.map +0 -6
- package/dist/org-SGFIXD42.js.map +0 -6
- /package/dist/{auth-W5RWT6IP.js.map → auth-4N35PHF7.js.map} +0 -0
- /package/dist/{chunk-4LAKIU3Y.js.map → chunk-C7GRF5V5.js.map} +0 -0
- /package/dist/{chunk-G7GRULRW.js.map → chunk-DHCDUGD2.js.map} +0 -0
- /package/dist/{chunk-RD6ZJU2N.js.map → chunk-LTSHQAUL.js.map} +0 -0
- /package/dist/{chunk-OXBMXZ6S.js.map → chunk-T3V6WFHI.js.map} +0 -0
- /package/dist/{git-credential-BT363OJQ.js.map → git-credential-L5AR3JRT.js.map} +0 -0
- /package/dist/{local-execute-BI5253MQ.js.map → local-execute-WDKUY2JK.js.map} +0 -0
- /package/dist/{local-package-graph-WFDNSNOJ.js.map → local-package-graph-3TRAIUBT.js.map} +0 -0
- /package/dist/{local-package-run-RRELUZEM.js.map → local-package-run-N3O2SD3L.js.map} +0 -0
- /package/dist/{mock-dep-resolve-G7TA4CJB.js.map → mock-dep-resolve-IVZOW4QE.js.map} +0 -0
- /package/dist/{mock-fetch-gateway-QNUFNYAH.js.map → mock-fetch-gateway-VAGQFWVN.js.map} +0 -0
- /package/dist/{mock-local-deps-K2NARQ7F.js.map → mock-local-deps-AUAWEK46.js.map} +0 -0
- /package/dist/{mock-server-2FMSQMBT.js.map → mock-server-7P53AZUZ.js.map} +0 -0
- /package/dist/{open-api-client-DJL2PE7P.js.map → open-api-client-QVDDK27F.js.map} +0 -0
- /package/dist/{package-manifest-KCLPIMOZ.js.map → package-manifest-AEBPXNCJ.js.map} +0 -0
- /package/dist/{remote-execute-KUSUI6UT.js.map → remote-execute-PBSB32YY.js.map} +0 -0
- /package/dist/{run-executor-4TY5KNQQ.js.map → run-executor-TSI7J56V.js.map} +0 -0
- /package/dist/{setup-git-KBH7GA6E.js.map → setup-git-S57U4NT5.js.map} +0 -0
- /package/dist/{skill-IY263IXV.js.map → skill-QM3N6H55.js.map} +0 -0
- /package/dist/{store-ZPBJTYRI.js.map → store-4G2J5DRZ.js.map} +0 -0
- /package/dist/{structured-error-QYNRZZKC.js.map → structured-error-KS24XUSZ.js.map} +0 -0
package/dist/dev-command.d.ts
CHANGED
|
@@ -149,15 +149,6 @@ export declare class PublishChecksAuthError extends Error {
|
|
|
149
149
|
cause?: unknown;
|
|
150
150
|
});
|
|
151
151
|
}
|
|
152
|
-
/** True when the publish checks could not run because of the login. */
|
|
153
|
-
export declare function isPublishChecksAuthFailure(error: unknown): boolean;
|
|
154
|
-
/**
|
|
155
|
-
* Detail for a publish-checks run that could not finish. The login hint is
|
|
156
|
-
* only for auth failures; every other failure names the server status, error
|
|
157
|
-
* code and request id so it can be reported.
|
|
158
|
-
*/
|
|
159
|
-
export declare function formatPublishChecksRunFailure(error: unknown): string;
|
|
160
|
-
export declare const devCheckOfflineDetail = "skipped (--offline). Only local checks ran; publish runs the full publish checks and can still refuse this package.";
|
|
161
152
|
/** Parse a `packageCheck` response body (Open API structured result). */
|
|
162
153
|
export declare function parsePackageCheckResult(value: unknown): PackageCheckResult;
|
|
163
154
|
/**
|
|
@@ -1,13 +1,4 @@
|
|
|
1
1
|
import { spawn } from 'node:child_process';
|
|
2
|
-
/**
|
|
3
|
-
* Daemon auto-update: every few hours (and on start) the daemon asks npm for
|
|
4
|
-
* the newest @kodycodes/cli, installs a verified copy into a Kody-managed
|
|
5
|
-
* store, and relaunches onto it once runs in flight are done. The store is
|
|
6
|
-
* shared by every daemon on this machine (services, terminals, the desktop
|
|
7
|
-
* app), so they all converge on the same version.
|
|
8
|
-
*/
|
|
9
|
-
export declare const packageName = "@kodycodes/cli";
|
|
10
|
-
export declare const registryUrl = "https://registry.npmjs.org";
|
|
11
2
|
/** A daemon exits with this to ask its supervisor to relaunch it (newer CLI). */
|
|
12
3
|
export declare const relaunchExitCode = 75;
|
|
13
4
|
/**
|
|
@@ -18,18 +9,6 @@ export declare const relaunchExitCode = 75;
|
|
|
18
9
|
export declare const startupRefusedExitCode = 76;
|
|
19
10
|
/** Set on a daemon started by a supervisor; it exits instead of supervising. */
|
|
20
11
|
export declare const supervisedEnvVar = "KODY_DAEMON_SUPERVISED";
|
|
21
|
-
/** `0`, `off`, or `false` turns auto-update off regardless of the policy file. */
|
|
22
|
-
export declare const autoUpdateEnvVar = "KODY_DAEMON_AUTO_UPDATE";
|
|
23
|
-
export declare const checkIntervalMs: number;
|
|
24
|
-
export declare const checkJitterMs: number;
|
|
25
|
-
/** A newer version waits at most this long for runs and background commands. */
|
|
26
|
-
export declare const maxIdleWaitMs: number;
|
|
27
|
-
/** A relaunched daemon that exits on its own within this window failed to start. */
|
|
28
|
-
export declare const healthyAfterMs = 60000;
|
|
29
|
-
export declare function parseVersion(value: string): {
|
|
30
|
-
parts: readonly [number, number, number];
|
|
31
|
-
prerelease: string;
|
|
32
|
-
} | null;
|
|
33
12
|
/** Negative when a < b, positive when a > b, 0 when equal or unparseable. */
|
|
34
13
|
export declare function compareVersions(a: string, b: string): number;
|
|
35
14
|
export declare const isNewer: (candidate: string, than: string) => boolean;
|
|
@@ -43,7 +22,7 @@ export type CurrentVersion = {
|
|
|
43
22
|
integrity: string;
|
|
44
23
|
installedAt: string;
|
|
45
24
|
};
|
|
46
|
-
|
|
25
|
+
type UpdateEvent = {
|
|
47
26
|
at: string;
|
|
48
27
|
from: string;
|
|
49
28
|
to: string;
|
|
@@ -66,13 +45,6 @@ export type UpdateState = {
|
|
|
66
45
|
};
|
|
67
46
|
export declare function readCurrent(store?: string): CurrentVersion | null;
|
|
68
47
|
export declare function readUpdateState(store?: string): UpdateState;
|
|
69
|
-
export declare function updateState(store: string, change: (state: UpdateState) => UpdateState): UpdateState;
|
|
70
|
-
export declare function recordEvent(store: string, event: UpdateEvent): void;
|
|
71
|
-
/**
|
|
72
|
-
* A relaunched version that exited on its own right away: back off from it,
|
|
73
|
-
* and after three such starts never launch it again.
|
|
74
|
-
*/
|
|
75
|
-
export declare function recordFailedStart(store: string, version: string, from: string, detail: string, now?: number): UpdateState;
|
|
76
48
|
/**
|
|
77
49
|
* The newer verified CLI this daemon should hand off to, or null. Never an
|
|
78
50
|
* older version, a version marked bad, or an entry that no longer exists.
|
|
@@ -99,39 +71,8 @@ export type PublishedVersion = {
|
|
|
99
71
|
tarball: string;
|
|
100
72
|
integrity: string;
|
|
101
73
|
};
|
|
102
|
-
/** The `latest` dist-tag, checked for a sha512 integrity and an npm-hosted tarball. */
|
|
103
|
-
export declare function fetchLatestVersion(input: {
|
|
104
|
-
fetchFn?: typeof fetch;
|
|
105
|
-
registry?: string;
|
|
106
|
-
timeoutMs?: number;
|
|
107
|
-
}): Promise<PublishedVersion>;
|
|
108
|
-
/** Downloads the tarball and checks it against the registry's sha512 integrity. */
|
|
109
|
-
export declare function downloadVerified(input: {
|
|
110
|
-
published: PublishedVersion;
|
|
111
|
-
fetchFn?: typeof fetch;
|
|
112
|
-
}): Promise<Buffer<ArrayBuffer>>;
|
|
113
74
|
/** Extracts an npm tarball's `package/` tree (files and folders only). */
|
|
114
75
|
export declare function extractPackage(gzipped: Buffer, dest: string): void;
|
|
115
|
-
type PackageJson = {
|
|
116
|
-
name?: string;
|
|
117
|
-
version?: string;
|
|
118
|
-
dependencies?: Record<string, string>;
|
|
119
|
-
optionalDependencies?: Record<string, string>;
|
|
120
|
-
};
|
|
121
|
-
/** The installed @kodycodes/cli package folder that `entry` belongs to. */
|
|
122
|
-
export declare function packageRootOf(entry: string): string | null;
|
|
123
|
-
/**
|
|
124
|
-
* Copies the new version's dependencies from the running install when the
|
|
125
|
-
* versions still satisfy its ranges (they only ship native code and rarely
|
|
126
|
-
* change). Throws when they do not, so the caller falls back to npm.
|
|
127
|
-
*/
|
|
128
|
-
export declare function linkDependenciesFrom(input: {
|
|
129
|
-
runningPackageRoot: string;
|
|
130
|
-
newPackage: PackageJson;
|
|
131
|
-
nodeModules: string;
|
|
132
|
-
}): void;
|
|
133
|
-
/** npm next to node, on PATH, or in the usual install folders. */
|
|
134
|
-
export declare function findNpm(env?: NodeJS.ProcessEnv): string | null;
|
|
135
76
|
type StepResult = {
|
|
136
77
|
ok: boolean;
|
|
137
78
|
output: string;
|
|
@@ -157,10 +98,6 @@ export declare function installVersion(input: {
|
|
|
157
98
|
tarball: Buffer;
|
|
158
99
|
deps?: InstallDeps;
|
|
159
100
|
}): Promise<CurrentVersion>;
|
|
160
|
-
/** Keeps the three newest versions (other daemons may still run one) and anything in `keep`. */
|
|
161
|
-
export declare function pruneVersions(store: string, keep: Array<string>): void;
|
|
162
|
-
/** One installer at a time per machine; a lock older than 15 minutes is stale. */
|
|
163
|
-
export declare function withStoreLock<T>(store: string, run: () => Promise<T>): Promise<T> | null;
|
|
164
101
|
export declare function backoffMs(failures: number): number;
|
|
165
102
|
export type CheckResult = {
|
|
166
103
|
kind: 'disabled';
|
|
@@ -194,8 +131,6 @@ export declare function checkForUpdate(input: {
|
|
|
194
131
|
deps?: InstallDeps;
|
|
195
132
|
now?: () => number;
|
|
196
133
|
}): Promise<CheckResult>;
|
|
197
|
-
/** First check a minute or so after start, then every ~4h with jitter. */
|
|
198
|
-
export declare function nextCheckDelay(first: boolean, random?: () => number): number;
|
|
199
134
|
/**
|
|
200
135
|
* Runs newer CLI versions as a child of this daemon process: relaunches on
|
|
201
136
|
* `relaunchExitCode` (a newer version is ready), forwards stop signals, and
|
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import { type EcpRootKey, type Ed25519PrivateJwk, type EcpPublishedKey, type EcpCryptoKey } from '@kody-internal/shared/execution-context-protocol/index.ts';
|
|
2
2
|
export declare const executionContextsPath = "/v1/execution-contexts";
|
|
3
|
-
|
|
4
|
-
export declare const reloginHint = "Run `kody login` again, then retry `kody context register`.";
|
|
5
|
-
export declare class ExecutionContextApiError extends Error {
|
|
3
|
+
declare class ExecutionContextApiError extends Error {
|
|
6
4
|
readonly status: number;
|
|
7
5
|
readonly code: string | null;
|
|
8
6
|
readonly reason: string | null;
|
|
@@ -125,3 +123,4 @@ export declare function apiJson(input: {
|
|
|
125
123
|
body?: unknown;
|
|
126
124
|
fetchFn?: typeof fetch;
|
|
127
125
|
}): Promise<Record<string, unknown>>;
|
|
126
|
+
export {};
|
|
@@ -25,17 +25,6 @@ export type ExecutionContextCommandInput = {
|
|
|
25
25
|
/** Overrides for tests: prompts, service manager commands, platform. */
|
|
26
26
|
service?: Partial<ServiceCommandEnv>;
|
|
27
27
|
};
|
|
28
|
-
export declare const defaultMaxConcurrentRuns = 2;
|
|
29
28
|
/** `--max-concurrent` or KODY_CONTEXT_MAX_CONCURRENT, 1..ecpMaxConcurrentRunsCap. */
|
|
30
29
|
export declare function maxConcurrentRuns(value?: string | undefined): number;
|
|
31
|
-
export declare function localCapabilities(maxConcurrent?: number): {
|
|
32
|
-
runtime: string;
|
|
33
|
-
node: string;
|
|
34
|
-
os: NodeJS.Platform;
|
|
35
|
-
cpuCount: number;
|
|
36
|
-
memoryMb: number;
|
|
37
|
-
maxConcurrent: number;
|
|
38
|
-
features: never[];
|
|
39
|
-
};
|
|
40
30
|
export declare function runExecutionContextCommand(input: ExecutionContextCommandInput): Promise<number>;
|
|
41
|
-
export declare function readCodeFile(path: string): string;
|
|
@@ -72,7 +72,7 @@ type DaemonInput = {
|
|
|
72
72
|
/** Why runDaemon returned. `revoked` and `unknown_context` are permanent. */
|
|
73
73
|
/** `replaced`: another daemon connected for this context, so this one stands down. */
|
|
74
74
|
export type DaemonStop = 'shutdown' | 'revoked' | 'unknown_context' | 'replaced';
|
|
75
|
-
|
|
75
|
+
type DaemonFsAccess = {
|
|
76
76
|
effective: (grantFs: Array<{
|
|
77
77
|
path: string;
|
|
78
78
|
mode: string;
|
|
@@ -80,12 +80,7 @@ export type DaemonFsAccess = {
|
|
|
80
80
|
/** Subscribes to local policy edits; returns an unsubscribe. */
|
|
81
81
|
onChange?: (listener: () => void) => () => void;
|
|
82
82
|
};
|
|
83
|
-
export declare const welcomeTimeoutMs = 15000;
|
|
84
83
|
export declare const welcomeTimeoutCloseCode = 4000;
|
|
85
|
-
/** How long a client-initiated close may wait for the close event. */
|
|
86
|
-
export declare const closeSettleMs = 5000;
|
|
87
|
-
export declare const defaultPingMs = 30000;
|
|
88
|
-
export declare const defaultPongTimeoutMs = 10000;
|
|
89
84
|
/** Kody stopped answering pings: the socket is half-dead. */
|
|
90
85
|
export declare const heartbeatTimeoutCloseCode = 4001;
|
|
91
86
|
/**
|
|
@@ -3,9 +3,9 @@ export type FsRule = {
|
|
|
3
3
|
path: string;
|
|
4
4
|
mode: FsMode;
|
|
5
5
|
};
|
|
6
|
-
|
|
6
|
+
type FsLayer = 'server_grant' | 'local_policy';
|
|
7
7
|
/** Host commands opt-in on this machine (ADR 0093). Absent means off. */
|
|
8
|
-
|
|
8
|
+
type LocalCommandsPolicy = {
|
|
9
9
|
enabled: boolean;
|
|
10
10
|
changedAt?: string;
|
|
11
11
|
};
|
|
@@ -16,11 +16,11 @@ export type LocalFsPolicy = {
|
|
|
16
16
|
/** Daemon auto-update on this machine. Absent means on. */
|
|
17
17
|
autoUpdate?: LocalCommandsPolicy;
|
|
18
18
|
};
|
|
19
|
-
|
|
19
|
+
type FsMount = {
|
|
20
20
|
path: string;
|
|
21
21
|
mode: FsMode;
|
|
22
22
|
};
|
|
23
|
-
|
|
23
|
+
type FsRefusal = {
|
|
24
24
|
path: string;
|
|
25
25
|
layer: FsLayer;
|
|
26
26
|
reason: string;
|
|
@@ -104,3 +104,4 @@ export declare function resolveHostPath(effective: EffectiveFs, path: string, ac
|
|
|
104
104
|
allowMountRoot?: boolean;
|
|
105
105
|
}): Promise<string>;
|
|
106
106
|
export declare function fsFeatures(effective: EffectiveFs): string[];
|
|
107
|
+
export {};
|
|
@@ -1,40 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
/**
|
|
3
|
-
* Host commands (`kody.command.*`, ADR 0093): real OS processes on the
|
|
4
|
-
* daemon's machine, run as the user running the daemon. Foreground commands
|
|
5
|
-
* belong to one run; background jobs live in the daemon (not the run's
|
|
6
|
-
* workerd), so builds can outlast the run timeout and later runs can poll or
|
|
7
|
-
* kill them.
|
|
8
|
-
*/
|
|
9
|
-
export type HostCommandsDenialCode = 'execution_context_commands_off' | 'invalid_request' | 'not_found';
|
|
10
|
-
export declare class HostCommandError extends Error {
|
|
11
|
-
readonly code: HostCommandsDenialCode;
|
|
12
|
-
constructor(code: HostCommandsDenialCode, message: string);
|
|
13
|
-
}
|
|
14
|
-
export type HostCommandSpec = {
|
|
15
|
-
/**
|
|
16
|
-
* Shell command line, run with the user's shell (`$SHELL -c`, else
|
|
17
|
-
* /bin/sh). Windows: PowerShell (`pwsh`, else powershell.exe), or cmd.exe
|
|
18
|
-
* with `shell: 'cmd'`.
|
|
19
|
-
*/
|
|
20
|
-
command?: string;
|
|
21
|
-
/** Windows only: `powershell` (default) or `cmd`. */
|
|
22
|
-
shell?: WindowsShell;
|
|
23
|
-
/** Executable to run without a shell (with `args`). */
|
|
24
|
-
file?: string;
|
|
25
|
-
args?: Array<string>;
|
|
26
|
-
cwd?: string;
|
|
27
|
-
env?: Record<string, string>;
|
|
28
|
-
stdin?: string;
|
|
29
|
-
timeoutMs?: number;
|
|
30
|
-
maxOutputBytes?: number;
|
|
31
|
-
};
|
|
32
|
-
export type HostCommandLifecycle = 'status' | 'output' | 'kill' | 'list';
|
|
1
|
+
type HostCommandLifecycle = 'status' | 'output' | 'kill' | 'list';
|
|
33
2
|
/**
|
|
34
3
|
* Starts (`run`, `start`) are authorized and audited; lifecycle calls on
|
|
35
4
|
* existing commands are authorized (grant, permission, token scope) only.
|
|
36
5
|
*/
|
|
37
|
-
|
|
6
|
+
type HostCommandAuthorize = (input: {
|
|
38
7
|
commandId: string;
|
|
39
8
|
command: string;
|
|
40
9
|
cwd: string;
|
|
@@ -60,20 +29,6 @@ export type HostCommandRunContext = {
|
|
|
60
29
|
signal: AbortSignal;
|
|
61
30
|
authorize: HostCommandAuthorize;
|
|
62
31
|
};
|
|
63
|
-
export declare const hostCommandLimits: {
|
|
64
|
-
foregroundDefaultTimeoutMs: number;
|
|
65
|
-
foregroundMaxTimeoutMs: number;
|
|
66
|
-
backgroundDefaultTimeoutMs: number;
|
|
67
|
-
backgroundMaxTimeoutMs: number;
|
|
68
|
-
defaultOutputBytes: number;
|
|
69
|
-
maxOutputBytes: number;
|
|
70
|
-
backgroundBufferBytes: number;
|
|
71
|
-
maxOutputReadBytes: number;
|
|
72
|
-
maxBackgroundJobs: number;
|
|
73
|
-
keepFinishedJobsMs: number;
|
|
74
|
-
maxCommandChars: number;
|
|
75
|
-
maxStdinBytes: number;
|
|
76
|
-
};
|
|
77
32
|
export type HostCommandsOptions = {
|
|
78
33
|
/** This machine's local opt-in (`kody context commands on`). */
|
|
79
34
|
localEnabled?: boolean;
|
|
@@ -231,3 +186,4 @@ export declare class HostCommands {
|
|
|
231
186
|
runningBackground(): number;
|
|
232
187
|
idle(): Promise<void>;
|
|
233
188
|
}
|
|
189
|
+
export {};
|
|
@@ -14,19 +14,12 @@ export type RunnerLockHolder = {
|
|
|
14
14
|
startedAt: string;
|
|
15
15
|
};
|
|
16
16
|
export declare function lockPathFor(statePath: string): string;
|
|
17
|
-
export declare function isAlive(pid: number): boolean;
|
|
18
17
|
export type HolderCheck = {
|
|
19
18
|
isAlive?: (pid: number) => boolean;
|
|
20
19
|
/** The process's command line, or null when it cannot be read. */
|
|
21
20
|
commandOf?: (pid: number) => string | null;
|
|
22
21
|
bootTimeMs?: number;
|
|
23
22
|
};
|
|
24
|
-
/**
|
|
25
|
-
* Whether the recorded holder still runs. The lock outlives reboots and
|
|
26
|
-
* crashes, so a live pid alone is not enough: the pid may now belong to an
|
|
27
|
-
* unrelated process. It must have started after boot and still be a daemon.
|
|
28
|
-
*/
|
|
29
|
-
export declare function isLiveHolder(holder: RunnerLockHolder, check?: HolderCheck): boolean;
|
|
30
23
|
/** The live daemon holding this context's lock, if any. */
|
|
31
24
|
export declare function runnerLockHolder(path: string, check?: HolderCheck): RunnerLockHolder | null;
|
|
32
25
|
export type RunnerLock = {
|
|
@@ -39,7 +32,6 @@ export type RunnerLock = {
|
|
|
39
32
|
export declare function acquireRunnerLock(path: string, info: Omit<RunnerLockHolder, 'pid'> & {
|
|
40
33
|
pid?: number;
|
|
41
34
|
}, check?: HolderCheck): RunnerLock;
|
|
42
|
-
export declare function describeLauncher(launcher: RunnerLauncher | undefined): "the systemd service" | "the launchd service" | "the Task Scheduler task" | "the Kody desktop app" | "a terminal";
|
|
43
35
|
export declare function describeHolder(holder: RunnerLockHolder): string;
|
|
44
36
|
/**
|
|
45
37
|
* Other local `kody daemon` processes for this context, by command line
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type CommandRunner, type ServiceManager
|
|
1
|
+
import { type CommandRunner, type ServiceManager } from './service.js';
|
|
2
2
|
export type ServiceCommandEnv = {
|
|
3
3
|
apiUrl: string;
|
|
4
4
|
clientVersion: string;
|
|
@@ -40,8 +40,15 @@ export declare function installDaemonService(env: ServiceCommandEnv, input: {
|
|
|
40
40
|
cliVersion: string;
|
|
41
41
|
unitPath: string | null;
|
|
42
42
|
logPath: string | null;
|
|
43
|
-
stopped:
|
|
44
|
-
|
|
43
|
+
stopped: {
|
|
44
|
+
reason: string;
|
|
45
|
+
at: string;
|
|
46
|
+
} | null;
|
|
47
|
+
problems: Array<{
|
|
48
|
+
code: "unsupported-platform" | "running-as-root" | "not-installed" | "context-missing" | "context-stopped" | "unit-outdated" | "program-missing" | "ephemeral-program" | "user-manager-unavailable" | "linger-disabled" | "linger-unknown" | "not-enabled" | "not-running" | "restart-pending" | "key-needs-passphrase";
|
|
49
|
+
message: string;
|
|
50
|
+
fix: string | null;
|
|
51
|
+
}>;
|
|
45
52
|
}>;
|
|
46
53
|
export declare function autoUpdateStatus(clientVersion: string): Promise<{
|
|
47
54
|
enabled: boolean;
|
|
@@ -52,11 +59,14 @@ export declare function autoUpdateStatus(clientVersion: string): Promise<{
|
|
|
52
59
|
lastCheckAt: string | null;
|
|
53
60
|
lastError: string | null;
|
|
54
61
|
store: string;
|
|
55
|
-
recent:
|
|
62
|
+
recent: {
|
|
63
|
+
at: string;
|
|
64
|
+
from: string;
|
|
65
|
+
to: string;
|
|
66
|
+
outcome: "installed" | "relaunched" | "failed" | "bad";
|
|
67
|
+
detail?: string;
|
|
68
|
+
}[];
|
|
56
69
|
}>;
|
|
57
|
-
export declare function formatAutoUpdateLine(status: Awaited<ReturnType<typeof autoUpdateStatus>>): string;
|
|
58
|
-
/** The live daemon running this context on this machine (any launcher). */
|
|
59
|
-
export declare function runnerFor(apiUrl: string, ecid: string): import("./runner-lock.js").RunnerLockHolder | null;
|
|
60
70
|
/** `kody daemon auto-update on|off|status`. */
|
|
61
71
|
export declare function runAutoUpdateCommand(env: Pick<ServiceCommandEnv, 'write' | 'json' | 'clientVersion'>, action: string | undefined): Promise<number>;
|
|
62
72
|
/** `kody daemon install|status|logs|restart|uninstall`. */
|
|
@@ -88,4 +98,3 @@ export declare function offerUninstallAfterRevoke(env: ServiceCommandEnv, input:
|
|
|
88
98
|
* finish.
|
|
89
99
|
*/
|
|
90
100
|
export declare function runUpdate(env: ServiceCommandEnv): Promise<0 | 1>;
|
|
91
|
-
export { lingerCommand, runCommand };
|
|
@@ -19,10 +19,6 @@ export declare const stayStoppedExitCode = 0;
|
|
|
19
19
|
export declare function serviceManagerFor(platform?: NodeJS.Platform): "systemd" | "launchd" | "taskscheduler" | null;
|
|
20
20
|
export declare function isServiceManager(value: unknown): value is ServiceManager;
|
|
21
21
|
export declare const unsupportedPlatformMessage = "Running kody daemon as a background service is supported on Linux (systemd), macOS (launchd), and Windows (Task Scheduler). Keep `kody daemon` running in a terminal on this machine instead.";
|
|
22
|
-
export declare function serviceName(ecid: string): string;
|
|
23
|
-
export declare function launchdLabel(ecid: string): string;
|
|
24
|
-
/** The task's full Task Scheduler name, in a `\\Kody\\` folder of its own. */
|
|
25
|
-
export declare function scheduledTaskName(ecid: string): string;
|
|
26
22
|
export type ServicePaths = {
|
|
27
23
|
manager: ServiceManager;
|
|
28
24
|
unitPath: string;
|
|
@@ -58,11 +54,6 @@ export type UnitInput = {
|
|
|
58
54
|
env?: NodeJS.ProcessEnv;
|
|
59
55
|
platform?: NodeJS.Platform;
|
|
60
56
|
};
|
|
61
|
-
/** Services do not see the login shell's PATH; give them a fixed one. */
|
|
62
|
-
export declare function servicePath(input: {
|
|
63
|
-
node: string;
|
|
64
|
-
platform?: NodeJS.Platform;
|
|
65
|
-
}): string;
|
|
66
57
|
export declare function systemdUnit(input: UnitInput): string;
|
|
67
58
|
export declare function launchdPlist(input: UnitInput): string;
|
|
68
59
|
/**
|
|
@@ -90,19 +81,18 @@ export type CommandRunner = (command: string, args: Array<string>) => {
|
|
|
90
81
|
stdout: string;
|
|
91
82
|
stderr: string;
|
|
92
83
|
};
|
|
93
|
-
export declare const runCommand: CommandRunner;
|
|
94
84
|
export type ServiceRuntimeState = {
|
|
95
85
|
pid: number;
|
|
96
86
|
version: string;
|
|
97
87
|
service: ServiceManager | null;
|
|
98
88
|
startedAt: string;
|
|
99
89
|
};
|
|
100
|
-
|
|
90
|
+
type StoppedState = {
|
|
101
91
|
reason: string;
|
|
102
92
|
at: string;
|
|
103
93
|
};
|
|
104
94
|
export declare function writeJson(path: string, value: unknown): void;
|
|
105
|
-
|
|
95
|
+
type ServiceProblem = {
|
|
106
96
|
code: 'unsupported-platform' | 'running-as-root' | 'not-installed' | 'context-missing' | 'context-stopped' | 'unit-outdated' | 'program-missing' | 'ephemeral-program' | 'user-manager-unavailable' | 'linger-disabled' | 'linger-unknown' | 'not-enabled' | 'not-running' | 'restart-pending' | 'key-needs-passphrase';
|
|
107
97
|
message: string;
|
|
108
98
|
fix: string | null;
|
|
@@ -122,7 +112,6 @@ export type ServiceStatus = {
|
|
|
122
112
|
stopped: StoppedState | null;
|
|
123
113
|
problems: Array<ServiceProblem>;
|
|
124
114
|
};
|
|
125
|
-
export declare function lingerCommand(user?: string): string;
|
|
126
115
|
/** Everything `kody daemon status` reports, each problem with its fix. */
|
|
127
116
|
export declare function serviceStatus(input: {
|
|
128
117
|
apiUrl: string;
|
|
@@ -188,3 +177,4 @@ export declare function disableOwnService(input: {
|
|
|
188
177
|
}): void;
|
|
189
178
|
/** Keeps the service log bounded: copy-truncate, since the manager holds it open. */
|
|
190
179
|
export declare function rotateLog(path: string, maxBytes?: number): void;
|
|
180
|
+
export {};
|
|
@@ -12,8 +12,6 @@ export type WindowsLaunch = {
|
|
|
12
12
|
verbatim: boolean;
|
|
13
13
|
};
|
|
14
14
|
type FileExists = (path: string) => boolean;
|
|
15
|
-
/** Case-insensitive env read: Windows env keys are case-insensitive. */
|
|
16
|
-
export declare function windowsEnv(env: NodeJS.ProcessEnv, name: string): string | undefined;
|
|
17
15
|
/** Resolves a command name the way cmd.exe does: PATH x PATHEXT. */
|
|
18
16
|
export declare function resolveWindowsExecutable(file: string, env: NodeJS.ProcessEnv, exists?: FileExists): string | null;
|
|
19
17
|
/** cross-spawn's argument escaping for `cmd.exe /d /s /c "..."`. */
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* and is not warned. Helpers that build headers in a variable, and header
|
|
13
13
|
* spreads, still warn: the scanner cannot see `headers-only` on those bags.
|
|
14
14
|
*/
|
|
15
|
-
export declare const fetchBodySecretResolutionWarningLead = "WARNING: a fetch sends a body without x-kody-secret-resolution. The gateway fills {{secret:name}} anywhere in that body, so text this package did not write can fail with Secret \"name\" was not found, or a saved secret can be sent to a host the credential allows. Set x-kody-secret-resolution: headers-only on that fetch (headers still resolve). This does not block publish.";
|
|
16
15
|
export type FetchBodySecretResolutionHit = {
|
|
17
16
|
line: number;
|
|
18
17
|
};
|
|
@@ -7,31 +7,31 @@ import {
|
|
|
7
7
|
gitCredentialHostFromMcpUrl,
|
|
8
8
|
resolveCliTokenLifetime,
|
|
9
9
|
setupGitDefaultScopes
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-PQPGW43A.js";
|
|
11
11
|
import "./chunk-6ZYUGXVW.js";
|
|
12
12
|
import {
|
|
13
13
|
ensureOpenApiCredentials
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SX3MQHCJ.js";
|
|
15
15
|
import "./chunk-GVSGNTG6.js";
|
|
16
16
|
import "./chunk-CWWHR4FH.js";
|
|
17
17
|
import "./chunk-CASGRYOF.js";
|
|
18
18
|
import {
|
|
19
19
|
callOpenApiOperation
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-F34Q7D5C.js";
|
|
21
21
|
import "./chunk-46IJPEID.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-OKIL5IUB.js";
|
|
23
23
|
import {
|
|
24
24
|
loadStoredApiToken
|
|
25
|
-
} from "./chunk-
|
|
26
|
-
import "./chunk-
|
|
25
|
+
} from "./chunk-2Y4VVWIL.js";
|
|
26
|
+
import "./chunk-62N7DN7L.js";
|
|
27
27
|
import "./chunk-NHRYNRXG.js";
|
|
28
28
|
import {
|
|
29
29
|
loadCredentials
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-RE7LNPRO.js";
|
|
31
31
|
import {
|
|
32
32
|
defaultApiUrl,
|
|
33
33
|
defaultMcpUrl
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NKH2L5RA.js";
|
|
35
35
|
import "./chunk-UW6AWLXX.js";
|
|
36
36
|
|
|
37
37
|
// src/git-credential.ts
|
|
@@ -168,4 +168,4 @@ export {
|
|
|
168
168
|
parseGitCredentialInput,
|
|
169
169
|
readGitCredentialStdin
|
|
170
170
|
};
|
|
171
|
-
//# sourceMappingURL=git-credential-
|
|
171
|
+
//# sourceMappingURL=git-credential-L5AR3JRT.js.map
|
package/dist/help.d.ts
CHANGED
|
@@ -5,9 +5,3 @@ export declare function buildUsage(input?: {
|
|
|
5
5
|
resolution?: StoreResolution;
|
|
6
6
|
orgs?: Array<ListedOrg>;
|
|
7
7
|
}): string;
|
|
8
|
-
/**
|
|
9
|
-
* Build usage on demand. Do not call at module load: reading the credential
|
|
10
|
-
* store (and pulling keyring) on every `kody --version` blows the startup
|
|
11
|
-
* budget. Callers that need the offline org list pass `mcpUrl` / `backend`.
|
|
12
|
-
*/
|
|
13
|
-
export declare function usage(input?: Parameters<typeof buildUsage>[0]): string;
|
package/dist/host-catalog.d.ts
CHANGED
|
@@ -1,19 +1,16 @@
|
|
|
1
1
|
import { type ProcessInfo } from './process-info.js';
|
|
2
2
|
export declare const hostIds: readonly ["amazon-q", "antigravity", "claude-code", "claude-desktop", "cline", "cline-cli", "codex", "copilot-cli", "cursor", "fx", "gemini-cli", "goose", "grok-build", "jetbrains", "kilo-code", "kimi-code", "kiro-cli", "mastracode", "mcporter", "opencode", "pi", "qwen-code", "visual-studio", "vscode", "vscode-insiders", "windsurf", "zed"];
|
|
3
3
|
export type HostId = (typeof hostIds)[number];
|
|
4
|
-
|
|
4
|
+
type HostKind = 'file' | 'command' | 'manual';
|
|
5
5
|
export type HostDefinition = {
|
|
6
6
|
id: HostId;
|
|
7
7
|
label: string;
|
|
8
8
|
kind: HostKind;
|
|
9
9
|
matches: (process: ProcessInfo) => boolean;
|
|
10
10
|
};
|
|
11
|
-
export declare function isHostId(value: string): value is HostId;
|
|
12
11
|
export declare function parseHostIds(raw: string): Array<HostId>;
|
|
13
12
|
export declare const hostCatalog: ReadonlyArray<HostDefinition>;
|
|
14
13
|
export declare function hostById(id: HostId): HostDefinition;
|
|
15
|
-
export declare function configHome(home: string, platform?: NodeJS.Platform): string;
|
|
16
|
-
export declare function applicationSupport(home: string, app: string, platform?: NodeJS.Platform): string;
|
|
17
14
|
export declare function hostConfigPath(input: {
|
|
18
15
|
id: HostId;
|
|
19
16
|
home: string;
|
|
@@ -21,7 +18,7 @@ export declare function hostConfigPath(input: {
|
|
|
21
18
|
project: boolean;
|
|
22
19
|
platform?: NodeJS.Platform;
|
|
23
20
|
}): string | null;
|
|
24
|
-
export declare function encodeBase64Url(value: string): string;
|
|
25
21
|
export declare function buildCursorInstallUrl(mcpServerUrl: string): string;
|
|
26
22
|
export declare function buildVsCodeInstallUrl(mcpServerUrl: string, scheme?: 'vscode' | 'vscode-insiders'): string;
|
|
27
23
|
export declare function buildGooseInstallUrl(mcpServerUrl: string): string;
|
|
24
|
+
export {};
|
package/dist/host-config.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
declare const leftoverHostIds: readonly ["amazon-q", "qwen-code", "visual-studio", "vscode-insiders"];
|
|
2
2
|
export type LeftoverHostId = (typeof leftoverHostIds)[number];
|
|
3
|
-
export declare function leftoverRemoteEntry(id: LeftoverHostId, mcpUrl: string): Record<string, unknown>;
|
|
4
|
-
export declare function sameRemoteUrl(entry: unknown, mcpUrl: string): boolean;
|
|
5
3
|
export declare function mergeHostDocument(input: {
|
|
6
4
|
id: LeftoverHostId;
|
|
7
5
|
existing: string | null;
|
|
@@ -21,3 +19,4 @@ export declare function writeMergedConfig(input: {
|
|
|
21
19
|
path: string;
|
|
22
20
|
changed: boolean;
|
|
23
21
|
}>;
|
|
22
|
+
export {};
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
hostCatalog,
|
|
10
10
|
hostConfigPath,
|
|
11
11
|
parseHostIds
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-IOG54R4P.js";
|
|
13
13
|
import {
|
|
14
14
|
which
|
|
15
15
|
} from "./chunk-6ZYUGXVW.js";
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
} from "./chunk-GVSGNTG6.js";
|
|
19
19
|
import {
|
|
20
20
|
onboardingUrl
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-NKH2L5RA.js";
|
|
22
22
|
import {
|
|
23
23
|
__commonJS,
|
|
24
24
|
__require,
|
|
@@ -10772,8 +10772,6 @@ function statusHeadline(result) {
|
|
|
10772
10772
|
}
|
|
10773
10773
|
}
|
|
10774
10774
|
export {
|
|
10775
|
-
formatInstallReport,
|
|
10776
|
-
noRunningAgentsMessage,
|
|
10777
10775
|
runInstall
|
|
10778
10776
|
};
|
|
10779
|
-
//# sourceMappingURL=install-
|
|
10777
|
+
//# sourceMappingURL=install-24DK5RBH.js.map
|