@playdrop/playdrop-cli 0.10.0 → 0.10.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/config/client-meta.json +2 -1
- package/dist/apiClient.d.ts +8 -0
- package/dist/apiClient.js +29 -1
- package/dist/captureRuntime.d.ts +13 -0
- package/dist/captureRuntime.js +21 -0
- package/dist/commandContext.js +21 -3
- package/dist/commands/captureRemote.d.ts +2 -0
- package/dist/commands/captureRemote.js +90 -0
- package/dist/commands/review.d.ts +46 -0
- package/dist/commands/review.js +353 -0
- package/dist/commands/validate.js +63 -1
- package/dist/commands/worker/runtime.d.ts +12 -0
- package/dist/commands/worker/runtime.js +79 -35
- package/dist/commands/worker.d.ts +17 -3
- package/dist/commands/worker.js +431 -24
- package/dist/index.js +45 -0
- package/dist/workspaceAuth.d.ts +2 -0
- package/dist/workspaceAuth.js +6 -0
- package/node_modules/@playdrop/api-client/dist/client.d.ts +6 -2
- package/node_modules/@playdrop/api-client/dist/client.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts +3 -2
- package/node_modules/@playdrop/api-client/dist/domains/admin.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/admin.js +6 -3
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts +4 -1
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/domains/agent-tasks.js +36 -0
- package/node_modules/@playdrop/api-client/dist/index.d.ts +6 -2
- package/node_modules/@playdrop/api-client/dist/index.d.ts.map +1 -1
- package/node_modules/@playdrop/api-client/dist/index.js +21 -6
- package/node_modules/@playdrop/config/client-meta.json +2 -1
- package/node_modules/@playdrop/types/dist/api.d.ts +163 -3
- package/node_modules/@playdrop/types/dist/api.d.ts.map +1 -1
- package/node_modules/@playdrop/types/dist/api.js +11 -1
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import type { ApiClient } from '@playdrop/api-client';
|
|
2
|
-
import { type AgentExecutionTarget, type AgentRuntime, type AgentTaskResponse, type AgentWorkerCapabilities, type WorkerAgentTaskAssignmentResponse, type WorkerAgentTaskBaseSourceResponse, type WorkerAgentTaskWorkspaceFileResponse, type WorkerClaimAgentTaskResponse } from '@playdrop/types';
|
|
2
|
+
import { type AgentExecutionTarget, type AgentRuntime, type AgentTaskKind, type AgentTaskResponse, type AgentWorkerCapabilities, type WorkerAgentTaskAssignmentResponse, type WorkerAgentTaskBaseSourceResponse, type WorkerAgentTaskWorkspaceFileResponse, type WorkerClaimAgentTaskResponse } from '@playdrop/types';
|
|
3
3
|
import { type WorkerPlaydropAssetRequirement } from './upload';
|
|
4
4
|
import { type LoggedProcessResult, type LoggedProcessTranscriptChunk } from './worker/runtime';
|
|
5
|
-
export { DEFAULT_CODEX_TIMEOUT_MS, DEFAULT_WORKER_TOKEN_CAP, assertWorkerTokenUsageWithinCap, buildCodexExecArgs, buildClaudeExecArgs, buildClaudePermissionSettings, buildWorkerChildEnv, extractCodexTokensUsed, readEnvBoolean, readCodexSandboxMode, runLoggedProcess, } from './worker/runtime';
|
|
6
|
-
export type { LoggedProcessResult, LoggedProcessTranscriptChunk, } from './worker/runtime';
|
|
5
|
+
export { DEFAULT_CODEX_TIMEOUT_MS, DEFAULT_WORKER_TOKEN_CAP, assertWorkerTokenUsageWithinCap, buildCodexExecArgs, buildClaudeExecArgs, buildClaudePermissionSettings, buildWorkerChildEnv, extractAgentTokenUsage, extractCodexTokensUsed, readEnvBoolean, readCodexSandboxMode, runLoggedProcess, } from './worker/runtime';
|
|
6
|
+
export type { AgentTokenUsage, LoggedProcessResult, LoggedProcessTranscriptChunk, } from './worker/runtime';
|
|
7
7
|
export declare const WORKER_SESSION_EXPIRED_MESSAGE = "worker session expired: run \"playdrop auth login\" and start the worker again";
|
|
8
8
|
export declare const WORKER_CONTEXT_COMMAND_NOT_ALLOWED_MESSAGE = "worker_context_command_not_allowed: inside a PlayDrop worker task only task progress, task upload/done/fail, project validation/build/dev/capture, read-only catalogue/documentation lookup, and PlayDrop AI generation are permitted.";
|
|
9
9
|
type WorkerStartOptions = {
|
|
@@ -33,6 +33,13 @@ type TaskFailOptions = {
|
|
|
33
33
|
env?: string;
|
|
34
34
|
message?: string;
|
|
35
35
|
};
|
|
36
|
+
type TaskSubmitReviewOptions = {
|
|
37
|
+
env?: string;
|
|
38
|
+
state?: string;
|
|
39
|
+
messageFile?: string;
|
|
40
|
+
creatorFeedbackFile?: string;
|
|
41
|
+
evidenceDir?: string;
|
|
42
|
+
};
|
|
36
43
|
export type WorkerHealthAlertInput = {
|
|
37
44
|
state: 'started' | 'stopped' | 'crashed';
|
|
38
45
|
env: string;
|
|
@@ -89,6 +96,7 @@ export declare function resolvePlaydropPluginRoot(input?: {
|
|
|
89
96
|
export declare function stagePlaydropPluginReferences(input: {
|
|
90
97
|
workspaceDir: string;
|
|
91
98
|
pluginRoot: string;
|
|
99
|
+
kind: AgentTaskKind;
|
|
92
100
|
}): Promise<string[]>;
|
|
93
101
|
export declare function discoverWorkerProjectRoot(workspaceDir: string): string;
|
|
94
102
|
export declare function readWorkerTaskState(): WorkerTaskState | null;
|
|
@@ -141,4 +149,10 @@ export declare function reportTask(options: TaskReportOptions): Promise<void>;
|
|
|
141
149
|
export declare function reportCatalogueTask(options: TaskCatalogueReportOptions): Promise<void>;
|
|
142
150
|
export declare function uploadTask(options?: TaskUploadOptions): Promise<void>;
|
|
143
151
|
export declare function completeTask(options: TaskCompleteOptions): Promise<void>;
|
|
152
|
+
export declare function readReviewEvidenceFiles(evidenceDir: string | undefined): Array<{
|
|
153
|
+
name: string;
|
|
154
|
+
contentType: string;
|
|
155
|
+
contentBase64: string;
|
|
156
|
+
}>;
|
|
157
|
+
export declare function submitReviewTask(options: TaskSubmitReviewOptions): Promise<void>;
|
|
144
158
|
export declare function failTask(options: TaskFailOptions): Promise<void>;
|