@playdrop/playdrop-cli 0.12.9 → 0.12.11

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.
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.12.6",
3
- "build": 3,
2
+ "version": "0.12.8",
3
+ "build": 1,
4
4
  "runtimeSdkVersion": "0.12.5",
5
5
  "runtimeSdkBuild": 2,
6
6
  "clients": {
@@ -232,6 +232,7 @@ export declare function assertWorkerProjectVersionBumped(input: {
232
232
  projectVersion: string;
233
233
  appName: string;
234
234
  }): void;
235
+ export declare function removeStaleWorkerControlFilesFromBaseSource(stagingDir: string): Promise<void>;
235
236
  export declare function prepareCodexRunHomes(input: {
236
237
  workspaceDir: string;
237
238
  workerUsername: string;
@@ -39,6 +39,7 @@ exports.extractZipArchive = extractZipArchive;
39
39
  exports.readWorkerProjectVersion = readWorkerProjectVersion;
40
40
  exports.buildCataloguePreviewPayload = buildCataloguePreviewPayload;
41
41
  exports.assertWorkerProjectVersionBumped = assertWorkerProjectVersionBumped;
42
+ exports.removeStaleWorkerControlFilesFromBaseSource = removeStaleWorkerControlFilesFromBaseSource;
42
43
  exports.prepareCodexRunHomes = prepareCodexRunHomes;
43
44
  exports.prepareClaudeRunConfig = prepareClaudeRunConfig;
44
45
  exports.removeAgentRunCredentials = removeAgentRunCredentials;
@@ -1829,6 +1830,9 @@ function assertWorkerProjectVersionBumped(input) {
1829
1830
  throw new Error(`agent_task_version_not_bumped: app "${input.appName}" version is still "${input.baseVersion}"; the update must bump the catalogue.json version before publish.`);
1830
1831
  }
1831
1832
  }
1833
+ async function removeStaleWorkerControlFilesFromBaseSource(stagingDir) {
1834
+ await (0, promises_1.rm)(node_path_1.default.join(stagingDir, '.playdrop.json'), { force: true });
1835
+ }
1832
1836
  // Downloads the base app source archive and unzips it into the workspace so
1833
1837
  // the project root (catalogue.json) lands inside the workspace before Codex
1834
1838
  // starts. Returns the staged project root and its catalogue version string.
@@ -1838,6 +1842,7 @@ async function stageWorkerBaseAppSource(input) {
1838
1842
  const stagingDir = node_path_1.default.join(input.workspaceDir, input.baseApp.appName);
1839
1843
  (0, node_fs_1.mkdirSync)(stagingDir, { recursive: true });
1840
1844
  extractZipArchive(new Uint8Array(buffer), stagingDir);
1845
+ await removeStaleWorkerControlFilesFromBaseSource(stagingDir);
1841
1846
  const stagedProjectDir = discoverWorkerProjectRoot(stagingDir);
1842
1847
  const stagedBaseVersion = readWorkerProjectVersion(stagedProjectDir, input.baseApp.appName);
1843
1848
  return { stagedProjectDir, stagedBaseVersion };
@@ -1,6 +1,6 @@
1
1
  {
2
- "version": "0.12.6",
3
- "build": 3,
2
+ "version": "0.12.8",
3
+ "build": 1,
4
4
  "runtimeSdkVersion": "0.12.5",
5
5
  "runtimeSdkBuild": 2,
6
6
  "clients": {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playdrop/playdrop-cli",
3
- "version": "0.12.9",
3
+ "version": "0.12.11",
4
4
  "description": "Official Playdrop CLI for publishing browser games, creator apps, and AI-generated game assets on playdrop.ai",
5
5
  "homepage": "https://www.playdrop.ai",
6
6
  "repository": {