@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
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AACvC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,EAAE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AACpD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,aAAa,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,EAAE,eAAe,EAA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AE,CAAC;IACb,IAAI,mBAAmB,IAAI,GAAG,YAAY,cAAc,EAAE,CAAC;QACzD,IAAI,GAAG,CAAC,IAAI,KAAK,yBAAyB,IAAI,GAAG,CAAC,IAAI,KAAK,mBAAmB,EAAE,CAAC;YAC/E,cAAc,CAAC,aAAa,EAAE,SAAS,CAAC,GAAG,CAAC,OAAO,CAAC,OAAO,CAAC,aAAa,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;YACjF,OAAO,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,IAAI,CAAC,CAAC;QACvC,CAAC;IACH,CAAC;SAAM,IAAI,GAAG,YAAY,KAAK,EAAE,CAAC;QAChC,KAAK,CAAC,GAAG,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;QACxB,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAC;IACvB,CAAC;SAAM,CAAC;QACN,MAAM,GAAG,CAAC;IACZ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
export interface LastRunRecord {
|
|
2
|
+
command: string;
|
|
3
|
+
args: string[];
|
|
4
|
+
exit_code: number;
|
|
5
|
+
stdout_tail: string;
|
|
6
|
+
stderr_tail: string;
|
|
7
|
+
timestamp: string;
|
|
8
|
+
}
|
|
9
|
+
export interface AdvisorContext {
|
|
10
|
+
project_ref?: string;
|
|
11
|
+
last_run?: LastRunRecord;
|
|
12
|
+
file?: {
|
|
13
|
+
path: string;
|
|
14
|
+
content: string;
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/** Redact credentials before they can enter the local run record or leave this device. */
|
|
18
|
+
export declare function redactAdvisorText(value: string, redactDotenvValues?: boolean): string;
|
|
19
|
+
export declare function buildAdvisorContext(filePath?: string): AdvisorContext | undefined;
|
|
20
|
+
export declare function contextNotice(context: AdvisorContext | undefined): string;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { type AdvisorContext } from './advisor-context.js';
|
|
2
|
+
export interface AdvisorRunResult {
|
|
3
|
+
run_id?: string;
|
|
4
|
+
status: string;
|
|
5
|
+
answer?: string;
|
|
6
|
+
error?: string;
|
|
7
|
+
incomplete?: boolean;
|
|
8
|
+
next_step?: string;
|
|
9
|
+
retry_after_seconds?: number;
|
|
10
|
+
request_id?: string;
|
|
11
|
+
provider_status?: string;
|
|
12
|
+
payload_expires_at?: number;
|
|
13
|
+
payload_expired?: boolean;
|
|
14
|
+
partial_output?: string;
|
|
15
|
+
}
|
|
16
|
+
/** Local identity is written before POST. Transport failure never creates another request. */
|
|
17
|
+
export declare function callAdvisorRun(args: {
|
|
18
|
+
question?: string;
|
|
19
|
+
context?: AdvisorContext;
|
|
20
|
+
requestId?: string;
|
|
21
|
+
operation?: 'status' | 'resume' | 'cancel';
|
|
22
|
+
wait?: boolean;
|
|
23
|
+
progress?: (message: string) => void;
|
|
24
|
+
}): Promise<AdvisorRunResult>;
|
|
25
|
+
/** Adopt an unpaid legacy/native prepared handle before its first billable resume. */
|
|
26
|
+
export declare function consumeAdvisorRun(text: string, progress?: (message: string) => void): Promise<AdvisorRunResult | null>;
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import type { DeployCheckResult } from './deploy-check.js';
|
|
2
|
+
export declare const AGENT_HOSTS: readonly ["claude-code", "codex", "cursor"];
|
|
3
|
+
export type AgentHost = (typeof AGENT_HOSTS)[number];
|
|
4
|
+
export declare function isAgentHost(value: string): value is AgentHost;
|
|
5
|
+
/** The real path of the `somewhere` that PATH resolves to, if any. */
|
|
6
|
+
export declare function pathCli(pathEnv?: string, platform?: NodeJS.Platform): string | undefined;
|
|
7
|
+
/** True when PATH's `somewhere` is this very CLI (not another installed version). */
|
|
8
|
+
export declare function pathCliIsThisCli(pathEnv?: string | undefined, entry?: string): boolean;
|
|
9
|
+
/**
|
|
10
|
+
* The command a host runs after each edit. Plain `somewhere` only when PATH
|
|
11
|
+
* resolves to this same CLI; otherwise (setup ran through npx, or PATH holds
|
|
12
|
+
* another version that may lack the hook) this exact CLI version through npx,
|
|
13
|
+
* preferring the npm cache so an edit does not re-download the CLI.
|
|
14
|
+
*/
|
|
15
|
+
export declare function agentHookCommand(host: AgentHost, options?: {
|
|
16
|
+
usePathCli?: boolean;
|
|
17
|
+
version?: string;
|
|
18
|
+
}): string;
|
|
19
|
+
export interface AgentHookInstallResult {
|
|
20
|
+
host: AgentHost;
|
|
21
|
+
/** Absolute config path written (or that would have been). */
|
|
22
|
+
path: string;
|
|
23
|
+
status: 'added' | 'updated' | 'unchanged' | 'refused';
|
|
24
|
+
/** Why a host was refused (unreadable config). */
|
|
25
|
+
reason?: string;
|
|
26
|
+
/** The host's own activation step; the hook does not run before it. */
|
|
27
|
+
activation: string;
|
|
28
|
+
}
|
|
29
|
+
type Json = Record<string, unknown>;
|
|
30
|
+
/**
|
|
31
|
+
* Add the after-edit check to the PROJECT's own configuration for each host,
|
|
32
|
+
* merged into what is there: other hooks and settings are never replaced, and
|
|
33
|
+
* an existing check entry is updated in place. Refuses the home directory,
|
|
34
|
+
* any host config path that resolves (through symlinks) outside the project,
|
|
35
|
+
* and existing settings whose shape would have to be rewritten to merge.
|
|
36
|
+
*
|
|
37
|
+
* Explicit installation only: call with the requested project root and hosts;
|
|
38
|
+
* print `formatAgentHookInstall(...)`. Project initialization does not call it.
|
|
39
|
+
*/
|
|
40
|
+
export declare function installAgentHooks(options: {
|
|
41
|
+
projectDir: string;
|
|
42
|
+
hosts: readonly AgentHost[];
|
|
43
|
+
command?: (host: AgentHost) => string;
|
|
44
|
+
}): AgentHookInstallResult[];
|
|
45
|
+
/** Human summary of an installation, one line per host plus its activation step. */
|
|
46
|
+
export declare function formatAgentHookInstall(results: readonly AgentHookInstallResult[], projectDir: string): string[];
|
|
47
|
+
/**
|
|
48
|
+
* Whether an edit to `relativePath` can change the deploy check's findings:
|
|
49
|
+
* checked source (including db/schema.ts), the project's tsconfig, its
|
|
50
|
+
* package manifest, or a lockfile (dependency edits change what resolves).
|
|
51
|
+
*/
|
|
52
|
+
export declare function affectsDeployCheck(relativePath: string): boolean;
|
|
53
|
+
/** Paths the edit touched, as the host reports them; `null` when the event
|
|
54
|
+
* does not say (then the check runs anyway). */
|
|
55
|
+
export declare function editedPaths(host: AgentHost, payload: Json): string[] | null;
|
|
56
|
+
/** The project the hook checks: the nearest directory at or above the host's
|
|
57
|
+
* start directory whose host config installs this check. Read-only. */
|
|
58
|
+
export declare function hookProjectRoot(host: AgentHost, payload: Json, env?: NodeJS.ProcessEnv, cwd?: string): string | null;
|
|
59
|
+
export interface HookOutcome {
|
|
60
|
+
exitCode: number;
|
|
61
|
+
stdout: string;
|
|
62
|
+
stderr: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Handle one host event. Clean is silent; findings and a check that could
|
|
66
|
+
* not run are always visible to the agent. Never deploys, never writes
|
|
67
|
+
* project data, never calls a model.
|
|
68
|
+
*/
|
|
69
|
+
export declare function runAgentHook(host: AgentHost, stdinText: string, deps: {
|
|
70
|
+
check: (dir: string) => Promise<DeployCheckResult>;
|
|
71
|
+
env?: NodeJS.ProcessEnv;
|
|
72
|
+
cwd?: string;
|
|
73
|
+
}): Promise<HookOutcome>;
|
|
74
|
+
export {};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What counts as an exact web address for a cross-origin allowlist.
|
|
3
|
+
*
|
|
4
|
+
* The allowlist is matched byte-for-byte by the platform, so a path, a query, a
|
|
5
|
+
* trailing slash or a wildcard silently never matches anything. Catching that
|
|
6
|
+
* here — before the request — turns a blocked browser call the developer
|
|
7
|
+
* debugs for ten minutes into one sentence at the moment they typed it.
|
|
8
|
+
*
|
|
9
|
+
* Rule: scheme + host + optional port, and nothing else.
|
|
10
|
+
*/
|
|
11
|
+
export declare function isExactOrigin(value: string): boolean;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { CliConfig } from '../types.js';
|
|
2
|
+
/**
|
|
3
|
+
* Browser-based OAuth login flow:
|
|
4
|
+
* 1. Start local HTTP server on a random port
|
|
5
|
+
* 2. Open browser to api.somewhere.cloud/v1/auth/cli?redirect=http://localhost:PORT/callback
|
|
6
|
+
* 3. User authenticates via Google OAuth
|
|
7
|
+
* 4. Platform redirects to localhost with ?token=smt_...&email=...&username=...
|
|
8
|
+
* 5. Return the received credentials
|
|
9
|
+
*
|
|
10
|
+
* If the browser doesn't open, prints the URL so the user can copy-paste it.
|
|
11
|
+
*/
|
|
12
|
+
export declare function browserLogin(): Promise<CliConfig>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What this folder's published files looked like at the version it came from
|
|
3
|
+
* (its source_base release): one sha256 per local path, written after a pull
|
|
4
|
+
* or a deploy. `somewhere pull` uses it to tell an unedited file (safe to bring
|
|
5
|
+
* up to live) from a local edit (kept) from a real conflict (both changed).
|
|
6
|
+
* Trusted only for the same project and release id the folder records.
|
|
7
|
+
*/
|
|
8
|
+
export interface BaseFiles {
|
|
9
|
+
project_id: string;
|
|
10
|
+
release_id: string | null;
|
|
11
|
+
files: Record<string, string>;
|
|
12
|
+
}
|
|
13
|
+
export declare function sha256(content: Buffer | string): string;
|
|
14
|
+
export declare function hashFiles(dir: string, paths: Iterable<string>): Record<string, string>;
|
|
15
|
+
export declare function saveBaseFiles(dir: string, base: BaseFiles): void;
|
|
16
|
+
export declare function clearBaseFiles(dir: string): void;
|
|
17
|
+
/** The recorded base for exactly this project and release, else null. */
|
|
18
|
+
export declare function loadBaseFiles(dir: string, projectId: string, releaseId: string | null | undefined): BaseFiles | null;
|
|
19
|
+
/**
|
|
20
|
+
* The last rollback or restore this folder ran, so a later refused deploy can
|
|
21
|
+
* say the live version is this folder's own doing (tsk_0dcd7530).
|
|
22
|
+
*/
|
|
23
|
+
export interface LastActivation {
|
|
24
|
+
project_id: string;
|
|
25
|
+
kind: 'rollback' | 'restore';
|
|
26
|
+
release_id: string;
|
|
27
|
+
version: number | null;
|
|
28
|
+
at: string;
|
|
29
|
+
}
|
|
30
|
+
export declare function saveLastActivation(dir: string, activation: LastActivation): void;
|
|
31
|
+
export declare function loadLastActivation(dir: string): LastActivation | null;
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/** `frame` scopes an action to an iframe (frame name, URL substring, child
|
|
2
|
+
* index or iframe CSS selector), as in the platform's steps dialect. */
|
|
3
|
+
export type BrowserSequenceAction = BrowserSequenceActionBody & {
|
|
4
|
+
frame?: string;
|
|
5
|
+
};
|
|
6
|
+
type BrowserSequenceActionBody = {
|
|
7
|
+
click: string;
|
|
8
|
+
} | {
|
|
9
|
+
fill: string;
|
|
10
|
+
value: string;
|
|
11
|
+
} | {
|
|
12
|
+
upload: string;
|
|
13
|
+
file: string;
|
|
14
|
+
name: string;
|
|
15
|
+
} | {
|
|
16
|
+
select: string;
|
|
17
|
+
value: string;
|
|
18
|
+
} | {
|
|
19
|
+
wait: string | number | {
|
|
20
|
+
selector: string;
|
|
21
|
+
};
|
|
22
|
+
} | {
|
|
23
|
+
expect: {
|
|
24
|
+
selector: string;
|
|
25
|
+
text?: string;
|
|
26
|
+
value?: string;
|
|
27
|
+
visible?: boolean;
|
|
28
|
+
count?: number;
|
|
29
|
+
};
|
|
30
|
+
} | {
|
|
31
|
+
screenshot: string;
|
|
32
|
+
} | {
|
|
33
|
+
dialog: 'accept' | 'dismiss';
|
|
34
|
+
text?: string;
|
|
35
|
+
} | {
|
|
36
|
+
eval: string;
|
|
37
|
+
} | {
|
|
38
|
+
goto: string;
|
|
39
|
+
} | {
|
|
40
|
+
frames: {
|
|
41
|
+
count: number;
|
|
42
|
+
interval_ms: number;
|
|
43
|
+
selector?: string;
|
|
44
|
+
};
|
|
45
|
+
};
|
|
46
|
+
export interface ExpectedBrowserRequest {
|
|
47
|
+
path: string;
|
|
48
|
+
status: number;
|
|
49
|
+
}
|
|
50
|
+
export interface BrowserRequestExpectationResult extends ExpectedBrowserRequest {
|
|
51
|
+
ok: boolean;
|
|
52
|
+
error?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare const MAX_BROWSER_UPLOAD_BYTES: number;
|
|
55
|
+
interface BrowserUpload {
|
|
56
|
+
file: string;
|
|
57
|
+
name: string;
|
|
58
|
+
}
|
|
59
|
+
/** Resolve the CLI-only local path form into the platform's byte-bearing form. */
|
|
60
|
+
export declare function resolveBrowserUpload(raw: string, baseDir?: string): BrowserUpload;
|
|
61
|
+
export declare function normalizeBrowserActions(raw: unknown, baseDir?: string): {
|
|
62
|
+
ok: true;
|
|
63
|
+
actions: BrowserSequenceAction[];
|
|
64
|
+
} | {
|
|
65
|
+
ok: false;
|
|
66
|
+
error: string;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* Upload mappings are split at the LAST `=`, not the first.
|
|
70
|
+
*
|
|
71
|
+
* A CSS attribute selector carries its own equals sign — `[data-testid=file]` —
|
|
72
|
+
* so first-`=` splitting cut real selectors in half and then tried to open the
|
|
73
|
+
* remainder as a path. The right-hand side of an upload mapping is always a
|
|
74
|
+
* file path, and paths rarely contain `=`, so the last `=` is the reliable
|
|
75
|
+
* boundary; `#avatar=./photo.png` is unaffected because its only `=` is also
|
|
76
|
+
* its last one.
|
|
77
|
+
*
|
|
78
|
+
* `<selector>::<file>` is the explicit form for the remaining ambiguity (a path
|
|
79
|
+
* that really does contain `=`). When `::` is present it wins and the split is
|
|
80
|
+
* at the FIRST `::`. The only selectors that lose are pseudo-ELEMENTS
|
|
81
|
+
* (`input::-webkit-file-upload-button`), which can never be an upload target —
|
|
82
|
+
* a file attaches to the `<input type="file">` itself. Pseudo-CLASSES use a
|
|
83
|
+
* single colon (`input:not([disabled])`) and are unaffected.
|
|
84
|
+
*
|
|
85
|
+
* --fill and --select keep first-`=` splitting: their values routinely contain
|
|
86
|
+
* `=` (query strings, base64, tokens), which is the opposite trade-off.
|
|
87
|
+
*/
|
|
88
|
+
export declare function splitUploadMapping(raw: string): {
|
|
89
|
+
selector: string;
|
|
90
|
+
value: string;
|
|
91
|
+
};
|
|
92
|
+
export declare function parseFillFlag(raw: string): BrowserSequenceAction;
|
|
93
|
+
export declare function parseSelectFlag(raw: string): BrowserSequenceAction;
|
|
94
|
+
export declare function parseUploadFlag(raw: string, baseDir?: string): BrowserSequenceAction;
|
|
95
|
+
export declare function parseExpectFlag(raw: string): BrowserSequenceAction;
|
|
96
|
+
export declare function parseExpectedRequestFlag(raw: string): ExpectedBrowserRequest;
|
|
97
|
+
export declare function actionLabel(action: BrowserSequenceAction): string;
|
|
98
|
+
export declare function matchesExpectedBrowserRequest(request: {
|
|
99
|
+
url?: string;
|
|
100
|
+
status?: number;
|
|
101
|
+
}, expected: readonly ExpectedBrowserRequest[]): boolean;
|
|
102
|
+
export declare function resolveBrowserRequestExpectations(expected: readonly ExpectedBrowserRequest[], responses: readonly {
|
|
103
|
+
url: string;
|
|
104
|
+
status: number;
|
|
105
|
+
}[]): BrowserRequestExpectationResult[];
|
|
106
|
+
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BrowserSequenceAction } from './browser-actions.js';
|
|
2
|
+
/** Only definitive Playwright pseudo-functions; this is not a CSS validator.
|
|
3
|
+
* Query-handler arguments are opaque text, including nested Puppeteer handlers. */
|
|
4
|
+
export declare function unsupportedSelectorFunction(selector: string): string | undefined;
|
|
5
|
+
/** Parse the entire action list before any browser work; never execute source. */
|
|
6
|
+
export declare function preflightBrowserActions(actions: readonly BrowserSequenceAction[], at?: string): void;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export declare function browserRefusalData(code: string, status: number, data: unknown): Record<string, unknown> | undefined;
|
|
2
|
+
/** The same platform error with only its documented browser data, for the
|
|
3
|
+
* shared error envelope. Code, status, message, hint and request/retry meta
|
|
4
|
+
* are kept as they are. */
|
|
5
|
+
export declare function browserRefusalCause(err: unknown): unknown;
|
|
6
|
+
/**
|
|
7
|
+
* Report a browser refusal. `--json` prints the shared platform error envelope
|
|
8
|
+
* of the allowlisted copy plus the HTTP `status` beside the code (an agent
|
|
9
|
+
* tells a 429 limit from a 503 unknown outcome without reading the message).
|
|
10
|
+
* Text prints `text`, with the code/request line only where that call site
|
|
11
|
+
* already printed it. Either way the failure goes through `error()`, so the
|
|
12
|
+
* local failure record is kept; it never retries anything.
|
|
13
|
+
*/
|
|
14
|
+
export declare function reportBrowserRefusal(text: string, err: unknown, opts: {
|
|
15
|
+
json?: boolean;
|
|
16
|
+
textIds?: boolean;
|
|
17
|
+
}): void;
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
import { DevToolsSession } from './chrome.js';
|
|
2
|
+
import { type BrowserRequestExpectationResult, type BrowserSequenceAction, type ExpectedBrowserRequest } from './browser-actions.js';
|
|
3
|
+
/**
|
|
4
|
+
* Is this URL an address only this machine can reach? The hosted browser is
|
|
5
|
+
* remote, so these can only ever be served by the local half.
|
|
6
|
+
*/
|
|
7
|
+
export declare function isLoopbackUrl(raw: string): boolean;
|
|
8
|
+
export interface LocalBrowserRequest {
|
|
9
|
+
url: string;
|
|
10
|
+
/** Navigate here first, relative to `url`'s origin. */
|
|
11
|
+
path?: string;
|
|
12
|
+
/** A CSS selector to wait for before reading the page. */
|
|
13
|
+
wait?: string;
|
|
14
|
+
/** A JS expression to evaluate in the page. */
|
|
15
|
+
eval?: string;
|
|
16
|
+
actions?: BrowserSequenceAction[];
|
|
17
|
+
/** Prefix for named screenshot actions; the viewport is included by verify. */
|
|
18
|
+
actionScreenshotPrefix?: string;
|
|
19
|
+
expectedRequests?: ExpectedBrowserRequest[];
|
|
20
|
+
visibleOnly?: boolean;
|
|
21
|
+
localStorage?: Record<string, string>;
|
|
22
|
+
cookies?: Array<{
|
|
23
|
+
name: string;
|
|
24
|
+
value: string;
|
|
25
|
+
}>;
|
|
26
|
+
headers?: Record<string, string>;
|
|
27
|
+
/** Write a screenshot to this file. */
|
|
28
|
+
screenshotPath?: string;
|
|
29
|
+
viewport: {
|
|
30
|
+
width: number;
|
|
31
|
+
height: number;
|
|
32
|
+
};
|
|
33
|
+
/** Whole-run budget. */
|
|
34
|
+
timeoutMs: number;
|
|
35
|
+
}
|
|
36
|
+
export interface LocalStepResult {
|
|
37
|
+
step?: number;
|
|
38
|
+
action: string;
|
|
39
|
+
ok: boolean;
|
|
40
|
+
selector?: string;
|
|
41
|
+
path?: string;
|
|
42
|
+
script?: string;
|
|
43
|
+
result?: unknown;
|
|
44
|
+
error?: string;
|
|
45
|
+
}
|
|
46
|
+
export interface LocalBrowserReport {
|
|
47
|
+
passed: boolean;
|
|
48
|
+
final_url: string;
|
|
49
|
+
console_errors: string[];
|
|
50
|
+
page_errors: string[];
|
|
51
|
+
failed_requests: Array<{
|
|
52
|
+
status?: number;
|
|
53
|
+
method?: string;
|
|
54
|
+
url?: string;
|
|
55
|
+
}>;
|
|
56
|
+
request_expectations?: BrowserRequestExpectationResult[];
|
|
57
|
+
steps: LocalStepResult[];
|
|
58
|
+
screenshots: Array<{
|
|
59
|
+
label: string;
|
|
60
|
+
path: string;
|
|
61
|
+
}>;
|
|
62
|
+
/** Absent when the probe could not read the page; `dom_error` says why. An
|
|
63
|
+
* empty array means the page really has no interactive elements. */
|
|
64
|
+
dom_outline?: Array<Record<string, unknown>>;
|
|
65
|
+
dom_error?: string;
|
|
66
|
+
testid_map: Record<string, string>;
|
|
67
|
+
/** Names the half that answered, so a report is never mistaken for the other. */
|
|
68
|
+
environment: 'local';
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Is this the browser's OWN favicon request rather than one the page made?
|
|
72
|
+
*
|
|
73
|
+
* Chrome fetches /favicon.ico for every document whether or not the page asks
|
|
74
|
+
* for one, so a 404 there says nothing about the app — and the hosted verdict
|
|
75
|
+
* never counted it, because a deployed project answers that path. Counting it
|
|
76
|
+
* locally made `somewhere init`'s own scaffold report FAIL with a clean page
|
|
77
|
+
* underneath (tsk_10be456b). A favicon the page DECLARES has initiator type
|
|
78
|
+
* `parser`, so a broken declared icon still fails, as it should.
|
|
79
|
+
*/
|
|
80
|
+
export declare function isBrowserOwnFaviconRequest(url: string | undefined, initiatorType: string | undefined): boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Confirm something is actually serving the local address BEFORE launching a
|
|
83
|
+
* browser at it.
|
|
84
|
+
*
|
|
85
|
+
* Without this, a URL nothing is listening on (a stopped `somewhere dev`, the
|
|
86
|
+
* wrong port, another tool's server that never completes a document) reached
|
|
87
|
+
* the browser anyway, and the run drained its whole budget in silence. The
|
|
88
|
+
* check is a bounded request, and its failure is the one sentence that says
|
|
89
|
+
* what to run.
|
|
90
|
+
*/
|
|
91
|
+
export declare function assertLocalTargetReachable(url: string, timeoutMs?: number): Promise<void>;
|
|
92
|
+
export declare function executeLocalAction(session: DevToolsSession, action: BrowserSequenceAction, deadline: number, screenshotPrefix?: string): Promise<LocalStepResult>;
|
|
93
|
+
export declare function executeLocalActions(session: DevToolsSession, actions: readonly BrowserSequenceAction[], deadline: number, screenshotPrefix?: string): Promise<LocalStepResult[]>;
|
|
94
|
+
/**
|
|
95
|
+
* Drive the local browser and return the report.
|
|
96
|
+
*
|
|
97
|
+
* The whole run shares one deadline. A step that fails is reported as a failed
|
|
98
|
+
* step and the run still returns everything it captured — the caller asked what
|
|
99
|
+
* the page looks like, and "it broke here, and here is the rest" is the useful
|
|
100
|
+
* answer.
|
|
101
|
+
*/
|
|
102
|
+
export declare function runLocalBrowser(req: LocalBrowserRequest): Promise<LocalBrowserReport>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { CliApiError } from './client.js';
|
|
2
|
+
export interface BuildErrorDetail {
|
|
3
|
+
file?: string;
|
|
4
|
+
line?: number;
|
|
5
|
+
column?: number;
|
|
6
|
+
message?: string;
|
|
7
|
+
lineText?: string;
|
|
8
|
+
}
|
|
9
|
+
/** Pull file:line:col diagnostics out of esbuild-style bundle_error text. */
|
|
10
|
+
export declare function parseBundleErrorText(text: string): BuildErrorDetail[];
|
|
11
|
+
/** Build a code frame (line ±2, caret under the column) from local source. */
|
|
12
|
+
export declare function localCodeFrame(source: string, line: number, column?: number): string;
|
|
13
|
+
/** True when the error carries a structured build payload this module renders:
|
|
14
|
+
* BUILD_ERROR's data.{file,line,errors}, or any error (DEPLOY_BLANK_PAGE)
|
|
15
|
+
* whose data.bundle_error names the compile failure. */
|
|
16
|
+
export declare function isBuildError(err: unknown): err is CliApiError;
|
|
17
|
+
/**
|
|
18
|
+
* Print a structured build failure: file:line heading, local code frame,
|
|
19
|
+
* remaining errors, missing assets, hint. Returns true if it rendered
|
|
20
|
+
* (caller falls back to generic output otherwise).
|
|
21
|
+
*/
|
|
22
|
+
export declare function renderBuildError(err: CliApiError, baseDir: string): boolean;
|
|
23
|
+
/** Yellow single-line summary for watch-mode (somewhere dev) reuse. */
|
|
24
|
+
export declare function buildErrorSummary(err: CliApiError): string;
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
/** Env vars that name a browser binary, in the order they win. */
|
|
2
|
+
export declare const BROWSER_PATH_ENV_VARS: readonly ["SOMEWHERE_BROWSER_PATH", "CHROME_PATH", "PUPPETEER_EXECUTABLE_PATH"];
|
|
3
|
+
/**
|
|
4
|
+
* The browser this machine will use, or null when it has none. An env var
|
|
5
|
+
* always wins — including one that points at a path that does not exist, which
|
|
6
|
+
* is reported as the error it is rather than silently ignored in favour of some
|
|
7
|
+
* other browser.
|
|
8
|
+
*/
|
|
9
|
+
export declare function findBrowser(env?: NodeJS.ProcessEnv, exists?: (p: string) => boolean): {
|
|
10
|
+
path: string;
|
|
11
|
+
source: 'env' | 'installed';
|
|
12
|
+
} | null;
|
|
13
|
+
export declare const NO_BROWSER_MESSAGE: string;
|
|
14
|
+
/**
|
|
15
|
+
* How long one DevTools command may wait for its reply. Nothing this command
|
|
16
|
+
* asks a browser to do is slow enough to need more; a command still waiting
|
|
17
|
+
* after this means the browser has stopped answering, not that the page is
|
|
18
|
+
* busy. The whole-run budget is separate and larger.
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEVTOOLS_COMMAND_TIMEOUT_MS = 15000;
|
|
21
|
+
/** One request/response + event channel to a running browser. */
|
|
22
|
+
export declare class DevToolsSession {
|
|
23
|
+
private readonly socket;
|
|
24
|
+
private nextId;
|
|
25
|
+
private readonly pending;
|
|
26
|
+
private readonly listeners;
|
|
27
|
+
private closed;
|
|
28
|
+
private constructor();
|
|
29
|
+
static connect(wsUrl: string, timeoutMs: number): Promise<DevToolsSession>;
|
|
30
|
+
private onMessage;
|
|
31
|
+
private failAll;
|
|
32
|
+
on(method: string, fn: (params: Record<string, unknown>) => void): void;
|
|
33
|
+
/**
|
|
34
|
+
* Send one DevTools command and wait for its reply, BOUNDED.
|
|
35
|
+
*
|
|
36
|
+
* A reply only ever arrives from `onMessage` (matching id) or `failAll`
|
|
37
|
+
* (socket closed/errored). A browser that accepts the socket and then stops
|
|
38
|
+
* answering satisfies neither, so an unbounded wait here hung the whole
|
|
39
|
+
* command with nothing printed — the silent >90s stall. Every command now
|
|
40
|
+
* carries its own deadline, and the waiter is registered BEFORE the write so
|
|
41
|
+
* a reply can never land before there is anything to receive it.
|
|
42
|
+
*/
|
|
43
|
+
send(method: string, params?: Record<string, unknown>, timeoutMs?: number): Promise<Record<string, unknown>>;
|
|
44
|
+
/** Set once the session is attached to a page target. */
|
|
45
|
+
sessionId: string | undefined;
|
|
46
|
+
close(): void;
|
|
47
|
+
}
|
|
48
|
+
export interface LaunchedBrowser {
|
|
49
|
+
session: DevToolsSession;
|
|
50
|
+
close: () => Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
/**
|
|
53
|
+
* Launch a headless browser and attach to a fresh page.
|
|
54
|
+
*
|
|
55
|
+
* Every run gets its own empty profile directory, so a local check never reads
|
|
56
|
+
* or writes the developer's real browser profile — no cookies of theirs leak
|
|
57
|
+
* into the page, and nothing the page does survives the run.
|
|
58
|
+
*/
|
|
59
|
+
export declare function launchLocalBrowser(opts: {
|
|
60
|
+
executablePath: string;
|
|
61
|
+
viewport: {
|
|
62
|
+
width: number;
|
|
63
|
+
height: number;
|
|
64
|
+
};
|
|
65
|
+
timeoutMs: number;
|
|
66
|
+
}): Promise<LaunchedBrowser>;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { ClaimCliHandoff } from '../types.js';
|
|
2
|
+
export interface ClaimHandoffRecovery {
|
|
3
|
+
/** stale: the temporary session and its continuation have both expired; a
|
|
4
|
+
* note, never a blocker. */
|
|
5
|
+
kind: 'none' | 'recovered' | 'manual' | 'stale';
|
|
6
|
+
message?: string;
|
|
7
|
+
}
|
|
8
|
+
/** Persist the verifier before registration so a lost response retries with
|
|
9
|
+
* the same proof instead of creating an irrecoverable second request. */
|
|
10
|
+
export declare function ensureClaimHandoff(projectId: string): Promise<ClaimCliHandoff | null>;
|
|
11
|
+
export declare function recoverClaimHandoff(): Promise<ClaimHandoffRecovery>;
|