@kwonye/mcpx 0.1.104 → 0.1.106
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/adapters/codex.d.ts +2 -0
- package/dist/adapters/index.d.ts +2 -1
- package/dist/adapters/json.d.ts +26 -0
- package/dist/adapters/pi.d.ts +9 -0
- package/dist/chunk-0xt563m1.js +126 -0
- package/dist/{chunk-s9v1epnk.js → chunk-1mrkz29t.js} +71 -56
- package/dist/{chunk-31brdz5s.js → chunk-1v66g9d6.js} +4 -3
- package/dist/chunk-1yq3yb66.js +126 -0
- package/dist/chunk-27mq4agf.js +33 -0
- package/dist/{chunk-941dqsx2.js → chunk-4aafp444.js} +8175 -8066
- package/dist/chunk-4xym942z.js +36 -0
- package/dist/{chunk-tnhekcpv.js → chunk-56z18csx.js} +1 -1
- package/dist/{chunk-bnbz55g6.js → chunk-65kshh9w.js} +1 -1
- package/dist/{chunk-xydajvzg.js → chunk-7ky3rsw9.js} +1 -1
- package/dist/chunk-7rq88hb3.js +563 -0
- package/dist/chunk-8v13hqrp.js +825 -0
- package/dist/chunk-a2gen8bn.js +730 -0
- package/dist/{chunk-wq4zd3t7.js → chunk-brxwa30j.js} +130 -111
- package/dist/chunk-chaj8a8b.js +45 -0
- package/dist/chunk-e96643mj.js +26 -0
- package/dist/{chunk-02r7k4ax.js → chunk-ew06e41w.js} +12 -6
- package/dist/chunk-ezk8txcy.js +23 -0
- package/dist/{chunk-cqenqnxk.js → chunk-grkz21sq.js} +35 -3
- package/dist/{chunk-12vgqm89.js → chunk-gvjxpk98.js} +1 -1
- package/dist/chunk-h9kp47rp.js +18 -0
- package/dist/chunk-hahs24dv.js +127 -0
- package/dist/{chunk-z34m83m4.js → chunk-jv0s0cp6.js} +5 -3
- package/dist/{chunk-enzmq965.js → chunk-n0462d52.js} +1 -1
- package/dist/chunk-nh6hhv29.js +138 -0
- package/dist/chunk-p7yzyt87.js +19426 -0
- package/dist/chunk-q86c5s6r.js +7 -0
- package/dist/chunk-qf8bj9y7.js +254 -0
- package/dist/chunk-t20f49g3.js +30 -0
- package/dist/{chunk-b58zsdp4.js → chunk-v041118a.js} +17 -5
- package/dist/{chunk-91vcwk5m.js → chunk-v14bg5yp.js} +1 -1
- package/dist/chunk-wvzap0na.js +18166 -0
- package/dist/chunk-wztmp5b4.js +30479 -0
- package/dist/chunk-xvqr1q9b.js +14 -0
- package/dist/{chunk-0xhdyt4z.js → chunk-yj7mpczw.js} +17 -5
- package/dist/chunk-yr0txkw0.js +31 -0
- package/dist/cli.js +3977 -1045
- package/dist/core/adoption.d.ts +62 -0
- package/dist/core/analytics.d.ts +17 -0
- package/dist/core/consumers.d.ts +8 -0
- package/dist/core/control.d.ts +12 -0
- package/dist/core/daemon.d.ts +2 -2
- package/dist/core/file-state.d.ts +5 -0
- package/dist/core/harnesses.d.ts +25 -0
- package/dist/core/index.d.ts +17 -7
- package/dist/core/index.js +128 -62
- package/dist/core/managed-index-lock.d.ts +1 -1
- package/dist/core/management.d.ts +32 -0
- package/dist/core/native-document.d.ts +4 -0
- package/dist/core/operations.d.ts +52 -0
- package/dist/core/paths.d.ts +2 -0
- package/dist/core/plugin-manager.d.ts +4 -1
- package/dist/core/plugin-projections.d.ts +1 -0
- package/dist/core/runtime-entry.d.ts +6 -0
- package/dist/core/runtime-snapshot.d.ts +6 -0
- package/dist/core/secret-keychain.d.ts +31 -0
- package/dist/core/secrets.d.ts +12 -2
- package/dist/core/served-skills.d.ts +62 -0
- package/dist/core/share.d.ts +71 -0
- package/dist/core/skills.d.ts +7 -0
- package/dist/core/status.d.ts +1 -0
- package/dist/core/sync-plan.d.ts +14 -0
- package/dist/core/sync.d.ts +3 -0
- package/dist/core/telemetry.d.ts +2 -2
- package/dist/core/tui.d.ts +20 -0
- package/dist/core/verify-upstreams.d.ts +4 -0
- package/dist/core/work-limiter.d.ts +10 -0
- package/dist/gateway/server.d.ts +2 -0
- package/dist/types.d.ts +72 -1
- package/dist/util/fs.d.ts +2 -0
- package/dist/version.d.ts +1 -1
- package/package.json +1 -1
- package/dist/adapters/opencode.d.ts +0 -11
- package/dist/chunk-cz8cdmw1.js +0 -344
- package/dist/chunk-z1k63fa3.js +0 -3760
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { verifyUpstreams } from "./verify-upstreams.js";
|
|
3
|
+
import type { UpstreamServerSpec } from "../types.js";
|
|
4
|
+
import { SecretsManager } from "./secrets.js";
|
|
5
|
+
declare const itemSchema: z.ZodObject<{
|
|
6
|
+
id: z.ZodString;
|
|
7
|
+
harness: z.ZodString;
|
|
8
|
+
kind: z.ZodEnum<{
|
|
9
|
+
mcp: "mcp";
|
|
10
|
+
skill: "skill";
|
|
11
|
+
package: "package";
|
|
12
|
+
}>;
|
|
13
|
+
name: z.ZodString;
|
|
14
|
+
path: z.ZodString;
|
|
15
|
+
nativeKey: z.ZodString;
|
|
16
|
+
fingerprint: z.ZodString;
|
|
17
|
+
action: z.ZodEnum<{
|
|
18
|
+
unsupported: "unsupported";
|
|
19
|
+
import: "import";
|
|
20
|
+
reuse: "reuse";
|
|
21
|
+
conflict: "conflict";
|
|
22
|
+
}>;
|
|
23
|
+
canonicalId: z.ZodString;
|
|
24
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
25
|
+
reload: z.ZodString;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export declare const adoptionPlanSchema: z.ZodObject<{
|
|
28
|
+
id: z.ZodUUID;
|
|
29
|
+
createdAt: z.ZodString;
|
|
30
|
+
configHash: z.ZodString;
|
|
31
|
+
items: z.ZodArray<z.ZodObject<{
|
|
32
|
+
id: z.ZodString;
|
|
33
|
+
harness: z.ZodString;
|
|
34
|
+
kind: z.ZodEnum<{
|
|
35
|
+
mcp: "mcp";
|
|
36
|
+
skill: "skill";
|
|
37
|
+
package: "package";
|
|
38
|
+
}>;
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
path: z.ZodString;
|
|
41
|
+
nativeKey: z.ZodString;
|
|
42
|
+
fingerprint: z.ZodString;
|
|
43
|
+
action: z.ZodEnum<{
|
|
44
|
+
unsupported: "unsupported";
|
|
45
|
+
import: "import";
|
|
46
|
+
reuse: "reuse";
|
|
47
|
+
conflict: "conflict";
|
|
48
|
+
}>;
|
|
49
|
+
canonicalId: z.ZodString;
|
|
50
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
51
|
+
reload: z.ZodString;
|
|
52
|
+
}, z.core.$strip>>;
|
|
53
|
+
errors: z.ZodArray<z.ZodString>;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type AdoptionPlan = z.infer<typeof adoptionPlanSchema>;
|
|
56
|
+
export type AdoptionItem = z.infer<typeof itemSchema>;
|
|
57
|
+
export declare function protectServerSecrets(name: string, spec: UpstreamServerSpec, secrets?: SecretsManager): UpstreamServerSpec;
|
|
58
|
+
/** Discovery is read-only; plans contain metadata and hashes, never credentials. */
|
|
59
|
+
export declare function planAdoption(targets?: string[]): AdoptionPlan;
|
|
60
|
+
export declare function applyAdoption(rawPlan: AdoptionPlan, selectedIds?: string[], verify?: typeof verifyUpstreams): Promise<import("./operations.js").Operation>;
|
|
61
|
+
export {};
|
|
62
|
+
//# sourceMappingURL=adoption.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function getMachineId(): string;
|
|
2
|
+
/**
|
|
3
|
+
* Capture a named event with optional properties.
|
|
4
|
+
* The call is a no-op when PostHog is not configured so the CLI always works.
|
|
5
|
+
*/
|
|
6
|
+
export declare function capture(event: string, properties?: Record<string, unknown>): void;
|
|
7
|
+
/**
|
|
8
|
+
* Capture an unhandled exception.
|
|
9
|
+
* The call is a no-op when PostHog is not configured.
|
|
10
|
+
*/
|
|
11
|
+
export declare function captureException(error: unknown, additionalProperties?: Record<string, unknown>): void;
|
|
12
|
+
/**
|
|
13
|
+
* Flush all pending events and shut down the PostHog client.
|
|
14
|
+
* Must be awaited before the CLI process exits.
|
|
15
|
+
*/
|
|
16
|
+
export declare function shutdown(): Promise<void>;
|
|
17
|
+
//# sourceMappingURL=analytics.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { McpxConfig } from "../types.js";
|
|
2
|
+
import { SecretsManager } from "./secrets.js";
|
|
3
|
+
export declare function consumerToken(config: McpxConfig, id: string, projectPath?: string, secrets?: SecretsManager): string;
|
|
4
|
+
export declare function resolveConsumer(config: McpxConfig, token: string, secrets?: SecretsManager): {
|
|
5
|
+
id: string;
|
|
6
|
+
projectPath?: string;
|
|
7
|
+
} | null;
|
|
8
|
+
//# sourceMappingURL=consumers.d.ts.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { type Operation } from "./operations.js";
|
|
2
|
+
export declare const CONTROL_VERSION = 1;
|
|
3
|
+
export declare function controlSocketPath(): string;
|
|
4
|
+
export declare function coordinate<T>(work: () => Promise<T>): Promise<T>;
|
|
5
|
+
export declare function startControlServer(): Promise<() => Promise<void>>;
|
|
6
|
+
export declare function controlRequest<T = unknown>(method: string, args?: unknown[]): Promise<T>;
|
|
7
|
+
export declare function ensureControlService(cliPath: string): Promise<void>;
|
|
8
|
+
export declare function subscribeControlEvents(listener: (event: {
|
|
9
|
+
type: string;
|
|
10
|
+
operation?: Operation;
|
|
11
|
+
}) => void, onError?: (error: Error) => void): () => void;
|
|
12
|
+
//# sourceMappingURL=control.d.ts.map
|
package/dist/core/daemon.d.ts
CHANGED
|
@@ -21,10 +21,10 @@ export declare function resolveGatewayPort(config: McpxConfig, secrets?: Secrets
|
|
|
21
21
|
}>;
|
|
22
22
|
export declare function getDaemonStatus(config: McpxConfig): DaemonStatus;
|
|
23
23
|
export declare function startDaemon(config: McpxConfig, cliPath: string, secrets: SecretsManager): Promise<DaemonStartResult>;
|
|
24
|
-
export declare function stopDaemon(): {
|
|
24
|
+
export declare function stopDaemon(): Promise<{
|
|
25
25
|
stopped: boolean;
|
|
26
26
|
message: string;
|
|
27
|
-
}
|
|
27
|
+
}>;
|
|
28
28
|
export declare function restartDaemon(config: McpxConfig, cliPath: string, secrets: SecretsManager): Promise<DaemonStartResult>;
|
|
29
29
|
export declare function readDaemonLogs(maxLines?: number): string;
|
|
30
30
|
export declare function runDaemonForeground(config: McpxConfig, port: number, secrets: SecretsManager): Promise<void>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Hash the directory entry itself; never traverse a symlink into another tree. */
|
|
2
|
+
export declare function pathFingerprint(target: string): string | null;
|
|
3
|
+
export declare function processAlive(pid: number): boolean;
|
|
4
|
+
export declare function lockOwnerAlive(lockPath: string): boolean;
|
|
5
|
+
//# sourceMappingURL=file-state.d.ts.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import type { ClientAdapter, McpxConfig } from "../types.js";
|
|
2
|
+
export type SyncMode = "observe" | "selected" | "automatic";
|
|
3
|
+
export interface HarnessInstallation {
|
|
4
|
+
id: string;
|
|
5
|
+
harness: string;
|
|
6
|
+
label: string;
|
|
7
|
+
scope: "global" | "project";
|
|
8
|
+
projectPath?: string;
|
|
9
|
+
configPath: string | null;
|
|
10
|
+
skillPaths: string[];
|
|
11
|
+
detected: boolean;
|
|
12
|
+
mode: SyncMode;
|
|
13
|
+
transports: string[];
|
|
14
|
+
components: string[];
|
|
15
|
+
reload: string;
|
|
16
|
+
sync?: McpxConfig["clients"][string];
|
|
17
|
+
}
|
|
18
|
+
export declare function installationAdapters(config: McpxConfig): Array<{
|
|
19
|
+
installation: HarnessInstallation;
|
|
20
|
+
adapter: ClientAdapter;
|
|
21
|
+
}>;
|
|
22
|
+
export declare function listHarnesses(config: McpxConfig): HarnessInstallation[];
|
|
23
|
+
/** The same target selection applies to previews and every sync entry point. */
|
|
24
|
+
export declare function synchronizationTargets(config: McpxConfig, targets?: string[]): string[];
|
|
25
|
+
//# sourceMappingURL=harnesses.d.ts.map
|
package/dist/core/index.d.ts
CHANGED
|
@@ -10,11 +10,14 @@ export { runOAuthLogin, getOAuthAccessToken, isOAuthReference, oauthReferenceSer
|
|
|
10
10
|
export type { OAuthCodeReceiver, OAuthSupport, OAuthSupportProbe, OAuthSecretNames, OAuthCredentialStatus, OAuthProgressEvent, RunOAuthLoginOptions } from "./oauth.js";
|
|
11
11
|
export { getDaemonStatus, startDaemon, stopDaemon, restartDaemon, readDaemonLogs, runDaemonForeground } from "./daemon.js";
|
|
12
12
|
export type { DaemonStatus, DaemonStartResult } from "./daemon.js";
|
|
13
|
-
export { syncAllClients, getGatewayUrl, getGatewayInternalUrl, persistSyncState } from "./sync.js";
|
|
14
|
-
export type { SyncSummary } from "./sync.js";
|
|
13
|
+
export { synchronizeClients, syncAllClients, getGatewayUrl, getGatewayInternalUrl, persistSyncState } from "./sync.js";
|
|
14
|
+
export type { SyncOptions, SyncSummary } from "./sync.js";
|
|
15
15
|
export { addServer, removeServer, updateServer, setServerEnabled, setProjectServerEnabled, registerProject, unregisterProject, ensureGatewayToken, rotateGatewayToken } from "./registry.js";
|
|
16
|
-
export { listSkills, getSkill, saveSkill, deleteSkill } from "./skills.js";
|
|
17
|
-
export {
|
|
16
|
+
export { listSkills, getSkill, saveSkill, deleteSkill, customizeSkill, installSkillFromSource, validateSkillPackage, pinSkill, unpinSkill, updateSkill, rollbackSkill } from "./skills.js";
|
|
17
|
+
export { exportEnvironment, importEnvironment } from "./share.js";
|
|
18
|
+
export type { ShareEnvironment, ShareLock } from "./share.js";
|
|
19
|
+
export { SecretsManager, describeSecretBackend, getSecretBackend, switchSecretBackend } from "./secrets.js";
|
|
20
|
+
export type { SecretBackendSwitchResult } from "./secrets.js";
|
|
18
21
|
export { applyAuthReference, removeAuthReference, listAuthBindings, resolveAuthTarget, defaultAuthSecretName, maybePrefixBearer, secretRefName, toSecretRef } from "./server-auth.js";
|
|
19
22
|
export { buildStatusReport, STATUS_CLIENTS } from "./status.js";
|
|
20
23
|
export type { StatusReport, StatusServerEntry, StatusClientMapping, StatusAuthBinding } from "./status.js";
|
|
@@ -30,12 +33,19 @@ export { parseSource } from "./plugin-source.js";
|
|
|
30
33
|
export { readManifest, discoverComponents, hasManifest } from "./plugin-parse.js";
|
|
31
34
|
export { addMarketplace, removeMarketplace, refreshMarketplace, refreshMarketplaceWithPlugins, setMarketplaceAutoUpdate, listMarketplaces, listMarketplacePlugins, inspectMarketplacePlugin, installMarketplacePlugin, updateMarketplaceInstalledPlugin, } from "./marketplace.js";
|
|
32
35
|
export { startMarketplaceAutoUpdater, runMarketplaceAutoUpdate } from "./marketplace-updater.js";
|
|
33
|
-
export { inspectPlugin, installPlugin, preparePlugin, updatePlugin, uninstallPlugin, enablePlugin, disablePlugin, setPluginProjectOverride, resetPluginProjectOverride, approvePluginComponent, getPluginStatus, listPlugins, pluginConfigSet, pluginSync, resolvePluginId } from "./plugin-manager.js";
|
|
34
|
-
export { getConfigPath, getManagedIndexPath, getTelemetryPath } from "./paths.js";
|
|
36
|
+
export { inspectPlugin, installPlugin, preparePlugin, updatePlugin, pinPlugin, unpinPlugin, rollbackPlugin, uninstallPlugin, enablePlugin, disablePlugin, setPluginProjectOverride, resetPluginProjectOverride, approvePluginComponent, getPluginStatus, listPlugins, pluginConfigSet, pluginSync, resolvePluginId } from "./plugin-manager.js";
|
|
37
|
+
export { getConfigPath, getManagedIndexPath, getTelemetryPath, getSkillsDir, getSkillPackagesRoot } from "./paths.js";
|
|
35
38
|
export { checkForUpdates, getStagedUpdate, getStagedCliPath, clearStagedUpdate, compareVersions, shouldUseStagedCli } from "./update.js";
|
|
36
39
|
export type { UpdateStatus, StagedUpdateInfo } from "./update.js";
|
|
37
40
|
export { startBackgroundUpdateCheck, performUpdate, performRollback } from "./update-manager.js";
|
|
38
41
|
export { fetchRegistryServerDetail, selectBestPackage, extractRequiredInputs, mapRegistryToSpec } from "./registry-client.js";
|
|
39
42
|
export type { RequiredInput } from "./registry-client.js";
|
|
40
|
-
export type { McpxConfig, ClientId, ClientStatus, UpstreamServerSpec, HttpServerSpec, StdioServerSpec, GatewayConfig, ClientSyncState, ManagedIndex, ManagedEntry, ManagedClientState, ClientImportCandidate, ClientImportScanResult, ClientImportSkippedEntry, SyncImportReport, SyncImportedEntry, SyncDuplicateImportEntry, SyncImportConflictEntry, SyncImportErrorEntry, SyncResult, ManagedGatewayEntry, ProjectConfig, ProjectScope, ManagedPlugin, ManagedMarketplace, MarketplaceListing, MarketplacePluginDetail, MarketplaceFormat, PluginManifest, PluginComponent, PluginSource, DiscoveredComponents, DiscoveredComponent, PluginSyncInput, PluginSyncResult, Skill } from "../types.js";
|
|
43
|
+
export type { McpxConfig, ClientId, ClientStatus, UpstreamServerSpec, HttpServerSpec, StdioServerSpec, GatewayConfig, SecretBackendKind, ClientSyncState, ManagedIndex, ManagedEntry, ManagedClientState, ClientImportCandidate, ClientImportScanResult, ClientImportSkippedEntry, SyncImportReport, SyncImportedEntry, SyncDuplicateImportEntry, SyncImportConflictEntry, SyncImportErrorEntry, SyncResult, ManagedGatewayEntry, ProjectConfig, ProjectScope, ManagedPlugin, ManagedMarketplace, MarketplaceListing, MarketplacePluginDetail, MarketplaceFormat, PluginManifest, PluginComponent, PluginSource, DiscoveredComponents, DiscoveredComponent, PluginSyncInput, PluginSyncResult, Skill } from "../types.js";
|
|
44
|
+
export { controlRequest, ensureControlService, subscribeControlEvents } from "./control.js";
|
|
45
|
+
export { getManagementSnapshot } from "./management.js";
|
|
46
|
+
export type { ManagementSnapshot } from "./management.js";
|
|
47
|
+
export type { AdoptionPlan, AdoptionItem } from "./adoption.js";
|
|
48
|
+
export type { HarnessInstallation, SyncMode } from "./harnesses.js";
|
|
49
|
+
export type { Operation } from "./operations.js";
|
|
50
|
+
export { registerHarness } from "../adapters/index.js";
|
|
41
51
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/core/index.js
CHANGED
|
@@ -1,59 +1,56 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
extractRequiredInputs,
|
|
3
|
+
fetchRegistryServerDetail,
|
|
4
|
+
mapRegistryToSpec,
|
|
5
|
+
selectBestPackage
|
|
6
|
+
} from "../chunk-1yq3yb66.js";
|
|
7
|
+
import {
|
|
5
8
|
STATUS_CLIENTS,
|
|
9
|
+
buildStatusReport
|
|
10
|
+
} from "../chunk-nh6hhv29.js";
|
|
11
|
+
import {
|
|
12
|
+
applyAuthReference,
|
|
13
|
+
defaultAuthSecretName,
|
|
14
|
+
listAuthBindings,
|
|
15
|
+
maybePrefixBearer,
|
|
16
|
+
removeAuthReference,
|
|
17
|
+
resolveAuthTarget,
|
|
18
|
+
secretRefName,
|
|
19
|
+
toSecretRef
|
|
20
|
+
} from "../chunk-0xt563m1.js";
|
|
21
|
+
import {
|
|
22
|
+
exportEnvironment,
|
|
23
|
+
importEnvironment
|
|
24
|
+
} from "../chunk-qf8bj9y7.js";
|
|
25
|
+
import {
|
|
6
26
|
TELEMETRY_NOTICE_VERSION,
|
|
7
|
-
__resetOAuthSupportCache,
|
|
8
27
|
acknowledgeTelemetryNotice,
|
|
9
|
-
applyAuthReference,
|
|
10
28
|
architecture,
|
|
11
|
-
buildEnrichedPath,
|
|
12
|
-
buildStatusReport,
|
|
13
29
|
captureTelemetryEvent,
|
|
14
30
|
checkForUpdates,
|
|
15
|
-
clearOAuthCredentials,
|
|
16
31
|
clearStagedUpdate,
|
|
17
32
|
compareVersions,
|
|
18
33
|
countBucket,
|
|
19
|
-
defaultAuthSecretName,
|
|
20
34
|
defaultTelemetryPreferences,
|
|
21
35
|
durationBucket,
|
|
22
|
-
extractRequiredInputs,
|
|
23
|
-
fetchRegistryServerDetail,
|
|
24
36
|
flushTelemetry,
|
|
25
37
|
getDaemonStatus,
|
|
26
|
-
getOAuthAccessToken,
|
|
27
|
-
getOAuthCredentialStatus,
|
|
28
38
|
getStagedCliPath,
|
|
29
39
|
getStagedUpdate,
|
|
30
40
|
getTelemetryStatus,
|
|
31
41
|
initializeTelemetry,
|
|
32
|
-
isOAuthReference,
|
|
33
42
|
isTelemetryEnvironmentDisabled,
|
|
34
|
-
listAuthBindings,
|
|
35
43
|
loadTelemetryPreferences,
|
|
36
|
-
mapRegistryToSpec,
|
|
37
44
|
markTelemetryMilestone,
|
|
38
|
-
maybePrefixBearer,
|
|
39
|
-
oauthReferenceServerName,
|
|
40
|
-
oauthSecretNames,
|
|
41
45
|
performRollback,
|
|
42
46
|
performUpdate,
|
|
43
47
|
platformFamily,
|
|
44
|
-
probeHttpAuthRequirement,
|
|
45
|
-
probeOAuthSupport,
|
|
46
48
|
readDaemonLogs,
|
|
47
|
-
removeAuthReference,
|
|
48
49
|
reportTelemetryError,
|
|
49
50
|
resetTelemetryInstallationId,
|
|
50
|
-
resolveAuthTarget,
|
|
51
51
|
restartDaemon,
|
|
52
52
|
runDaemonForeground,
|
|
53
53
|
runMarketplaceAutoUpdate,
|
|
54
|
-
runOAuthLogin,
|
|
55
|
-
secretRefName,
|
|
56
|
-
selectBestPackage,
|
|
57
54
|
setTelemetryErrorReporter,
|
|
58
55
|
shouldUseStagedCli,
|
|
59
56
|
shutdownTelemetry,
|
|
@@ -61,10 +58,9 @@ import {
|
|
|
61
58
|
startDaemon,
|
|
62
59
|
startMarketplaceAutoUpdater,
|
|
63
60
|
stopDaemon,
|
|
64
|
-
toSecretRef,
|
|
65
61
|
updateTelemetryPreferences,
|
|
66
62
|
uptimeBucket
|
|
67
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-wvzap0na.js";
|
|
68
64
|
import {
|
|
69
65
|
addMarketplace,
|
|
70
66
|
inspectMarketplacePlugin,
|
|
@@ -76,79 +72,126 @@ import {
|
|
|
76
72
|
removeMarketplace,
|
|
77
73
|
setMarketplaceAutoUpdate,
|
|
78
74
|
updateMarketplaceInstalledPlugin
|
|
79
|
-
} from "../chunk-
|
|
75
|
+
} from "../chunk-1mrkz29t.js";
|
|
80
76
|
import {
|
|
81
|
-
PluginCache,
|
|
82
77
|
PluginDataManager,
|
|
83
78
|
PluginLifecycle,
|
|
84
79
|
PluginManager,
|
|
85
80
|
approvePluginComponent,
|
|
86
|
-
deleteSkill,
|
|
87
81
|
disablePlugin,
|
|
88
82
|
discoverComponents,
|
|
89
83
|
enablePlugin,
|
|
90
|
-
getGatewayInternalUrl,
|
|
91
|
-
getGatewayUrl,
|
|
92
84
|
getPluginStatus,
|
|
93
|
-
getSkill,
|
|
94
85
|
hasManifest,
|
|
95
86
|
inspectPlugin,
|
|
96
87
|
installPlugin,
|
|
97
88
|
listPlugins,
|
|
98
|
-
|
|
99
|
-
loadManagedIndex,
|
|
100
|
-
mutateActiveConfig,
|
|
101
|
-
mutateConfig,
|
|
102
|
-
mutateProjectConfig,
|
|
103
|
-
parseSource,
|
|
104
|
-
persistSyncState,
|
|
89
|
+
pinPlugin,
|
|
105
90
|
pluginConfigSet,
|
|
106
91
|
pluginSync,
|
|
107
92
|
preparePlugin,
|
|
108
|
-
pruneAllPluginProjections,
|
|
109
|
-
prunePluginProjections,
|
|
110
93
|
readManifest,
|
|
111
94
|
resetPluginProjectOverride,
|
|
112
95
|
resolvePluginId,
|
|
113
|
-
|
|
96
|
+
rollbackPlugin,
|
|
114
97
|
setPluginProjectOverride,
|
|
115
|
-
syncAllClients,
|
|
116
|
-
syncPluginsToClient,
|
|
117
98
|
uninstallPlugin,
|
|
99
|
+
unpinPlugin,
|
|
118
100
|
updatePlugin
|
|
119
|
-
} from "../chunk-
|
|
101
|
+
} from "../chunk-4aafp444.js";
|
|
120
102
|
import {
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
103
|
+
controlRequest,
|
|
104
|
+
ensureControlService,
|
|
105
|
+
getManagementSnapshot,
|
|
106
|
+
probeHttpAuthRequirement,
|
|
107
|
+
subscribeControlEvents
|
|
108
|
+
} from "../chunk-a2gen8bn.js";
|
|
109
|
+
import {
|
|
110
|
+
OAUTH_LOGIN_TIMEOUT_MS,
|
|
111
|
+
OAuthCancelledError,
|
|
112
|
+
OAuthLoginInProgressError,
|
|
113
|
+
__resetOAuthSupportCache,
|
|
114
|
+
buildEnrichedPath,
|
|
115
|
+
clearOAuthCredentials,
|
|
116
|
+
getGatewayInternalUrl,
|
|
117
|
+
getGatewayUrl,
|
|
118
|
+
getOAuthAccessToken,
|
|
119
|
+
getOAuthCredentialStatus,
|
|
120
|
+
isOAuthReference,
|
|
121
|
+
oauthReferenceServerName,
|
|
122
|
+
oauthSecretNames,
|
|
123
|
+
persistSyncState,
|
|
124
|
+
probeOAuthSupport,
|
|
125
|
+
pruneAllPluginProjections,
|
|
126
|
+
prunePluginProjections,
|
|
127
|
+
registerHarness,
|
|
128
|
+
runOAuthLogin,
|
|
129
|
+
syncAllClients,
|
|
130
|
+
syncPluginsToClient,
|
|
131
|
+
synchronizeClients
|
|
132
|
+
} from "../chunk-wztmp5b4.js";
|
|
132
133
|
import {
|
|
133
134
|
SecretNotFoundError,
|
|
134
135
|
SecretsManager,
|
|
135
136
|
UpstreamError,
|
|
136
137
|
addServer,
|
|
137
138
|
classifyUpstreamError,
|
|
139
|
+
describeSecretBackend,
|
|
138
140
|
ensureGatewayToken,
|
|
141
|
+
getSecretBackend,
|
|
139
142
|
registerProject,
|
|
140
143
|
removeServer,
|
|
141
144
|
rotateGatewayToken,
|
|
142
145
|
setProjectServerEnabled,
|
|
143
146
|
setServerEnabled,
|
|
147
|
+
switchSecretBackend,
|
|
144
148
|
unregisterProject,
|
|
145
149
|
updateServer
|
|
146
|
-
} from "../chunk-
|
|
150
|
+
} from "../chunk-8v13hqrp.js";
|
|
151
|
+
import {
|
|
152
|
+
loadManagedIndex
|
|
153
|
+
} from "../chunk-t20f49g3.js";
|
|
154
|
+
import {
|
|
155
|
+
mutateActiveConfig,
|
|
156
|
+
mutateConfig,
|
|
157
|
+
mutateProjectConfig
|
|
158
|
+
} from "../chunk-hahs24dv.js";
|
|
159
|
+
import"../chunk-chaj8a8b.js";
|
|
160
|
+
import {
|
|
161
|
+
PluginCache,
|
|
162
|
+
customizeSkill,
|
|
163
|
+
deleteSkill,
|
|
164
|
+
getSkill,
|
|
165
|
+
installSkillFromSource,
|
|
166
|
+
listSkills,
|
|
167
|
+
parseSource,
|
|
168
|
+
pinSkill,
|
|
169
|
+
rollbackSkill,
|
|
170
|
+
saveSkill,
|
|
171
|
+
unpinSkill,
|
|
172
|
+
updateSkill,
|
|
173
|
+
validateSkillPackage
|
|
174
|
+
} from "../chunk-7rq88hb3.js";
|
|
175
|
+
import {
|
|
176
|
+
ConfigLoadError,
|
|
177
|
+
defaultConfig,
|
|
178
|
+
loadConfig,
|
|
179
|
+
loadMergedConfig,
|
|
180
|
+
loadProjectConfig,
|
|
181
|
+
migrateProjectServers,
|
|
182
|
+
parseCliAddCommand,
|
|
183
|
+
saveConfig,
|
|
184
|
+
saveProjectConfig,
|
|
185
|
+
tokenizeCommandLine
|
|
186
|
+
} from "../chunk-brxwa30j.js";
|
|
187
|
+
import"../chunk-p7yzyt87.js";
|
|
147
188
|
import {
|
|
148
189
|
getConfigPath,
|
|
149
190
|
getManagedIndexPath,
|
|
191
|
+
getSkillPackagesRoot,
|
|
192
|
+
getSkillsDir,
|
|
150
193
|
getTelemetryPath
|
|
151
|
-
} from "../chunk-
|
|
194
|
+
} from "../chunk-grkz21sq.js";
|
|
152
195
|
import"../chunk-bjw71y54.js";
|
|
153
196
|
import"../chunk-wj4tjacg.js";
|
|
154
197
|
export {
|
|
@@ -180,16 +223,21 @@ export {
|
|
|
180
223
|
clearOAuthCredentials,
|
|
181
224
|
clearStagedUpdate,
|
|
182
225
|
compareVersions,
|
|
226
|
+
controlRequest,
|
|
183
227
|
countBucket,
|
|
228
|
+
customizeSkill,
|
|
184
229
|
defaultAuthSecretName,
|
|
185
230
|
defaultConfig,
|
|
186
231
|
defaultTelemetryPreferences,
|
|
187
232
|
deleteSkill,
|
|
233
|
+
describeSecretBackend,
|
|
188
234
|
disablePlugin,
|
|
189
235
|
discoverComponents,
|
|
190
236
|
durationBucket,
|
|
191
237
|
enablePlugin,
|
|
238
|
+
ensureControlService,
|
|
192
239
|
ensureGatewayToken,
|
|
240
|
+
exportEnvironment,
|
|
193
241
|
extractRequiredInputs,
|
|
194
242
|
fetchRegistryServerDetail,
|
|
195
243
|
flushTelemetry,
|
|
@@ -198,20 +246,26 @@ export {
|
|
|
198
246
|
getGatewayInternalUrl,
|
|
199
247
|
getGatewayUrl,
|
|
200
248
|
getManagedIndexPath,
|
|
249
|
+
getManagementSnapshot,
|
|
201
250
|
getOAuthAccessToken,
|
|
202
251
|
getOAuthCredentialStatus,
|
|
203
252
|
getPluginStatus,
|
|
253
|
+
getSecretBackend,
|
|
204
254
|
getSkill,
|
|
255
|
+
getSkillPackagesRoot,
|
|
256
|
+
getSkillsDir,
|
|
205
257
|
getStagedCliPath,
|
|
206
258
|
getStagedUpdate,
|
|
207
259
|
getTelemetryPath,
|
|
208
260
|
getTelemetryStatus,
|
|
209
261
|
hasManifest,
|
|
262
|
+
importEnvironment,
|
|
210
263
|
initializeTelemetry,
|
|
211
264
|
inspectMarketplacePlugin,
|
|
212
265
|
inspectPlugin,
|
|
213
266
|
installMarketplacePlugin,
|
|
214
267
|
installPlugin,
|
|
268
|
+
installSkillFromSource,
|
|
215
269
|
isOAuthReference,
|
|
216
270
|
isTelemetryEnvironmentDisabled,
|
|
217
271
|
listAuthBindings,
|
|
@@ -238,6 +292,8 @@ export {
|
|
|
238
292
|
performRollback,
|
|
239
293
|
performUpdate,
|
|
240
294
|
persistSyncState,
|
|
295
|
+
pinPlugin,
|
|
296
|
+
pinSkill,
|
|
241
297
|
platformFamily,
|
|
242
298
|
pluginConfigSet,
|
|
243
299
|
pluginSync,
|
|
@@ -250,6 +306,7 @@ export {
|
|
|
250
306
|
readManifest,
|
|
251
307
|
refreshMarketplace,
|
|
252
308
|
refreshMarketplaceWithPlugins,
|
|
309
|
+
registerHarness,
|
|
253
310
|
registerProject,
|
|
254
311
|
removeAuthReference,
|
|
255
312
|
removeMarketplace,
|
|
@@ -260,6 +317,8 @@ export {
|
|
|
260
317
|
resolveAuthTarget,
|
|
261
318
|
resolvePluginId,
|
|
262
319
|
restartDaemon,
|
|
320
|
+
rollbackPlugin,
|
|
321
|
+
rollbackSkill,
|
|
263
322
|
rotateGatewayToken,
|
|
264
323
|
runDaemonForeground,
|
|
265
324
|
runMarketplaceAutoUpdate,
|
|
@@ -280,17 +339,24 @@ export {
|
|
|
280
339
|
startDaemon,
|
|
281
340
|
startMarketplaceAutoUpdater,
|
|
282
341
|
stopDaemon,
|
|
342
|
+
subscribeControlEvents,
|
|
343
|
+
switchSecretBackend,
|
|
283
344
|
syncAllClients,
|
|
284
345
|
syncPluginsToClient,
|
|
346
|
+
synchronizeClients,
|
|
285
347
|
toSecretRef,
|
|
286
348
|
tokenizeCommandLine,
|
|
287
349
|
uninstallPlugin,
|
|
350
|
+
unpinPlugin,
|
|
351
|
+
unpinSkill,
|
|
288
352
|
unregisterProject,
|
|
289
353
|
updateMarketplaceInstalledPlugin,
|
|
290
354
|
updatePlugin,
|
|
291
355
|
updateServer,
|
|
356
|
+
updateSkill,
|
|
292
357
|
updateTelemetryPreferences,
|
|
293
|
-
uptimeBucket
|
|
358
|
+
uptimeBucket,
|
|
359
|
+
validateSkillPackage
|
|
294
360
|
};
|
|
295
361
|
|
|
296
|
-
//# debugId=
|
|
362
|
+
//# debugId=325E4BCB9AEB6D1564756E2164756E21
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare function withManagedIndexLock<T>(lockPath: string, fn: () => T): T;
|
|
1
|
+
export declare function withManagedIndexLock<T>(lockPath: string, fn: () => T, timeoutMs?: number): T;
|
|
2
2
|
//# sourceMappingURL=managed-index-lock.d.ts.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { loadConfig } from "./config.js";
|
|
2
|
+
import { listHarnesses } from "./harnesses.js";
|
|
3
|
+
import { listOperations } from "./operations.js";
|
|
4
|
+
export declare function syncManaged(targets?: string[]): Promise<import("./sync.js").SyncSummary>;
|
|
5
|
+
export declare function managementCommand(method: string, raw: unknown[]): Promise<unknown>;
|
|
6
|
+
export type ManagementSnapshot = Awaited<ReturnType<typeof getManagementSnapshot>>;
|
|
7
|
+
export declare function getManagementSnapshot(): Promise<{
|
|
8
|
+
revision: number;
|
|
9
|
+
capturedAt: string;
|
|
10
|
+
harnesses: ReturnType<typeof listHarnesses>;
|
|
11
|
+
operations: ReturnType<typeof listOperations>;
|
|
12
|
+
servers: Array<{
|
|
13
|
+
name: string;
|
|
14
|
+
transport: string;
|
|
15
|
+
enabled: boolean;
|
|
16
|
+
scope?: string;
|
|
17
|
+
}>;
|
|
18
|
+
skills: Array<{
|
|
19
|
+
id: string;
|
|
20
|
+
source?: string;
|
|
21
|
+
readOnly?: boolean;
|
|
22
|
+
}>;
|
|
23
|
+
packages: NonNullable<ReturnType<typeof loadConfig>["packages"]>[string][];
|
|
24
|
+
plugins: Array<{
|
|
25
|
+
id: string;
|
|
26
|
+
name: string;
|
|
27
|
+
version: string;
|
|
28
|
+
status: string;
|
|
29
|
+
enabled: boolean;
|
|
30
|
+
}>;
|
|
31
|
+
}>;
|
|
32
|
+
//# sourceMappingURL=management.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare function readNativeDocument(file: string): Record<string, any>;
|
|
2
|
+
export declare function nativeServers(harness: string, document: Record<string, any>): Record<string, any>;
|
|
3
|
+
export declare function writeNativeDocument(file: string, document: Record<string, any>): void;
|
|
4
|
+
//# sourceMappingURL=native-document.d.ts.map
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { EventEmitter } from "node:events";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export interface Operation {
|
|
4
|
+
id: string;
|
|
5
|
+
label: string;
|
|
6
|
+
phase: "prepared" | "applying" | "complete" | "failed" | "rolled-back" | "recovery-required";
|
|
7
|
+
startedAt: string;
|
|
8
|
+
updatedAt: string;
|
|
9
|
+
progress: number;
|
|
10
|
+
message?: string;
|
|
11
|
+
undoable?: boolean;
|
|
12
|
+
details?: string[];
|
|
13
|
+
}
|
|
14
|
+
export declare const operationEvents: EventEmitter<any>;
|
|
15
|
+
declare const snapshotSchema: z.ZodObject<{
|
|
16
|
+
kind: z.ZodEnum<{
|
|
17
|
+
file: "file";
|
|
18
|
+
link: "link";
|
|
19
|
+
missing: "missing";
|
|
20
|
+
directory: "directory";
|
|
21
|
+
}>;
|
|
22
|
+
content: z.ZodOptional<z.ZodString>;
|
|
23
|
+
files: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
24
|
+
kind: z.ZodEnum<{
|
|
25
|
+
file: "file";
|
|
26
|
+
link: "link";
|
|
27
|
+
directory: "directory";
|
|
28
|
+
}>;
|
|
29
|
+
content: z.ZodOptional<z.ZodString>;
|
|
30
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
31
|
+
}, z.core.$strip>>>;
|
|
32
|
+
mode: z.ZodOptional<z.ZodNumber>;
|
|
33
|
+
}, z.core.$strip>;
|
|
34
|
+
export type FileSnapshot = z.infer<typeof snapshotSchema>;
|
|
35
|
+
export interface PlannedWrite {
|
|
36
|
+
path: string;
|
|
37
|
+
before: FileSnapshot;
|
|
38
|
+
after: FileSnapshot;
|
|
39
|
+
}
|
|
40
|
+
export declare function snapshot(target: string): FileSnapshot;
|
|
41
|
+
export declare function snapshotHash(value: FileSnapshot): string;
|
|
42
|
+
export declare function textSnapshot(content: string): FileSnapshot;
|
|
43
|
+
export declare function snapshotText(value: FileSnapshot): string;
|
|
44
|
+
export declare function writeSnapshot(target: string, state: FileSnapshot): void;
|
|
45
|
+
export declare function saveOperation(operation: Operation): void;
|
|
46
|
+
export declare function listOperations(): Operation[];
|
|
47
|
+
/** Complete write intents are encrypted before the first filesystem mutation. */
|
|
48
|
+
export declare function applyWrites(label: string, writes: PlannedWrite[], id?: string, details?: string[]): Operation;
|
|
49
|
+
export declare function rollbackOperation(id: string): Operation;
|
|
50
|
+
export declare function markInterruptedOperations(): void;
|
|
51
|
+
export {};
|
|
52
|
+
//# sourceMappingURL=operations.d.ts.map
|
package/dist/core/paths.d.ts
CHANGED
|
@@ -5,6 +5,8 @@ export declare function getStateRoot(): string;
|
|
|
5
5
|
export declare function getConfigPath(): string;
|
|
6
6
|
export declare function getTelemetryPath(): string;
|
|
7
7
|
export declare function getSkillsDir(): string;
|
|
8
|
+
export declare function getSkillPackagesRoot(): string;
|
|
9
|
+
export declare function getSkillStatePath(): string;
|
|
8
10
|
export declare function getManagedIndexPath(): string;
|
|
9
11
|
export declare function getSecretsStorePath(): string;
|
|
10
12
|
export declare function getSecretsKeyPath(): string;
|
|
@@ -31,7 +31,7 @@ export declare class PluginManager {
|
|
|
31
31
|
installResolvedPlugin(source: PluginSource, options?: InstallPluginOptions, sourceLabel?: string): Promise<ManagedPlugin>;
|
|
32
32
|
updatePlugin(pluginId: string): Promise<ManagedPlugin>;
|
|
33
33
|
updateResolvedPlugin(pluginId: string, source: PluginSource, sourceFingerprint: string, sync?: boolean): Promise<ManagedPlugin>;
|
|
34
|
-
|
|
34
|
+
applyPluginUpdate(pluginId: string, info: Awaited<ReturnType<PluginManager["inspectSource"]>>, sourceFingerprint?: string, sync?: boolean): Promise<ManagedPlugin>;
|
|
35
35
|
uninstallPlugin(pluginId: string, keepData?: boolean): Promise<void>;
|
|
36
36
|
enablePlugin(pluginId: string): Promise<void>;
|
|
37
37
|
disablePlugin(pluginId: string): Promise<void>;
|
|
@@ -54,6 +54,9 @@ export declare function installPlugin(source: string, options?: {
|
|
|
54
54
|
approvals?: Partial<Record<PluginComponent, boolean>>;
|
|
55
55
|
}): Promise<ManagedPlugin>;
|
|
56
56
|
export declare function updatePlugin(nameOrId: string): Promise<ManagedPlugin>;
|
|
57
|
+
export declare function pinPlugin(nameOrId: string): Promise<void>;
|
|
58
|
+
export declare function unpinPlugin(nameOrId: string): Promise<void>;
|
|
59
|
+
export declare function rollbackPlugin(nameOrId: string): Promise<ManagedPlugin>;
|
|
57
60
|
export declare function uninstallPlugin(nameOrId: string, keepData?: boolean): Promise<void>;
|
|
58
61
|
export declare function enablePlugin(nameOrId: string): Promise<void>;
|
|
59
62
|
export declare function disablePlugin(nameOrId: string): Promise<void>;
|