@maiaos/cli 0.1.0-canary.2
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 +287 -0
- package/dist/bin/maia.NOTICES.txt +59 -0
- package/dist/bin/maia.cdx.json +145 -0
- package/dist/bin/maia.mjs +2 -0
- package/dist/bootstrap/index.d.ts +3 -0
- package/dist/bootstrap/index.js +3 -0
- package/dist/bootstrap/process.d.ts +5 -0
- package/dist/bootstrap/process.js +45 -0
- package/dist/bootstrap/run.d.ts +25 -0
- package/dist/bootstrap/run.js +95 -0
- package/dist/bootstrap/stdio.d.ts +4 -0
- package/dist/bootstrap/stdio.js +9 -0
- package/dist/cli/cli.d.ts +17 -0
- package/dist/cli/cli.js +481 -0
- package/dist/cli/environment.d.ts +8 -0
- package/dist/cli/environment.js +12 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.js +2 -0
- package/dist/cli/services.d.ts +4 -0
- package/dist/cli/services.js +4 -0
- package/dist/command-line/context.d.ts +178 -0
- package/dist/command-line/context.js +2 -0
- package/dist/command-line/index.d.ts +7 -0
- package/dist/command-line/index.js +6 -0
- package/dist/command-line/input/arguments.d.ts +55 -0
- package/dist/command-line/input/arguments.js +220 -0
- package/dist/command-line/input/index.d.ts +4 -0
- package/dist/command-line/input/index.js +4 -0
- package/dist/command-line/input/prompt.d.ts +8 -0
- package/dist/command-line/input/prompt.js +44 -0
- package/dist/command-line/input/stdin-stream.d.ts +4 -0
- package/dist/command-line/input/stdin-stream.js +3 -0
- package/dist/command-line/input/stdin.d.ts +11 -0
- package/dist/command-line/input/stdin.js +23 -0
- package/dist/command-line/json-decoder.d.ts +3 -0
- package/dist/command-line/json-decoder.js +3 -0
- package/dist/command-line/json.d.ts +3 -0
- package/dist/command-line/json.js +4 -0
- package/dist/command-line/output.d.ts +57 -0
- package/dist/command-line/output.js +94 -0
- package/dist/command-line/rows.d.ts +10 -0
- package/dist/command-line/rows.js +32 -0
- package/dist/command-line/two-phase.d.ts +57 -0
- package/dist/command-line/two-phase.js +148 -0
- package/dist/command-receipt/command.d.ts +4 -0
- package/dist/command-receipt/command.js +59 -0
- package/dist/command-receipt/compact-list.d.ts +20 -0
- package/dist/command-receipt/compact-list.js +29 -0
- package/dist/command-receipt/index.d.ts +3 -0
- package/dist/command-receipt/index.js +3 -0
- package/dist/command-tree/commands.d.ts +17 -0
- package/dist/command-tree/commands.js +41 -0
- package/dist/command-tree/completion.d.ts +6 -0
- package/dist/command-tree/completion.js +36 -0
- package/dist/command-tree/grammar.d.ts +18 -0
- package/dist/command-tree/grammar.js +160 -0
- package/dist/command-tree/help.d.ts +62 -0
- package/dist/command-tree/help.js +219 -0
- package/dist/command-tree/index.d.ts +8 -0
- package/dist/command-tree/index.js +6 -0
- package/dist/command-tree/local.d.ts +3 -0
- package/dist/command-tree/local.js +126 -0
- package/dist/command-tree/placeholder.d.ts +3 -0
- package/dist/command-tree/placeholder.js +4 -0
- package/dist/command-tree/row.d.ts +29 -0
- package/dist/command-tree/row.js +2 -0
- package/dist/command-tree/suggest.d.ts +3 -0
- package/dist/command-tree/suggest.js +81 -0
- package/dist/command-tree/tree.d.ts +34 -0
- package/dist/command-tree/tree.js +124 -0
- package/dist/connection/client.d.ts +692 -0
- package/dist/connection/client.js +28 -0
- package/dist/connection/commands.d.ts +15 -0
- package/dist/connection/commands.js +118 -0
- package/dist/connection/index.d.ts +7 -0
- package/dist/connection/index.js +7 -0
- package/dist/connection/input.d.ts +50 -0
- package/dist/connection/input.js +90 -0
- package/dist/connection/login.d.ts +13 -0
- package/dist/connection/login.js +69 -0
- package/dist/connection/output/format.d.ts +32 -0
- package/dist/connection/output/format.js +94 -0
- package/dist/connection/output/index.d.ts +2 -0
- package/dist/connection/output/index.js +2 -0
- package/dist/connection/resolve.d.ts +60 -0
- package/dist/connection/resolve.js +30 -0
- package/dist/connection/signin.d.ts +4 -0
- package/dist/connection/signin.js +32 -0
- package/dist/connection/system.d.ts +4 -0
- package/dist/connection/system.js +190 -0
- package/dist/connection/tree/index.d.ts +2 -0
- package/dist/connection/tree/index.js +2 -0
- package/dist/connection/tree/tree.d.ts +3 -0
- package/dist/connection/tree/tree.js +209 -0
- package/dist/container/client.d.ts +142 -0
- package/dist/container/client.js +11 -0
- package/dist/container/commands.d.ts +7 -0
- package/dist/container/commands.js +100 -0
- package/dist/container/index.d.ts +3 -0
- package/dist/container/index.js +3 -0
- package/dist/container/output/format.d.ts +11 -0
- package/dist/container/output/format.js +28 -0
- package/dist/container/output/index.d.ts +2 -0
- package/dist/container/output/index.js +2 -0
- package/dist/context/client.d.ts +7 -0
- package/dist/context/client.js +21 -0
- package/dist/context/commands.d.ts +3 -0
- package/dist/context/commands.js +27 -0
- package/dist/context/index.d.ts +3 -0
- package/dist/context/index.js +3 -0
- package/dist/development/cli.d.ts +3 -0
- package/dist/development/cli.js +44 -0
- package/dist/execution/client.d.ts +25 -0
- package/dist/execution/client.js +24 -0
- package/dist/execution/index.d.ts +3 -0
- package/dist/execution/index.js +3 -0
- package/dist/execution/relocation.d.ts +6 -0
- package/dist/execution/relocation.js +123 -0
- package/dist/execution/tree/index.d.ts +2 -0
- package/dist/execution/tree/index.js +2 -0
- package/dist/execution/tree/tree.d.ts +3 -0
- package/dist/execution/tree/tree.js +137 -0
- package/dist/hold/client.d.ts +137 -0
- package/dist/hold/client.js +12 -0
- package/dist/hold/commands.d.ts +5 -0
- package/dist/hold/commands.js +91 -0
- package/dist/hold/index.d.ts +3 -0
- package/dist/hold/index.js +3 -0
- package/dist/hold/output/format.d.ts +11 -0
- package/dist/hold/output/format.js +29 -0
- package/dist/hold/output/index.d.ts +2 -0
- package/dist/hold/output/index.js +2 -0
- package/dist/hold/tree/index.d.ts +2 -0
- package/dist/hold/tree/index.js +2 -0
- package/dist/hold/tree/tree.d.ts +3 -0
- package/dist/hold/tree/tree.js +96 -0
- package/dist/import/client.d.ts +14 -0
- package/dist/import/client.js +16 -0
- package/dist/import/commands.d.ts +5 -0
- package/dist/import/commands.js +76 -0
- package/dist/import/index.d.ts +3 -0
- package/dist/import/index.js +3 -0
- package/dist/import/input.d.ts +16 -0
- package/dist/import/input.js +92 -0
- package/dist/import/output.d.ts +6 -0
- package/dist/import/output.js +40 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/integration/client.d.ts +1284 -0
- package/dist/integration/client.js +24 -0
- package/dist/integration/commands.d.ts +10 -0
- package/dist/integration/commands.js +104 -0
- package/dist/integration/index.d.ts +3 -0
- package/dist/integration/index.js +3 -0
- package/dist/integration/output.d.ts +22 -0
- package/dist/integration/output.js +20 -0
- package/dist/local-node/call.d.ts +7 -0
- package/dist/local-node/call.js +13 -0
- package/dist/local-node/client.d.ts +67 -0
- package/dist/local-node/client.js +241 -0
- package/dist/local-node/index.d.ts +3 -0
- package/dist/local-node/index.js +3 -0
- package/dist/login/agent-provider.d.ts +20 -0
- package/dist/login/agent-provider.js +109 -0
- package/dist/login/commands.d.ts +4 -0
- package/dist/login/commands.js +93 -0
- package/dist/login/failure.d.ts +3 -0
- package/dist/login/failure.js +14 -0
- package/dist/login/gateway.d.ts +12 -0
- package/dist/login/gateway.js +71 -0
- package/dist/login/index.d.ts +3 -0
- package/dist/login/index.js +2 -0
- package/dist/login/menu.d.ts +4 -0
- package/dist/login/menu.js +105 -0
- package/dist/login/output/format.d.ts +16 -0
- package/dist/login/output/format.js +31 -0
- package/dist/login/output/index.d.ts +2 -0
- package/dist/login/output/index.js +2 -0
- package/dist/login/vendor-account.d.ts +95 -0
- package/dist/login/vendor-account.js +75 -0
- package/dist/login/vendor-input.d.ts +14 -0
- package/dist/login/vendor-input.js +36 -0
- package/dist/mcp/calls.d.ts +7 -0
- package/dist/mcp/calls.js +202 -0
- package/dist/mcp/commands.d.ts +9 -0
- package/dist/mcp/commands.js +21 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +2 -0
- package/dist/mcp/server.d.ts +11 -0
- package/dist/mcp/server.js +57 -0
- package/dist/orchestration/client.d.ts +78 -0
- package/dist/orchestration/client.js +89 -0
- package/dist/orchestration/commands.d.ts +14 -0
- package/dist/orchestration/commands.js +312 -0
- package/dist/orchestration/index.d.ts +3 -0
- package/dist/orchestration/index.js +3 -0
- package/dist/orchestration/output/compact-aggregate.d.ts +121 -0
- package/dist/orchestration/output/compact-aggregate.js +110 -0
- package/dist/orchestration/output/compact-run-list.d.ts +20 -0
- package/dist/orchestration/output/compact-run-list.js +16 -0
- package/dist/orchestration/output/human.d.ts +80 -0
- package/dist/orchestration/output/human.js +252 -0
- package/dist/orchestration/output/index.d.ts +4 -0
- package/dist/orchestration/output/index.js +4 -0
- package/dist/orchestration/tree/index.d.ts +2 -0
- package/dist/orchestration/tree/index.js +2 -0
- package/dist/orchestration/tree/tree.d.ts +3 -0
- package/dist/orchestration/tree/tree.js +142 -0
- package/dist/port-lease/client.d.ts +160 -0
- package/dist/port-lease/client.js +11 -0
- package/dist/port-lease/commands.d.ts +6 -0
- package/dist/port-lease/commands.js +17 -0
- package/dist/port-lease/index.d.ts +3 -0
- package/dist/port-lease/index.js +3 -0
- package/dist/port-lease/input.d.ts +65 -0
- package/dist/port-lease/input.js +67 -0
- package/dist/port-lease/output/format.d.ts +11 -0
- package/dist/port-lease/output/format.js +24 -0
- package/dist/port-lease/output/index.d.ts +2 -0
- package/dist/port-lease/output/index.js +2 -0
- package/dist/presentation/client.d.ts +10 -0
- package/dist/presentation/client.js +9 -0
- package/dist/presentation/commands.d.ts +6 -0
- package/dist/presentation/commands.js +78 -0
- package/dist/presentation/index.d.ts +4 -0
- package/dist/presentation/index.js +3 -0
- package/dist/presentation/output/format.d.ts +11 -0
- package/dist/presentation/output/format.js +32 -0
- package/dist/presentation/output/index.d.ts +3 -0
- package/dist/presentation/output/index.js +2 -0
- package/dist/project-guard/client.d.ts +88 -0
- package/dist/project-guard/client.js +7 -0
- package/dist/project-guard/commands.d.ts +4 -0
- package/dist/project-guard/commands.js +39 -0
- package/dist/project-guard/index.d.ts +3 -0
- package/dist/project-guard/index.js +3 -0
- package/dist/project-guard/input.d.ts +18 -0
- package/dist/project-guard/input.js +47 -0
- package/dist/project-guard/output/format.d.ts +11 -0
- package/dist/project-guard/output/format.js +35 -0
- package/dist/project-guard/output/index.d.ts +2 -0
- package/dist/project-guard/output/index.js +2 -0
- package/dist/project-workspace/client.d.ts +86 -0
- package/dist/project-workspace/client.js +159 -0
- package/dist/project-workspace/commands.d.ts +30 -0
- package/dist/project-workspace/commands.js +700 -0
- package/dist/project-workspace/index.d.ts +5 -0
- package/dist/project-workspace/index.js +5 -0
- package/dist/project-workspace/metadata-client.d.ts +99 -0
- package/dist/project-workspace/metadata-client.js +8 -0
- package/dist/project-workspace/metadata-commands.d.ts +4 -0
- package/dist/project-workspace/metadata-commands.js +56 -0
- package/dist/project-workspace/output/human.d.ts +126 -0
- package/dist/project-workspace/output/human.js +103 -0
- package/dist/project-workspace/output/index.d.ts +3 -0
- package/dist/project-workspace/output/index.js +3 -0
- package/dist/project-workspace/output/metadata.d.ts +11 -0
- package/dist/project-workspace/output/metadata.js +17 -0
- package/dist/project-workspace/tree/index.d.ts +2 -0
- package/dist/project-workspace/tree/index.js +2 -0
- package/dist/project-workspace/tree/tree.d.ts +3 -0
- package/dist/project-workspace/tree/tree.js +197 -0
- package/dist/provider/client.d.ts +6 -0
- package/dist/provider/client.js +5 -0
- package/dist/provider/commands.d.ts +3 -0
- package/dist/provider/commands.js +38 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.js +3 -0
- package/dist/reference/commands.d.ts +3 -0
- package/dist/reference/commands.js +39 -0
- package/dist/reference/index.d.ts +3 -0
- package/dist/reference/index.js +3 -0
- package/dist/reference/resolve.d.ts +29 -0
- package/dist/reference/resolve.js +294 -0
- package/dist/reference/tree/index.d.ts +2 -0
- package/dist/reference/tree/index.js +2 -0
- package/dist/reference/tree/tree.d.ts +3 -0
- package/dist/reference/tree/tree.js +17 -0
- package/dist/remote-node/client.d.ts +258 -0
- package/dist/remote-node/client.js +12 -0
- package/dist/remote-node/commands.d.ts +6 -0
- package/dist/remote-node/commands.js +264 -0
- package/dist/remote-node/connector.d.ts +59 -0
- package/dist/remote-node/connector.js +122 -0
- package/dist/remote-node/index.d.ts +4 -0
- package/dist/remote-node/index.js +4 -0
- package/dist/remote-node/reachability.d.ts +22 -0
- package/dist/remote-node/reachability.js +34 -0
- package/dist/remote-node/text.d.ts +9 -0
- package/dist/remote-node/text.js +64 -0
- package/dist/remote-node/tree/index.d.ts +2 -0
- package/dist/remote-node/tree/index.js +2 -0
- package/dist/remote-node/tree/tree.d.ts +3 -0
- package/dist/remote-node/tree/tree.js +51 -0
- package/dist/run-ledger/client.d.ts +358 -0
- package/dist/run-ledger/client.js +13 -0
- package/dist/run-ledger/commands.d.ts +8 -0
- package/dist/run-ledger/commands.js +19 -0
- package/dist/run-ledger/index.d.ts +3 -0
- package/dist/run-ledger/index.js +3 -0
- package/dist/run-ledger/input.d.ts +42 -0
- package/dist/run-ledger/input.js +107 -0
- package/dist/run-ledger/output/format.d.ts +11 -0
- package/dist/run-ledger/output/format.js +49 -0
- package/dist/run-ledger/output/index.d.ts +2 -0
- package/dist/run-ledger/output/index.js +2 -0
- package/dist/session/agent-permission.d.ts +63 -0
- package/dist/session/agent-permission.js +20 -0
- package/dist/session/approval/client.d.ts +117 -0
- package/dist/session/approval/client.js +7 -0
- package/dist/session/approval/commands.d.ts +7 -0
- package/dist/session/approval/commands.js +123 -0
- package/dist/session/approval/index.d.ts +3 -0
- package/dist/session/approval/index.js +3 -0
- package/dist/session/approval/output/format.d.ts +12 -0
- package/dist/session/approval/output/format.js +25 -0
- package/dist/session/approval/output/index.d.ts +2 -0
- package/dist/session/approval/output/index.js +2 -0
- package/dist/session/attach-client.d.ts +16 -0
- package/dist/session/attach-client.js +8 -0
- package/dist/session/attach-render.d.ts +16 -0
- package/dist/session/attach-render.js +154 -0
- package/dist/session/attach.d.ts +5 -0
- package/dist/session/attach.js +106 -0
- package/dist/session/client.d.ts +132 -0
- package/dist/session/client.js +128 -0
- package/dist/session/coding-client.d.ts +16 -0
- package/dist/session/coding-client.js +15 -0
- package/dist/session/coding-commands.d.ts +4 -0
- package/dist/session/coding-commands.js +50 -0
- package/dist/session/commands.d.ts +13 -0
- package/dist/session/commands.js +488 -0
- package/dist/session/create-tasks.d.ts +20 -0
- package/dist/session/create-tasks.js +110 -0
- package/dist/session/index.d.ts +9 -0
- package/dist/session/index.js +7 -0
- package/dist/session/interaction/client.d.ts +347 -0
- package/dist/session/interaction/client.js +15 -0
- package/dist/session/interaction/commands.d.ts +7 -0
- package/dist/session/interaction/commands.js +101 -0
- package/dist/session/interaction/index.d.ts +3 -0
- package/dist/session/interaction/index.js +3 -0
- package/dist/session/interaction/input.d.ts +15 -0
- package/dist/session/interaction/input.js +46 -0
- package/dist/session/interaction/output/format.d.ts +11 -0
- package/dist/session/interaction/output/format.js +3 -0
- package/dist/session/interaction/output/index.d.ts +2 -0
- package/dist/session/interaction/output/index.js +2 -0
- package/dist/session/output/diff.d.ts +3 -0
- package/dist/session/output/diff.js +30 -0
- package/dist/session/output/failure.d.ts +11 -0
- package/dist/session/output/failure.js +24 -0
- package/dist/session/output/human.d.ts +112 -0
- package/dist/session/output/human.js +71 -0
- package/dist/session/output/index.d.ts +6 -0
- package/dist/session/output/index.js +6 -0
- package/dist/session/output/observe.d.ts +4 -0
- package/dist/session/output/observe.js +46 -0
- package/dist/session/output/tasks.d.ts +19 -0
- package/dist/session/output/tasks.js +34 -0
- package/dist/session/rename.d.ts +3 -0
- package/dist/session/rename.js +37 -0
- package/dist/session/task-file.d.ts +5 -0
- package/dist/session/task-file.js +23 -0
- package/dist/session/tree/index.d.ts +2 -0
- package/dist/session/tree/index.js +2 -0
- package/dist/session/tree/tree.d.ts +3 -0
- package/dist/session/tree/tree.js +309 -0
- package/dist/session/turn/client.d.ts +25 -0
- package/dist/session/turn/client.js +40 -0
- package/dist/session/turn/commands.d.ts +6 -0
- package/dist/session/turn/commands.js +157 -0
- package/dist/session/turn/index.d.ts +4 -0
- package/dist/session/turn/index.js +3 -0
- package/dist/session/turn/output.d.ts +42 -0
- package/dist/session/turn/output.js +38 -0
- package/dist/status/client.d.ts +119 -0
- package/dist/status/client.js +5 -0
- package/dist/status/command.d.ts +4 -0
- package/dist/status/command.js +40 -0
- package/dist/status/doctor.d.ts +15 -0
- package/dist/status/doctor.js +111 -0
- package/dist/status/index.d.ts +5 -0
- package/dist/status/index.js +4 -0
- package/dist/status/output/compact.d.ts +31 -0
- package/dist/status/output/compact.js +46 -0
- package/dist/status/output/human.d.ts +7 -0
- package/dist/status/output/human.js +30 -0
- package/dist/status/output/index.d.ts +3 -0
- package/dist/status/output/index.js +3 -0
- package/dist/terminal/arguments.d.ts +13 -0
- package/dist/terminal/arguments.js +79 -0
- package/dist/terminal/client.d.ts +79 -0
- package/dist/terminal/client.js +68 -0
- package/dist/terminal/commands.d.ts +7 -0
- package/dist/terminal/commands.js +131 -0
- package/dist/terminal/control-commands.d.ts +10 -0
- package/dist/terminal/control-commands.js +212 -0
- package/dist/terminal/index.d.ts +4 -0
- package/dist/terminal/index.js +4 -0
- package/dist/terminal/output/compact-list.d.ts +147 -0
- package/dist/terminal/output/compact-list.js +152 -0
- package/dist/terminal/output/human.d.ts +59 -0
- package/dist/terminal/output/human.js +55 -0
- package/dist/terminal/output/index.d.ts +3 -0
- package/dist/terminal/output/index.js +3 -0
- package/dist/terminal/tree/index.d.ts +2 -0
- package/dist/terminal/tree/index.js +2 -0
- package/dist/terminal/tree/tree.d.ts +3 -0
- package/dist/terminal/tree/tree.js +104 -0
- package/guidance/maia-cli/SKILL.md +58 -0
- package/guidance/maia-orchestration/SKILL.md +54 -0
- package/package.json +76 -0
|
@@ -0,0 +1,692 @@
|
|
|
1
|
+
import { type ConnectionCapacitySetParameters, type ConnectionCreateParameters, type ConnectionDetectParameters, type ConnectionGatewayCreateParameters, type ConnectionListParameters, type ConnectionLoginStartParameters, type ConnectionModelsListParameters, type ConnectionShowParameters, type ConnectionStateSetParameters, type ConnectionSystemConfirmParameters, type ConnectionSystemPreviewParameters, type ConnectionUsageShowParameters } from "@maiaos/sdk";
|
|
2
|
+
import type { CliNodeOperations } from "../local-node/index.js";
|
|
3
|
+
export declare const makeConnectionClient: (node: CliNodeOperations) => {
|
|
4
|
+
listConnectionModels: (input: ConnectionModelsListParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
5
|
+
readonly connectionId: string;
|
|
6
|
+
readonly format: "anthropic" | "openai";
|
|
7
|
+
readonly method: "connection.models.list";
|
|
8
|
+
readonly models: readonly {
|
|
9
|
+
readonly displayName?: string | undefined;
|
|
10
|
+
readonly id: string;
|
|
11
|
+
}[];
|
|
12
|
+
readonly omitted: number;
|
|
13
|
+
readonly truncated: boolean;
|
|
14
|
+
}>;
|
|
15
|
+
listConnections: (input: ConnectionListParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
16
|
+
readonly items: readonly {
|
|
17
|
+
readonly configRoot: {
|
|
18
|
+
readonly kind: "maia-managed";
|
|
19
|
+
readonly path: string;
|
|
20
|
+
} | {
|
|
21
|
+
readonly kind: "system-default";
|
|
22
|
+
};
|
|
23
|
+
readonly connectionId: string;
|
|
24
|
+
readonly createdAt: string;
|
|
25
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
26
|
+
readonly gateway?: {
|
|
27
|
+
readonly baseUrl: string;
|
|
28
|
+
} | undefined;
|
|
29
|
+
readonly limitedUntil: string | null;
|
|
30
|
+
readonly maxConcurrentSessions: number;
|
|
31
|
+
readonly name: string;
|
|
32
|
+
readonly revision: string;
|
|
33
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
34
|
+
readonly state: "disabled" | "enabled";
|
|
35
|
+
readonly updatedAt: string;
|
|
36
|
+
readonly usage?: {
|
|
37
|
+
readonly account?: {
|
|
38
|
+
readonly email?: string | undefined;
|
|
39
|
+
readonly plan?: string | undefined;
|
|
40
|
+
} | undefined;
|
|
41
|
+
readonly checkedAt: string;
|
|
42
|
+
readonly resetCredits?: {
|
|
43
|
+
readonly availableCount: number;
|
|
44
|
+
readonly nextCreditId?: string | undefined;
|
|
45
|
+
readonly nextExpiresAt?: string | undefined;
|
|
46
|
+
} | undefined;
|
|
47
|
+
readonly unavailable?: {
|
|
48
|
+
readonly message?: string | undefined;
|
|
49
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
50
|
+
} | undefined;
|
|
51
|
+
readonly windows: readonly {
|
|
52
|
+
readonly id: string;
|
|
53
|
+
readonly kind: "other" | "session" | "weekly";
|
|
54
|
+
readonly resetsAt?: string | undefined;
|
|
55
|
+
readonly usedPercent: number;
|
|
56
|
+
readonly windowMinutes?: number | undefined;
|
|
57
|
+
}[];
|
|
58
|
+
} | undefined;
|
|
59
|
+
}[];
|
|
60
|
+
readonly method: "connection.list";
|
|
61
|
+
readonly nextCursor?: string | undefined;
|
|
62
|
+
}>;
|
|
63
|
+
showConnection: (input: ConnectionShowParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
64
|
+
readonly connection: {
|
|
65
|
+
readonly configRoot: {
|
|
66
|
+
readonly kind: "maia-managed";
|
|
67
|
+
readonly path: string;
|
|
68
|
+
} | {
|
|
69
|
+
readonly kind: "system-default";
|
|
70
|
+
};
|
|
71
|
+
readonly connectionId: string;
|
|
72
|
+
readonly createdAt: string;
|
|
73
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
74
|
+
readonly gateway?: {
|
|
75
|
+
readonly baseUrl: string;
|
|
76
|
+
} | undefined;
|
|
77
|
+
readonly limitedUntil: string | null;
|
|
78
|
+
readonly maxConcurrentSessions: number;
|
|
79
|
+
readonly name: string;
|
|
80
|
+
readonly revision: string;
|
|
81
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
82
|
+
readonly state: "disabled" | "enabled";
|
|
83
|
+
readonly updatedAt: string;
|
|
84
|
+
readonly usage?: {
|
|
85
|
+
readonly account?: {
|
|
86
|
+
readonly email?: string | undefined;
|
|
87
|
+
readonly plan?: string | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
readonly checkedAt: string;
|
|
90
|
+
readonly resetCredits?: {
|
|
91
|
+
readonly availableCount: number;
|
|
92
|
+
readonly nextCreditId?: string | undefined;
|
|
93
|
+
readonly nextExpiresAt?: string | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
readonly unavailable?: {
|
|
96
|
+
readonly message?: string | undefined;
|
|
97
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
98
|
+
} | undefined;
|
|
99
|
+
readonly windows: readonly {
|
|
100
|
+
readonly id: string;
|
|
101
|
+
readonly kind: "other" | "session" | "weekly";
|
|
102
|
+
readonly resetsAt?: string | undefined;
|
|
103
|
+
readonly usedPercent: number;
|
|
104
|
+
readonly windowMinutes?: number | undefined;
|
|
105
|
+
}[];
|
|
106
|
+
} | undefined;
|
|
107
|
+
};
|
|
108
|
+
readonly method: "connection.show";
|
|
109
|
+
}>;
|
|
110
|
+
showConnectionUsage: (input: ConnectionUsageShowParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
111
|
+
readonly connection: {
|
|
112
|
+
readonly configRoot: {
|
|
113
|
+
readonly kind: "maia-managed";
|
|
114
|
+
readonly path: string;
|
|
115
|
+
} | {
|
|
116
|
+
readonly kind: "system-default";
|
|
117
|
+
};
|
|
118
|
+
readonly connectionId: string;
|
|
119
|
+
readonly createdAt: string;
|
|
120
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
121
|
+
readonly gateway?: {
|
|
122
|
+
readonly baseUrl: string;
|
|
123
|
+
} | undefined;
|
|
124
|
+
readonly limitedUntil: string | null;
|
|
125
|
+
readonly maxConcurrentSessions: number;
|
|
126
|
+
readonly name: string;
|
|
127
|
+
readonly revision: string;
|
|
128
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
129
|
+
readonly state: "disabled" | "enabled";
|
|
130
|
+
readonly updatedAt: string;
|
|
131
|
+
readonly usage?: {
|
|
132
|
+
readonly account?: {
|
|
133
|
+
readonly email?: string | undefined;
|
|
134
|
+
readonly plan?: string | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
readonly checkedAt: string;
|
|
137
|
+
readonly resetCredits?: {
|
|
138
|
+
readonly availableCount: number;
|
|
139
|
+
readonly nextCreditId?: string | undefined;
|
|
140
|
+
readonly nextExpiresAt?: string | undefined;
|
|
141
|
+
} | undefined;
|
|
142
|
+
readonly unavailable?: {
|
|
143
|
+
readonly message?: string | undefined;
|
|
144
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
145
|
+
} | undefined;
|
|
146
|
+
readonly windows: readonly {
|
|
147
|
+
readonly id: string;
|
|
148
|
+
readonly kind: "other" | "session" | "weekly";
|
|
149
|
+
readonly resetsAt?: string | undefined;
|
|
150
|
+
readonly usedPercent: number;
|
|
151
|
+
readonly windowMinutes?: number | undefined;
|
|
152
|
+
}[];
|
|
153
|
+
} | undefined;
|
|
154
|
+
};
|
|
155
|
+
readonly method: "connection.usage.show";
|
|
156
|
+
}>;
|
|
157
|
+
createConnection: (input: ConnectionCreateParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
158
|
+
readonly commandId: string;
|
|
159
|
+
readonly connection: {
|
|
160
|
+
readonly configRoot: {
|
|
161
|
+
readonly kind: "maia-managed";
|
|
162
|
+
readonly path: string;
|
|
163
|
+
} | {
|
|
164
|
+
readonly kind: "system-default";
|
|
165
|
+
};
|
|
166
|
+
readonly connectionId: string;
|
|
167
|
+
readonly createdAt: string;
|
|
168
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
169
|
+
readonly gateway?: {
|
|
170
|
+
readonly baseUrl: string;
|
|
171
|
+
} | undefined;
|
|
172
|
+
readonly limitedUntil: string | null;
|
|
173
|
+
readonly maxConcurrentSessions: number;
|
|
174
|
+
readonly name: string;
|
|
175
|
+
readonly revision: string;
|
|
176
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
177
|
+
readonly state: "disabled" | "enabled";
|
|
178
|
+
readonly updatedAt: string;
|
|
179
|
+
readonly usage?: {
|
|
180
|
+
readonly account?: {
|
|
181
|
+
readonly email?: string | undefined;
|
|
182
|
+
readonly plan?: string | undefined;
|
|
183
|
+
} | undefined;
|
|
184
|
+
readonly checkedAt: string;
|
|
185
|
+
readonly resetCredits?: {
|
|
186
|
+
readonly availableCount: number;
|
|
187
|
+
readonly nextCreditId?: string | undefined;
|
|
188
|
+
readonly nextExpiresAt?: string | undefined;
|
|
189
|
+
} | undefined;
|
|
190
|
+
readonly unavailable?: {
|
|
191
|
+
readonly message?: string | undefined;
|
|
192
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
193
|
+
} | undefined;
|
|
194
|
+
readonly windows: readonly {
|
|
195
|
+
readonly id: string;
|
|
196
|
+
readonly kind: "other" | "session" | "weekly";
|
|
197
|
+
readonly resetsAt?: string | undefined;
|
|
198
|
+
readonly usedPercent: number;
|
|
199
|
+
readonly windowMinutes?: number | undefined;
|
|
200
|
+
}[];
|
|
201
|
+
} | undefined;
|
|
202
|
+
};
|
|
203
|
+
readonly delivery: "duplicate" | "new";
|
|
204
|
+
readonly receipt: {
|
|
205
|
+
readonly actorId: string;
|
|
206
|
+
readonly aggregateRevision: string;
|
|
207
|
+
readonly commandId: string;
|
|
208
|
+
readonly createdAt: string;
|
|
209
|
+
readonly eventCursor: string;
|
|
210
|
+
readonly method: string;
|
|
211
|
+
readonly receiptId: string;
|
|
212
|
+
readonly schemaVersion: 1;
|
|
213
|
+
readonly state: "succeeded";
|
|
214
|
+
readonly target: {
|
|
215
|
+
readonly id: string;
|
|
216
|
+
readonly type: string;
|
|
217
|
+
};
|
|
218
|
+
readonly updatedAt: string;
|
|
219
|
+
};
|
|
220
|
+
readonly method: "connection.create";
|
|
221
|
+
}>;
|
|
222
|
+
setConnectionCapacity: (input: ConnectionCapacitySetParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
223
|
+
readonly commandId: string;
|
|
224
|
+
readonly connection: {
|
|
225
|
+
readonly configRoot: {
|
|
226
|
+
readonly kind: "maia-managed";
|
|
227
|
+
readonly path: string;
|
|
228
|
+
} | {
|
|
229
|
+
readonly kind: "system-default";
|
|
230
|
+
};
|
|
231
|
+
readonly connectionId: string;
|
|
232
|
+
readonly createdAt: string;
|
|
233
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
234
|
+
readonly gateway?: {
|
|
235
|
+
readonly baseUrl: string;
|
|
236
|
+
} | undefined;
|
|
237
|
+
readonly limitedUntil: string | null;
|
|
238
|
+
readonly maxConcurrentSessions: number;
|
|
239
|
+
readonly name: string;
|
|
240
|
+
readonly revision: string;
|
|
241
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
242
|
+
readonly state: "disabled" | "enabled";
|
|
243
|
+
readonly updatedAt: string;
|
|
244
|
+
readonly usage?: {
|
|
245
|
+
readonly account?: {
|
|
246
|
+
readonly email?: string | undefined;
|
|
247
|
+
readonly plan?: string | undefined;
|
|
248
|
+
} | undefined;
|
|
249
|
+
readonly checkedAt: string;
|
|
250
|
+
readonly resetCredits?: {
|
|
251
|
+
readonly availableCount: number;
|
|
252
|
+
readonly nextCreditId?: string | undefined;
|
|
253
|
+
readonly nextExpiresAt?: string | undefined;
|
|
254
|
+
} | undefined;
|
|
255
|
+
readonly unavailable?: {
|
|
256
|
+
readonly message?: string | undefined;
|
|
257
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
258
|
+
} | undefined;
|
|
259
|
+
readonly windows: readonly {
|
|
260
|
+
readonly id: string;
|
|
261
|
+
readonly kind: "other" | "session" | "weekly";
|
|
262
|
+
readonly resetsAt?: string | undefined;
|
|
263
|
+
readonly usedPercent: number;
|
|
264
|
+
readonly windowMinutes?: number | undefined;
|
|
265
|
+
}[];
|
|
266
|
+
} | undefined;
|
|
267
|
+
};
|
|
268
|
+
readonly delivery: "duplicate" | "new";
|
|
269
|
+
readonly receipt: {
|
|
270
|
+
readonly actorId: string;
|
|
271
|
+
readonly aggregateRevision: string;
|
|
272
|
+
readonly commandId: string;
|
|
273
|
+
readonly createdAt: string;
|
|
274
|
+
readonly eventCursor: string;
|
|
275
|
+
readonly method: string;
|
|
276
|
+
readonly receiptId: string;
|
|
277
|
+
readonly schemaVersion: 1;
|
|
278
|
+
readonly state: "succeeded";
|
|
279
|
+
readonly target: {
|
|
280
|
+
readonly id: string;
|
|
281
|
+
readonly type: string;
|
|
282
|
+
};
|
|
283
|
+
readonly updatedAt: string;
|
|
284
|
+
};
|
|
285
|
+
readonly expectedRevision: string;
|
|
286
|
+
readonly method: "connection.capacity.set";
|
|
287
|
+
}>;
|
|
288
|
+
setConnectionState: (input: ConnectionStateSetParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
289
|
+
readonly commandId: string;
|
|
290
|
+
readonly connection: {
|
|
291
|
+
readonly configRoot: {
|
|
292
|
+
readonly kind: "maia-managed";
|
|
293
|
+
readonly path: string;
|
|
294
|
+
} | {
|
|
295
|
+
readonly kind: "system-default";
|
|
296
|
+
};
|
|
297
|
+
readonly connectionId: string;
|
|
298
|
+
readonly createdAt: string;
|
|
299
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
300
|
+
readonly gateway?: {
|
|
301
|
+
readonly baseUrl: string;
|
|
302
|
+
} | undefined;
|
|
303
|
+
readonly limitedUntil: string | null;
|
|
304
|
+
readonly maxConcurrentSessions: number;
|
|
305
|
+
readonly name: string;
|
|
306
|
+
readonly revision: string;
|
|
307
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
308
|
+
readonly state: "disabled" | "enabled";
|
|
309
|
+
readonly updatedAt: string;
|
|
310
|
+
readonly usage?: {
|
|
311
|
+
readonly account?: {
|
|
312
|
+
readonly email?: string | undefined;
|
|
313
|
+
readonly plan?: string | undefined;
|
|
314
|
+
} | undefined;
|
|
315
|
+
readonly checkedAt: string;
|
|
316
|
+
readonly resetCredits?: {
|
|
317
|
+
readonly availableCount: number;
|
|
318
|
+
readonly nextCreditId?: string | undefined;
|
|
319
|
+
readonly nextExpiresAt?: string | undefined;
|
|
320
|
+
} | undefined;
|
|
321
|
+
readonly unavailable?: {
|
|
322
|
+
readonly message?: string | undefined;
|
|
323
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
324
|
+
} | undefined;
|
|
325
|
+
readonly windows: readonly {
|
|
326
|
+
readonly id: string;
|
|
327
|
+
readonly kind: "other" | "session" | "weekly";
|
|
328
|
+
readonly resetsAt?: string | undefined;
|
|
329
|
+
readonly usedPercent: number;
|
|
330
|
+
readonly windowMinutes?: number | undefined;
|
|
331
|
+
}[];
|
|
332
|
+
} | undefined;
|
|
333
|
+
};
|
|
334
|
+
readonly delivery: "duplicate" | "new";
|
|
335
|
+
readonly receipt: {
|
|
336
|
+
readonly actorId: string;
|
|
337
|
+
readonly aggregateRevision: string;
|
|
338
|
+
readonly commandId: string;
|
|
339
|
+
readonly createdAt: string;
|
|
340
|
+
readonly eventCursor: string;
|
|
341
|
+
readonly method: string;
|
|
342
|
+
readonly receiptId: string;
|
|
343
|
+
readonly schemaVersion: 1;
|
|
344
|
+
readonly state: "succeeded";
|
|
345
|
+
readonly target: {
|
|
346
|
+
readonly id: string;
|
|
347
|
+
readonly type: string;
|
|
348
|
+
};
|
|
349
|
+
readonly updatedAt: string;
|
|
350
|
+
};
|
|
351
|
+
readonly expectedRevision: string;
|
|
352
|
+
readonly method: "connection.state.set";
|
|
353
|
+
}>;
|
|
354
|
+
createGatewayConnection: (input: ConnectionGatewayCreateParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
355
|
+
readonly commandId: string;
|
|
356
|
+
readonly connection: {
|
|
357
|
+
readonly configRoot: {
|
|
358
|
+
readonly kind: "maia-managed";
|
|
359
|
+
readonly path: string;
|
|
360
|
+
} | {
|
|
361
|
+
readonly kind: "system-default";
|
|
362
|
+
};
|
|
363
|
+
readonly connectionId: string;
|
|
364
|
+
readonly createdAt: string;
|
|
365
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
366
|
+
readonly gateway?: {
|
|
367
|
+
readonly baseUrl: string;
|
|
368
|
+
} | undefined;
|
|
369
|
+
readonly limitedUntil: string | null;
|
|
370
|
+
readonly maxConcurrentSessions: number;
|
|
371
|
+
readonly name: string;
|
|
372
|
+
readonly revision: string;
|
|
373
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
374
|
+
readonly state: "disabled" | "enabled";
|
|
375
|
+
readonly updatedAt: string;
|
|
376
|
+
readonly usage?: {
|
|
377
|
+
readonly account?: {
|
|
378
|
+
readonly email?: string | undefined;
|
|
379
|
+
readonly plan?: string | undefined;
|
|
380
|
+
} | undefined;
|
|
381
|
+
readonly checkedAt: string;
|
|
382
|
+
readonly resetCredits?: {
|
|
383
|
+
readonly availableCount: number;
|
|
384
|
+
readonly nextCreditId?: string | undefined;
|
|
385
|
+
readonly nextExpiresAt?: string | undefined;
|
|
386
|
+
} | undefined;
|
|
387
|
+
readonly unavailable?: {
|
|
388
|
+
readonly message?: string | undefined;
|
|
389
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
390
|
+
} | undefined;
|
|
391
|
+
readonly windows: readonly {
|
|
392
|
+
readonly id: string;
|
|
393
|
+
readonly kind: "other" | "session" | "weekly";
|
|
394
|
+
readonly resetsAt?: string | undefined;
|
|
395
|
+
readonly usedPercent: number;
|
|
396
|
+
readonly windowMinutes?: number | undefined;
|
|
397
|
+
}[];
|
|
398
|
+
} | undefined;
|
|
399
|
+
};
|
|
400
|
+
readonly delivery: "duplicate" | "new";
|
|
401
|
+
readonly receipt: {
|
|
402
|
+
readonly actorId: string;
|
|
403
|
+
readonly aggregateRevision: string;
|
|
404
|
+
readonly commandId: string;
|
|
405
|
+
readonly createdAt: string;
|
|
406
|
+
readonly eventCursor: string;
|
|
407
|
+
readonly method: string;
|
|
408
|
+
readonly receiptId: string;
|
|
409
|
+
readonly schemaVersion: 1;
|
|
410
|
+
readonly state: "succeeded";
|
|
411
|
+
readonly target: {
|
|
412
|
+
readonly id: string;
|
|
413
|
+
readonly type: string;
|
|
414
|
+
};
|
|
415
|
+
readonly updatedAt: string;
|
|
416
|
+
};
|
|
417
|
+
readonly keyCustody: "kept" | "stored";
|
|
418
|
+
readonly method: "connection.gateway.create";
|
|
419
|
+
}>;
|
|
420
|
+
startConnectionLogin: (input: ConnectionLoginStartParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
421
|
+
readonly commandId: string;
|
|
422
|
+
readonly connection: {
|
|
423
|
+
readonly configRoot: {
|
|
424
|
+
readonly kind: "maia-managed";
|
|
425
|
+
readonly path: string;
|
|
426
|
+
} | {
|
|
427
|
+
readonly kind: "system-default";
|
|
428
|
+
};
|
|
429
|
+
readonly connectionId: string;
|
|
430
|
+
readonly createdAt: string;
|
|
431
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
432
|
+
readonly gateway?: {
|
|
433
|
+
readonly baseUrl: string;
|
|
434
|
+
} | undefined;
|
|
435
|
+
readonly limitedUntil: string | null;
|
|
436
|
+
readonly maxConcurrentSessions: number;
|
|
437
|
+
readonly name: string;
|
|
438
|
+
readonly revision: string;
|
|
439
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
440
|
+
readonly state: "disabled" | "enabled";
|
|
441
|
+
readonly updatedAt: string;
|
|
442
|
+
readonly usage?: {
|
|
443
|
+
readonly account?: {
|
|
444
|
+
readonly email?: string | undefined;
|
|
445
|
+
readonly plan?: string | undefined;
|
|
446
|
+
} | undefined;
|
|
447
|
+
readonly checkedAt: string;
|
|
448
|
+
readonly resetCredits?: {
|
|
449
|
+
readonly availableCount: number;
|
|
450
|
+
readonly nextCreditId?: string | undefined;
|
|
451
|
+
readonly nextExpiresAt?: string | undefined;
|
|
452
|
+
} | undefined;
|
|
453
|
+
readonly unavailable?: {
|
|
454
|
+
readonly message?: string | undefined;
|
|
455
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
456
|
+
} | undefined;
|
|
457
|
+
readonly windows: readonly {
|
|
458
|
+
readonly id: string;
|
|
459
|
+
readonly kind: "other" | "session" | "weekly";
|
|
460
|
+
readonly resetsAt?: string | undefined;
|
|
461
|
+
readonly usedPercent: number;
|
|
462
|
+
readonly windowMinutes?: number | undefined;
|
|
463
|
+
}[];
|
|
464
|
+
} | undefined;
|
|
465
|
+
};
|
|
466
|
+
readonly delivery: "duplicate" | "new";
|
|
467
|
+
readonly receipt: {
|
|
468
|
+
readonly actorId: string;
|
|
469
|
+
readonly aggregateRevision: string;
|
|
470
|
+
readonly commandId: string;
|
|
471
|
+
readonly createdAt: string;
|
|
472
|
+
readonly eventCursor: string;
|
|
473
|
+
readonly method: string;
|
|
474
|
+
readonly receiptId: string;
|
|
475
|
+
readonly schemaVersion: 1;
|
|
476
|
+
readonly state: "succeeded";
|
|
477
|
+
readonly target: {
|
|
478
|
+
readonly id: string;
|
|
479
|
+
readonly type: string;
|
|
480
|
+
};
|
|
481
|
+
readonly updatedAt: string;
|
|
482
|
+
};
|
|
483
|
+
readonly expectedRevision: string;
|
|
484
|
+
readonly login: {
|
|
485
|
+
readonly authUrl?: string | undefined;
|
|
486
|
+
readonly expiresAt: string;
|
|
487
|
+
readonly loginId: string;
|
|
488
|
+
readonly userCode?: string | undefined;
|
|
489
|
+
readonly verificationUrl?: string | undefined;
|
|
490
|
+
};
|
|
491
|
+
readonly method: "connection.login.start";
|
|
492
|
+
}>;
|
|
493
|
+
confirmSystemConnections: (input: ConnectionSystemConfirmParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
494
|
+
readonly actorId: string;
|
|
495
|
+
readonly commandId: string;
|
|
496
|
+
readonly delivery: "duplicate" | "new";
|
|
497
|
+
readonly inputDigest: string;
|
|
498
|
+
readonly items: readonly {
|
|
499
|
+
readonly approvalReceipt?: {
|
|
500
|
+
readonly actorId: string;
|
|
501
|
+
readonly aggregateRevision: string;
|
|
502
|
+
readonly commandId: string;
|
|
503
|
+
readonly createdAt: string;
|
|
504
|
+
readonly eventCursor: string;
|
|
505
|
+
readonly method: string;
|
|
506
|
+
readonly receiptId: string;
|
|
507
|
+
readonly schemaVersion: 1;
|
|
508
|
+
readonly state: "succeeded";
|
|
509
|
+
readonly target: {
|
|
510
|
+
readonly id: string;
|
|
511
|
+
readonly type: string;
|
|
512
|
+
};
|
|
513
|
+
readonly updatedAt: string;
|
|
514
|
+
} | undefined;
|
|
515
|
+
readonly connection: {
|
|
516
|
+
readonly configRoot: {
|
|
517
|
+
readonly kind: "maia-managed";
|
|
518
|
+
readonly path: string;
|
|
519
|
+
} | {
|
|
520
|
+
readonly kind: "system-default";
|
|
521
|
+
};
|
|
522
|
+
readonly connectionId: string;
|
|
523
|
+
readonly createdAt: string;
|
|
524
|
+
readonly executor: "claude-code" | "codex-cli" | "gateway";
|
|
525
|
+
readonly gateway?: {
|
|
526
|
+
readonly baseUrl: string;
|
|
527
|
+
} | undefined;
|
|
528
|
+
readonly limitedUntil: string | null;
|
|
529
|
+
readonly maxConcurrentSessions: number;
|
|
530
|
+
readonly name: string;
|
|
531
|
+
readonly revision: string;
|
|
532
|
+
readonly schemaVersion: "maia.connection/v1";
|
|
533
|
+
readonly state: "disabled" | "enabled";
|
|
534
|
+
readonly updatedAt: string;
|
|
535
|
+
readonly usage?: {
|
|
536
|
+
readonly account?: {
|
|
537
|
+
readonly email?: string | undefined;
|
|
538
|
+
readonly plan?: string | undefined;
|
|
539
|
+
} | undefined;
|
|
540
|
+
readonly checkedAt: string;
|
|
541
|
+
readonly resetCredits?: {
|
|
542
|
+
readonly availableCount: number;
|
|
543
|
+
readonly nextCreditId?: string | undefined;
|
|
544
|
+
readonly nextExpiresAt?: string | undefined;
|
|
545
|
+
} | undefined;
|
|
546
|
+
readonly unavailable?: {
|
|
547
|
+
readonly message?: string | undefined;
|
|
548
|
+
readonly reason: "probe_failed" | "signed_out" | "unsupported";
|
|
549
|
+
} | undefined;
|
|
550
|
+
readonly windows: readonly {
|
|
551
|
+
readonly id: string;
|
|
552
|
+
readonly kind: "other" | "session" | "weekly";
|
|
553
|
+
readonly resetsAt?: string | undefined;
|
|
554
|
+
readonly usedPercent: number;
|
|
555
|
+
readonly windowMinutes?: number | undefined;
|
|
556
|
+
}[];
|
|
557
|
+
} | undefined;
|
|
558
|
+
};
|
|
559
|
+
readonly connectionReceipt?: {
|
|
560
|
+
readonly actorId: string;
|
|
561
|
+
readonly aggregateRevision: string;
|
|
562
|
+
readonly commandId: string;
|
|
563
|
+
readonly createdAt: string;
|
|
564
|
+
readonly eventCursor: string;
|
|
565
|
+
readonly method: string;
|
|
566
|
+
readonly receiptId: string;
|
|
567
|
+
readonly schemaVersion: 1;
|
|
568
|
+
readonly state: "succeeded";
|
|
569
|
+
readonly target: {
|
|
570
|
+
readonly id: string;
|
|
571
|
+
readonly type: string;
|
|
572
|
+
};
|
|
573
|
+
readonly updatedAt: string;
|
|
574
|
+
} | undefined;
|
|
575
|
+
readonly executor: "claude-code" | "codex-cli";
|
|
576
|
+
}[];
|
|
577
|
+
readonly method: "connection.system.confirm";
|
|
578
|
+
}>;
|
|
579
|
+
detectConnections: (input: ConnectionDetectParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
580
|
+
readonly executors: readonly [{
|
|
581
|
+
readonly accountKind?: string | undefined;
|
|
582
|
+
readonly auth: "custom-endpoint" | "none" | "unknown" | "vendor-login";
|
|
583
|
+
readonly binary: {
|
|
584
|
+
readonly found: false;
|
|
585
|
+
} | {
|
|
586
|
+
readonly found: true;
|
|
587
|
+
readonly onNodePath: boolean;
|
|
588
|
+
readonly path: string;
|
|
589
|
+
readonly version?: string | undefined;
|
|
590
|
+
};
|
|
591
|
+
readonly connection?: {
|
|
592
|
+
readonly connectionId: string;
|
|
593
|
+
readonly name: string;
|
|
594
|
+
readonly state: "disabled" | "enabled";
|
|
595
|
+
} | undefined;
|
|
596
|
+
readonly endpoint?: {
|
|
597
|
+
readonly credential: "env-key" | "helper";
|
|
598
|
+
readonly hint?: string | undefined;
|
|
599
|
+
readonly host: string;
|
|
600
|
+
} | undefined;
|
|
601
|
+
readonly executableApproved: boolean;
|
|
602
|
+
readonly executor: "claude-code" | "codex-cli";
|
|
603
|
+
readonly workerPrompt?: "failed" | "inconclusive" | "ok" | undefined;
|
|
604
|
+
}, {
|
|
605
|
+
readonly accountKind?: string | undefined;
|
|
606
|
+
readonly auth: "custom-endpoint" | "none" | "unknown" | "vendor-login";
|
|
607
|
+
readonly binary: {
|
|
608
|
+
readonly found: false;
|
|
609
|
+
} | {
|
|
610
|
+
readonly found: true;
|
|
611
|
+
readonly onNodePath: boolean;
|
|
612
|
+
readonly path: string;
|
|
613
|
+
readonly version?: string | undefined;
|
|
614
|
+
};
|
|
615
|
+
readonly connection?: {
|
|
616
|
+
readonly connectionId: string;
|
|
617
|
+
readonly name: string;
|
|
618
|
+
readonly state: "disabled" | "enabled";
|
|
619
|
+
} | undefined;
|
|
620
|
+
readonly endpoint?: {
|
|
621
|
+
readonly credential: "env-key" | "helper";
|
|
622
|
+
readonly hint?: string | undefined;
|
|
623
|
+
readonly host: string;
|
|
624
|
+
} | undefined;
|
|
625
|
+
readonly executableApproved: boolean;
|
|
626
|
+
readonly executor: "claude-code" | "codex-cli";
|
|
627
|
+
readonly workerPrompt?: "failed" | "inconclusive" | "ok" | undefined;
|
|
628
|
+
}];
|
|
629
|
+
readonly method: "connection.detect";
|
|
630
|
+
}>;
|
|
631
|
+
previewSystemConnections: (input: ConnectionSystemPreviewParameters) => import("../local-node/client.js").CliNodeEffect<{
|
|
632
|
+
readonly actorId: string;
|
|
633
|
+
readonly commandId: string;
|
|
634
|
+
readonly expiresAt: string;
|
|
635
|
+
readonly inputDigest: string;
|
|
636
|
+
readonly issuedAt: string;
|
|
637
|
+
readonly items: readonly [{
|
|
638
|
+
readonly auth: "custom-endpoint" | "none" | "unknown" | "vendor-login";
|
|
639
|
+
readonly connection?: {
|
|
640
|
+
readonly action: "create";
|
|
641
|
+
readonly maxConcurrentSessions: number;
|
|
642
|
+
readonly name: string;
|
|
643
|
+
} | {
|
|
644
|
+
readonly action: "existing";
|
|
645
|
+
readonly connectionId: string;
|
|
646
|
+
readonly maxConcurrentSessions: number;
|
|
647
|
+
readonly name: string;
|
|
648
|
+
} | undefined;
|
|
649
|
+
readonly endpoint?: {
|
|
650
|
+
readonly credential: "env-key" | "helper";
|
|
651
|
+
readonly hint?: string | undefined;
|
|
652
|
+
readonly host: string;
|
|
653
|
+
} | undefined;
|
|
654
|
+
readonly executable?: {
|
|
655
|
+
readonly action: "approve" | "existing";
|
|
656
|
+
readonly path: string;
|
|
657
|
+
readonly version?: string | undefined;
|
|
658
|
+
} | undefined;
|
|
659
|
+
readonly executor: "claude-code" | "codex-cli";
|
|
660
|
+
readonly reason?: "approval-unavailable" | "auth-unknown" | "env-key-endpoint" | "missing" | "name-taken" | "not-on-node-path" | "settings-endpoint" | "signed-out" | undefined;
|
|
661
|
+
}, {
|
|
662
|
+
readonly auth: "custom-endpoint" | "none" | "unknown" | "vendor-login";
|
|
663
|
+
readonly connection?: {
|
|
664
|
+
readonly action: "create";
|
|
665
|
+
readonly maxConcurrentSessions: number;
|
|
666
|
+
readonly name: string;
|
|
667
|
+
} | {
|
|
668
|
+
readonly action: "existing";
|
|
669
|
+
readonly connectionId: string;
|
|
670
|
+
readonly maxConcurrentSessions: number;
|
|
671
|
+
readonly name: string;
|
|
672
|
+
} | undefined;
|
|
673
|
+
readonly endpoint?: {
|
|
674
|
+
readonly credential: "env-key" | "helper";
|
|
675
|
+
readonly hint?: string | undefined;
|
|
676
|
+
readonly host: string;
|
|
677
|
+
} | undefined;
|
|
678
|
+
readonly executable?: {
|
|
679
|
+
readonly action: "approve" | "existing";
|
|
680
|
+
readonly path: string;
|
|
681
|
+
readonly version?: string | undefined;
|
|
682
|
+
} | undefined;
|
|
683
|
+
readonly executor: "claude-code" | "codex-cli";
|
|
684
|
+
readonly reason?: "approval-unavailable" | "auth-unknown" | "env-key-endpoint" | "missing" | "name-taken" | "not-on-node-path" | "settings-endpoint" | "signed-out" | undefined;
|
|
685
|
+
}];
|
|
686
|
+
readonly maxConcurrentSessions?: number | undefined;
|
|
687
|
+
readonly method: "connection.system.preview";
|
|
688
|
+
readonly proof: string;
|
|
689
|
+
}>;
|
|
690
|
+
};
|
|
691
|
+
export type ConnectionCliDependencies = ReturnType<typeof makeConnectionClient>;
|
|
692
|
+
//# sourceMappingURL=client.d.ts.map
|