expandai 0.0.4 → 0.0.5
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/build/{esm/Install/Opencode → assets/opencode}/expandai-webfetch.js +22 -4
- package/build/dts/Mcp/RequestHeaders.d.ts +0 -1
- package/build/dts/Mcp/Server.d.ts +1 -2
- package/build/dts/index.d.ts +0 -1
- package/build/esm/index.js +180 -2
- package/build/esm/main.js +677 -200
- package/package.json +19 -11
- package/build/dts/ApiClient.d.ts +0 -165
- package/build/dts/ApiClient.d.ts.map +0 -1
- package/build/dts/Auth/Domain.d.ts +0 -95
- package/build/dts/Auth/Domain.d.ts.map +0 -1
- package/build/dts/Auth/ManualAuthorization.d.ts +0 -107
- package/build/dts/Auth/ManualAuthorization.d.ts.map +0 -1
- package/build/dts/Auth/PendingInit.d.ts +0 -35
- package/build/dts/Auth/PendingInit.d.ts.map +0 -1
- package/build/dts/Auth/Pkce.d.ts +0 -10
- package/build/dts/Auth/Pkce.d.ts.map +0 -1
- package/build/dts/Auth/SetupGrantAuthorization.d.ts +0 -34
- package/build/dts/Auth/SetupGrantAuthorization.d.ts.map +0 -1
- package/build/dts/Authentication.d.ts +0 -24
- package/build/dts/Authentication.d.ts.map +0 -1
- package/build/dts/BrowserOAuth.d.ts +0 -99
- package/build/dts/BrowserOAuth.d.ts.map +0 -1
- package/build/dts/CommandPath.d.ts +0 -2
- package/build/dts/CommandPath.d.ts.map +0 -1
- package/build/dts/Commands/Fetch.d.ts +0 -30
- package/build/dts/Commands/Fetch.d.ts.map +0 -1
- package/build/dts/Commands/Hook.d.ts +0 -17
- package/build/dts/Commands/Hook.d.ts.map +0 -1
- package/build/dts/Commands/Init.d.ts +0 -55
- package/build/dts/Commands/Init.d.ts.map +0 -1
- package/build/dts/Commands/Mcp.d.ts +0 -11
- package/build/dts/Commands/Mcp.d.ts.map +0 -1
- package/build/dts/Commands/McpRun.d.ts +0 -5
- package/build/dts/Commands/McpRun.d.ts.map +0 -1
- package/build/dts/Commands/Search.d.ts +0 -21
- package/build/dts/Commands/Search.d.ts.map +0 -1
- package/build/dts/Commands/Skill.d.ts +0 -12
- package/build/dts/Commands/Skill.d.ts.map +0 -1
- package/build/dts/Commands/Status.d.ts +0 -27
- package/build/dts/Commands/Status.d.ts.map +0 -1
- package/build/dts/Commands/Telemetry.d.ts +0 -7
- package/build/dts/Commands/Telemetry.d.ts.map +0 -1
- package/build/dts/Commands/Uninstall.d.ts +0 -9
- package/build/dts/Commands/Uninstall.d.ts.map +0 -1
- package/build/dts/Config.d.ts +0 -196
- package/build/dts/Config.d.ts.map +0 -1
- package/build/dts/Hook/Claude.d.ts +0 -13
- package/build/dts/Hook/Claude.d.ts.map +0 -1
- package/build/dts/Hook/Errors.d.ts +0 -20
- package/build/dts/Hook/Errors.d.ts.map +0 -1
- package/build/dts/Hook/Opencode.d.ts +0 -13
- package/build/dts/Hook/Opencode.d.ts.map +0 -1
- package/build/dts/Hook/SnapshotNote.d.ts +0 -12
- package/build/dts/Hook/SnapshotNote.d.ts.map +0 -1
- package/build/dts/Init/ClaudeAdapter.d.ts +0 -61
- package/build/dts/Init/ClaudeAdapter.d.ts.map +0 -1
- package/build/dts/Init/ClaudeProfile.d.ts +0 -77
- package/build/dts/Init/ClaudeProfile.d.ts.map +0 -1
- package/build/dts/Init/Domain.d.ts +0 -139
- package/build/dts/Init/Domain.d.ts.map +0 -1
- package/build/dts/Init/HarnessAdapter.d.ts +0 -33
- package/build/dts/Init/HarnessAdapter.d.ts.map +0 -1
- package/build/dts/Init/HarnessDetector.d.ts +0 -19
- package/build/dts/Init/HarnessDetector.d.ts.map +0 -1
- package/build/dts/Init/HarnessRegistry.d.ts +0 -50
- package/build/dts/Init/HarnessRegistry.d.ts.map +0 -1
- package/build/dts/Init/MutationTransaction.d.ts +0 -96
- package/build/dts/Init/MutationTransaction.d.ts.map +0 -1
- package/build/dts/Init/Service.d.ts +0 -72
- package/build/dts/Init/Service.d.ts.map +0 -1
- package/build/dts/Init/StandardAdapters.d.ts +0 -42
- package/build/dts/Init/StandardAdapters.d.ts.map +0 -1
- package/build/dts/Init/Status.d.ts +0 -149
- package/build/dts/Init/Status.d.ts.map +0 -1
- package/build/dts/Install/Claude/Hook.d.ts +0 -88
- package/build/dts/Install/Claude/Hook.d.ts.map +0 -1
- package/build/dts/Install/Claude/Mcp.d.ts +0 -48
- package/build/dts/Install/Claude/Mcp.d.ts.map +0 -1
- package/build/dts/Install/Claude/Skill.d.ts +0 -23
- package/build/dts/Install/Claude/Skill.d.ts.map +0 -1
- package/build/dts/Install/Codex/Mcp.d.ts +0 -45
- package/build/dts/Install/Codex/Mcp.d.ts.map +0 -1
- package/build/dts/Install/Codex/Skill.d.ts +0 -22
- package/build/dts/Install/Codex/Skill.d.ts.map +0 -1
- package/build/dts/Install/Cursor/Mcp.d.ts +0 -45
- package/build/dts/Install/Cursor/Mcp.d.ts.map +0 -1
- package/build/dts/Install/Cursor/Skill.d.ts +0 -29
- package/build/dts/Install/Cursor/Skill.d.ts.map +0 -1
- package/build/dts/Install/Domain.d.ts +0 -103
- package/build/dts/Install/Domain.d.ts.map +0 -1
- package/build/dts/Install/Hook.d.ts +0 -30
- package/build/dts/Install/Hook.d.ts.map +0 -1
- package/build/dts/Install/Mcp.d.ts +0 -28
- package/build/dts/Install/Mcp.d.ts.map +0 -1
- package/build/dts/Install/Opencode/Hook.d.ts +0 -24
- package/build/dts/Install/Opencode/Hook.d.ts.map +0 -1
- package/build/dts/Install/Opencode/Mcp.d.ts +0 -47
- package/build/dts/Install/Opencode/Mcp.d.ts.map +0 -1
- package/build/dts/Install/Opencode/Skill.d.ts +0 -26
- package/build/dts/Install/Opencode/Skill.d.ts.map +0 -1
- package/build/dts/Install/Skill.d.ts +0 -32
- package/build/dts/Install/Skill.d.ts.map +0 -1
- package/build/dts/Install/Uninstall.d.ts +0 -32
- package/build/dts/Install/Uninstall.d.ts.map +0 -1
- package/build/dts/MarkdownAnsi.d.ts +0 -29
- package/build/dts/MarkdownAnsi.d.ts.map +0 -1
- package/build/dts/Mcp/ExpandDocs.d.ts +0 -19
- package/build/dts/Mcp/ExpandDocs.d.ts.map +0 -1
- package/build/dts/Mcp/RequestHeaders.d.ts.map +0 -1
- package/build/dts/Mcp/Server.d.ts.map +0 -1
- package/build/dts/Mcp/Toolkit.d.ts +0 -3
- package/build/dts/Mcp/Toolkit.d.ts.map +0 -1
- package/build/dts/Mcp/tools/Citations.d.ts +0 -266
- package/build/dts/Mcp/tools/Citations.d.ts.map +0 -1
- package/build/dts/Mcp/tools/Fetch.d.ts +0 -168
- package/build/dts/Mcp/tools/Fetch.d.ts.map +0 -1
- package/build/dts/SecureFile.d.ts +0 -23
- package/build/dts/SecureFile.d.ts.map +0 -1
- package/build/dts/Snippets.d.ts +0 -18
- package/build/dts/Snippets.d.ts.map +0 -1
- package/build/dts/Telemetry.d.ts +0 -30
- package/build/dts/Telemetry.d.ts.map +0 -1
- package/build/dts/Version.d.ts +0 -2
- package/build/dts/Version.d.ts.map +0 -1
- package/build/dts/Xdg.d.ts +0 -11
- package/build/dts/Xdg.d.ts.map +0 -1
- package/build/dts/index.d.ts.map +0 -1
- package/build/dts/main.d.ts +0 -3
- package/build/dts/main.d.ts.map +0 -1
- package/build/esm/ApiClient.js +0 -305
- package/build/esm/ApiClient.js.map +0 -1
- package/build/esm/Auth/Domain.js +0 -56
- package/build/esm/Auth/Domain.js.map +0 -1
- package/build/esm/Auth/ManualAuthorization.js +0 -253
- package/build/esm/Auth/ManualAuthorization.js.map +0 -1
- package/build/esm/Auth/PendingInit.js +0 -267
- package/build/esm/Auth/PendingInit.js.map +0 -1
- package/build/esm/Auth/Pkce.js +0 -23
- package/build/esm/Auth/Pkce.js.map +0 -1
- package/build/esm/Auth/SetupGrantAuthorization.js +0 -91
- package/build/esm/Auth/SetupGrantAuthorization.js.map +0 -1
- package/build/esm/Authentication.js +0 -143
- package/build/esm/Authentication.js.map +0 -1
- package/build/esm/BrowserOAuth.js +0 -251
- package/build/esm/BrowserOAuth.js.map +0 -1
- package/build/esm/CommandPath.js +0 -31
- package/build/esm/CommandPath.js.map +0 -1
- package/build/esm/Commands/Fetch.js +0 -119
- package/build/esm/Commands/Fetch.js.map +0 -1
- package/build/esm/Commands/Hook.js +0 -20
- package/build/esm/Commands/Hook.js.map +0 -1
- package/build/esm/Commands/Init.js +0 -371
- package/build/esm/Commands/Init.js.map +0 -1
- package/build/esm/Commands/Mcp.js +0 -19
- package/build/esm/Commands/Mcp.js.map +0 -1
- package/build/esm/Commands/McpRun.js +0 -15
- package/build/esm/Commands/McpRun.js.map +0 -1
- package/build/esm/Commands/Search.js +0 -46
- package/build/esm/Commands/Search.js.map +0 -1
- package/build/esm/Commands/Skill.js +0 -17
- package/build/esm/Commands/Skill.js.map +0 -1
- package/build/esm/Commands/Status.js +0 -186
- package/build/esm/Commands/Status.js.map +0 -1
- package/build/esm/Commands/Telemetry.js +0 -23
- package/build/esm/Commands/Telemetry.js.map +0 -1
- package/build/esm/Commands/Uninstall.js +0 -28
- package/build/esm/Commands/Uninstall.js.map +0 -1
- package/build/esm/Config.js +0 -619
- package/build/esm/Config.js.map +0 -1
- package/build/esm/Hook/Claude.js +0 -74
- package/build/esm/Hook/Claude.js.map +0 -1
- package/build/esm/Hook/Errors.js +0 -18
- package/build/esm/Hook/Errors.js.map +0 -1
- package/build/esm/Hook/Opencode.js +0 -50
- package/build/esm/Hook/Opencode.js.map +0 -1
- package/build/esm/Hook/SnapshotNote.js +0 -65
- package/build/esm/Hook/SnapshotNote.js.map +0 -1
- package/build/esm/Init/ClaudeAdapter.js +0 -137
- package/build/esm/Init/ClaudeAdapter.js.map +0 -1
- package/build/esm/Init/ClaudeProfile.js +0 -344
- package/build/esm/Init/ClaudeProfile.js.map +0 -1
- package/build/esm/Init/Domain.js +0 -118
- package/build/esm/Init/Domain.js.map +0 -1
- package/build/esm/Init/HarnessAdapter.js +0 -21
- package/build/esm/Init/HarnessAdapter.js.map +0 -1
- package/build/esm/Init/HarnessDetector.js +0 -65
- package/build/esm/Init/HarnessDetector.js.map +0 -1
- package/build/esm/Init/HarnessRegistry.js +0 -58
- package/build/esm/Init/HarnessRegistry.js.map +0 -1
- package/build/esm/Init/MutationTransaction.js +0 -494
- package/build/esm/Init/MutationTransaction.js.map +0 -1
- package/build/esm/Init/Service.js +0 -319
- package/build/esm/Init/Service.js.map +0 -1
- package/build/esm/Init/StandardAdapters.js +0 -116
- package/build/esm/Init/StandardAdapters.js.map +0 -1
- package/build/esm/Init/Status.js +0 -215
- package/build/esm/Init/Status.js.map +0 -1
- package/build/esm/Install/Claude/Hook.js +0 -77
- package/build/esm/Install/Claude/Hook.js.map +0 -1
- package/build/esm/Install/Claude/Mcp.js +0 -101
- package/build/esm/Install/Claude/Mcp.js.map +0 -1
- package/build/esm/Install/Claude/Skill.js +0 -56
- package/build/esm/Install/Claude/Skill.js.map +0 -1
- package/build/esm/Install/Codex/Mcp.js +0 -97
- package/build/esm/Install/Codex/Mcp.js.map +0 -1
- package/build/esm/Install/Codex/Skill.js +0 -33
- package/build/esm/Install/Codex/Skill.js.map +0 -1
- package/build/esm/Install/Cursor/Mcp.js +0 -74
- package/build/esm/Install/Cursor/Mcp.js.map +0 -1
- package/build/esm/Install/Cursor/Skill.js +0 -40
- package/build/esm/Install/Cursor/Skill.js.map +0 -1
- package/build/esm/Install/Domain.js +0 -162
- package/build/esm/Install/Domain.js.map +0 -1
- package/build/esm/Install/Hook.js +0 -38
- package/build/esm/Install/Hook.js.map +0 -1
- package/build/esm/Install/Mcp.js +0 -40
- package/build/esm/Install/Mcp.js.map +0 -1
- package/build/esm/Install/Opencode/Hook.js +0 -44
- package/build/esm/Install/Opencode/Hook.js.map +0 -1
- package/build/esm/Install/Opencode/Mcp.js +0 -76
- package/build/esm/Install/Opencode/Mcp.js.map +0 -1
- package/build/esm/Install/Opencode/Skill.js +0 -37
- package/build/esm/Install/Opencode/Skill.js.map +0 -1
- package/build/esm/Install/Skill.js +0 -41
- package/build/esm/Install/Skill.js.map +0 -1
- package/build/esm/Install/Uninstall.js +0 -49
- package/build/esm/Install/Uninstall.js.map +0 -1
- package/build/esm/MarkdownAnsi.js +0 -142
- package/build/esm/MarkdownAnsi.js.map +0 -1
- package/build/esm/Mcp/ExpandDocs.js +0 -56
- package/build/esm/Mcp/ExpandDocs.js.map +0 -1
- package/build/esm/Mcp/RequestHeaders.js +0 -13
- package/build/esm/Mcp/RequestHeaders.js.map +0 -1
- package/build/esm/Mcp/Server.js +0 -12
- package/build/esm/Mcp/Server.js.map +0 -1
- package/build/esm/Mcp/Toolkit.js +0 -16
- package/build/esm/Mcp/Toolkit.js.map +0 -1
- package/build/esm/Mcp/tools/Citations.js +0 -193
- package/build/esm/Mcp/tools/Citations.js.map +0 -1
- package/build/esm/Mcp/tools/Fetch.js +0 -165
- package/build/esm/Mcp/tools/Fetch.js.map +0 -1
- package/build/esm/SecureFile.js +0 -36
- package/build/esm/SecureFile.js.map +0 -1
- package/build/esm/Snippets.js +0 -29
- package/build/esm/Snippets.js.map +0 -1
- package/build/esm/Telemetry.js +0 -157
- package/build/esm/Telemetry.js.map +0 -1
- package/build/esm/Version.js +0 -4
- package/build/esm/Version.js.map +0 -1
- package/build/esm/Xdg.js +0 -15
- package/build/esm/Xdg.js.map +0 -1
- package/build/esm/index.js.map +0 -1
- package/build/esm/main.js.map +0 -1
- package/src/ApiClient.ts +0 -450
- package/src/Auth/Domain.ts +0 -63
- package/src/Auth/ManualAuthorization.ts +0 -296
- package/src/Auth/PendingInit.ts +0 -338
- package/src/Auth/Pkce.ts +0 -26
- package/src/Auth/SetupGrantAuthorization.ts +0 -116
- package/src/Authentication.ts +0 -202
- package/src/BrowserOAuth.ts +0 -359
- package/src/CommandPath.ts +0 -30
- package/src/Commands/Fetch.ts +0 -188
- package/src/Commands/Hook.ts +0 -48
- package/src/Commands/Init.ts +0 -489
- package/src/Commands/Mcp.ts +0 -30
- package/src/Commands/McpRun.ts +0 -25
- package/src/Commands/Search.ts +0 -97
- package/src/Commands/Skill.ts +0 -30
- package/src/Commands/Status.ts +0 -228
- package/src/Commands/Telemetry.ts +0 -42
- package/src/Commands/Uninstall.ts +0 -38
- package/src/Config.ts +0 -840
- package/src/Hook/Claude.ts +0 -81
- package/src/Hook/Errors.ts +0 -19
- package/src/Hook/Opencode.ts +0 -58
- package/src/Hook/SnapshotNote.ts +0 -66
- package/src/Init/ClaudeAdapter.ts +0 -191
- package/src/Init/ClaudeProfile.ts +0 -453
- package/src/Init/Domain.ts +0 -153
- package/src/Init/HarnessAdapter.ts +0 -35
- package/src/Init/HarnessDetector.ts +0 -77
- package/src/Init/HarnessRegistry.ts +0 -87
- package/src/Init/MutationTransaction.ts +0 -747
- package/src/Init/Service.ts +0 -385
- package/src/Init/StandardAdapters.ts +0 -141
- package/src/Init/Status.ts +0 -253
- package/src/Install/Claude/Hook.ts +0 -123
- package/src/Install/Claude/Mcp.ts +0 -129
- package/src/Install/Claude/Skill.ts +0 -77
- package/src/Install/Codex/Mcp.ts +0 -114
- package/src/Install/Codex/Skill.ts +0 -44
- package/src/Install/Cursor/Mcp.ts +0 -85
- package/src/Install/Cursor/Skill.ts +0 -51
- package/src/Install/Domain.ts +0 -221
- package/src/Install/Hook.ts +0 -50
- package/src/Install/Mcp.ts +0 -71
- package/src/Install/Opencode/Hook.ts +0 -55
- package/src/Install/Opencode/Mcp.ts +0 -87
- package/src/Install/Opencode/Skill.ts +0 -48
- package/src/Install/Opencode/expandai-webfetch.d.ts +0 -23
- package/src/Install/Opencode/expandai-webfetch.js +0 -56
- package/src/Install/Skill.ts +0 -57
- package/src/Install/Uninstall.ts +0 -82
- package/src/MarkdownAnsi.ts +0 -162
- package/src/Mcp/ExpandDocs.ts +0 -62
- package/src/Mcp/RequestHeaders.ts +0 -16
- package/src/Mcp/Server.ts +0 -15
- package/src/Mcp/Toolkit.ts +0 -21
- package/src/Mcp/tools/Citations.ts +0 -219
- package/src/Mcp/tools/Fetch.ts +0 -203
- package/src/SecureFile.ts +0 -70
- package/src/Snippets.ts +0 -39
- package/src/Telemetry.ts +0 -186
- package/src/Version.ts +0 -3
- package/src/Xdg.ts +0 -18
- package/src/index.ts +0 -1
- package/src/main.ts +0 -305
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
import { FileSystem } from '@effect/platform';
|
|
2
|
-
import { Effect } from 'effect';
|
|
3
|
-
import { CodexMcp } from '../Install/Codex/Mcp.js';
|
|
4
|
-
import { CodexSkill } from '../Install/Codex/Skill.js';
|
|
5
|
-
import { CursorMcp } from '../Install/Cursor/Mcp.js';
|
|
6
|
-
import { CursorSkill } from '../Install/Cursor/Skill.js';
|
|
7
|
-
import { OpencodeHook } from '../Install/Opencode/Hook.js';
|
|
8
|
-
import { OpencodeMcp } from '../Install/Opencode/Mcp.js';
|
|
9
|
-
import { OpencodeSkill } from '../Install/Opencode/Skill.js';
|
|
10
|
-
import { HarnessConfigurationError, type HarnessInspection, HarnessInspectionError } from './HarnessAdapter.js';
|
|
11
|
-
declare const CursorAdapter_base: Effect.Service.Class<CursorAdapter, "@expandai/cli/Init/CursorAdapter", {
|
|
12
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<CursorMcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<CursorSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>];
|
|
13
|
-
readonly effect: Effect.Effect<{
|
|
14
|
-
readonly harness: "claude-code" | "codex" | "cursor" | "opencode";
|
|
15
|
-
readonly inspect: (scope: "global" | "project") => Effect.Effect<HarnessInspection, HarnessInspectionError, never>;
|
|
16
|
-
readonly configure: (scope: "global" | "project") => Effect.Effect<HarnessInspection, HarnessConfigurationError, never>;
|
|
17
|
-
}, never, CursorMcp | CursorSkill>;
|
|
18
|
-
}>;
|
|
19
|
-
export declare class CursorAdapter extends CursorAdapter_base {
|
|
20
|
-
}
|
|
21
|
-
declare const CodexAdapter_base: Effect.Service.Class<CodexAdapter, "@expandai/cli/Init/CodexAdapter", {
|
|
22
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<CodexMcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<CodexSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>];
|
|
23
|
-
readonly effect: Effect.Effect<{
|
|
24
|
-
readonly harness: "claude-code" | "codex" | "cursor" | "opencode";
|
|
25
|
-
readonly inspect: (scope: "global" | "project") => Effect.Effect<HarnessInspection, HarnessInspectionError, never>;
|
|
26
|
-
readonly configure: (scope: "global" | "project") => Effect.Effect<HarnessInspection, HarnessConfigurationError, never>;
|
|
27
|
-
}, never, CodexMcp | CodexSkill>;
|
|
28
|
-
}>;
|
|
29
|
-
export declare class CodexAdapter extends CodexAdapter_base {
|
|
30
|
-
}
|
|
31
|
-
declare const OpencodeAdapter_base: Effect.Service.Class<OpencodeAdapter, "@expandai/cli/Init/OpencodeAdapter", {
|
|
32
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<FileSystem.FileSystem, never, never>, import("effect/Layer").Layer<OpencodeHook, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<OpencodeMcp, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<OpencodeSkill, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, never>];
|
|
33
|
-
readonly effect: Effect.Effect<{
|
|
34
|
-
readonly harness: "claude-code" | "codex" | "cursor" | "opencode";
|
|
35
|
-
readonly inspect: (scope: "global" | "project") => Effect.Effect<HarnessInspection, HarnessInspectionError, never>;
|
|
36
|
-
readonly configure: (scope: "global" | "project") => Effect.Effect<HarnessInspection, HarnessConfigurationError, never>;
|
|
37
|
-
}, never, FileSystem.FileSystem | OpencodeHook | OpencodeMcp | OpencodeSkill>;
|
|
38
|
-
}>;
|
|
39
|
-
export declare class OpencodeAdapter extends OpencodeAdapter_base {
|
|
40
|
-
}
|
|
41
|
-
export {};
|
|
42
|
-
//# sourceMappingURL=StandardAdapters.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"StandardAdapters.d.ts","sourceRoot":"","sources":["../../../src/Init/StandardAdapters.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAA;AAE7C,OAAO,EAAE,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/B,OAAO,EAAE,QAAQ,EAAE,MAAM,yBAAyB,CAAA;AAClD,OAAO,EAAE,UAAU,EAAE,MAAM,2BAA2B,CAAA;AACtD,OAAO,EAAE,SAAS,EAAE,MAAM,0BAA0B,CAAA;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAA;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,4BAA4B,CAAA;AACxD,OAAO,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAG5D,OAAO,EAAE,yBAAyB,EAAE,KAAK,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,qBAAqB,CAAA;;;;;;;;;AAoD/G,qBAAa,aAAc,SAAQ,kBAuBjC;CAAG;;;;;;;;;AAEL,qBAAa,YAAa,SAAQ,iBAuBhC;CAAG;;;;;;;;;AAEL,qBAAa,eAAgB,SAAQ,oBA0BnC;CAAG"}
|
|
@@ -1,149 +0,0 @@
|
|
|
1
|
-
import { DateTime, Effect, Schema } from 'effect';
|
|
2
|
-
import { PendingInitStore } from '../Auth/PendingInit.js';
|
|
3
|
-
import { ConfigManager } from '../Config.js';
|
|
4
|
-
import { HarnessRegistry } from './HarnessRegistry.js';
|
|
5
|
-
declare const StatusRequest_base: Schema.Class<StatusRequest, {
|
|
6
|
-
harness: Schema.Literal<["claude-code", "cursor", "opencode", "codex"]>;
|
|
7
|
-
scope: Schema.Literal<["project", "global"]>;
|
|
8
|
-
}, Schema.Struct.Encoded<{
|
|
9
|
-
harness: Schema.Literal<["claude-code", "cursor", "opencode", "codex"]>;
|
|
10
|
-
scope: Schema.Literal<["project", "global"]>;
|
|
11
|
-
}>, never, {
|
|
12
|
-
readonly harness: "claude-code" | "codex" | "cursor" | "opencode";
|
|
13
|
-
} & {
|
|
14
|
-
readonly scope: "global" | "project";
|
|
15
|
-
}, {}, {}>;
|
|
16
|
-
export declare class StatusRequest extends StatusRequest_base {
|
|
17
|
-
}
|
|
18
|
-
declare const StatusResult_base: Schema.Class<StatusResult, {
|
|
19
|
-
schemaVersion: Schema.Literal<[1]>;
|
|
20
|
-
status: Schema.Literal<["ok"]>;
|
|
21
|
-
harness: Schema.Literal<["claude-code", "cursor", "opencode", "codex"]>;
|
|
22
|
-
scope: Schema.Literal<["project", "global"]>;
|
|
23
|
-
cli: Schema.Struct<{
|
|
24
|
-
version: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
25
|
-
}>;
|
|
26
|
-
auth: Schema.Struct<{
|
|
27
|
-
state: Schema.Literal<["absent", "unusable", "refresh_required", "healthy"]>;
|
|
28
|
-
healthy: typeof Schema.Boolean;
|
|
29
|
-
}>;
|
|
30
|
-
pendingAuthorization: Schema.Union<[Schema.Struct<{
|
|
31
|
-
state: Schema.Literal<["none"]>;
|
|
32
|
-
count: Schema.Literal<[0]>;
|
|
33
|
-
}>, Schema.Struct<{
|
|
34
|
-
state: Schema.Literal<["approval_pending"]>;
|
|
35
|
-
count: Schema.Literal<[1]>;
|
|
36
|
-
approvalExpiresAt: typeof Schema.DateTimeUtc;
|
|
37
|
-
}>]>;
|
|
38
|
-
installation: Schema.Struct<{
|
|
39
|
-
configured: typeof Schema.Boolean;
|
|
40
|
-
integrationVersion: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>;
|
|
41
|
-
components: Schema.Struct<{
|
|
42
|
-
webfetchHook: typeof Schema.Boolean;
|
|
43
|
-
runtimeSkill: typeof Schema.Boolean;
|
|
44
|
-
mcp: typeof Schema.Boolean;
|
|
45
|
-
}>;
|
|
46
|
-
runtimeState: Schema.Literal<["unverified", "reload_required", "blocked"]>;
|
|
47
|
-
reloadState: Schema.Literal<["not_required", "required"]>;
|
|
48
|
-
consentState: Schema.Literal<["not_required", "may_be_required"]>;
|
|
49
|
-
policyState: Schema.Literal<["unverified", "blocked"]>;
|
|
50
|
-
policyCodes: Schema.filter<Schema.Array$<Schema.Literal<["managed_policy_blocked", "target_read_only"]>>>;
|
|
51
|
-
}>;
|
|
52
|
-
}, Schema.Struct.Encoded<{
|
|
53
|
-
schemaVersion: Schema.Literal<[1]>;
|
|
54
|
-
status: Schema.Literal<["ok"]>;
|
|
55
|
-
harness: Schema.Literal<["claude-code", "cursor", "opencode", "codex"]>;
|
|
56
|
-
scope: Schema.Literal<["project", "global"]>;
|
|
57
|
-
cli: Schema.Struct<{
|
|
58
|
-
version: Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>;
|
|
59
|
-
}>;
|
|
60
|
-
auth: Schema.Struct<{
|
|
61
|
-
state: Schema.Literal<["absent", "unusable", "refresh_required", "healthy"]>;
|
|
62
|
-
healthy: typeof Schema.Boolean;
|
|
63
|
-
}>;
|
|
64
|
-
pendingAuthorization: Schema.Union<[Schema.Struct<{
|
|
65
|
-
state: Schema.Literal<["none"]>;
|
|
66
|
-
count: Schema.Literal<[0]>;
|
|
67
|
-
}>, Schema.Struct<{
|
|
68
|
-
state: Schema.Literal<["approval_pending"]>;
|
|
69
|
-
count: Schema.Literal<[1]>;
|
|
70
|
-
approvalExpiresAt: typeof Schema.DateTimeUtc;
|
|
71
|
-
}>]>;
|
|
72
|
-
installation: Schema.Struct<{
|
|
73
|
-
configured: typeof Schema.Boolean;
|
|
74
|
-
integrationVersion: Schema.optional<Schema.filter<Schema.filter<Schema.filter<typeof Schema.String>>>>;
|
|
75
|
-
components: Schema.Struct<{
|
|
76
|
-
webfetchHook: typeof Schema.Boolean;
|
|
77
|
-
runtimeSkill: typeof Schema.Boolean;
|
|
78
|
-
mcp: typeof Schema.Boolean;
|
|
79
|
-
}>;
|
|
80
|
-
runtimeState: Schema.Literal<["unverified", "reload_required", "blocked"]>;
|
|
81
|
-
reloadState: Schema.Literal<["not_required", "required"]>;
|
|
82
|
-
consentState: Schema.Literal<["not_required", "may_be_required"]>;
|
|
83
|
-
policyState: Schema.Literal<["unverified", "blocked"]>;
|
|
84
|
-
policyCodes: Schema.filter<Schema.Array$<Schema.Literal<["managed_policy_blocked", "target_read_only"]>>>;
|
|
85
|
-
}>;
|
|
86
|
-
}>, never, {
|
|
87
|
-
readonly auth: {
|
|
88
|
-
readonly state: "absent" | "healthy" | "refresh_required" | "unusable";
|
|
89
|
-
readonly healthy: boolean;
|
|
90
|
-
};
|
|
91
|
-
} & {
|
|
92
|
-
readonly cli: {
|
|
93
|
-
readonly version: string;
|
|
94
|
-
};
|
|
95
|
-
} & {
|
|
96
|
-
readonly harness: "claude-code" | "codex" | "cursor" | "opencode";
|
|
97
|
-
} & {
|
|
98
|
-
readonly installation: {
|
|
99
|
-
readonly configured: boolean;
|
|
100
|
-
readonly integrationVersion?: string | undefined;
|
|
101
|
-
readonly components: {
|
|
102
|
-
readonly webfetchHook: boolean;
|
|
103
|
-
readonly runtimeSkill: boolean;
|
|
104
|
-
readonly mcp: boolean;
|
|
105
|
-
};
|
|
106
|
-
readonly runtimeState: "blocked" | "reload_required" | "unverified";
|
|
107
|
-
readonly reloadState: "not_required" | "required";
|
|
108
|
-
readonly consentState: "may_be_required" | "not_required";
|
|
109
|
-
readonly policyState: "blocked" | "unverified";
|
|
110
|
-
readonly policyCodes: readonly ("managed_policy_blocked" | "target_read_only")[];
|
|
111
|
-
};
|
|
112
|
-
} & {
|
|
113
|
-
readonly pendingAuthorization: {
|
|
114
|
-
readonly state: "none";
|
|
115
|
-
readonly count: 0;
|
|
116
|
-
} | {
|
|
117
|
-
readonly state: "approval_pending";
|
|
118
|
-
readonly count: 1;
|
|
119
|
-
readonly approvalExpiresAt: DateTime.Utc;
|
|
120
|
-
};
|
|
121
|
-
} & {
|
|
122
|
-
readonly schemaVersion: 1;
|
|
123
|
-
} & {
|
|
124
|
-
readonly scope: "global" | "project";
|
|
125
|
-
} & {
|
|
126
|
-
readonly status: "ok";
|
|
127
|
-
}, {}, {}>;
|
|
128
|
-
export declare class StatusResult extends StatusResult_base {
|
|
129
|
-
}
|
|
130
|
-
export declare const StatusServiceErrorCode: Schema.Literal<["credential_config_malformed", "credential_storage_insecure", "credential_health_failed", "pending_state_malformed", "pending_state_unavailable", "harness_inspection_failed", "invalid_status_result"]>;
|
|
131
|
-
declare const StatusServiceError_base: Schema.TaggedErrorClass<StatusServiceError, "StatusServiceError", {
|
|
132
|
-
readonly _tag: Schema.tag<"StatusServiceError">;
|
|
133
|
-
} & {
|
|
134
|
-
code: Schema.Literal<["credential_config_malformed", "credential_storage_insecure", "credential_health_failed", "pending_state_malformed", "pending_state_unavailable", "harness_inspection_failed", "invalid_status_result"]>;
|
|
135
|
-
recoverable: typeof Schema.Boolean;
|
|
136
|
-
}>;
|
|
137
|
-
export declare class StatusServiceError extends StatusServiceError_base {
|
|
138
|
-
get message(): "Credential storage is not secure enough to inspect." | "Local diagnostics returned an invalid result." | "Pending authorization state could not be inspected safely." | "Pending authorization state is malformed." | "Stored credential configuration is malformed." | "Stored credentials could not be inspected safely." | "The harness configuration could not be inspected safely.";
|
|
139
|
-
}
|
|
140
|
-
declare const StatusService_base: Effect.Service.Class<StatusService, "@expandai/cli/Init/StatusService", {
|
|
141
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigManager, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<PendingInitStore, import("effect/ConfigError").ConfigError, never>, import("effect/Layer").Layer<HarnessRegistry, import("@effect/platform/Error").BadArgument | import("effect/ConfigError").ConfigError, import("@effect/platform/FileSystem").FileSystem>];
|
|
142
|
-
readonly effect: Effect.Effect<{
|
|
143
|
-
readonly run: (request: StatusRequest) => Effect.Effect<StatusResult, StatusServiceError, never>;
|
|
144
|
-
}, never, ConfigManager | HarnessRegistry | PendingInitStore>;
|
|
145
|
-
}>;
|
|
146
|
-
export declare class StatusService extends StatusService_base {
|
|
147
|
-
}
|
|
148
|
-
export {};
|
|
149
|
-
//# sourceMappingURL=Status.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Status.d.ts","sourceRoot":"","sources":["../../../src/Init/Status.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAU,MAAM,EAAE,MAAM,QAAQ,CAAA;AAOzD,OAAO,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAA+D,MAAM,cAAc,CAAA;AAKzG,OAAO,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAA;;;;;;;;;;;;AAKtD,qBAAa,aAAc,SAAQ,kBAGjC;CAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkCL,qBAAa,YAAa,SAAQ,iBAShC;CAAG;AAEL,eAAO,MAAM,sBAAsB,0NAQlC,CAAA;;;;;;;AAED,qBAAa,kBAAmB,SAAQ,uBAGtC;IACD,IAAI,OAAO,8XAiBV;CACD;;;;;;;AAoGD,qBAAa,aAAc,SAAQ,kBAqDjC;CAAG"}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { type CliCommand, ConfigIo } from '../Domain.js';
|
|
3
|
-
/** Claude Code WebFetch hook invocation persisted in harness settings. */
|
|
4
|
-
export declare const HOOK_INVOCATION = "expandai hook claude-code";
|
|
5
|
-
export declare const HOOK_COMMAND = "expandai hook claude-code";
|
|
6
|
-
/**
|
|
7
|
-
* The hook line for a resolved CLI. Defaults to the bare `expandai` command;
|
|
8
|
-
* when the CLI is not on PATH — an `npx expandai init` with no global install —
|
|
9
|
-
* `CliInvocation` resolves to the npx form and the written hook stays runnable.
|
|
10
|
-
*/
|
|
11
|
-
export declare function hookCommandFor(cli?: CliCommand): string;
|
|
12
|
-
export declare const WEBFETCH_MATCHER = "WebFetch";
|
|
13
|
-
export declare const HookCommandEntry: Schema.TypeLiteral<{
|
|
14
|
-
type: Schema.Literal<["command"]>;
|
|
15
|
-
command: typeof Schema.String;
|
|
16
|
-
expandaiProfileVersion: Schema.optional<typeof Schema.String>;
|
|
17
|
-
/** Whether this install added the `WebFetch` deny rule — see `makeExpandaiMatcher`. */
|
|
18
|
-
expandaiManagedDeny: Schema.optional<typeof Schema.Boolean>;
|
|
19
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
|
|
20
|
-
export declare const HookMatcher: Schema.TypeLiteral<{
|
|
21
|
-
matcher: Schema.optional<typeof Schema.String>;
|
|
22
|
-
hooks: Schema.Array$<Schema.TypeLiteral<{
|
|
23
|
-
type: Schema.Literal<["command"]>;
|
|
24
|
-
command: typeof Schema.String;
|
|
25
|
-
expandaiProfileVersion: Schema.optional<typeof Schema.String>;
|
|
26
|
-
/** Whether this install added the `WebFetch` deny rule — see `makeExpandaiMatcher`. */
|
|
27
|
-
expandaiManagedDeny: Schema.optional<typeof Schema.Boolean>;
|
|
28
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>;
|
|
29
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
|
|
30
|
-
declare const HooksSection: Schema.TypeLiteral<{
|
|
31
|
-
PreToolUse: Schema.optional<Schema.Array$<Schema.TypeLiteral<{
|
|
32
|
-
matcher: Schema.optional<typeof Schema.String>;
|
|
33
|
-
hooks: Schema.Array$<Schema.TypeLiteral<{
|
|
34
|
-
type: Schema.Literal<["command"]>;
|
|
35
|
-
command: typeof Schema.String;
|
|
36
|
-
expandaiProfileVersion: Schema.optional<typeof Schema.String>;
|
|
37
|
-
/** Whether this install added the `WebFetch` deny rule — see `makeExpandaiMatcher`. */
|
|
38
|
-
expandaiManagedDeny: Schema.optional<typeof Schema.Boolean>;
|
|
39
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>;
|
|
40
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>>;
|
|
41
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>;
|
|
42
|
-
export declare const SettingsSchema: Schema.transform<Schema.SchemaClass<unknown, string, never>, Schema.TypeLiteral<{
|
|
43
|
-
hooks: Schema.optionalWith<Schema.TypeLiteral<{
|
|
44
|
-
PreToolUse: Schema.optional<Schema.Array$<Schema.TypeLiteral<{
|
|
45
|
-
matcher: Schema.optional<typeof Schema.String>;
|
|
46
|
-
hooks: Schema.Array$<Schema.TypeLiteral<{
|
|
47
|
-
type: Schema.Literal<["command"]>;
|
|
48
|
-
command: typeof Schema.String;
|
|
49
|
-
expandaiProfileVersion: Schema.optional<typeof Schema.String>;
|
|
50
|
-
/** Whether this install added the `WebFetch` deny rule — see `makeExpandaiMatcher`. */
|
|
51
|
-
expandaiManagedDeny: Schema.optional<typeof Schema.Boolean>;
|
|
52
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>;
|
|
53
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>>;
|
|
54
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>, {
|
|
55
|
-
default: () => typeof HooksSection.Type;
|
|
56
|
-
}>;
|
|
57
|
-
permissions: Schema.optional<Schema.TypeLiteral<{
|
|
58
|
-
deny: Schema.optional<Schema.Array$<typeof Schema.String>>;
|
|
59
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>;
|
|
60
|
-
}, readonly [Schema.Record$<typeof Schema.String, typeof Schema.Unknown>]>>;
|
|
61
|
-
export interface ClaudeHookPlan {
|
|
62
|
-
readonly changed: boolean;
|
|
63
|
-
readonly settings: typeof SettingsSchema.Type;
|
|
64
|
-
}
|
|
65
|
-
export declare function isExpandaiHookCommand(command: string): boolean;
|
|
66
|
-
declare const ClaudeHook_base: Effect.Service.Class<ClaudeHook, "@expandai/cli/Install/Claude/Hook", {
|
|
67
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>];
|
|
68
|
-
readonly effect: Effect.Effect<{
|
|
69
|
-
readonly install: (_scope: "global" | "project") => Effect.Effect<void, never, never>;
|
|
70
|
-
readonly uninstall: (_scope: "global" | "project") => Effect.Effect<void, never, never>;
|
|
71
|
-
readonly pathFor: (scope: "global" | "project") => Effect.Effect<string, never, never>;
|
|
72
|
-
}, import("effect/ConfigError").ConfigError, never>;
|
|
73
|
-
}>;
|
|
74
|
-
/**
|
|
75
|
-
* Nothing here writes to `settings.json`, and nothing here removes from it.
|
|
76
|
-
*
|
|
77
|
-
* A `WebFetch` deny entry is a bare string with nowhere to record who wrote it,
|
|
78
|
-
* and our hook is not proof either: `hook install` used to write the hook on its
|
|
79
|
-
* own, so a settings file carrying our hook and a `WebFetch` deny may well hold a
|
|
80
|
-
* rule the user added afterwards. Removing it would revoke a restriction its
|
|
81
|
-
* owner chose. Since Claude Code no longer gets a hook or a deny rule from us,
|
|
82
|
-
* there is nothing of ours left to clean up, and guessing is the only thing a
|
|
83
|
-
* cleanup pass could do.
|
|
84
|
-
*/
|
|
85
|
-
export declare class ClaudeHook extends ClaudeHook_base {
|
|
86
|
-
}
|
|
87
|
-
export {};
|
|
88
|
-
//# sourceMappingURL=Hook.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Hook.d.ts","sourceRoot":"","sources":["../../../../src/Install/Claude/Hook.ts"],"names":[],"mappings":"AACA,OAAO,EAAmB,MAAM,EAAS,MAAM,EAAE,MAAM,QAAQ,CAAA;AAC/D,OAAO,EAAE,KAAK,UAAU,EAAE,QAAQ,EAA+B,MAAM,cAAc,CAAA;AAGrF,0EAA0E;AAC1E,eAAO,MAAM,eAAe,8BAA8B,CAAA;AAC1D,eAAO,MAAM,YAAY,8BAAkB,CAAA;AAG3C;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,GAAG,GAAE,UAAuB,GAAG,MAAM,CAEnE;AACD,eAAO,MAAM,gBAAgB,aAAa,CAAA;AAE1C,eAAO,MAAM,gBAAgB;;;;IAK3B,uFAAuF;;0EAIxF,CAAA;AAED,eAAO,MAAM,WAAW;;;;;;QANtB,uFAAuF;;;0EAYxF,CAAA;AAED,QAAA,MAAM,YAAY;;;;;;;YAdhB,uFAAuF;;;;0EAiBxF,CAAA;AAOD,eAAO,MAAM,cAAc;;;;;;;;gBAxBzB,uFAAuF;;;;;uBA2BpB,OAAO,YAAY,CAAC,IAAI;;;;;2EAM5F,CAAA;AAED,MAAM,WAAW,cAAc;IAC9B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,EAAE,OAAO,cAAc,CAAC,IAAI,CAAA;CAC7C;AAED,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAW9D;;;;;;;;;AAED;;;;;;;;;;GAUG;AAEH,qBAAa,UAAW,SAAQ,eAgC9B;CAAG"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { type CliCommand, ConfigIo, McpParseError, McpServersConfigSchema, McpWriteError } from '../Domain.js';
|
|
3
|
-
declare const Entry_base: Schema.Class<Entry, {
|
|
4
|
-
type: Schema.Literal<["stdio"]>;
|
|
5
|
-
command: typeof Schema.NonEmptyTrimmedString;
|
|
6
|
-
args: Schema.Array$<typeof Schema.String>;
|
|
7
|
-
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
8
|
-
}, Schema.Struct.Encoded<{
|
|
9
|
-
type: Schema.Literal<["stdio"]>;
|
|
10
|
-
command: typeof Schema.NonEmptyTrimmedString;
|
|
11
|
-
args: Schema.Array$<typeof Schema.String>;
|
|
12
|
-
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
13
|
-
}>, never, {
|
|
14
|
-
readonly env?: {
|
|
15
|
-
readonly [x: string]: string;
|
|
16
|
-
} | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
readonly args: readonly string[];
|
|
19
|
-
} & {
|
|
20
|
-
readonly command: string;
|
|
21
|
-
} & {
|
|
22
|
-
readonly type: "stdio";
|
|
23
|
-
}, {}, {}>;
|
|
24
|
-
/** Claude Code MCP descriptor stored under the Expand-owned server key. */
|
|
25
|
-
export declare class Entry extends Entry_base {
|
|
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;
|
|
36
|
-
declare const ClaudeMcp_base: Effect.Service.Class<ClaudeMcp, "@expandai/cli/Install/Claude/Mcp", {
|
|
37
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>];
|
|
38
|
-
readonly effect: Effect.Effect<{
|
|
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>;
|
|
43
|
-
}, import("effect/ConfigError").ConfigError, ConfigIo>;
|
|
44
|
-
}>;
|
|
45
|
-
export declare class ClaudeMcp extends ClaudeMcp_base {
|
|
46
|
-
}
|
|
47
|
-
export {};
|
|
48
|
-
//# sourceMappingURL=Mcp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,23 +0,0 @@
|
|
|
1
|
-
import { FileSystem, Path } from '@effect/platform';
|
|
2
|
-
import { Effect } from 'effect';
|
|
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;
|
|
11
|
-
declare const ClaudeSkill_base: Effect.Service.Class<ClaudeSkill, "@expandai/cli/Install/Claude/Skill", {
|
|
12
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<FileSystem.FileSystem, never, never>, import("effect/Layer").Layer<Path.Path, never, never>];
|
|
13
|
-
readonly effect: Effect.Effect<{
|
|
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>;
|
|
19
|
-
}>;
|
|
20
|
-
export declare class ClaudeSkill extends ClaudeSkill_base {
|
|
21
|
-
}
|
|
22
|
-
export {};
|
|
23
|
-
//# sourceMappingURL=Skill.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,45 +0,0 @@
|
|
|
1
|
-
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { CliInvocation, ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
3
|
-
declare const Entry_base: Schema.Class<Entry, {
|
|
4
|
-
command: typeof Schema.NonEmptyTrimmedString;
|
|
5
|
-
args: Schema.Array$<typeof Schema.String>;
|
|
6
|
-
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
7
|
-
enabled: typeof Schema.Boolean;
|
|
8
|
-
}, Schema.Struct.Encoded<{
|
|
9
|
-
command: typeof Schema.NonEmptyTrimmedString;
|
|
10
|
-
args: Schema.Array$<typeof Schema.String>;
|
|
11
|
-
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
12
|
-
enabled: typeof Schema.Boolean;
|
|
13
|
-
}>, never, {
|
|
14
|
-
readonly env?: {
|
|
15
|
-
readonly [x: string]: string;
|
|
16
|
-
} | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
readonly args: readonly string[];
|
|
19
|
-
} & {
|
|
20
|
-
readonly command: string;
|
|
21
|
-
} & {
|
|
22
|
-
readonly enabled: boolean;
|
|
23
|
-
}, {}, {}>;
|
|
24
|
-
export declare class Entry extends Entry_base {
|
|
25
|
-
}
|
|
26
|
-
declare const CodexMcp_base: Effect.Service.Class<CodexMcp, "@expandai/cli/Install/Codex/Mcp", {
|
|
27
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<ConfigIo, never, never>, import("effect/Layer").Layer<CliInvocation, import("effect/ConfigError").ConfigError, never>];
|
|
28
|
-
readonly effect: Effect.Effect<{
|
|
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>;
|
|
34
|
-
}>;
|
|
35
|
-
/**
|
|
36
|
-
* Codex MCP descriptor — Codex stores MCP servers in TOML config under
|
|
37
|
-
* `[mcp_servers.<name>]`.
|
|
38
|
-
*
|
|
39
|
-
* - global → `~/.codex/config.toml`
|
|
40
|
-
* - project → `<cwd>/.codex/config.toml`
|
|
41
|
-
*/
|
|
42
|
-
export declare class CodexMcp extends CodexMcp_base {
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=Mcp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Effect } from 'effect';
|
|
2
|
-
import { SkillIo } from '../Domain.js';
|
|
3
|
-
/**
|
|
4
|
-
* Codex skills use the open agent skills locations:
|
|
5
|
-
*
|
|
6
|
-
* - global → `~/.agents/skills/<name>/`
|
|
7
|
-
* - project → `<cwd>/.agents/skills/<name>/`
|
|
8
|
-
*/
|
|
9
|
-
export declare const SKILL_NAME = "expandai";
|
|
10
|
-
declare const CodexSkill_base: Effect.Service.Class<CodexSkill, "@expandai/cli/Install/Codex/Skill", {
|
|
11
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<SkillIo, import("@effect/platform/Error").BadArgument, never>];
|
|
12
|
-
readonly effect: Effect.Effect<{
|
|
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>;
|
|
17
|
-
}, import("effect/ConfigError").ConfigError, SkillIo>;
|
|
18
|
-
}>;
|
|
19
|
-
export declare class CodexSkill extends CodexSkill_base {
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
22
|
-
//# sourceMappingURL=Skill.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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,45 +0,0 @@
|
|
|
1
|
-
import { Effect, Schema } from 'effect';
|
|
2
|
-
import { CliInvocation, ConfigIo, McpParseError, McpWriteError } from '../Domain.js';
|
|
3
|
-
declare const Entry_base: Schema.Class<Entry, {
|
|
4
|
-
type: Schema.Literal<["stdio"]>;
|
|
5
|
-
command: typeof Schema.NonEmptyTrimmedString;
|
|
6
|
-
args: Schema.Array$<typeof Schema.String>;
|
|
7
|
-
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
8
|
-
}, Schema.Struct.Encoded<{
|
|
9
|
-
type: Schema.Literal<["stdio"]>;
|
|
10
|
-
command: typeof Schema.NonEmptyTrimmedString;
|
|
11
|
-
args: Schema.Array$<typeof Schema.String>;
|
|
12
|
-
env: Schema.optional<Schema.Record$<typeof Schema.String, typeof Schema.String>>;
|
|
13
|
-
}>, never, {
|
|
14
|
-
readonly env?: {
|
|
15
|
-
readonly [x: string]: string;
|
|
16
|
-
} | undefined;
|
|
17
|
-
} & {
|
|
18
|
-
readonly args: readonly string[];
|
|
19
|
-
} & {
|
|
20
|
-
readonly command: string;
|
|
21
|
-
} & {
|
|
22
|
-
readonly type: "stdio";
|
|
23
|
-
}, {}, {}>;
|
|
24
|
-
/**
|
|
25
|
-
* Cursor MCP descriptor — same `mcpServers` shape as Claude Code, different
|
|
26
|
-
* paths.
|
|
27
|
-
*
|
|
28
|
-
* - global → `~/.cursor/mcp.json`
|
|
29
|
-
* - project → `<cwd>/.cursor/mcp.json`
|
|
30
|
-
*/
|
|
31
|
-
export declare class Entry extends Entry_base {
|
|
32
|
-
}
|
|
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>, import("effect/Layer").Layer<CliInvocation, import("effect/ConfigError").ConfigError, never>];
|
|
35
|
-
readonly effect: Effect.Effect<{
|
|
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
|
-
}>;
|
|
42
|
-
export declare class CursorMcp extends CursorMcp_base {
|
|
43
|
-
}
|
|
44
|
-
export {};
|
|
45
|
-
//# sourceMappingURL=Mcp.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { Effect } from 'effect';
|
|
2
|
-
import { SkillIo } from '../Domain.js';
|
|
3
|
-
/**
|
|
4
|
-
* Cursor skills are auto-loaded from these locations (per
|
|
5
|
-
* cursor.com/docs/skills):
|
|
6
|
-
*
|
|
7
|
-
* - global → `~/.cursor/skills/<name>/`
|
|
8
|
-
* - project → `<cwd>/.cursor/skills/<name>/`
|
|
9
|
-
*
|
|
10
|
-
* Cursor also compat-loads `.claude/skills/`, `.codex/skills/`, `.agents/skills/`
|
|
11
|
-
* at both project and user scope, but we ship to Cursor's native paths.
|
|
12
|
-
*
|
|
13
|
-
* Format is the same SKILL.md + YAML frontmatter open standard as Claude Code
|
|
14
|
-
* and OpenCode, so the bundled `skills/expandai/` directory copies in unchanged.
|
|
15
|
-
*/
|
|
16
|
-
export declare const SKILL_NAME = "expandai";
|
|
17
|
-
declare const CursorSkill_base: Effect.Service.Class<CursorSkill, "@expandai/cli/Install/Cursor/Skill", {
|
|
18
|
-
readonly dependencies: readonly [import("effect/Layer").Layer<SkillIo, import("@effect/platform/Error").BadArgument, never>];
|
|
19
|
-
readonly effect: Effect.Effect<{
|
|
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>;
|
|
24
|
-
}, import("effect/ConfigError").ConfigError, SkillIo>;
|
|
25
|
-
}>;
|
|
26
|
-
export declare class CursorSkill extends CursorSkill_base {
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
29
|
-
//# sourceMappingURL=Skill.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
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"}
|