@somewhere-cloud/cli 0.38.48 → 0.38.51
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/advisor.d.ts +9 -0
- package/dist/commands/ai.d.ts +2 -0
- package/dist/commands/api.d.ts +14 -0
- package/dist/commands/auth.d.ts +30 -0
- package/dist/commands/browser.d.ts +247 -0
- package/dist/commands/call.d.ts +22 -0
- package/dist/commands/catalog.d.ts +16 -0
- package/dist/commands/check.d.ts +114 -0
- package/dist/commands/claim.d.ts +5 -0
- package/dist/commands/cron.d.ts +14 -0
- package/dist/commands/db-rows.d.ts +2 -0
- package/dist/commands/db.d.ts +2 -0
- package/dist/commands/deploy.d.ts +235 -0
- package/dist/commands/dev.d.ts +171 -0
- package/dist/commands/docs.d.ts +85 -0
- package/dist/commands/email.d.ts +8 -0
- package/dist/commands/env.d.ts +2 -0
- package/dist/commands/errors.d.ts +2 -0
- package/dist/commands/feedback.d.ts +2 -0
- package/dist/commands/fs.d.ts +2 -0
- package/dist/commands/git.d.ts +2 -0
- package/dist/commands/grep.d.ts +2 -0
- package/dist/commands/hooks.d.ts +2 -0
- package/dist/commands/init.d.ts +17 -0
- package/dist/commands/link.d.ts +8 -0
- package/dist/commands/lint.d.ts +2 -0
- package/dist/commands/logs.d.ts +2 -0
- package/dist/commands/mcp.d.ts +4 -0
- package/dist/commands/open.d.ts +2 -0
- package/dist/commands/postgres.d.ts +2 -0
- package/dist/commands/project.d.ts +8 -0
- package/dist/commands/promote.d.ts +28 -0
- package/dist/commands/pull.d.ts +2 -0
- package/dist/commands/restore.d.ts +5 -0
- package/dist/commands/rollback.d.ts +21 -0
- package/dist/commands/run.d.ts +2 -0
- package/dist/commands/skills.d.ts +2 -0
- package/dist/commands/status.d.ts +27 -0
- package/dist/commands/support.d.ts +2 -0
- package/dist/commands/tasks.d.ts +2 -0
- package/dist/commands/test-users.d.ts +4 -0
- package/dist/commands/test.d.ts +2 -0
- package/dist/commands/test.js +74 -0
- package/dist/commands/test.js.map +1 -0
- package/dist/commands/typecheck.d.ts +9 -0
- package/dist/commands/update.d.ts +25 -0
- package/dist/commands/upgrade.d.ts +12 -0
- package/dist/commands/usage.d.ts +2 -0
- package/dist/commands/verify.d.ts +419 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/dist/lib/advisor-context.d.ts +20 -0
- package/dist/lib/advisor-runs.d.ts +26 -0
- package/dist/lib/agent-hooks.d.ts +74 -0
- package/dist/lib/allowed-origins.d.ts +11 -0
- package/dist/lib/auth.d.ts +12 -0
- package/dist/lib/base-files.d.ts +31 -0
- package/dist/lib/browser-actions.d.ts +106 -0
- package/dist/lib/browser-flow-preflight.d.ts +6 -0
- package/dist/lib/browser-refusal.d.ts +17 -0
- package/dist/lib/browser-run.d.ts +102 -0
- package/dist/lib/build-errors.d.ts +24 -0
- package/dist/lib/chrome.d.ts +66 -0
- package/dist/lib/claim-handoff.d.ts +11 -0
- package/dist/lib/client.d.ts +150 -0
- package/dist/lib/config.d.ts +125 -0
- package/dist/lib/declared-data.d.ts +50 -0
- package/dist/lib/deploy-check.d.ts +56 -0
- package/dist/lib/device-login.d.ts +41 -0
- package/dist/lib/device.d.ts +2 -0
- package/dist/lib/envfile-write.d.ts +17 -0
- package/dist/lib/files.d.ts +111 -0
- package/dist/lib/frontend-dev.d.ts +28 -0
- package/dist/lib/generic-lint.d.ts +9 -0
- package/dist/lib/help-summary.d.ts +2 -0
- package/dist/lib/http.d.ts +9 -0
- package/dist/lib/init-agent-guide.d.ts +13 -0
- package/dist/lib/init-feature-template.d.ts +8 -0
- package/dist/lib/init-features.d.ts +50 -0
- package/dist/lib/init-green-template.d.ts +2 -0
- package/dist/lib/init-install.d.ts +14 -0
- package/dist/lib/init-scaffold.d.ts +44 -0
- package/dist/lib/init-template.d.ts +2 -0
- package/dist/lib/init-test-template.d.ts +2 -0
- package/dist/lib/init-ui-kit.d.ts +8 -0
- package/dist/lib/last-run.d.ts +38 -0
- package/dist/lib/link-hint.d.ts +5 -0
- package/dist/lib/next-actions.d.ts +48 -0
- package/dist/lib/notify/index.d.ts +18 -0
- package/dist/lib/notify/providers/update.d.ts +45 -0
- package/dist/lib/notify/types.d.ts +25 -0
- package/dist/lib/open.d.ts +1 -0
- package/dist/lib/output.d.ts +61 -0
- package/dist/lib/platform-command.d.ts +6 -0
- package/dist/lib/platform-contract.d.ts +26 -0
- package/dist/lib/platform-tools.d.ts +77 -0
- package/dist/lib/playwright-fixtures.d.ts +19 -0
- package/dist/lib/playwright-fixtures.js +140 -0
- package/dist/lib/playwright-fixtures.js.map +1 -0
- package/dist/lib/post-live-render.d.ts +48 -0
- package/dist/lib/project-notices.d.ts +18 -0
- package/dist/lib/project-pin.d.ts +57 -0
- package/dist/lib/project-ref.d.ts +32 -0
- package/dist/lib/project-urls.d.ts +18 -0
- package/dist/lib/promote-handoff.d.ts +65 -0
- package/dist/lib/promote-outcome.d.ts +98 -0
- package/dist/lib/publish-surface.d.ts +8 -0
- package/dist/lib/repro-packet.d.ts +35 -0
- package/dist/lib/scaffold.d.ts +46 -0
- package/dist/lib/skills-pack.d.ts +81 -0
- package/dist/lib/skills-pack.generated.d.ts +2 -0
- package/dist/lib/source-lint.d.ts +42 -0
- package/dist/lib/spinner.d.ts +14 -0
- package/dist/lib/startup-notice.d.ts +23 -0
- package/dist/lib/surface-counts.d.ts +88 -0
- package/dist/lib/temp-auth.d.ts +53 -0
- package/dist/lib/terminal-text.d.ts +10 -0
- package/dist/lib/test-identities.d.ts +122 -0
- package/dist/lib/test-identities.js +1 -1
- package/dist/lib/test-identities.js.map +1 -1
- package/dist/lib/test-reporter.d.ts +13 -0
- package/dist/lib/test-reporter.js +28 -0
- package/dist/lib/test-reporter.js.map +1 -0
- package/dist/lib/typecheck-version.d.ts +1 -0
- package/dist/lib/typecheck.d.ts +136 -0
- package/dist/lib/update-security.d.ts +25 -0
- package/dist/lib/vendor/deploy-paths.d.ts +21 -0
- package/dist/lib/vendor/repro-guidance.d.ts +111 -0
- package/dist/lib/verify-keep.d.ts +92 -0
- package/dist/lib/verify-progress.d.ts +2 -0
- package/dist/lib/verify-report.d.ts +4 -0
- package/dist/lib/version.d.ts +1 -0
- package/dist/testing.d.ts +37 -0
- package/dist/testing.js +2 -0
- package/dist/testing.js.map +1 -1
- package/dist/types.d.ts +104 -0
- package/npm-shrinkwrap.json +48 -2
- package/package.json +14 -3
- package/runtime/PLATFORM-SOURCE.json +1 -1
- package/runtime/SOURCE-LINT-VENDOR.json +1 -1
- package/src/testing.ts +4 -1
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
export declare const INIT_MODULE_IDS: readonly ["auth", "magic-link", "private-data", "agent"];
|
|
2
|
+
export type InitModuleId = (typeof INIT_MODULE_IDS)[number];
|
|
3
|
+
export declare const INIT_UI_MODES: readonly ["styled", "headless"];
|
|
4
|
+
export type InitUiMode = (typeof INIT_UI_MODES)[number];
|
|
5
|
+
export interface InitSelection {
|
|
6
|
+
/** Module ids as the caller asked for them, deduplicated, in registry order. */
|
|
7
|
+
requested: InitModuleId[];
|
|
8
|
+
/** Modules added because a requested module requires them. */
|
|
9
|
+
added: InitModuleId[];
|
|
10
|
+
/** Every module that will be generated, in registry order. */
|
|
11
|
+
modules: InitModuleId[];
|
|
12
|
+
ui: InitUiMode;
|
|
13
|
+
}
|
|
14
|
+
/** A usage error: the command exits 2 before any login, request or write. */
|
|
15
|
+
export declare class InitSelectionError extends Error {
|
|
16
|
+
}
|
|
17
|
+
export declare function resolveInitSelection(features: string, ui?: string): InitSelection;
|
|
18
|
+
export interface InitCatalog {
|
|
19
|
+
version: 1;
|
|
20
|
+
command: string;
|
|
21
|
+
modules: {
|
|
22
|
+
id: InitModuleId;
|
|
23
|
+
summary: string;
|
|
24
|
+
requires: InitModuleId[];
|
|
25
|
+
files: string[];
|
|
26
|
+
}[];
|
|
27
|
+
ui: {
|
|
28
|
+
id: InitUiMode;
|
|
29
|
+
summary: string;
|
|
30
|
+
files: string[];
|
|
31
|
+
}[];
|
|
32
|
+
defaults: {
|
|
33
|
+
ui: InitUiMode;
|
|
34
|
+
};
|
|
35
|
+
not_offered: {
|
|
36
|
+
id: string;
|
|
37
|
+
reason: string;
|
|
38
|
+
}[];
|
|
39
|
+
}
|
|
40
|
+
/**
|
|
41
|
+
* The machine-readable menu. `generate` writes a selection's files; each
|
|
42
|
+
* module's `files` are the paths it adds over its requirements (styled), and
|
|
43
|
+
* each UI mode's `files` are the paths whose content that mode decides.
|
|
44
|
+
*/
|
|
45
|
+
export declare function initCatalog(generate: (selection: InitSelection) => {
|
|
46
|
+
path: string;
|
|
47
|
+
content: string;
|
|
48
|
+
}[]): InitCatalog;
|
|
49
|
+
/** One line for humans: "auth, private-data (auth added: required by private-data) · ui styled". */
|
|
50
|
+
export declare function describeSelection(selection: InitSelection): string;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export interface InitInstallOptions {
|
|
2
|
+
cwd: string;
|
|
3
|
+
quiet: boolean;
|
|
4
|
+
}
|
|
5
|
+
export type InitInstallRunner = (options: InitInstallOptions) => Promise<number>;
|
|
6
|
+
export interface InitInstallSpawnSpec {
|
|
7
|
+
command: string;
|
|
8
|
+
args: string[];
|
|
9
|
+
shell: boolean;
|
|
10
|
+
}
|
|
11
|
+
export declare function initInstallSpawnSpec(platform: NodeJS.Platform): InitInstallSpawnSpec;
|
|
12
|
+
/** Install the generated starter with the system npm executable. */
|
|
13
|
+
export declare function runInitInstall({ cwd, quiet }: InitInstallOptions): Promise<number>;
|
|
14
|
+
export declare function installInitDependencies(options: InitInstallOptions, runner?: InitInstallRunner): Promise<void>;
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
export interface InitScaffoldFile {
|
|
2
|
+
path: string;
|
|
3
|
+
content: string;
|
|
4
|
+
}
|
|
5
|
+
export interface InitScaffoldResult {
|
|
6
|
+
created: string[];
|
|
7
|
+
}
|
|
8
|
+
/**
|
|
9
|
+
* Rule-9 boundary for `somewhere init`: a new/empty directory receives the
|
|
10
|
+
* starter, while a directory containing application source keeps the original
|
|
11
|
+
* link-only behavior. Dotfiles count as source unless they are metadata the
|
|
12
|
+
* init command itself owns.
|
|
13
|
+
*/
|
|
14
|
+
export declare function canWriteInitScaffold(dir: string): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* The non-metadata entries of `dir`, split into app source and everything
|
|
17
|
+
* else. Source is a non-dot folder or a root file the deploy publish surface
|
|
18
|
+
* already counts as app (publish-surface.ts); a stray file, notes, LICENSE or
|
|
19
|
+
* a tool folder such as .claude is not, so init does not treat it as an app
|
|
20
|
+
* to link.
|
|
21
|
+
*/
|
|
22
|
+
export declare function initSourceEntries(dir: string): {
|
|
23
|
+
source: string[];
|
|
24
|
+
other: string[];
|
|
25
|
+
};
|
|
26
|
+
/**
|
|
27
|
+
* Write a complete template only after every path passes confinement and
|
|
28
|
+
* overwrite checks. No partial scaffold is written on a preflight failure.
|
|
29
|
+
*/
|
|
30
|
+
export declare function writeInitScaffold(dir: string, files: readonly InitScaffoldFile[]): InitScaffoldResult;
|
|
31
|
+
/**
|
|
32
|
+
* The confinement and overwrite checks alone, with nothing written, so a
|
|
33
|
+
* caller can refuse a plan before any remote mutation.
|
|
34
|
+
*/
|
|
35
|
+
export declare function preflightInitScaffold(dir: string, files: readonly InitScaffoldFile[]): Map<string, InitScaffoldFile>;
|
|
36
|
+
/**
|
|
37
|
+
* `init --bare` keeps the agent workflow guide without the starter: each
|
|
38
|
+
* top-level guide file is created only when absent (O_EXCL), so an existing
|
|
39
|
+
* AGENTS.md or CLAUDE.md is never replaced.
|
|
40
|
+
*/
|
|
41
|
+
export declare function writeMissingGuideFiles(dir: string, files: readonly InitScaffoldFile[]): {
|
|
42
|
+
created: string[];
|
|
43
|
+
kept: string[];
|
|
44
|
+
};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { InitScaffoldFile } from './init-scaffold.js';
|
|
2
|
+
export declare const TOKENS_CSS = "/* Design tokens: the only place colours, type and spacing are defined.\n app.css and src/ui read these; pages never write a raw hex or px value.\n To restyle the whole app, change the values here.\n\n Fonts are local stacks only (no network fonts), chosen so every platform\n falls back to a good face, not to Arial/Times. Prefer one family: set\n --font-display to a serif stack only if the app wants that personality. */\n:root {\n color-scheme: light;\n\n --font-body: system-ui, -apple-system, \"Segoe UI\", Roboto, \"Helvetica Neue\", Arial, sans-serif;\n --font-display: var(--font-body);\n /* Serif alternative: \"Iowan Old Style\", \"Palatino Linotype\", Palatino, Georgia, serif; */\n --font-mono: ui-monospace, \"SF Mono\", Menlo, Consolas, \"Liberation Mono\", monospace;\n\n --text-xs: 0.75rem;\n --text-sm: 0.875rem;\n --text-base: 1rem;\n --text-lg: 1.125rem;\n --text-xl: 1.375rem;\n --text-2xl: 1.75rem;\n --text-display: clamp(2rem, 4.4vw, 2.75rem);\n --tracking-display: -0.02em;\n --tracking-label: 0.06em;\n\n --space-1: 4px;\n --space-2: 8px;\n --space-3: 12px;\n --space-4: 16px;\n --space-5: 20px;\n --space-6: 24px;\n --space-8: 32px;\n --space-10: 40px;\n --space-12: 48px;\n --space-16: 64px;\n\n --radius-control: 8px;\n --radius-panel: 14px;\n --radius-pill: 999px;\n\n --control-height: 44px;\n --content-width: 1040px;\n\n --shadow-sm: 0 1px 2px rgba(28, 27, 24, 0.05);\n --shadow-md: 0 1px 2px rgba(28, 27, 24, 0.05), 0 16px 40px -28px rgba(28, 27, 24, 0.35);\n --shadow-lg: 0 24px 64px -24px rgba(28, 27, 24, 0.45);\n\n /* Surfaces and text */\n --color-bg: #f5f3ee;\n --color-surface: #ffffff;\n --color-surface-2: #faf8f4;\n --color-text: #1c1b18;\n --color-muted: #66615a;\n --color-border: #e0dbd1;\n --color-border-strong: #c9c2b5;\n\n /* One accent. Everything interactive uses it. */\n --color-accent: #1d6b52;\n --color-accent-hover: #185b46;\n --color-accent-soft: #e3efe9;\n --color-on-accent: #ffffff;\n --color-focus: #1d6b52;\n\n /* Semantic tones for badges, notices and stats: not for buttons. */\n --color-success: #1d6b52;\n --color-success-soft: #e3efe9;\n --color-warning: #8a5a00;\n --color-warning-soft: #f7ebd2;\n --color-danger: #b42318;\n --color-danger-soft: #fbe4e1;\n --color-info: #2a5d9f;\n --color-info-soft: #e1eaf7;\n}\n\n@media (prefers-color-scheme: dark) {\n :root {\n color-scheme: dark;\n\n --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);\n --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -28px rgba(0, 0, 0, 0.7);\n --shadow-lg: 0 24px 64px -24px rgba(0, 0, 0, 0.8);\n\n --color-bg: #15161a;\n --color-surface: #1e2025;\n --color-surface-2: #24272d;\n --color-text: #ecebe6;\n --color-muted: #a19d95;\n --color-border: #31343b;\n --color-border-strong: #454953;\n\n --color-accent: #5fbf9a;\n --color-accent-hover: #74cba9;\n --color-accent-soft: #1f3a31;\n --color-on-accent: #0f1f19;\n --color-focus: #5fbf9a;\n\n --color-success: #5fbf9a;\n --color-success-soft: #1f3a31;\n --color-warning: #e2b25a;\n --color-warning-soft: #3a2f16;\n --color-danger: #f0867c;\n --color-danger-soft: #42221f;\n --color-info: #7fa9e6;\n --color-info-soft: #1f2d42;\n }\n}\n";
|
|
3
|
+
export declare const APP_CSS = "/* Base styles and the classes src/ui components render. Values come from\n tokens.css. Add app-specific styles at the end of this file, or in a new\n file imported from src/main.tsx; do not restyle native elements globally. */\n\n/* ---------- Base ---------- */\n*, *::before, *::after { box-sizing: border-box; }\nhtml { -webkit-text-size-adjust: 100%; }\nbody {\n margin: 0;\n min-width: 320px;\n background: var(--color-bg);\n color: var(--color-text);\n font: 400 var(--text-base)/1.55 var(--font-body);\n -webkit-font-smoothing: antialiased;\n}\nbutton, input, select, textarea { font: inherit; color: inherit; }\nh1, h2, h3, p { margin: 0; }\nh1, h2, h3 { font-family: var(--font-display); line-height: 1.2; letter-spacing: var(--tracking-display); font-weight: 600; }\nh1 { font-size: var(--text-2xl); }\nh2 { font-size: var(--text-xl); }\nh3 { font-size: var(--text-lg); }\na { color: var(--color-accent); text-underline-offset: 3px; }\ncode, kbd { font-family: var(--font-mono); font-size: 0.9em; }\n:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }\n::placeholder { color: var(--color-muted); opacity: 0.8; }\n\n.muted { color: var(--color-muted); }\n.hint { margin: 0; color: var(--color-muted); font-size: var(--text-sm); font-weight: 400; }\n.error { margin: 0; color: var(--color-danger); font-size: var(--text-sm); }\n.skip-link { display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; position: absolute; left: var(--space-3); top: -60px; padding: var(--space-2) var(--space-3); background: var(--color-text); color: var(--color-bg); z-index: 10; }\n.skip-link:focus { top: var(--space-3); }\n.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }\n\n/* ---------- Layout primitives (src/ui/layout.tsx) ---------- */\n.stack { display: grid; gap: var(--stack-gap, var(--space-4)); align-content: start; }\n.stack > *, .grid > *, .card > *, .content > * { min-width: 0; }\n.inline { display: flex; flex-wrap: wrap; gap: var(--inline-gap, var(--space-2)); align-items: var(--inline-align, center); justify-content: var(--inline-justify, flex-start); }\n.grid { display: grid; gap: var(--grid-gap, var(--space-4)); grid-template-columns: repeat(auto-fit, minmax(min(var(--grid-min, 220px), 100%), 1fr)); }\n.actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }\n\n.page-header { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: flex-end; justify-content: space-between; margin-bottom: var(--space-8); }\n.page-header__text { display: grid; gap: var(--space-1); min-width: 0; }\n.page-header__title { font-size: var(--text-display); line-height: 1.1; }\n.page-header__description { color: var(--color-muted); max-width: 60ch; }\n\n.eyebrow { margin: 0; color: var(--color-muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; }\n.section-title { margin: 0 0 var(--space-3); font-size: var(--text-sm); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--color-muted); }\n\n/* ---------- Panel and Card ---------- */\n.panel {\n display: grid;\n gap: var(--space-4);\n padding: var(--space-6);\n border: 1px solid var(--color-border);\n border-radius: var(--radius-panel);\n background: var(--color-surface);\n box-shadow: var(--shadow-md);\n}\n.panel__title { margin: 0; font: 600 var(--text-lg)/1.2 var(--font-display); }\n\n.card { display: grid; gap: 0; padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-sm); overflow: hidden; }\n.card__header { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-4) var(--space-5); border-bottom: 1px solid var(--color-border); }\n.card__heading { display: grid; gap: 2px; min-width: 0; }\n.card__title { font-size: var(--text-base); font-weight: 600; letter-spacing: 0; }\n.card__description { color: var(--color-muted); font-size: var(--text-sm); }\n.card__body { padding: var(--space-5); }\n.card__body--flush { padding: 0; }\n.card__footer { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--color-border); background: var(--color-surface-2); }\n\n/* ---------- Buttons (src/ui/Button.tsx) ---------- */\n.button {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n gap: var(--space-2);\n min-height: var(--control-height);\n padding: 0 var(--space-4);\n border: 1px solid var(--color-accent);\n border-radius: var(--radius-control);\n background: var(--color-accent);\n color: var(--color-on-accent);\n font-weight: 600;\n line-height: 1.2;\n white-space: nowrap;\n text-decoration: none;\n cursor: pointer;\n transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease;\n}\n.button:hover:not(:disabled) { background: var(--color-accent-hover); border-color: var(--color-accent-hover); }\n.button:disabled { opacity: 0.5; cursor: not-allowed; }\n.button--secondary { background: var(--color-surface); border-color: var(--color-border-strong); color: var(--color-text); }\n.button--secondary:hover:not(:disabled) { background: var(--color-surface-2); border-color: var(--color-border-strong); }\n.button--quiet { background: transparent; border-color: transparent; color: var(--color-text); }\n.button--quiet:hover:not(:disabled) { background: var(--color-accent-soft); border-color: transparent; }\n.button--danger { background: var(--color-danger); border-color: var(--color-danger); color: #fff; }\n.button--danger:hover:not(:disabled) { background: var(--color-danger); border-color: var(--color-danger); filter: brightness(0.92); }\n.button--sm { padding: 0 var(--space-3); font-size: var(--text-sm); }\n.button--block { width: 100%; }\n.button__spinner { width: 1em; height: 1em; border-width: 2px; }\n\n.link-button {\n display: inline-flex; align-items: center; min-height: var(--control-height);\n padding: 0 var(--space-2); border: 0; background: none;\n color: var(--color-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer;\n}\n.link-button:disabled { opacity: 0.5; cursor: not-allowed; }\n.link-button--danger { color: var(--color-danger); }\n\n/* ---------- Fields (src/ui/Field.tsx) ---------- */\n.field { display: grid; gap: 6px; min-width: 0; }\n.field__label { display: flex; justify-content: space-between; gap: var(--space-2); font-size: var(--text-sm); font-weight: 600; }\n.field__optional { color: var(--color-muted); font-weight: 400; }\n.field .control {\n width: 100%;\n min-height: var(--control-height);\n padding: 10px 12px;\n border: 1px solid var(--color-border-strong);\n border-radius: var(--radius-control);\n background: var(--color-surface);\n color: var(--color-text);\n}\n.field .control:hover { border-color: var(--color-muted); }\n.field .control[aria-invalid=\"true\"] { border-color: var(--color-danger); }\n.field .control:disabled { background: var(--color-surface-2); color: var(--color-muted); cursor: not-allowed; }\n.field textarea.control { min-height: calc(var(--control-height) * 2.2); resize: vertical; line-height: 1.5; }\n.field select.control {\n appearance: none;\n padding-right: 40px;\n background-image: url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none' stroke='%2366615a' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 6l4 4 4-4'/%3E%3C/svg%3E\");\n background-repeat: no-repeat;\n background-position: right 12px center;\n}\n.field input[type=\"date\"].control, .field input[type=\"time\"].control { min-width: 10ch; }\n.field--inline { grid-template-columns: auto 1fr; align-items: center; }\n.field--inline .field__label { font-weight: 400; }\n.field input[type=\"checkbox\"], .field input[type=\"radio\"] { width: 20px; height: 20px; margin: 0; accent-color: var(--color-accent); }\n.field__hint { color: var(--color-muted); font-size: var(--text-sm); }\n.field__error { color: var(--color-danger); font-size: var(--text-sm); }\n.form-row { display: grid; gap: var(--space-4); grid-template-columns: repeat(auto-fit, minmax(min(var(--form-row-min, 160px), 100%), 1fr)); align-items: start; }\n\n/* ---------- Tabs (src/ui/Tabs.tsx) ---------- */\n.tabs { display: flex; gap: var(--space-1); padding: var(--space-1); min-height: var(--control-height); border: 1px solid var(--color-border); border-radius: var(--radius-control); background: var(--color-surface-2); overflow-x: auto; scrollbar-width: none; max-width: 100%; }\n.tabs::-webkit-scrollbar { display: none; }\n.tab { flex: 0 0 auto; min-height: calc(var(--control-height) - 8px); padding: 0 var(--space-4); border: 0; border-radius: calc(var(--radius-control) - 2px); background: transparent; color: var(--color-muted); font-weight: 600; font-size: var(--text-sm); white-space: nowrap; cursor: pointer; }\n.tab:hover { color: var(--color-text); }\n.tab[aria-selected=\"true\"] { background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-sm); }\n\n/* ---------- Badge (src/ui/Badge.tsx) ---------- */\n.badge { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 0 10px; border-radius: var(--radius-pill); background: var(--color-surface-2); border: 1px solid var(--color-border); color: var(--color-text); font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.02em; white-space: nowrap; }\n.badge--accent { background: var(--color-accent-soft); border-color: transparent; color: var(--color-accent); }\n.badge--success { background: var(--color-success-soft); border-color: transparent; color: var(--color-success); }\n.badge--warning { background: var(--color-warning-soft); border-color: transparent; color: var(--color-warning); }\n.badge--danger { background: var(--color-danger-soft); border-color: transparent; color: var(--color-danger); }\n.badge--info { background: var(--color-info-soft); border-color: transparent; color: var(--color-info); }\n.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }\n\n/* ---------- Stat (src/ui/Stat.tsx) ---------- */\n.stat { display: grid; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-surface); box-shadow: var(--shadow-sm); }\n.stat__value { font-family: var(--font-display); font-size: var(--text-2xl); font-weight: 600; letter-spacing: var(--tracking-display); line-height: 1.1; font-variant-numeric: tabular-nums; }\n.stat__value small { color: var(--color-muted); font-size: 0.55em; font-weight: 500; letter-spacing: 0; margin-left: 0.3em; }\n.stat__detail { color: var(--color-muted); font-size: var(--text-sm); }\n.stat__detail--success { color: var(--color-success); }\n.stat__detail--danger { color: var(--color-danger); }\n.meter { height: 6px; border-radius: var(--radius-pill); background: var(--color-border); overflow: hidden; }\n.meter__fill { height: 100%; border-radius: inherit; background: var(--color-accent); transition: width 240ms ease; }\n\n/* ---------- Table (src/ui/Table.tsx) ---------- */\n.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }\n.table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }\n.table th, .table td { padding: var(--space-3) var(--space-5); text-align: left; vertical-align: middle; border-bottom: 1px solid var(--color-border); }\n.table th { color: var(--color-muted); font-size: var(--text-xs); font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; white-space: nowrap; background: var(--color-surface-2); }\n.table tbody tr:last-child td { border-bottom: 0; }\n.table tbody tr:hover td { background: var(--color-surface-2); }\n.table .is-numeric { text-align: right; }\n.table__empty { padding: var(--space-8) var(--space-5); text-align: center; color: var(--color-muted); }\n\n/* ---------- Notice (src/ui/Notice.tsx) ---------- */\n.notice { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-border); border-left-width: 4px; border-radius: var(--radius-control); background: var(--color-surface); font-size: var(--text-sm); }\n.notice__body { flex: 1 1 240px; display: grid; gap: 2px; min-width: 0; }\n.notice__title { font-weight: 600; }\n.notice--info { border-left-color: var(--color-info); }\n.notice--success { border-left-color: var(--color-success); }\n.notice--warning { border-left-color: var(--color-warning); }\n.notice--danger { border-left-color: var(--color-danger); }\n.notice__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }\n\n/* Alert from feedback.tsx; Notice is preferred for new code. */\n.alert { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: space-between; padding: var(--space-3) var(--space-4); border: 1px solid var(--color-danger); border-radius: var(--radius-control); color: var(--color-danger); background: var(--color-surface); }\n.alert p { margin: 0; }\n\n/* ---------- Dialog (src/ui/Dialog.tsx) ---------- */\n.dialog { width: min(480px, calc(100% - 2 * var(--space-4))); padding: 0; border: 1px solid var(--color-border); border-radius: var(--radius-panel); background: var(--color-surface); color: var(--color-text); box-shadow: var(--shadow-lg); }\n.dialog::backdrop { background: rgba(20, 20, 18, 0.45); backdrop-filter: blur(2px); }\n.dialog__header { display: flex; align-items: start; justify-content: space-between; gap: var(--space-3); padding: var(--space-5) var(--space-5) 0; }\n.dialog__title { font-size: var(--text-lg); }\n.dialog__body { display: grid; gap: var(--space-4); padding: var(--space-4) var(--space-5) var(--space-5); }\n.dialog__footer { display: flex; flex-wrap: wrap; gap: var(--space-2); justify-content: flex-end; padding: var(--space-3) var(--space-5); border-top: 1px solid var(--color-border); background: var(--color-surface-2); }\n\n/* ---------- Skeleton (src/ui/Skeleton.tsx) ---------- */\n.skeleton { display: grid; gap: var(--space-2); }\n.skeleton__line { height: 1em; border-radius: 4px; background: linear-gradient(90deg, var(--color-border) 25%, var(--color-surface-2) 50%, var(--color-border) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }\n@keyframes shimmer { to { background-position: -200% 0; } }\n\n/* ---------- Empty state (src/ui/feedback.tsx) ---------- */\n.empty { display: grid; gap: var(--space-2); justify-items: center; padding: var(--space-10) var(--space-6); border: 1px dashed var(--color-border-strong); border-radius: var(--radius-panel); text-align: center; }\n.empty__title { margin: 0; font: 600 var(--text-lg)/1.3 var(--font-display); }\n.empty__body { margin: 0; color: var(--color-muted); max-width: 44ch; }\n\n/* ---------- Loading, unavailable, banner ---------- */\n.loading { display: grid; place-content: center; justify-items: center; gap: var(--space-3); min-height: 100vh; color: var(--color-muted); }\n.unavailable { max-width: 380px; margin: 0 var(--space-4); color: var(--color-text); }\n.unavailable p { margin: 0; }\n.banner { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; justify-content: center; padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-danger); background: var(--color-surface); color: var(--color-danger); }\n.banner p { margin: 0; }\n.spinner { width: 24px; height: 24px; border: 3px solid var(--color-border); border-top-color: var(--color-accent); border-radius: 50%; animation: spin 0.8s linear infinite; }\n@keyframes spin { to { transform: rotate(360deg); } }\n\n/* ---------- Sign-in (src/ui/AuthCard.tsx) ---------- */\n.auth {\n display: grid;\n grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);\n gap: var(--space-12);\n align-items: center;\n width: min(960px, calc(100% - 2 * var(--space-6)));\n min-height: 100vh;\n margin: 0 auto;\n padding: var(--space-12) 0;\n}\n.auth__intro { display: grid; gap: var(--space-3); align-content: center; }\n.auth__app { margin: 0; color: var(--color-accent); font-weight: 600; }\n.auth__title { margin: 0; font-size: var(--text-display); line-height: 1.05; }\n.auth__column { display: grid; gap: var(--space-4); }\n.auth__form .button { width: 100%; }\n.auth__providers { display: grid; gap: var(--space-2); }\n.auth__switch { margin: 0; text-align: center; color: var(--color-muted); font-size: var(--text-sm); }\n.auth__forgot { margin: 0; text-align: right; font-size: var(--text-sm); }\n.divider { display: flex; align-items: center; gap: var(--space-3); color: var(--color-muted); font-size: var(--text-sm); }\n.divider::before, .divider::after { content: \"\"; flex: 1; height: 1px; background: var(--color-border); }\n.provider-icon { width: 18px; height: 18px; flex: none; }\n\n/* ---------- Signed-in frame (src/ui/AppShell.tsx) ---------- */\n.shell { min-height: 100vh; }\n.topbar {\n display: flex;\n align-items: center;\n justify-content: space-between;\n gap: var(--space-4);\n width: min(var(--content-width), calc(100% - 2 * var(--space-6)));\n margin: 0 auto;\n padding: var(--space-3) 0;\n border-bottom: 1px solid var(--color-border);\n}\n.topbar__error { width: min(var(--content-width), calc(100% - 2 * var(--space-6))); margin: var(--space-2) auto 0; }\n.brand { display: inline-flex; align-items: center; gap: var(--space-2); min-height: 44px; font: 600 var(--text-lg)/1 var(--font-display); letter-spacing: var(--tracking-display); color: inherit; text-decoration: none; }\n.account { display: flex; align-items: center; gap: var(--space-3); min-width: 0; }\n.account__label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--color-muted); font-size: var(--text-sm); }\n.content { width: min(var(--content-width), calc(100% - 2 * var(--space-6))); margin: 0 auto; padding: var(--space-8) 0 var(--space-16); outline: none; }\n\n/* ---------- Email verification (src/ui/VerifyEmail.tsx) ---------- */\n.verify-email { margin-bottom: var(--space-6); }\n.verify-email__form { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }\n.verify-email__form .field { grid-template-columns: auto auto; align-items: center; }\n.verify-email__form input { width: 8ch; letter-spacing: 0.2em; text-align: center; }\n\n/* ---------- Responsive ---------- */\n@media (max-width: 760px) {\n .auth { grid-template-columns: 1fr; gap: var(--space-6); align-content: start; padding-top: var(--space-8); }\n .auth__title { font-size: var(--text-2xl); }\n .page-header { margin-bottom: var(--space-6); }\n .page-header__title { font-size: var(--text-2xl); }\n .content { padding-top: var(--space-6); }\n}\n@media (max-width: 480px) {\n .panel { padding: var(--space-4); }\n .card__header, .card__body, .card__footer { padding-left: var(--space-4); padding-right: var(--space-4); }\n .table th, .table td { padding-left: var(--space-4); padding-right: var(--space-4); }\n .account__label { display: none; }\n}\n@media (prefers-reduced-motion: reduce) {\n .spinner { animation-duration: 3s; }\n .skeleton__line { animation: none; }\n .button, .meter__fill { transition: none; }\n}\n\n/* ---------- Your app ---------- */\n/* Add page-specific styles below. Use tokens; add a class, don't restyle a tag. */\n";
|
|
4
|
+
export declare const STYLED_AUTH_CARD = "import type { FormEvent, ReactNode } from 'react';\nimport type { CredentialsForm } from '../../types/auth';\nimport { Button } from './Button';\nimport { TextField } from './Field';\n\ninterface AuthCardProps {\n appName: string;\n /** One line under the title: what the app is for. */\n tagline?: string;\n form: CredentialsForm;\n /** Social sign-in buttons, shown above the email form (see ProviderButtons). */\n providers?: ReactNode;\n /** Anything that belongs under the form: a magic-link form, a terms line. */\n children?: ReactNode;\n}\n\n/** The sign-in page: an intro column and a form column. Add to it through\n * the `providers` and `children` slots; the two-column grid holds exactly\n * these two columns, so don't add siblings to it. */\nexport function AuthCard({ appName, tagline, form, providers, children }: AuthCardProps) {\n const signUp = form.mode === 'sign-up';\n\n function onSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n void form.submit();\n }\n\n return (\n <main className=\"auth\">\n <div className=\"auth__intro\">\n <p className=\"auth__app\">{appName}</p>\n <h1 className=\"auth__title\">{signUp ? 'Create your account' : 'Welcome back'}</h1>\n <p className=\"muted\">{tagline ?? (signUp ? 'It takes a few seconds.' : 'Sign in to continue.')}</p>\n </div>\n <div className=\"auth__column\">\n <form className=\"panel auth__form\" onSubmit={onSubmit} noValidate aria-label={signUp ? 'Create account' : 'Sign in'}>\n {providers ? (\n <>\n {providers}\n <p className=\"divider\" aria-hidden=\"true\">or use email</p>\n </>\n ) : null}\n <TextField id=\"auth-email\" label=\"Email\" type=\"email\" name=\"email\" autoComplete=\"email\" inputMode=\"email\" autoFocus\n value={form.email} onChange={(event) => form.setEmail(event.target.value)} />\n <TextField id=\"auth-password\" label=\"Password\" type=\"password\" name=\"password\"\n autoComplete={signUp ? 'new-password' : 'current-password'}\n minLength={signUp ? form.passwordMinLength : undefined}\n hint={signUp ? `At least ${form.passwordMinLength} characters.` : undefined}\n value={form.password} onChange={(event) => form.setPassword(event.target.value)} />\n {signUp ? null : <p className=\"auth__forgot\"><a href=\"/forgot-password\">Forgot password?</a></p>}\n {form.error ? <p className=\"error\" role=\"alert\">{form.error}</p> : null}\n <Button type=\"submit\" block disabled={!form.canSubmit} pending={form.pending}>\n {signUp ? 'Create account' : 'Sign in'}\n </Button>\n <p className=\"auth__switch\">\n {signUp ? 'Already have an account?' : 'New here?'}{' '}\n <button type=\"button\" className=\"link-button\" onClick={form.toggleMode} disabled={form.pending}>\n {signUp ? 'Sign in' : 'Create an account'}\n </button>\n </p>\n </form>\n {children}\n </div>\n </main>\n );\n}\n";
|
|
5
|
+
export declare const PLAIN_AUTH_CARD = "import type { FormEvent, ReactNode } from 'react';\nimport type { CredentialsForm } from '../../types/auth';\nimport { Button } from './Button';\nimport { TextField } from './Field';\n\ninterface AuthCardProps {\n appName: string;\n /** One line under the title: what the app is for. */\n tagline?: string;\n form: CredentialsForm;\n /** Social sign-in buttons, shown above the email form (see ProviderButtons). */\n providers?: ReactNode;\n /** What belongs under the form: a magic-link form, a terms line. */\n children?: ReactNode;\n}\n\n/** The sign-in page. Add to it through the `providers` and `children` slots. */\nexport function AuthCard({ appName, tagline, form, providers, children }: AuthCardProps) {\n const signUp = form.mode === 'sign-up';\n\n function onSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n void form.submit();\n }\n\n return (\n <main>\n <h1>{signUp ? 'Create your account' : 'Sign in'} \u00B7 {appName}</h1>\n {tagline ? <p>{tagline}</p> : null}\n {providers}\n <form onSubmit={onSubmit} noValidate aria-label={signUp ? 'Create account' : 'Sign in'}>\n <TextField id=\"auth-email\" label=\"Email\" type=\"email\" name=\"email\" autoComplete=\"email\" inputMode=\"email\" autoFocus\n value={form.email} onChange={(event) => form.setEmail(event.target.value)} />\n <TextField id=\"auth-password\" label=\"Password\" type=\"password\" name=\"password\"\n autoComplete={signUp ? 'new-password' : 'current-password'}\n minLength={signUp ? form.passwordMinLength : undefined}\n hint={signUp ? `At least ${form.passwordMinLength} characters.` : undefined}\n value={form.password} onChange={(event) => form.setPassword(event.target.value)} />\n {signUp ? null : <p><a href=\"/forgot-password\">Forgot password?</a></p>}\n {form.error ? <p role=\"alert\">{form.error}</p> : null}\n <Button type=\"submit\" disabled={!form.canSubmit} pending={form.pending}>\n {signUp ? 'Create account' : 'Sign in'}\n </Button>\n </form>\n <p>\n <button type=\"button\" onClick={form.toggleMode} disabled={form.pending}>\n {signUp ? 'Sign in' : 'Create an account'}\n </button>\n </p>\n {children}\n </main>\n );\n}\n";
|
|
6
|
+
export declare const STYLED_VERIFY_EMAIL = "import type { FormEvent } from 'react';\nimport type { EmailVerification } from '../../types/auth';\n\n/** A quiet reminder above the page, never its main call to action. */\nexport function VerifyEmailPanel({ verification }: { verification: EmailVerification }) {\n if (verification.status === 'checking' || verification.status === 'verified') return null;\n if (verification.status === 'unavailable') {\n return (\n <div className=\"notice notice--warning verify-email\" role=\"alert\">\n <p className=\"notice__body\">Could not check whether your email is verified.</p>\n <div className=\"notice__actions\">\n <button type=\"button\" className=\"button button--secondary button--sm\" onClick={verification.retry}>Try again</button>\n </div>\n </div>\n );\n }\n function onSubmit(event: FormEvent<HTMLFormElement>) {\n event.preventDefault();\n void verification.submit();\n }\n return (\n <section className=\"notice notice--info verify-email\" aria-label=\"Verify your email\">\n <div className=\"notice__body\">\n <p className=\"notice__title\">Verify your email</p>\n <p>{verification.sent ? 'Enter the 6-digit code we emailed you.' : verification.entering ? 'Enter the 6-digit code from the latest email we sent you.' : 'We will email you a 6-digit code.'}</p>\n {verification.error ? <p className=\"error\" role=\"alert\">{verification.error}</p> : null}\n </div>\n {verification.entering ? (\n <form className=\"notice__actions verify-email__form\" onSubmit={onSubmit} noValidate>\n <label className=\"visually-hidden\" htmlFor=\"verify-code\">Code</label>\n <input id=\"verify-code\" className=\"control\" inputMode=\"numeric\" autoComplete=\"one-time-code\" maxLength={6} required placeholder=\"000000\"\n value={verification.code} onChange={(event) => verification.setCode(event.target.value)} />\n <button type=\"submit\" className=\"button button--sm\" disabled={!verification.canSubmit} aria-busy={verification.pending}>Verify</button>\n <button type=\"button\" className=\"button button--quiet button--sm\" onClick={() => void verification.sendCode()} disabled={verification.pending}>Send a new code</button>\n </form>\n ) : (\n <div className=\"notice__actions\">\n <button type=\"button\" className=\"button button--secondary button--sm\" onClick={() => void verification.sendCode()} disabled={verification.pending} aria-busy={verification.pending}>\n Email me a code\n </button>\n <button type=\"button\" className=\"button button--quiet button--sm\" onClick={verification.enterCode} disabled={verification.pending}>I already have a code</button>\n </div>\n )}\n </section>\n );\n}\n";
|
|
7
|
+
export declare const STYLED_UI_KIT: InitScaffoldFile[];
|
|
8
|
+
export declare const PLAIN_UI_KIT: InitScaffoldFile[];
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Command } from 'commander';
|
|
2
|
+
/**
|
|
3
|
+
* The local record of the last command (~/.somewhere/last-run.json, mode 600).
|
|
4
|
+
*
|
|
5
|
+
* Built from an allowlist by construction (pfb_04b5a285eed0): the registered
|
|
6
|
+
* command path, the names of the options given on the command line, the exit
|
|
7
|
+
* code and when it ran. Operand values, option values, request bodies and
|
|
8
|
+
* command output are never recorded, so a secret passed as an argument (an env
|
|
9
|
+
* value, SQL, a JSON payload) or printed by the command cannot reach the file.
|
|
10
|
+
* Nothing in the CLI sends this file anywhere.
|
|
11
|
+
*/
|
|
12
|
+
export interface LocalRunRecord {
|
|
13
|
+
command: string;
|
|
14
|
+
options: string[];
|
|
15
|
+
exit_code: number;
|
|
16
|
+
timestamp: string;
|
|
17
|
+
cli_version: string;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Remove this CLI's run record before anything else runs (tsk_d8eac29404da).
|
|
21
|
+
* CLI versions before 0.38.6 saved command arguments and output in it, so an
|
|
22
|
+
* upgrade must not leave that file in place while a command runs. The file is
|
|
23
|
+
* never read, copied or printed: only lstat'ed and unlinked. A symlink is
|
|
24
|
+
* removed itself; its target is never followed or touched. Only these two
|
|
25
|
+
* files in the configured config directory are touched (login and session
|
|
26
|
+
* files are not). A file that cannot be removed is reported by path and error
|
|
27
|
+
* code only. The exit writer then saves the metadata-only record.
|
|
28
|
+
*/
|
|
29
|
+
export declare function removeStaleRunRecord(dir?: string): void;
|
|
30
|
+
/** The registered command path and the option names given on the command line. */
|
|
31
|
+
export declare function describeInvocation(action: Command): {
|
|
32
|
+
command: string;
|
|
33
|
+
options: string[];
|
|
34
|
+
};
|
|
35
|
+
/** Called once the command is known (commander preAction). */
|
|
36
|
+
export declare function noteLastRunCommand(action: Command): void;
|
|
37
|
+
/** Write the record when the process exits, without changing command output or failure behavior. */
|
|
38
|
+
export declare function recordLastRun(cliVersion: string): void;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Appended wherever a command needs a project and this folder has no link
|
|
2
|
+
* (tsk_8a68dfa2 item 15): name the exact commands that link one, instead of
|
|
3
|
+
* assuming the reader knows what "a linked directory" is. Wording only; it
|
|
4
|
+
* never links, creates or signs in on its own. */
|
|
5
|
+
export declare function unlinkedFolderHint(): string;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What to run next, decided in ONE place.
|
|
3
|
+
*
|
|
4
|
+
* Invariants:
|
|
5
|
+
* - Exact commands. test/next-actions.test.mjs re-derives every suggestion
|
|
6
|
+
* from the CLI's own `--help`, so a renamed flag fails the build.
|
|
7
|
+
* - At most three. A next step, not a capability catalogue.
|
|
8
|
+
* - Human output only. `deploy --json` emits the raw platform response and
|
|
9
|
+
* `init --json` the project object; neither gains a key nobody asked for.
|
|
10
|
+
* - No network and no new state: every input is one the caller already has.
|
|
11
|
+
*/
|
|
12
|
+
export interface NextAction {
|
|
13
|
+
/** The exact command to run, copy-pastable as printed. */
|
|
14
|
+
command: string;
|
|
15
|
+
/** Why it is worth running, in one clause. */
|
|
16
|
+
why: string;
|
|
17
|
+
}
|
|
18
|
+
export type NextActionContext = {
|
|
19
|
+
stage: 'init';
|
|
20
|
+
scaffolded: boolean;
|
|
21
|
+
} | {
|
|
22
|
+
stage: 'login';
|
|
23
|
+
linkedProject: boolean;
|
|
24
|
+
} | {
|
|
25
|
+
stage: 'deploy';
|
|
26
|
+
/** The current directory links to the project this deploy targeted, so a
|
|
27
|
+
* bare `somewhere browser` resolves it. */
|
|
28
|
+
projectLinked: boolean;
|
|
29
|
+
liveUrl: string | null;
|
|
30
|
+
/** Anonymous `--temporary` deploy. Always addressed by URL: with
|
|
31
|
+
* `--temporary` beside a real login the throwaway project is
|
|
32
|
+
* deliberately kept OUT of `.somewhere.json` (commands/deploy.ts), so a
|
|
33
|
+
* bare `somewhere browser` would open the developer's own app instead. */
|
|
34
|
+
temporary: boolean;
|
|
35
|
+
};
|
|
36
|
+
/** Quote an argument that is not safe bare in a shell. Live URLs are plain
|
|
37
|
+
* today; a suggestion is pasted verbatim, so it may not depend on that. */
|
|
38
|
+
export declare function shellQuote(value: string): string;
|
|
39
|
+
export declare function nextActions(ctx: NextActionContext): NextAction[];
|
|
40
|
+
export interface NextActionStyles {
|
|
41
|
+
/** Applied to the command. Defaults to identity so tests read plain text. */
|
|
42
|
+
command?: (value: string) => string;
|
|
43
|
+
/** Applied to the trailing explanation. */
|
|
44
|
+
why?: (value: string) => string;
|
|
45
|
+
}
|
|
46
|
+
/** Aligned lines ready for `console.log`. `[]` for no actions, so a caller can
|
|
47
|
+
* print unconditionally without emitting a bare label. */
|
|
48
|
+
export declare function formatNextActions(actions: NextAction[], styles?: NextActionStyles): string[];
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/** Commands that own their output stay silent. In particular, an `update`
|
|
2
|
+
* process keeps its old in-memory
|
|
3
|
+
* version after installing the new package, so its generic exit notice would
|
|
4
|
+
* otherwise repeat the update that just succeeded. */
|
|
5
|
+
export declare function subcommandSuppressesNotifications(argv: string[]): boolean;
|
|
6
|
+
export interface CollectNoticesOptions {
|
|
7
|
+
isTTY?: boolean;
|
|
8
|
+
outdatedWarning?: (currentVersion: string) => Promise<string | null>;
|
|
9
|
+
}
|
|
10
|
+
/** Run every provider (gated, in parallel, fail-open) and return the notices to
|
|
11
|
+
* display. Print these to STDERR after the command (e.g. via process.on('exit'))
|
|
12
|
+
* so they never touch stdout and land as a parting line.
|
|
13
|
+
*
|
|
14
|
+
* Non-interactive callers (agents, pipes) get no providers, only the
|
|
15
|
+
* once-a-day outdated warning (CI and the opt-out get nothing): a CLI a minor release or more behind is the
|
|
16
|
+
* one notice an agent must see, because current docs describe commands it
|
|
17
|
+
* does not have yet. */
|
|
18
|
+
export declare function collectNotices(argv: string[], options?: CollectNoticesOptions): Promise<string[]>;
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import type { NoticeProvider } from '../types.js';
|
|
2
|
+
/** Numeric major.minor.patch compare, ignoring pre-release tags. Returns true when
|
|
3
|
+
* `a` is strictly newer than `b`, false on anything unparseable (exported for
|
|
4
|
+
* tests — a string compare would call 1.9.0 newer than 1.10.0). */
|
|
5
|
+
export declare function isNewer(a: string, b: string): boolean;
|
|
6
|
+
export interface UpdateNoticeOptions {
|
|
7
|
+
cachePath?: string;
|
|
8
|
+
fetchLatest?: () => Promise<string | null>;
|
|
9
|
+
now?: () => number;
|
|
10
|
+
}
|
|
11
|
+
/** Resolve the ambient update notice without changing the installed CLI. The
|
|
12
|
+
* injectable clock/cache/fetch keep both version directions and daily
|
|
13
|
+
* throttling deterministic in tests. */
|
|
14
|
+
export declare function getUpdateNotice(currentVersion: string, options?: UpdateNoticeOptions): Promise<string | null>;
|
|
15
|
+
/** True when `latest` is at least one minor (or major) release ahead of
|
|
16
|
+
* `current`. Patch-only gaps stay quiet for agents: they rarely change a
|
|
17
|
+
* command or flag the docs describe. */
|
|
18
|
+
export declare function isMinorBehind(current: string, latest: string): boolean;
|
|
19
|
+
/** The npm command that installs the latest release without `somewhere update`.
|
|
20
|
+
* CLIs at 0.37.0 and older cannot self-update (their verifier predates npm's
|
|
21
|
+
* current provenance format), so every outdated message names this path. */
|
|
22
|
+
export declare const NPM_UPDATE_COMMAND = "npm i -g @somewhere-cloud/cli@latest";
|
|
23
|
+
/** A project that records a CLI version keeps running that version (lib/project-pin.ts):
|
|
24
|
+
* updating the global CLI alone does not move it. */
|
|
25
|
+
export declare const PROJECT_PIN_NOTE = "A project that records an older CLI version keeps using it: run somewhere upgrade in that project to move it.";
|
|
26
|
+
export declare function outdatedMessage(currentVersion: string, latest: string): string;
|
|
27
|
+
/** The latest published version as last cached, without any network read.
|
|
28
|
+
* `somewhere docs` uses this so reading docs never waits on npm; the daily
|
|
29
|
+
* refresh happens in the notice pipeline that runs alongside every command. */
|
|
30
|
+
export declare function cachedLatestVersion(cachePath?: string): string | null;
|
|
31
|
+
/** The latest published version from the daily cache, refreshing it when stale. */
|
|
32
|
+
export declare function latestKnownVersion(options?: UpdateNoticeOptions): Promise<string | null>;
|
|
33
|
+
export interface OutdatedWarningOptions extends UpdateNoticeOptions {
|
|
34
|
+
warnedPath?: string;
|
|
35
|
+
}
|
|
36
|
+
/** One stderr line, at most once a day, when the installed CLI is a minor
|
|
37
|
+
* release or more behind. Unlike the interactive update notice this also
|
|
38
|
+
* reaches agents and piped output, because an agent on an old CLI otherwise
|
|
39
|
+
* reads current docs and concludes they are wrong (tsk_f681c871). */
|
|
40
|
+
export declare function getOutdatedWarning(currentVersion: string, options?: OutdatedWarningOptions): Promise<string | null>;
|
|
41
|
+
/** Notice provider: a newer @somewhere-cloud/cli is published. Self-throttled to one
|
|
42
|
+
* npm check per day (cached in ~/.somewhere/update-check.json). The pipeline's
|
|
43
|
+
* central gate already ensured this only runs on interactive, non-CI, non-pass-
|
|
44
|
+
* through commands, so this provider just answers "is there an update?". */
|
|
45
|
+
export declare const updateProvider: NoticeProvider;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/** The user-notification pipeline.
|
|
2
|
+
*
|
|
3
|
+
* A `NoticeProvider` is a source of an out-of-band, user-facing message — "a new
|
|
4
|
+
* CLI version is out", a one-off announcement, etc. The pipeline (see
|
|
5
|
+
* ./index.ts) runs every registered
|
|
6
|
+
* provider behind a SINGLE central gate and emits the results to stderr as a
|
|
7
|
+
* parting line after the command. That gate is the safety contract: providers
|
|
8
|
+
* only run for interactive (TTY) `somewhere` invocations that are not CI, not a
|
|
9
|
+
* command with owned output, and not opted out. A notice can never reach stdout
|
|
10
|
+
* or agent/piped output. */
|
|
11
|
+
export interface NoticeContext {
|
|
12
|
+
/** The full process argv, so a provider can branch on the subcommand if needed. */
|
|
13
|
+
argv: string[];
|
|
14
|
+
/** The installed CLI version (resolved once, centrally). */
|
|
15
|
+
currentVersion: string;
|
|
16
|
+
}
|
|
17
|
+
export interface NoticeProvider {
|
|
18
|
+
/** Stable id, for logging / per-provider opt-out later. */
|
|
19
|
+
id: string;
|
|
20
|
+
/** Return a short message to show (stderr), or null for nothing. MUST be
|
|
21
|
+
* fail-open: swallow all errors and return null. MUST be self-throttled (cache
|
|
22
|
+
* in ~/.somewhere) — the pipeline runs on every eligible command, so a provider
|
|
23
|
+
* that hits the network must not do so more than it needs to. */
|
|
24
|
+
getNotice(ctx: NoticeContext): Promise<string | null>;
|
|
25
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default function open(url: string): Promise<void>;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
type Style = (value: string) => string;
|
|
2
|
+
export declare function setJsonOutputMode(enabled: boolean): void;
|
|
3
|
+
export declare const teal: Style;
|
|
4
|
+
export declare const dim: Style;
|
|
5
|
+
export declare const bold: Style;
|
|
6
|
+
export declare const red: Style;
|
|
7
|
+
export declare const green: Style;
|
|
8
|
+
export declare const yellow: Style;
|
|
9
|
+
export declare const cyan: Style;
|
|
10
|
+
export declare function success(msg: string): void;
|
|
11
|
+
/**
|
|
12
|
+
* The platform's own refusal, exactly as it should reach `--json`.
|
|
13
|
+
*
|
|
14
|
+
* Both error types that carry one (the API's CliApiError and an MCP tool's
|
|
15
|
+
* PlatformToolError) are matched by shape rather than imported: output.ts sits
|
|
16
|
+
* below client.ts in the import graph. Anything else — a bad flag, a missing
|
|
17
|
+
* file — originated in the CLI and has no code of its own.
|
|
18
|
+
*/
|
|
19
|
+
export declare function platformErrorEnvelope(cause: unknown): {
|
|
20
|
+
code: string;
|
|
21
|
+
message: string;
|
|
22
|
+
extra: Record<string, unknown>;
|
|
23
|
+
} | null;
|
|
24
|
+
/** index.ts installs the local repro capture here; output.ts stays dependency-free. */
|
|
25
|
+
export declare function setFailureHook(hook: ((cause: unknown) => void) | null): void;
|
|
26
|
+
/** Record a failure that a command reports in its own output (for example verify's summary) without printing. */
|
|
27
|
+
export declare function noteFailure(cause: unknown): void;
|
|
28
|
+
/** Capture may retain response provenance while the printed error stays unchanged. */
|
|
29
|
+
export declare function error(msg: string, cause?: unknown, captureCause?: unknown): void;
|
|
30
|
+
/**
|
|
31
|
+
* The short scalar fields of a typed failure's validated `data` (for example an
|
|
32
|
+
* ordered edit's edit_index, path, expected, actual, conflicts_with) as one line
|
|
33
|
+
* for text output. Only fields the error's own validator kept are present; a
|
|
34
|
+
* line longer than 200 characters is left to --json.
|
|
35
|
+
*/
|
|
36
|
+
export declare function platformErrorDetail(cause: unknown): string | null;
|
|
37
|
+
/**
|
|
38
|
+
* The platform's code and request/trace ids for a text-mode failure (tsk_c95a437d): an agent reading
|
|
39
|
+
* text output gets the same handles `--json` carries. Only validated shapes are printed, so a server
|
|
40
|
+
* cannot place arbitrary text here; the message above stays the platform's own.
|
|
41
|
+
*/
|
|
42
|
+
export declare function platformErrorIds(cause: unknown): string | null;
|
|
43
|
+
/** Recovery is tied to this response's validated handle, never the shared last-error file. */
|
|
44
|
+
export declare function printSupportPacketRecovery(cause: unknown): void;
|
|
45
|
+
export declare function warn(msg: string): void;
|
|
46
|
+
export declare function info(msg: string): void;
|
|
47
|
+
export declare function printJson(value: unknown): void;
|
|
48
|
+
export declare function printJsonLine(value: unknown): void;
|
|
49
|
+
export declare function printJsonError(errorCode: string, message: string,
|
|
50
|
+
/** Envelope fields worth machine-reading — today the correlation ids. */
|
|
51
|
+
extra?: Record<string, unknown>): void;
|
|
52
|
+
export declare function stripAnsi(value: string): string;
|
|
53
|
+
export declare function heading(msg: string): void;
|
|
54
|
+
export declare function table(headers: string[], rows: string[][], widths?: number[]): void;
|
|
55
|
+
/** Epoch milliseconds for an API timestamp. Zoneless strings are UTC, never the
|
|
56
|
+
* machine's local time (pfb_b69363269589); ISO with Z/offset and epoch numbers
|
|
57
|
+
* keep their own meaning. */
|
|
58
|
+
export declare function parseApiTime(value: string | number): number;
|
|
59
|
+
export declare function timeAgo(dateStr: string | number): string;
|
|
60
|
+
export declare function statusDot(status: string): string;
|
|
61
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare function resolveProjectRef(explicit: string | undefined): string;
|
|
2
|
+
export declare function isRecord(value: unknown): value is Record<string, unknown>;
|
|
3
|
+
export declare function unwrapPlatformData(value: unknown): unknown;
|
|
4
|
+
export declare function compactRecord(entries: Array<[string, unknown]>): Record<string, unknown>;
|
|
5
|
+
export declare function parseCommaList(value: string | undefined): string[] | undefined;
|
|
6
|
+
export declare function truncateText(value: unknown, max?: number): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const CONTRACT_HEADER = "x-sw-consumer-contract";
|
|
2
|
+
export interface ConsumerContract {
|
|
3
|
+
version: number;
|
|
4
|
+
digest: string;
|
|
5
|
+
}
|
|
6
|
+
export interface SeenPlatformContract extends ConsumerContract {
|
|
7
|
+
seen_at: number;
|
|
8
|
+
origin: string;
|
|
9
|
+
}
|
|
10
|
+
export interface ContractVerdict {
|
|
11
|
+
status: 'unknown' | 'current' | 'outdated' | 'ahead' | 'mismatch';
|
|
12
|
+
compatible: boolean | null;
|
|
13
|
+
message: string;
|
|
14
|
+
cli: ConsumerContract | null;
|
|
15
|
+
platform: SeenPlatformContract | null;
|
|
16
|
+
}
|
|
17
|
+
/** The CLI's own contract, from the vendored platform bundle (null: a bundle from before it existed). */
|
|
18
|
+
export declare function cliConsumerContract(): ConsumerContract | null;
|
|
19
|
+
/** Keep the contract a platform response announced. A response without the header changes nothing. */
|
|
20
|
+
export declare function recordPlatformContract(headers: {
|
|
21
|
+
get(name: string): string | null;
|
|
22
|
+
}, url: string, now?: number): SeenPlatformContract | null;
|
|
23
|
+
/** The last contract seen from `apiBase`'s origin, or null. */
|
|
24
|
+
export declare function seenPlatformContract(apiBase: string): SeenPlatformContract | null;
|
|
25
|
+
/** Whether this CLI may judge code for the platform at `apiBase`. */
|
|
26
|
+
export declare function platformContractVerdict(apiBase: string, now?: number): ContractVerdict;
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import type { StreamableHTTPClientTransport } from '@modelcontextprotocol/sdk/client/streamableHttp.js';
|
|
2
|
+
import type { CallToolResult, Tool } from '@modelcontextprotocol/sdk/types.js';
|
|
3
|
+
import { type InvalidDetail } from './vendor/repro-guidance.js';
|
|
4
|
+
export interface PlatformToolCallOptions {
|
|
5
|
+
allTools?: boolean;
|
|
6
|
+
signal?: AbortSignal;
|
|
7
|
+
}
|
|
8
|
+
/** The typed fields of an ordered-edit refusal (project_patch / fs_replace `edits`,
|
|
9
|
+
* tsk_81dd50f0): which edit failed and why, the same handles the MCP response carries. */
|
|
10
|
+
export interface EditRefusalDetail {
|
|
11
|
+
edit_index?: number;
|
|
12
|
+
path?: string;
|
|
13
|
+
expected?: number;
|
|
14
|
+
actual?: number;
|
|
15
|
+
conflicts_with?: string;
|
|
16
|
+
}
|
|
17
|
+
export type PlatformToolErrorData = {
|
|
18
|
+
invalid?: InvalidDetail;
|
|
19
|
+
} & EditRefusalDetail;
|
|
20
|
+
/** Keep only well-formed ordered-edit refusal fields; everything else in `data` is dropped. */
|
|
21
|
+
export declare function safeEditDetail(value: unknown): EditRefusalDetail | undefined;
|
|
22
|
+
export declare class PlatformToolError extends Error {
|
|
23
|
+
readonly tool: string;
|
|
24
|
+
/** The platform's own error code, message, fix and request id, when the
|
|
25
|
+
* tool answered with its JSON envelope — `message` above flattens them. */
|
|
26
|
+
readonly code?: string | undefined;
|
|
27
|
+
readonly detail?: string | undefined;
|
|
28
|
+
readonly hint?: string | undefined;
|
|
29
|
+
readonly meta: {
|
|
30
|
+
requestId?: string;
|
|
31
|
+
traceId?: string;
|
|
32
|
+
retry?: boolean;
|
|
33
|
+
retryAfterMs?: number;
|
|
34
|
+
};
|
|
35
|
+
/** The HTTP status the platform reported for this tool failure (its envelope's
|
|
36
|
+
* `http_status`), so a definite refusal is not recorded as an unknown outcome. */
|
|
37
|
+
readonly statusCode?: number | undefined;
|
|
38
|
+
/** Only validated typed fields: the canonical input location and the ordered-edit
|
|
39
|
+
* refusal detail. Arbitrary tool data is never copied. */
|
|
40
|
+
readonly data?: PlatformToolErrorData | undefined;
|
|
41
|
+
constructor(tool: string, message: string,
|
|
42
|
+
/** The platform's own error code, message, fix and request id, when the
|
|
43
|
+
* tool answered with its JSON envelope — `message` above flattens them. */
|
|
44
|
+
code?: string | undefined, detail?: string | undefined, hint?: string | undefined, meta?: {
|
|
45
|
+
requestId?: string;
|
|
46
|
+
traceId?: string;
|
|
47
|
+
retry?: boolean;
|
|
48
|
+
retryAfterMs?: number;
|
|
49
|
+
},
|
|
50
|
+
/** The HTTP status the platform reported for this tool failure (its envelope's
|
|
51
|
+
* `http_status`), so a definite refusal is not recorded as an unknown outcome. */
|
|
52
|
+
statusCode?: number | undefined,
|
|
53
|
+
/** Only validated typed fields: the canonical input location and the ordered-edit
|
|
54
|
+
* refusal detail. Arbitrary tool data is never copied. */
|
|
55
|
+
data?: PlatformToolErrorData | undefined);
|
|
56
|
+
}
|
|
57
|
+
export declare function mcpAccessExpiresSoon(): boolean;
|
|
58
|
+
/** Reuse ApiClient's canonical cli-pair rotation and persistence path. */
|
|
59
|
+
export declare function refreshMcpAccessToken(preemptive: boolean): Promise<string>;
|
|
60
|
+
/** The status code and server message of an upstream MCP HTTP refusal (the SDK flattens them into text). */
|
|
61
|
+
export declare function mcpHttpFailure(err: unknown): {
|
|
62
|
+
status: number;
|
|
63
|
+
code?: string;
|
|
64
|
+
message: string;
|
|
65
|
+
} | null;
|
|
66
|
+
/** The real reason a request failed: the platform's code and message, the HTTP status, or the network cause. */
|
|
67
|
+
export declare function describeMcpFailure(err: unknown, url?: string): string;
|
|
68
|
+
export declare function isMcpAuthRejection(err: unknown): boolean;
|
|
69
|
+
export declare function createPlatformMcpTransport(token: string, options?: PlatformToolCallOptions & {
|
|
70
|
+
userAgent?: string;
|
|
71
|
+
}): Promise<StreamableHTTPClientTransport>;
|
|
72
|
+
export declare function listPlatformTools(options?: PlatformToolCallOptions): Promise<Tool[]>;
|
|
73
|
+
export declare function platformToolErrorFromText(name: string, text: string): PlatformToolError;
|
|
74
|
+
export declare function callPlatformToolRaw(name: string, args: Record<string, unknown>, options?: PlatformToolCallOptions): Promise<CallToolResult>;
|
|
75
|
+
export declare function platformToolResultValue(result: CallToolResult): unknown;
|
|
76
|
+
export declare function callPlatformTool(name: string, args: Record<string, unknown>, options?: PlatformToolCallOptions): Promise<unknown>;
|
|
77
|
+
export declare function callPlatformHelpTool(name: 'advisor' | 'catalog' | 'docs', args: Record<string, unknown>): Promise<string>;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import type { APIRequestContext, APIResponse, Locator, Page, TestType, PlaywrightTestArgs, PlaywrightTestOptions, PlaywrightWorkerArgs, PlaywrightWorkerOptions } from '@playwright/test';
|
|
2
|
+
import type { DataRequest } from '../testing.js';
|
|
3
|
+
export interface TestUser {
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
page: Page;
|
|
7
|
+
request: APIRequestContext;
|
|
8
|
+
}
|
|
9
|
+
interface Fixtures {
|
|
10
|
+
newUser: () => Promise<TestUser>;
|
|
11
|
+
anonymous: APIRequestContext;
|
|
12
|
+
}
|
|
13
|
+
type RunnerTest = TestType<PlaywrightTestArgs & PlaywrightTestOptions & Fixtures, PlaywrightWorkerArgs & PlaywrightWorkerOptions>;
|
|
14
|
+
export declare const test: RunnerTest;
|
|
15
|
+
export declare const expect: typeof import('@playwright/test').expect;
|
|
16
|
+
export declare function expectRefused(response: APIResponse, status: number, code: string): Promise<void>;
|
|
17
|
+
export declare function data(client: APIRequestContext, table: string, request: DataRequest): Promise<APIResponse>;
|
|
18
|
+
export declare function ready(page: Page, state?: 'ready' | 'signed-in' | 'signed-out' | Locator): Promise<void>;
|
|
19
|
+
export {};
|