expandai 0.0.2 → 0.0.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/README.md +42 -5
- package/build/dts/ApiClient.d.ts +128 -194
- package/build/dts/ApiClient.d.ts.map +1 -1
- package/build/dts/Auth/Domain.d.ts +95 -0
- package/build/dts/Auth/Domain.d.ts.map +1 -0
- package/build/dts/Auth/ManualAuthorization.d.ts +107 -0
- package/build/dts/Auth/ManualAuthorization.d.ts.map +1 -0
- package/build/dts/Auth/PendingInit.d.ts +35 -0
- package/build/dts/Auth/PendingInit.d.ts.map +1 -0
- package/build/dts/Auth/Pkce.d.ts +10 -0
- package/build/dts/Auth/Pkce.d.ts.map +1 -0
- package/build/dts/Auth/SetupGrantAuthorization.d.ts +34 -0
- package/build/dts/Auth/SetupGrantAuthorization.d.ts.map +1 -0
- package/build/dts/Authentication.d.ts +10 -9
- package/build/dts/Authentication.d.ts.map +1 -1
- package/build/dts/BrowserOAuth.d.ts +7 -7
- package/build/dts/BrowserOAuth.d.ts.map +1 -1
- package/build/dts/CommandPath.d.ts +2 -0
- package/build/dts/CommandPath.d.ts.map +1 -0
- package/build/dts/Commands/Fetch.d.ts.map +1 -1
- package/build/dts/Commands/Hook.d.ts +5 -5
- package/build/dts/Commands/Init.d.ts +55 -0
- package/build/dts/Commands/Init.d.ts.map +1 -0
- package/build/dts/Commands/Mcp.d.ts +6 -6
- package/build/dts/Commands/Search.d.ts.map +1 -1
- package/build/dts/Commands/Skill.d.ts +4 -4
- package/build/dts/Commands/Status.d.ts +27 -0
- package/build/dts/Commands/Status.d.ts.map +1 -0
- package/build/dts/Commands/Telemetry.d.ts +7 -0
- package/build/dts/Commands/Telemetry.d.ts.map +1 -0
- package/build/dts/Commands/Uninstall.d.ts +4 -4
- package/build/dts/Config.d.ts +108 -17
- package/build/dts/Config.d.ts.map +1 -1
- package/build/dts/Hook/SnapshotNote.d.ts +8 -4
- package/build/dts/Hook/SnapshotNote.d.ts.map +1 -1
- package/build/dts/Init/ClaudeAdapter.d.ts +61 -0
- package/build/dts/Init/ClaudeAdapter.d.ts.map +1 -0
- package/build/dts/Init/ClaudeProfile.d.ts +78 -0
- package/build/dts/Init/ClaudeProfile.d.ts.map +1 -0
- package/build/dts/Init/Domain.d.ts +139 -0
- package/build/dts/Init/Domain.d.ts.map +1 -0
- package/build/dts/Init/HarnessAdapter.d.ts +33 -0
- package/build/dts/Init/HarnessAdapter.d.ts.map +1 -0
- package/build/dts/Init/HarnessDetector.d.ts +19 -0
- package/build/dts/Init/HarnessDetector.d.ts.map +1 -0
- package/build/dts/Init/HarnessRegistry.d.ts +50 -0
- package/build/dts/Init/HarnessRegistry.d.ts.map +1 -0
- package/build/dts/Init/MutationTransaction.d.ts +96 -0
- package/build/dts/Init/MutationTransaction.d.ts.map +1 -0
- package/build/dts/Init/Service.d.ts +72 -0
- package/build/dts/Init/Service.d.ts.map +1 -0
- package/build/dts/Init/StandardAdapters.d.ts +42 -0
- package/build/dts/Init/StandardAdapters.d.ts.map +1 -0
- package/build/dts/Init/Status.d.ts +149 -0
- package/build/dts/Init/Status.d.ts.map +1 -0
- package/build/dts/Install/Claude/Hook.d.ts +85 -25
- package/build/dts/Install/Claude/Hook.d.ts.map +1 -1
- package/build/dts/Install/Claude/Mcp.d.ts +21 -18
- package/build/dts/Install/Claude/Mcp.d.ts.map +1 -1
- package/build/dts/Install/Claude/Skill.d.ts +14 -15
- package/build/dts/Install/Claude/Skill.d.ts.map +1 -1
- package/build/dts/Install/Codex/Mcp.d.ts +14 -8
- package/build/dts/Install/Codex/Mcp.d.ts.map +1 -1
- package/build/dts/Install/Codex/Skill.d.ts +4 -2
- package/build/dts/Install/Codex/Skill.d.ts.map +1 -1
- package/build/dts/Install/Cursor/Mcp.d.ts +13 -13
- package/build/dts/Install/Cursor/Mcp.d.ts.map +1 -1
- package/build/dts/Install/Cursor/Skill.d.ts +4 -2
- package/build/dts/Install/Cursor/Skill.d.ts.map +1 -1
- package/build/dts/Install/Domain.d.ts +35 -5
- package/build/dts/Install/Domain.d.ts.map +1 -1
- package/build/dts/Install/Hook.d.ts +4 -4
- package/build/dts/Install/Hook.d.ts.map +1 -1
- package/build/dts/Install/Mcp.d.ts +5 -5
- package/build/dts/Install/Mcp.d.ts.map +1 -1
- package/build/dts/Install/Opencode/Hook.d.ts +4 -3
- package/build/dts/Install/Opencode/Hook.d.ts.map +1 -1
- package/build/dts/Install/Opencode/Mcp.d.ts +11 -11
- package/build/dts/Install/Opencode/Mcp.d.ts.map +1 -1
- package/build/dts/Install/Opencode/Skill.d.ts +4 -2
- package/build/dts/Install/Opencode/Skill.d.ts.map +1 -1
- package/build/dts/Install/Skill.d.ts +3 -3
- package/build/dts/Install/Uninstall.d.ts +6 -6
- package/build/dts/Install/Uninstall.d.ts.map +1 -1
- package/build/dts/MarkdownAnsi.d.ts +29 -0
- package/build/dts/MarkdownAnsi.d.ts.map +1 -0
- package/build/dts/Mcp/ExpandDocs.d.ts +17 -5
- package/build/dts/Mcp/ExpandDocs.d.ts.map +1 -1
- package/build/dts/Mcp/Server.d.ts +1 -1
- package/build/dts/Mcp/Server.d.ts.map +1 -1
- package/build/dts/Mcp/tools/Citations.d.ts +100 -71
- package/build/dts/Mcp/tools/Citations.d.ts.map +1 -1
- package/build/dts/Mcp/tools/Fetch.d.ts +16 -15
- package/build/dts/Mcp/tools/Fetch.d.ts.map +1 -1
- package/build/dts/SecureFile.d.ts +23 -0
- package/build/dts/SecureFile.d.ts.map +1 -0
- package/build/dts/Snippets.d.ts +11 -12
- package/build/dts/Snippets.d.ts.map +1 -1
- package/build/dts/Telemetry.d.ts +30 -0
- package/build/dts/Telemetry.d.ts.map +1 -0
- package/build/dts/Version.d.ts +2 -0
- package/build/dts/Version.d.ts.map +1 -0
- package/build/dts/Xdg.d.ts +11 -0
- package/build/dts/Xdg.d.ts.map +1 -0
- package/build/esm/ApiClient.js +133 -10
- package/build/esm/ApiClient.js.map +1 -1
- package/build/esm/Auth/Domain.js +56 -0
- package/build/esm/Auth/Domain.js.map +1 -0
- package/build/esm/Auth/ManualAuthorization.js +253 -0
- package/build/esm/Auth/ManualAuthorization.js.map +1 -0
- package/build/esm/Auth/PendingInit.js +267 -0
- package/build/esm/Auth/PendingInit.js.map +1 -0
- package/build/esm/Auth/Pkce.js +23 -0
- package/build/esm/Auth/Pkce.js.map +1 -0
- package/build/esm/Auth/SetupGrantAuthorization.js +91 -0
- package/build/esm/Auth/SetupGrantAuthorization.js.map +1 -0
- package/build/esm/Authentication.js +38 -7
- package/build/esm/Authentication.js.map +1 -1
- package/build/esm/BrowserOAuth.js +7 -10
- package/build/esm/BrowserOAuth.js.map +1 -1
- package/build/esm/CommandPath.js +31 -0
- package/build/esm/CommandPath.js.map +1 -0
- package/build/esm/Commands/Fetch.js +30 -6
- package/build/esm/Commands/Fetch.js.map +1 -1
- package/build/esm/Commands/Init.js +371 -0
- package/build/esm/Commands/Init.js.map +1 -0
- package/build/esm/Commands/Search.js +6 -3
- package/build/esm/Commands/Search.js.map +1 -1
- package/build/esm/Commands/Status.js +186 -0
- package/build/esm/Commands/Status.js.map +1 -0
- package/build/esm/Commands/Telemetry.js +23 -0
- package/build/esm/Commands/Telemetry.js.map +1 -0
- package/build/esm/Config.js +502 -28
- package/build/esm/Config.js.map +1 -1
- package/build/esm/Hook/Claude.js +1 -1
- package/build/esm/Hook/Claude.js.map +1 -1
- package/build/esm/Hook/SnapshotNote.js +54 -7
- package/build/esm/Hook/SnapshotNote.js.map +1 -1
- package/build/esm/Init/ClaudeAdapter.js +137 -0
- package/build/esm/Init/ClaudeAdapter.js.map +1 -0
- package/build/esm/Init/ClaudeProfile.js +380 -0
- package/build/esm/Init/ClaudeProfile.js.map +1 -0
- package/build/esm/Init/Domain.js +118 -0
- package/build/esm/Init/Domain.js.map +1 -0
- package/build/esm/Init/HarnessAdapter.js +21 -0
- package/build/esm/Init/HarnessAdapter.js.map +1 -0
- package/build/esm/Init/HarnessDetector.js +65 -0
- package/build/esm/Init/HarnessDetector.js.map +1 -0
- package/build/esm/Init/HarnessRegistry.js +58 -0
- package/build/esm/Init/HarnessRegistry.js.map +1 -0
- package/build/esm/Init/MutationTransaction.js +494 -0
- package/build/esm/Init/MutationTransaction.js.map +1 -0
- package/build/esm/Init/Service.js +319 -0
- package/build/esm/Init/Service.js.map +1 -0
- package/build/esm/Init/StandardAdapters.js +116 -0
- package/build/esm/Init/StandardAdapters.js.map +1 -0
- package/build/esm/Init/Status.js +215 -0
- package/build/esm/Init/Status.js.map +1 -0
- package/build/esm/Install/Claude/Hook.js +182 -50
- package/build/esm/Install/Claude/Hook.js.map +1 -1
- package/build/esm/Install/Claude/Mcp.js +56 -26
- package/build/esm/Install/Claude/Mcp.js.map +1 -1
- package/build/esm/Install/Claude/Skill.js +49 -27
- package/build/esm/Install/Claude/Skill.js.map +1 -1
- package/build/esm/Install/Codex/Mcp.js +9 -4
- package/build/esm/Install/Codex/Mcp.js.map +1 -1
- package/build/esm/Install/Codex/Skill.js +4 -1
- package/build/esm/Install/Codex/Skill.js.map +1 -1
- package/build/esm/Install/Cursor/Mcp.js +7 -4
- package/build/esm/Install/Cursor/Mcp.js.map +1 -1
- package/build/esm/Install/Cursor/Skill.js +4 -1
- package/build/esm/Install/Cursor/Skill.js.map +1 -1
- package/build/esm/Install/Domain.js +60 -3
- package/build/esm/Install/Domain.js.map +1 -1
- package/build/esm/Install/Hook.js.map +1 -1
- package/build/esm/Install/Mcp.js +1 -1
- package/build/esm/Install/Mcp.js.map +1 -1
- package/build/esm/Install/Opencode/Hook.js +1 -1
- package/build/esm/Install/Opencode/Hook.js.map +1 -1
- package/build/esm/Install/Opencode/Mcp.js +6 -3
- package/build/esm/Install/Opencode/Mcp.js.map +1 -1
- package/build/esm/Install/Opencode/Skill.js +4 -1
- package/build/esm/Install/Opencode/Skill.js.map +1 -1
- package/build/esm/Install/Opencode/expandai-webfetch.js +27 -9
- package/build/esm/Install/Skill.js.map +1 -1
- package/build/esm/Install/Uninstall.js +2 -2
- package/build/esm/Install/Uninstall.js.map +1 -1
- package/build/esm/MarkdownAnsi.js +142 -0
- package/build/esm/MarkdownAnsi.js.map +1 -0
- package/build/esm/Mcp/ExpandDocs.js +44 -52
- package/build/esm/Mcp/ExpandDocs.js.map +1 -1
- package/build/esm/Mcp/RequestHeaders.js.map +1 -1
- package/build/esm/Mcp/Server.js +2 -1
- package/build/esm/Mcp/Server.js.map +1 -1
- package/build/esm/Mcp/tools/Citations.js +109 -8
- package/build/esm/Mcp/tools/Citations.js.map +1 -1
- package/build/esm/Mcp/tools/Fetch.js +36 -12
- package/build/esm/Mcp/tools/Fetch.js.map +1 -1
- package/build/esm/SecureFile.js +36 -0
- package/build/esm/SecureFile.js.map +1 -0
- package/build/esm/Snippets.js +12 -1
- package/build/esm/Snippets.js.map +1 -1
- package/build/esm/Telemetry.js +157 -0
- package/build/esm/Telemetry.js.map +1 -0
- package/build/esm/Version.js +4 -0
- package/build/esm/Version.js.map +1 -0
- package/build/esm/Xdg.js +15 -0
- package/build/esm/Xdg.js.map +1 -0
- package/build/esm/main.js +122 -14
- package/build/esm/main.js.map +1 -1
- package/build/skills/expandai/SKILL.md +26 -3
- package/package.json +4 -4
- package/src/ApiClient.ts +206 -13
- package/src/Auth/Domain.ts +63 -0
- package/src/Auth/ManualAuthorization.ts +296 -0
- package/src/Auth/PendingInit.ts +338 -0
- package/src/Auth/Pkce.ts +26 -0
- package/src/Auth/SetupGrantAuthorization.ts +116 -0
- package/src/Authentication.ts +49 -11
- package/src/BrowserOAuth.ts +10 -12
- package/src/CommandPath.ts +30 -0
- package/src/Commands/Fetch.ts +42 -11
- package/src/Commands/Init.ts +489 -0
- package/src/Commands/Search.ts +8 -3
- package/src/Commands/Status.ts +228 -0
- package/src/Commands/Telemetry.ts +42 -0
- package/src/Config.ts +695 -50
- package/src/Hook/Claude.ts +1 -1
- package/src/Hook/SnapshotNote.ts +55 -7
- package/src/Init/ClaudeAdapter.ts +191 -0
- package/src/Init/ClaudeProfile.ts +496 -0
- package/src/Init/Domain.ts +153 -0
- package/src/Init/HarnessAdapter.ts +35 -0
- package/src/Init/HarnessDetector.ts +77 -0
- package/src/Init/HarnessRegistry.ts +87 -0
- package/src/Init/MutationTransaction.ts +747 -0
- package/src/Init/Service.ts +385 -0
- package/src/Init/StandardAdapters.ts +141 -0
- package/src/Init/Status.ts +253 -0
- package/src/Install/Claude/Hook.ts +234 -81
- package/src/Install/Claude/Mcp.ts +80 -33
- package/src/Install/Claude/Skill.ts +70 -37
- package/src/Install/Codex/Mcp.ts +14 -9
- package/src/Install/Codex/Skill.ts +9 -5
- package/src/Install/Cursor/Mcp.ts +12 -9
- package/src/Install/Cursor/Skill.ts +9 -5
- package/src/Install/Domain.ts +77 -4
- package/src/Install/Hook.ts +3 -3
- package/src/Install/Mcp.ts +6 -6
- package/src/Install/Opencode/Hook.ts +5 -5
- package/src/Install/Opencode/Mcp.ts +11 -8
- package/src/Install/Opencode/Skill.ts +9 -5
- package/src/Install/Opencode/expandai-webfetch.js +27 -9
- package/src/Install/Skill.ts +3 -3
- package/src/Install/Uninstall.ts +3 -3
- package/src/MarkdownAnsi.ts +162 -0
- package/src/Mcp/ExpandDocs.ts +46 -55
- package/src/Mcp/Server.ts +2 -1
- package/src/Mcp/tools/Citations.ts +117 -8
- package/src/Mcp/tools/Fetch.ts +40 -14
- package/src/SecureFile.ts +70 -0
- package/src/Snippets.ts +19 -12
- package/src/Telemetry.ts +186 -0
- package/src/Version.ts +3 -0
- package/src/Xdg.ts +18 -0
- package/src/main.ts +171 -12
- package/build/dts/DeviceAuth.d.ts +0 -87
- package/build/dts/DeviceAuth.d.ts.map +0 -1
- package/build/esm/DeviceAuth.js +0 -127
- package/build/esm/DeviceAuth.js.map +0 -1
- package/src/DeviceAuth.ts +0 -193
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
2
|
+
import { type CliCommand, ConfigIo, McpParseError, McpServersConfigSchema, McpWriteError } from '../Domain.js';
|
|
3
3
|
declare const Entry_base: Schema.Class<Entry, {
|
|
4
4
|
type: Schema.Literal<["stdio"]>;
|
|
5
5
|
command: typeof Schema.NonEmptyTrimmedString;
|
|
@@ -11,32 +11,35 @@ declare const Entry_base: Schema.Class<Entry, {
|
|
|
11
11
|
args: Schema.Array$<typeof Schema.String>;
|
|
12
12
|
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
13
13
|
}>, never, {
|
|
14
|
-
readonly type: "stdio";
|
|
15
|
-
} & {
|
|
16
|
-
readonly command: string;
|
|
17
|
-
} & {
|
|
18
|
-
readonly args: readonly string[];
|
|
19
|
-
} & {
|
|
20
14
|
readonly env?: {
|
|
21
15
|
readonly [x: string]: string;
|
|
22
16
|
} | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
readonly args: readonly string[];
|
|
19
|
+
} & {
|
|
20
|
+
readonly command: string;
|
|
21
|
+
} & {
|
|
22
|
+
readonly type: "stdio";
|
|
23
23
|
}, {}, {}>;
|
|
24
|
-
/**
|
|
25
|
-
* Claude Code MCP descriptor — `mcpServers` shape (de facto Claude Desktop
|
|
26
|
-
* convention; also read by Cursor and other clients).
|
|
27
|
-
*
|
|
28
|
-
* - global → `~/.claude.json` (Claude Code's user-scope store)
|
|
29
|
-
* - project → `<cwd>/.mcp.json` (the agent-agnostic project file)
|
|
30
|
-
*/
|
|
24
|
+
/** Claude Code MCP descriptor stored under the Expand-owned server key. */
|
|
31
25
|
export declare class Entry extends Entry_base {
|
|
32
26
|
}
|
|
27
|
+
export interface ClaudeMcpPlan {
|
|
28
|
+
readonly changed: boolean;
|
|
29
|
+
readonly config: typeof McpServersConfigSchema.Type;
|
|
30
|
+
}
|
|
31
|
+
/** Claude execs the descriptor directly, so `command`/`args` stay separate. */
|
|
32
|
+
export declare function claudeMcpEntry(cli?: CliCommand): Entry;
|
|
33
|
+
export declare const CLAUDE_MCP_ENTRY: Entry;
|
|
34
|
+
export declare function planClaudeMcp(config: typeof McpServersConfigSchema.Type, cli?: CliCommand): ClaudeMcpPlan;
|
|
35
|
+
export declare function planClaudeMcpRemoval(config: typeof McpServersConfigSchema.Type): ClaudeMcpPlan;
|
|
33
36
|
declare const ClaudeMcp_base: Effect.Service.Class<ClaudeMcp, "@expandai/cli/Install/Claude/Mcp", {
|
|
34
37
|
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>];
|
|
35
38
|
readonly effect: Effect.Effect<{
|
|
36
|
-
readonly install: (scope: "
|
|
37
|
-
readonly uninstall: (scope: "
|
|
38
|
-
readonly isInstalled: (scope: "
|
|
39
|
-
readonly pathFor: (scope: "
|
|
39
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError, never>;
|
|
40
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError, never>;
|
|
41
|
+
readonly isInstalled: (scope: "global" | "project") => Effect.Effect<boolean, McpParseError, never>;
|
|
42
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
40
43
|
}, import("effect/ConfigError").ConfigError, ConfigIo>;
|
|
41
44
|
}>;
|
|
42
45
|
export declare class ClaudeMcp extends ClaudeMcp_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Claude/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvE,OAAO,
|
|
1
|
+
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Claude/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvE,OAAO,EACN,KAAK,UAAU,EACf,QAAQ,EAER,aAAa,EACb,sBAAsB,EACtB,aAAa,EAEb,MAAM,cAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;AAGrB,2EAA2E;AAC3E,qBAAa,KAAM,SAAQ,UAKzB;CAAG;AAEL,MAAM,WAAW,aAAa;IAC7B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,MAAM,EAAE,OAAO,sBAAsB,CAAC,IAAI,CAAA;CACnD;AAID,+EAA+E;AAC/E,wBAAgB,cAAc,CAAC,GAAG,GAAE,UAAuB,GAAG,KAAK,CAOlE;AAED,eAAO,MAAM,gBAAgB,OAAmB,CAAA;AAqBhD,wBAAgB,aAAa,CAAC,MAAM,EAAE,OAAO,sBAAsB,CAAC,IAAI,EAAE,GAAG,GAAE,UAAuB,GAAG,aAAa,CAUrH;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,OAAO,sBAAsB,CAAC,IAAI,GAAG,aAAa,CAM9F;;;;;;;;;;AAED,qBAAa,SAAU,SAAQ,cAiD7B;CAAG"}
|
|
@@ -1,22 +1,21 @@
|
|
|
1
|
+
import { FileSystem, Path } from '@effect/platform';
|
|
1
2
|
import { Effect } from 'effect';
|
|
2
|
-
import { SkillIo } from '../Domain.js';
|
|
3
|
-
/**
|
|
4
|
-
* Claude Code skills live under `<scope>/.claude/skills/<name>/SKILL.md`.
|
|
5
|
-
*
|
|
6
|
-
* - global → `~/.claude/skills/expandai/SKILL.md`
|
|
7
|
-
* - project → `<cwd>/.claude/skills/expandai/SKILL.md`
|
|
8
|
-
*
|
|
9
|
-
* (Globally-scoped Claude Code skills are also reachable via `npx skills`,
|
|
10
|
-
* but file-copy gives us a uniform install path with OpenCode and works
|
|
11
|
-
* without npm.)
|
|
12
|
-
*/
|
|
13
3
|
export declare const SKILL_NAME = "expandai";
|
|
4
|
+
export declare const SKILL_FILE_NAME = "SKILL.md";
|
|
5
|
+
export interface ClaudeSkillPlan {
|
|
6
|
+
readonly changed: boolean;
|
|
7
|
+
readonly text: string;
|
|
8
|
+
}
|
|
9
|
+
export declare function renderClaudeSkill(source: string, profileVersion?: string): string;
|
|
10
|
+
export declare function planClaudeSkill(current: string | undefined, source: string, profileVersion?: string): ClaudeSkillPlan;
|
|
14
11
|
declare const ClaudeSkill_base: Effect.Service.Class<ClaudeSkill, "@expandai/cli/Install/Claude/Skill", {
|
|
15
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<
|
|
12
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<FileSystem.FileSystem, never, never>, import("effect/Layer").Layer<Path.Path, never, never>];
|
|
16
13
|
readonly effect: Effect.Effect<{
|
|
17
|
-
readonly install: (scope: "
|
|
18
|
-
readonly uninstall: (scope: "
|
|
19
|
-
|
|
14
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
15
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
16
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
17
|
+
readonly source: () => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
18
|
+
}, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, FileSystem.FileSystem | Path.Path>;
|
|
20
19
|
}>;
|
|
21
20
|
export declare class ClaudeSkill extends ClaudeSkill_base {
|
|
22
21
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Claude/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;
|
|
1
|
+
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Claude/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAI9C,eAAO,MAAM,UAAU,aAAa,CAAA;AACpC,eAAO,MAAM,eAAe,aAAa,CAAA;AAGzC,MAAM,WAAW,eAAe;IAC/B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;CACrB;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,cAAc,GAAE,MAAoB,GAAG,MAAM,CAK9F;AAED,wBAAgB,eAAe,CAC9B,OAAO,EAAE,MAAM,GAAG,SAAS,EAC3B,MAAM,EAAE,MAAM,EACd,cAAc,GAAE,MAAoB,GAClC,eAAe,CAGjB;;;;;;;;;;AA2CD,qBAAa,WAAY,SAAQ,gBAG/B;CAAG"}
|
|
@@ -1,30 +1,36 @@
|
|
|
1
1
|
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
2
|
+
import { CliInvocation, ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
3
3
|
declare const Entry_base: Schema.Class<Entry, {
|
|
4
4
|
command: typeof Schema.NonEmptyTrimmedString;
|
|
5
5
|
args: Schema.Array$<typeof Schema.String>;
|
|
6
|
+
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
6
7
|
enabled: typeof Schema.Boolean;
|
|
7
8
|
}, Schema.Struct.Encoded<{
|
|
8
9
|
command: typeof Schema.NonEmptyTrimmedString;
|
|
9
10
|
args: Schema.Array$<typeof Schema.String>;
|
|
11
|
+
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
10
12
|
enabled: typeof Schema.Boolean;
|
|
11
13
|
}>, never, {
|
|
12
|
-
readonly
|
|
14
|
+
readonly env?: {
|
|
15
|
+
readonly [x: string]: string;
|
|
16
|
+
} | undefined;
|
|
13
17
|
} & {
|
|
14
18
|
readonly args: readonly string[];
|
|
19
|
+
} & {
|
|
20
|
+
readonly command: string;
|
|
15
21
|
} & {
|
|
16
22
|
readonly enabled: boolean;
|
|
17
23
|
}, {}, {}>;
|
|
18
24
|
export declare class Entry extends Entry_base {
|
|
19
25
|
}
|
|
20
26
|
declare const CodexMcp_base: Effect.Service.Class<CodexMcp, "@expandai/cli/Install/Codex/Mcp", {
|
|
21
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>];
|
|
27
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>, import("effect/Layer").Layer<CliInvocation, import("effect/ConfigError").ConfigError, never>];
|
|
22
28
|
readonly effect: Effect.Effect<{
|
|
23
|
-
readonly install: (scope: "
|
|
24
|
-
readonly uninstall: (scope: "
|
|
25
|
-
readonly isInstalled: (scope: "
|
|
26
|
-
readonly pathFor: (scope: "
|
|
27
|
-
}, import("effect/ConfigError").ConfigError, ConfigIo>;
|
|
29
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError | import("@effect/platform/Error").PlatformError, never>;
|
|
30
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError | import("@effect/platform/Error").PlatformError, never>;
|
|
31
|
+
readonly isInstalled: (scope: "global" | "project") => Effect.Effect<boolean, McpParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
32
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
33
|
+
}, import("effect/ConfigError").ConfigError, CliInvocation | ConfigIo>;
|
|
28
34
|
}>;
|
|
29
35
|
/**
|
|
30
36
|
* Codex MCP descriptor — Codex stores MCP servers in TOML config under
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Codex/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEvE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAc,MAAM,cAAc,CAAA
|
|
1
|
+
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Codex/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AAEvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAc,MAAM,cAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;AAGhG,qBAAa,KAAM,SAAQ,UAKzB;CAAG;;;;;;;;;;AAgBL;;;;;;GAMG;AACH,qBAAa,QAAS,SAAQ,aA+E5B;CAAG"}
|
|
@@ -10,8 +10,10 @@ export declare const SKILL_NAME = "expandai";
|
|
|
10
10
|
declare const CodexSkill_base: Effect.Service.Class<CodexSkill, "@expandai/cli/Install/Codex/Skill", {
|
|
11
11
|
readonly dependencies: readonly [import("effect/Layer").Layer<SkillIo, import("@effect/platform/Error").BadArgument, never>];
|
|
12
12
|
readonly effect: Effect.Effect<{
|
|
13
|
-
readonly install: (scope: "
|
|
14
|
-
readonly uninstall: (scope: "
|
|
13
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
14
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
15
|
+
readonly isCurrent: (scope: "global" | "project") => Effect.Effect<boolean, import("@effect/platform/Error").PlatformError, never>;
|
|
16
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
15
17
|
}, import("effect/ConfigError").ConfigError, SkillIo>;
|
|
16
18
|
}>;
|
|
17
19
|
export declare class CodexSkill extends CodexSkill_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Codex/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,aAAa,CAAA
|
|
1
|
+
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Codex/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;;GAKG;AAEH,eAAO,MAAM,UAAU,aAAa,CAAA;;;;;;;;;;AAEpC,qBAAa,UAAW,SAAQ,eA6B9B;CAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
2
|
+
import { CliInvocation, ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
3
3
|
declare const Entry_base: Schema.Class<Entry, {
|
|
4
4
|
type: Schema.Literal<["stdio"]>;
|
|
5
5
|
command: typeof Schema.NonEmptyTrimmedString;
|
|
@@ -11,15 +11,15 @@ declare const Entry_base: Schema.Class<Entry, {
|
|
|
11
11
|
args: Schema.Array$<typeof Schema.String>;
|
|
12
12
|
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
13
13
|
}>, never, {
|
|
14
|
-
readonly type: "stdio";
|
|
15
|
-
} & {
|
|
16
|
-
readonly command: string;
|
|
17
|
-
} & {
|
|
18
|
-
readonly args: readonly string[];
|
|
19
|
-
} & {
|
|
20
14
|
readonly env?: {
|
|
21
15
|
readonly [x: string]: string;
|
|
22
16
|
} | undefined;
|
|
17
|
+
} & {
|
|
18
|
+
readonly args: readonly string[];
|
|
19
|
+
} & {
|
|
20
|
+
readonly command: string;
|
|
21
|
+
} & {
|
|
22
|
+
readonly type: "stdio";
|
|
23
23
|
}, {}, {}>;
|
|
24
24
|
/**
|
|
25
25
|
* Cursor MCP descriptor — same `mcpServers` shape as Claude Code, different
|
|
@@ -31,13 +31,13 @@ declare const Entry_base: Schema.Class<Entry, {
|
|
|
31
31
|
export declare class Entry extends Entry_base {
|
|
32
32
|
}
|
|
33
33
|
declare const CursorMcp_base: Effect.Service.Class<CursorMcp, "@expandai/cli/Install/Cursor/Mcp", {
|
|
34
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>];
|
|
34
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>, import("effect/Layer").Layer<CliInvocation, import("effect/ConfigError").ConfigError, never>];
|
|
35
35
|
readonly effect: Effect.Effect<{
|
|
36
|
-
readonly install: (scope: "
|
|
37
|
-
readonly uninstall: (scope: "
|
|
38
|
-
readonly isInstalled: (scope: "
|
|
39
|
-
readonly pathFor: (scope: "
|
|
40
|
-
}, import("effect/ConfigError").ConfigError, ConfigIo>;
|
|
36
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError, never>;
|
|
37
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError, never>;
|
|
38
|
+
readonly isInstalled: (scope: "global" | "project") => Effect.Effect<boolean, McpParseError, never>;
|
|
39
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
40
|
+
}, import("effect/ConfigError").ConfigError, CliInvocation | ConfigIo>;
|
|
41
41
|
}>;
|
|
42
42
|
export declare class CursorMcp extends CursorMcp_base {
|
|
43
43
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Cursor/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAA0B,aAAa,EAAc,MAAM,cAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Cursor/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAA0B,aAAa,EAAc,MAAM,cAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;AAGxH;;;;;;GAMG;AACH,qBAAa,KAAM,SAAQ,UAKzB;CAAG;;;;;;;;;;AAEL,qBAAa,SAAU,SAAQ,cAiE7B;CAAG"}
|
|
@@ -17,8 +17,10 @@ export declare const SKILL_NAME = "expandai";
|
|
|
17
17
|
declare const CursorSkill_base: Effect.Service.Class<CursorSkill, "@expandai/cli/Install/Cursor/Skill", {
|
|
18
18
|
readonly dependencies: readonly [import("effect/Layer").Layer<SkillIo, import("@effect/platform/Error").BadArgument, never>];
|
|
19
19
|
readonly effect: Effect.Effect<{
|
|
20
|
-
readonly install: (scope: "
|
|
21
|
-
readonly uninstall: (scope: "
|
|
20
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
21
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
22
|
+
readonly isCurrent: (scope: "global" | "project") => Effect.Effect<boolean, import("@effect/platform/Error").PlatformError, never>;
|
|
23
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
22
24
|
}, import("effect/ConfigError").ConfigError, SkillIo>;
|
|
23
25
|
}>;
|
|
24
26
|
export declare class CursorSkill extends CursorSkill_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Cursor/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,UAAU,aAAa,CAAA
|
|
1
|
+
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Cursor/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;;;;;;;;;GAYG;AAEH,eAAO,MAAM,UAAU,aAAa,CAAA;;;;;;;;;;AAEpC,qBAAa,WAAY,SAAQ,gBA6B/B;CAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { FileSystem, Path } from '@effect/platform';
|
|
2
|
-
import { Effect, Schema } from 'effect';
|
|
2
|
+
import { Effect, Layer, Schema } from 'effect';
|
|
3
3
|
declare const McpParseError_base: Schema.TaggedErrorClass<McpParseError, "McpParseError", {
|
|
4
4
|
readonly _tag: Schema.tag<"McpParseError">;
|
|
5
5
|
} & {
|
|
@@ -20,8 +20,15 @@ export declare class McpWriteError extends McpWriteError_base {
|
|
|
20
20
|
}
|
|
21
21
|
export declare const Host: Schema.Literal<["claude-code", "cursor", "opencode", "codex"]>;
|
|
22
22
|
export type Host = typeof Host.Type;
|
|
23
|
-
|
|
24
|
-
|
|
23
|
+
/**
|
|
24
|
+
* The agent harness invoking the CLI — every install target plus 'unknown'
|
|
25
|
+
* for uninstrumented callers. Installers bake `EXPANDAI_HARNESS=<host>` into
|
|
26
|
+
* MCP/hook configs; telemetry reads it back.
|
|
27
|
+
*/
|
|
28
|
+
export declare const Harness: Schema.Literal<["claude-code", "cursor", "opencode", "codex", "unknown"]>;
|
|
29
|
+
export type Harness = typeof Harness.Type;
|
|
30
|
+
export declare const InstallScope: Schema.Literal<["project", "global"]>;
|
|
31
|
+
export type InstallScope = typeof InstallScope.Type;
|
|
25
32
|
export declare const McpServersConfigSchema: Schema.transform<Schema.SchemaClass<unknown, string, never>, Schema.TypeLiteral<{
|
|
26
33
|
mcpServers: Schema.optionalWith<Schema.Record$<typeof Schema.String, typeof Schema.Unknown>, {
|
|
27
34
|
default: () => {};
|
|
@@ -33,10 +40,32 @@ export declare const OpencodeConfigSchema: Schema.transform<Schema.SchemaClass<u
|
|
|
33
40
|
}>;
|
|
34
41
|
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>;
|
|
35
42
|
export declare const SERVER_KEY = "expandai";
|
|
43
|
+
/** How a host config should launch the CLI: `command` plus leading args. */
|
|
44
|
+
export interface CliCommand {
|
|
45
|
+
readonly command: string;
|
|
46
|
+
readonly args: ReadonlyArray<string>;
|
|
47
|
+
}
|
|
48
|
+
export declare const DIRECT_CLI: CliCommand;
|
|
49
|
+
/**
|
|
50
|
+
* Renders a `CliCommand` as the single shell string Claude Code stores for hook
|
|
51
|
+
* entries. MCP descriptors keep `command`/`args` separate because they exec
|
|
52
|
+
* directly; hooks are run through a shell, so they need one flat line.
|
|
53
|
+
*/
|
|
54
|
+
export declare function cliShellCommand(cli: CliCommand, args: ReadonlyArray<string>): string;
|
|
55
|
+
declare const CliInvocation_base: Effect.Service.Class<CliInvocation, "@expandai/cli/Install/CliInvocation", {
|
|
56
|
+
readonly dependencies: readonly [Layer.Layer<FileSystem.FileSystem, never, never>, Layer.Layer<Path.Path, never, never>];
|
|
57
|
+
readonly effect: Effect.Effect<{
|
|
58
|
+
readonly resolve: () => Effect.Effect<CliCommand, never, never>;
|
|
59
|
+
}, import("effect/ConfigError").ConfigError, FileSystem.FileSystem | Path.Path>;
|
|
60
|
+
}>;
|
|
61
|
+
export declare class CliInvocation extends CliInvocation_base {
|
|
62
|
+
/** Dependency-open layer so fixtures can supply their own file system and PATH. */
|
|
63
|
+
static readonly layer: Layer.Layer<CliInvocation, import("effect/ConfigError").ConfigError, FileSystem.FileSystem | Path.Path>;
|
|
64
|
+
}
|
|
36
65
|
export declare const readConfigText: (file: string) => Effect.Effect<string, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem>;
|
|
37
66
|
export declare const writeConfigText: (file: string, text: string) => Effect.Effect<void, import("@effect/platform/Error").PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
38
67
|
declare const ConfigIo_base: Effect.Service.Class<ConfigIo, "@expandai/cli/Install/ConfigIo", {
|
|
39
|
-
readonly dependencies: readonly [
|
|
68
|
+
readonly dependencies: readonly [Layer.Layer<FileSystem.FileSystem, never, never>, Layer.Layer<Path.Path, never, never>];
|
|
40
69
|
readonly effect: Effect.Effect<{
|
|
41
70
|
readonly read: <A>(file: string, schema: Schema.Schema<A, string, never>) => Effect.Effect<A, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
42
71
|
readonly write: <A>(file: string, value: unknown, schema: Schema.Schema<A, string, never>) => Effect.Effect<void, import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
@@ -54,10 +83,11 @@ declare const ConfigIo_base: Effect.Service.Class<ConfigIo, "@expandai/cli/Insta
|
|
|
54
83
|
export declare class ConfigIo extends ConfigIo_base {
|
|
55
84
|
}
|
|
56
85
|
declare const SkillIo_base: Effect.Service.Class<SkillIo, "@expandai/cli/Install/SkillIo", {
|
|
57
|
-
readonly dependencies: readonly [
|
|
86
|
+
readonly dependencies: readonly [Layer.Layer<FileSystem.FileSystem, never, never>, Layer.Layer<Path.Path, never, never>];
|
|
58
87
|
readonly effect: Effect.Effect<{
|
|
59
88
|
readonly install: (target: string) => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
60
89
|
readonly uninstall: (target: string) => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
90
|
+
readonly isCurrent: (target: string) => Effect.Effect<boolean, import("@effect/platform/Error").PlatformError, never>;
|
|
61
91
|
}, import("@effect/platform/Error").BadArgument, FileSystem.FileSystem | Path.Path>;
|
|
62
92
|
}>;
|
|
63
93
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Install/Domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,
|
|
1
|
+
{"version":3,"file":"Domain.d.ts","sourceRoot":"","sources":["../../../src/Install/Domain.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAiB,MAAM,EAAe,KAAK,EAAE,MAAM,EAAU,MAAM,QAAQ,CAAA;;;;;;;AAElF,qBAAa,aAAc,SAAQ,kBAGjC;IACD,IAAI,OAAO,WAEV;CACD;;;;;;;AAED,qBAAa,aAAc,SAAQ,kBAGjC;IACD,IAAI,OAAO,WAEV;CACD;AAED,eAAO,MAAM,IAAI,gEAA+D,CAAA;AAChF,MAAM,MAAM,IAAI,GAAG,OAAO,IAAI,CAAC,IAAI,CAAA;AAEnC;;;;GAIG;AACH,eAAO,MAAM,OAAO,2EAA8C,CAAA;AAClE,MAAM,MAAM,OAAO,GAAG,OAAO,OAAO,CAAC,IAAI,CAAA;AAEzC,eAAO,MAAM,YAAY,uCAAsC,CAAA;AAC/D,MAAM,MAAM,YAAY,GAAG,OAAO,YAAY,CAAC,IAAI,CAAA;AAInD,eAAO,MAAM,sBAAsB;;;;2EAGlC,CAAA;AAED,eAAO,MAAM,oBAAoB;;;;2EAGhC,CAAA;AAED,eAAO,MAAM,UAAU,aAAa,CAAA;AAEpC,4EAA4E;AAC5E,MAAM,WAAW,UAAU;IAC1B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAA;IACxB,QAAQ,CAAC,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,CAAA;CACpC;AAED,eAAO,MAAM,UAAU,EAAE,UAA8C,CAAA;AAGvE;;;;GAIG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,UAAU,EAAE,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC,GAAG,MAAM,CAEpF;;;;;;;AA0BD,qBAAa,aAAc,SAAQ,kBAGjC;IACD,mFAAmF;IACnF,MAAM,CAAC,QAAQ,CAAC,KAAK,0GAAsF;CAC3G;AAED,eAAO,MAAM,cAAc,gHAOzB,CAAA;AAEF,eAAO,MAAM,eAAe,wIAK1B,CAAA;;;;wBAcmD,CAAC;yBAKC,CAAC;;;;;;AAjBxD;;;;;GAKG;AACH,qBAAa,QAAS,SAAQ,aA4C5B;CAAG;;;;;;;;;AAEL;;;;;;GAMG;AACH,qBAAa,OAAQ,SAAQ,YA6C3B;CAAG"}
|
|
@@ -18,11 +18,11 @@ import { OpencodeHook } from './Opencode/Hook.js';
|
|
|
18
18
|
export declare const HookHost: Schema.Literal<["claude-code", "opencode"]>;
|
|
19
19
|
export type HookHost = typeof HookHost.Type;
|
|
20
20
|
declare const HookInstaller_base: Effect.Service.Class<HookInstaller, "@expandai/cli/Install/Hook", {
|
|
21
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<Mcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<ClaudeHook, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<OpencodeHook, import("effect/
|
|
21
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<Mcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<ClaudeHook, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<OpencodeHook, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>];
|
|
22
22
|
readonly effect: Effect.Effect<{
|
|
23
|
-
readonly install: (host: "claude-code" | "opencode", scope: "
|
|
24
|
-
readonly uninstall: (host: "claude-code" | "opencode", scope: "
|
|
25
|
-
}, never,
|
|
23
|
+
readonly install: (host: "claude-code" | "opencode", scope: "global" | "project") => Effect.Effect<void, import("./Domain.js").McpParseError | import("./Domain.js").McpWriteError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
24
|
+
readonly uninstall: (host: "claude-code" | "opencode", scope: "global" | "project") => Effect.Effect<void, import("./Domain.js").McpParseError | import("./Domain.js").McpWriteError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
25
|
+
}, never, ClaudeHook | Mcp | OpencodeHook>;
|
|
26
26
|
}>;
|
|
27
27
|
export declare class HookInstaller extends HookInstaller_base {
|
|
28
28
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hook.d.ts","sourceRoot":"","sources":["../../../src/Install/Hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,
|
|
1
|
+
{"version":3,"file":"Hook.d.ts","sourceRoot":"","sources":["../../../src/Install/Hook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAC7C,OAAO,EAAqB,GAAG,EAAE,MAAM,UAAU,CAAA;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD;;;;;;;;;;;;GAYG;AACH,eAAO,MAAM,QAAQ,6CAA4C,CAAA;AACjE,MAAM,MAAM,QAAQ,GAAG,OAAO,QAAQ,CAAC,IAAI,CAAA;;;;;;;;AAE3C,qBAAa,aAAc,SAAQ,kBA4BjC;CAAG"}
|
|
@@ -3,14 +3,14 @@ import { ClaudeMcp } from './Claude/Mcp.js';
|
|
|
3
3
|
import { CodexMcp } from './Codex/Mcp.js';
|
|
4
4
|
import { CursorMcp } from './Cursor/Mcp.js';
|
|
5
5
|
import { OpencodeMcp } from './Opencode/Mcp.js';
|
|
6
|
-
export { Host, McpParseError, McpWriteError
|
|
6
|
+
export { Host, InstallScope, McpParseError, McpWriteError } from './Domain.js';
|
|
7
7
|
declare const Mcp_base: Effect.Service.Class<Mcp, "@expandai/cli/Install/Mcp", {
|
|
8
8
|
readonly dependencies: readonly [import("effect/Layer").Layer<ClaudeMcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<CursorMcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<OpencodeMcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<CodexMcp, import("effect/ConfigError").ConfigError, never>];
|
|
9
9
|
readonly effect: Effect.Effect<{
|
|
10
|
-
readonly install: (host: "claude-code" | "
|
|
11
|
-
readonly uninstall: (host: "claude-code" | "
|
|
12
|
-
readonly isInstalled: (host: "claude-code" | "
|
|
13
|
-
readonly pathFor: (host: "claude-code" | "
|
|
10
|
+
readonly install: (host: "claude-code" | "codex" | "cursor" | "opencode", scope: "global" | "project") => Effect.Effect<void, import("./Domain.js").McpParseError | import("./Domain.js").McpWriteError | import("@effect/platform/Error").PlatformError, never>;
|
|
11
|
+
readonly uninstall: (host: "claude-code" | "codex" | "cursor" | "opencode", scope: "global" | "project") => Effect.Effect<void, import("./Domain.js").McpParseError | import("./Domain.js").McpWriteError | import("@effect/platform/Error").PlatformError, never>;
|
|
12
|
+
readonly isInstalled: (host: "claude-code" | "codex" | "cursor" | "opencode", scope: "global" | "project") => Effect.Effect<boolean, import("./Domain.js").McpParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
13
|
+
readonly pathFor: (host: "claude-code" | "codex" | "cursor" | "opencode", scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
14
14
|
}, never, ClaudeMcp | CodexMcp | CursorMcp | OpencodeMcp>;
|
|
15
15
|
}>;
|
|
16
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../src/Install/Mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,IAAI,EAAE,
|
|
1
|
+
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../src/Install/Mcp.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAS,MAAM,QAAQ,CAAA;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAC3C,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AACzC,OAAO,EAAE,SAAS,EAAE,MAAM,iBAAiB,CAAA;AAE3C,OAAO,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAA;AAE/C,OAAO,EAAE,IAAI,EAAE,YAAY,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;;;;;;;;;;AAE9E;;;;;;;;;GASG;AAEH,qBAAa,GAAI,SAAQ,QAkDvB;CAAG"}
|
|
@@ -13,9 +13,10 @@ export declare const PLUGIN_FILE = "expandai-webfetch.js";
|
|
|
13
13
|
declare const OpencodeHook_base: Effect.Service.Class<OpencodeHook, "@expandai/cli/Install/Opencode/Hook", {
|
|
14
14
|
readonly dependencies: readonly [import("effect/Layer").Layer<FileSystem.FileSystem, never, never>, import("effect/Layer").Layer<Path.Path, never, never>];
|
|
15
15
|
readonly effect: Effect.Effect<{
|
|
16
|
-
readonly install: (scope: "
|
|
17
|
-
readonly uninstall: (scope: "
|
|
18
|
-
|
|
16
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<void, import("@effect/platform/Error").PlatformError, never>;
|
|
17
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<void, import("@effect/platform/Error").PlatformError, never>;
|
|
18
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
19
|
+
}, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, FileSystem.FileSystem | Path.Path>;
|
|
19
20
|
}>;
|
|
20
21
|
export declare class OpencodeHook extends OpencodeHook_base {
|
|
21
22
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Hook.d.ts","sourceRoot":"","sources":["../../../../src/Install/Opencode/Hook.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAmB,MAAM,EAAS,MAAM,QAAQ,CAAA;AAGvD;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW,yBAAyB,CAAA
|
|
1
|
+
{"version":3,"file":"Hook.d.ts","sourceRoot":"","sources":["../../../../src/Install/Opencode/Hook.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAA;AAEnD,OAAO,EAAmB,MAAM,EAAS,MAAM,QAAQ,CAAA;AAGvD;;;;;;;;GAQG;AAEH,eAAO,MAAM,WAAW,yBAAyB,CAAA;;;;;;;;;AAEjD,qBAAa,YAAa,SAAQ,iBAoChC;CAAG"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
2
|
+
import { CliInvocation, ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
3
3
|
declare const Entry_base: Schema.Class<Entry, {
|
|
4
4
|
type: Schema.Literal<["local"]>;
|
|
5
5
|
command: Schema.Array$<typeof Schema.String>;
|
|
@@ -11,15 +11,15 @@ declare const Entry_base: Schema.Class<Entry, {
|
|
|
11
11
|
environment: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
12
12
|
enabled: Schema.optional<typeof Schema.Boolean>;
|
|
13
13
|
}>, never, {
|
|
14
|
-
readonly type: "local";
|
|
15
|
-
} & {
|
|
16
|
-
readonly command: readonly string[];
|
|
17
|
-
} & {
|
|
18
14
|
readonly enabled?: boolean | undefined;
|
|
19
15
|
} & {
|
|
20
16
|
readonly environment?: {
|
|
21
17
|
readonly [x: string]: string;
|
|
22
18
|
} | undefined;
|
|
19
|
+
} & {
|
|
20
|
+
readonly command: readonly string[];
|
|
21
|
+
} & {
|
|
22
|
+
readonly type: "local";
|
|
23
23
|
}, {}, {}>;
|
|
24
24
|
/**
|
|
25
25
|
* OpenCode MCP descriptor — its own shape (per opencode.ai/docs/mcp-servers):
|
|
@@ -33,13 +33,13 @@ declare const Entry_base: Schema.Class<Entry, {
|
|
|
33
33
|
export declare class Entry extends Entry_base {
|
|
34
34
|
}
|
|
35
35
|
declare const OpencodeMcp_base: Effect.Service.Class<OpencodeMcp, "@expandai/cli/Install/Opencode/Mcp", {
|
|
36
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>];
|
|
36
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>, import("effect/Layer").Layer<CliInvocation, import("effect/ConfigError").ConfigError, never>];
|
|
37
37
|
readonly effect: Effect.Effect<{
|
|
38
|
-
readonly install: (scope: "
|
|
39
|
-
readonly uninstall: (scope: "
|
|
40
|
-
readonly isInstalled: (scope: "
|
|
41
|
-
readonly pathFor: (scope: "
|
|
42
|
-
}, import("effect/ConfigError").ConfigError, ConfigIo>;
|
|
38
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError, never>;
|
|
39
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<void, McpParseError | McpWriteError, never>;
|
|
40
|
+
readonly isInstalled: (scope: "global" | "project") => Effect.Effect<boolean, McpParseError, never>;
|
|
41
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
42
|
+
}, import("effect/ConfigError").ConfigError, CliInvocation | ConfigIo>;
|
|
43
43
|
}>;
|
|
44
44
|
export declare class OpencodeMcp extends OpencodeMcp_base {
|
|
45
45
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Opencode/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvE,OAAO,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAoC,MAAM,cAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"Mcp.d.ts","sourceRoot":"","sources":["../../../../src/Install/Opencode/Mcp.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAiB,MAAM,EAAE,MAAM,QAAQ,CAAA;AACvE,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,aAAa,EAAoC,MAAM,cAAc,CAAA;;;;;;;;;;;;;;;;;;;;;;AAGtH;;;;;;;;GAQG;AACH,qBAAa,KAAM,SAAQ,UAKzB;CAAG;;;;;;;;;;AAEL,qBAAa,WAAY,SAAQ,gBAiE/B;CAAG"}
|
|
@@ -14,8 +14,10 @@ export declare const SKILL_NAME = "expandai";
|
|
|
14
14
|
declare const OpencodeSkill_base: Effect.Service.Class<OpencodeSkill, "@expandai/cli/Install/Opencode/Skill", {
|
|
15
15
|
readonly dependencies: readonly [import("effect/Layer").Layer<SkillIo, import("@effect/platform/Error").BadArgument, never>];
|
|
16
16
|
readonly effect: Effect.Effect<{
|
|
17
|
-
readonly install: (scope: "
|
|
18
|
-
readonly uninstall: (scope: "
|
|
17
|
+
readonly install: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
18
|
+
readonly uninstall: (scope: "global" | "project") => Effect.Effect<string, import("@effect/platform/Error").PlatformError, never>;
|
|
19
|
+
readonly isCurrent: (scope: "global" | "project") => Effect.Effect<boolean, import("@effect/platform/Error").PlatformError, never>;
|
|
20
|
+
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
19
21
|
}, import("effect/ConfigError").ConfigError, SkillIo>;
|
|
20
22
|
}>;
|
|
21
23
|
export declare class OpencodeSkill extends OpencodeSkill_base {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Opencode/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;;;;;;GASG;AAEH,eAAO,MAAM,UAAU,aAAa,CAAA
|
|
1
|
+
{"version":3,"file":"Skill.d.ts","sourceRoot":"","sources":["../../../../src/Install/Opencode/Skill.ts"],"names":[],"mappings":"AACA,OAAO,EAAU,MAAM,EAAS,MAAM,QAAQ,CAAA;AAC9C,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAGtC;;;;;;;;;GASG;AAEH,eAAO,MAAM,UAAU,aAAa,CAAA;;;;;;;;;;AAEpC,qBAAa,aAAc,SAAQ,kBA6BjC;CAAG"}
|
|
@@ -4,10 +4,10 @@ import { CodexSkill } from './Codex/Skill.js';
|
|
|
4
4
|
import { CursorSkill } from './Cursor/Skill.js';
|
|
5
5
|
import { OpencodeSkill } from './Opencode/Skill.js';
|
|
6
6
|
declare const Skill_base: Effect.Service.Class<Skill, "@expandai/cli/Install/Skill", {
|
|
7
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ClaudeSkill, import("effect/
|
|
7
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<ClaudeSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<CursorSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<OpencodeSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<CodexSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>];
|
|
8
8
|
readonly effect: Effect.Effect<{
|
|
9
|
-
readonly install: (host: "claude-code" | "
|
|
10
|
-
readonly uninstall: (host: "claude-code" | "
|
|
9
|
+
readonly install: (host: "claude-code" | "codex" | "cursor" | "opencode", scope: "global" | "project") => Effect.Effect<void, import("@effect/platform/Error").PlatformError, never>;
|
|
10
|
+
readonly uninstall: (host: "claude-code" | "codex" | "cursor" | "opencode", scope: "global" | "project") => Effect.Effect<void, import("@effect/platform/Error").PlatformError, never>;
|
|
11
11
|
}, never, ClaudeSkill | CodexSkill | CursorSkill | OpencodeSkill>;
|
|
12
12
|
}>;
|
|
13
13
|
/**
|
|
@@ -12,19 +12,19 @@ declare const UninstallOptions_base: Schema.Class<UninstallOptions, {
|
|
|
12
12
|
host: Schema.optional<Schema.Literal<["claude-code", "cursor", "opencode", "codex"]>>;
|
|
13
13
|
scope: Schema.optional<Schema.Literal<["project", "global"]>>;
|
|
14
14
|
}>, never, {
|
|
15
|
-
readonly
|
|
15
|
+
readonly host?: "claude-code" | "codex" | "cursor" | "opencode" | undefined;
|
|
16
16
|
} & {
|
|
17
|
-
readonly
|
|
17
|
+
readonly scope?: "global" | "project" | undefined;
|
|
18
18
|
} & {
|
|
19
|
-
readonly
|
|
19
|
+
readonly target?: "all" | "hook" | "mcp" | "skill" | undefined;
|
|
20
20
|
}, {}, {}>;
|
|
21
21
|
export declare class UninstallOptions extends UninstallOptions_base {
|
|
22
22
|
}
|
|
23
23
|
declare const Uninstall_base: Effect.Service.Class<Uninstall, "@expandai/cli/Install/Uninstall", {
|
|
24
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<HookInstaller, import("effect/
|
|
24
|
+
readonly dependencies: readonly [import("effect/Layer").Layer<HookInstaller, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<Mcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<Skill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>];
|
|
25
25
|
readonly effect: Effect.Effect<{
|
|
26
|
-
readonly uninstall: (options?: UninstallOptions | undefined) => Effect.Effect<void, import("
|
|
27
|
-
}, never,
|
|
26
|
+
readonly uninstall: (options?: UninstallOptions | undefined) => Effect.Effect<void, import("./Domain.js").McpParseError | import("./Domain.js").McpWriteError | import("effect/ParseResult").ParseError | import("@effect/platform/Error").PlatformError, never>;
|
|
27
|
+
}, never, HookInstaller | Mcp | Skill>;
|
|
28
28
|
}>;
|
|
29
29
|
export declare class Uninstall extends Uninstall_base {
|
|
30
30
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Uninstall.d.ts","sourceRoot":"","sources":["../../../src/Install/Uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAA;AACrD,OAAO,EAAiB,aAAa,EAAE,MAAM,WAAW,CAAA;AACxD,OAAO,
|
|
1
|
+
{"version":3,"file":"Uninstall.d.ts","sourceRoot":"","sources":["../../../src/Install/Uninstall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAS,MAAM,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAA;AACrD,OAAO,EAAiB,aAAa,EAAE,MAAM,WAAW,CAAA;AACxD,OAAO,EAAsB,GAAG,EAAE,MAAM,UAAU,CAAA;AAClD,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAA;AAElC,eAAO,MAAM,eAAe,iDAAgD,CAAA;;;;;;;;;;;;;;;;AAE5E,qBAAa,gBAAiB,SAAQ,qBAIpC;CAAG;;;;;;;AAOL,qBAAa,SAAU,SAAQ,cA+D7B;CAAG"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Zero-dependency ANSI syntax highlighting for markdown printed to an
|
|
3
|
+
* interactive terminal.
|
|
4
|
+
*
|
|
5
|
+
* This is a highlighter, not a renderer: the input text is preserved
|
|
6
|
+
* byte-for-byte and only wrapped in ANSI escape sequences, so copying
|
|
7
|
+
* from the terminal or stripping the escapes yields the exact document
|
|
8
|
+
* the API returned. Piped output (non-TTY) must stay unstyled — gate
|
|
9
|
+
* calls with `shouldColorizeMarkdown`.
|
|
10
|
+
*/
|
|
11
|
+
export interface ColorizeEnvironment {
|
|
12
|
+
readonly isTty: boolean;
|
|
13
|
+
readonly env: Readonly<Record<string, string | undefined>>;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* Standard CLI color negotiation: color only on an interactive terminal,
|
|
17
|
+
* `NO_COLOR` (https://no-color.org) and `TERM=dumb` opt out, a non-zero
|
|
18
|
+
* `FORCE_COLOR` opts in regardless of the terminal.
|
|
19
|
+
*/
|
|
20
|
+
export declare function shouldColorizeMarkdown(environment?: ColorizeEnvironment): boolean;
|
|
21
|
+
/**
|
|
22
|
+
* Wrap a markdown document in ANSI styles for terminal display. Line-based:
|
|
23
|
+
* headings, fences, front matter, blockquotes, list markers, and table pipes
|
|
24
|
+
* get block styling; plain text lines get inline code / link / bold styling.
|
|
25
|
+
*/
|
|
26
|
+
export declare function highlightMarkdownAnsi(markdown: string): string;
|
|
27
|
+
/** Strip the escape sequences this module emits; used to verify lossless styling. */
|
|
28
|
+
export declare function stripAnsi(text: string): string;
|
|
29
|
+
//# sourceMappingURL=MarkdownAnsi.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MarkdownAnsi.d.ts","sourceRoot":"","sources":["../../src/MarkdownAnsi.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAkBH,MAAM,WAAW,mBAAmB;IACnC,QAAQ,CAAC,KAAK,EAAE,OAAO,CAAA;IACvB,QAAQ,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC,CAAA;CAC1D;AAED;;;;GAIG;AACH,wBAAgB,sBAAsB,CACrC,WAAW,GAAE,mBAAgF,GAC3F,OAAO,CAOT;AAmCD;;;;GAIG;AACH,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,MAAM,CAoE9D;AAED,qFAAqF;AACrF,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAI9C"}
|