@tiny-fish/cli 0.26.1-next.223 → 0.26.1-next.225
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/commands/connect.js
CHANGED
|
@@ -67,8 +67,8 @@ async function connectNativeMcpClient(client, options) {
|
|
|
67
67
|
throw new ConnectStepError(`This ${client.displayName} install cannot take a TinyFish API key, and signing in ` +
|
|
68
68
|
`needs a terminal. Update it, then re-run: tinyfish connect ${client.connectClient}`, "harness_too_old");
|
|
69
69
|
}
|
|
70
|
-
throw new
|
|
71
|
-
`terminal. Run: tinyfish connect ${client.connectClient}
|
|
70
|
+
throw new ConnectStepError(`${client.displayName} cannot take a TinyFish API key, and signing in needs a ` +
|
|
71
|
+
`terminal. Run: tinyfish connect ${client.connectClient}`, "key_auth_unsupported");
|
|
72
72
|
}
|
|
73
73
|
telemetry.track("checkpoint", { phase: "prerequisite_ok" });
|
|
74
74
|
state.stage = "registration_cleanup";
|
|
@@ -3,7 +3,7 @@ export declare const NON_INTERACTIVE_TIMEOUT_MS = 10000;
|
|
|
3
3
|
export type AgentClient = "claude-code" | "codex" | "cursor" | "grok" | "hermes" | "openclaw" | "opencode";
|
|
4
4
|
type ConnectStage = "started" | "checkpoint" | "completed" | "failed" | "aborted" | "post_install_failed";
|
|
5
5
|
type ConnectFailureStage = "prerequisite_check" | "registration_cleanup" | "registration" | "registration_or_authentication" | "client_oauth" | "cli_install" | "skill_install" | "authentication" | "walkthrough_launch";
|
|
6
|
-
export declare const CONNECT_FAILURE_REASONS: readonly ["harness_not_installed", "harness_command_unsupported", "harness_too_old", "command_not_found", "timeout", "spawn_error", "nonzero_exit", "invalid_config", "user_abandoned", "process_terminated", "unexpected_error"];
|
|
6
|
+
export declare const CONNECT_FAILURE_REASONS: readonly ["harness_not_installed", "harness_command_unsupported", "harness_too_old", "key_auth_unsupported", "command_not_found", "timeout", "spawn_error", "nonzero_exit", "invalid_config", "user_abandoned", "process_terminated", "unexpected_error"];
|
|
7
7
|
export type ConnectFailureReason = (typeof CONNECT_FAILURE_REASONS)[number];
|
|
8
8
|
export type ConnectAuthMode = Exclude<AuthMode, AuthMode.Unknown> | "deferred";
|
|
9
9
|
type ConnectCheckpoint = "prerequisite_ok" | "registered" | "oauth_done" | "cli_installed" | "skill_installed" | "authenticated";
|