@playcraft/cli 0.1.30 → 0.1.32

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.
Files changed (30) hide show
  1. package/README.md +18 -0
  2. package/dist/commands/workspace.js +35 -0
  3. package/dist/index.js +2 -0
  4. package/dist/workspace/messages.js +35 -0
  5. package/dist/workspace/transfer-client.js +174 -0
  6. package/dist/workspace-runtime/previews/output.js +36 -0
  7. package/dist/workspace-runtime/previews/publish.js +4 -1
  8. package/dist/workspace-runtime/production/native.js +8 -1
  9. package/dist/workspace-runtime/production/stages.js +6 -3
  10. package/dist/workspace-runtime/production/storage.js +36 -8
  11. package/dist/workspace-runtime/server/dispatch.js +22 -5
  12. package/dist/workspace-runtime/server/http.js +91 -2
  13. package/dist/workspace-runtime/server/workspace-transfer.js +99 -0
  14. package/dist/workspace-runtime/workspaces/archive.js +207 -0
  15. package/dist/workspace-runtime/workspaces/artifact-files.js +4 -2
  16. package/dist/workspace-runtime/workspaces/artifact-receipts.js +3 -3
  17. package/dist/workspace-runtime/workspaces/artifacts.js +38 -16
  18. package/dist/workspace-runtime/workspaces/attachment-content.js +16 -4
  19. package/dist/workspace-runtime/workspaces/attachments.js +7 -1
  20. package/dist/workspace-runtime/workspaces/directories.js +15 -5
  21. package/dist/workspace-runtime/workspaces/directory-access.js +12 -4
  22. package/dist/workspace-runtime/workspaces/directory-attachments.js +245 -0
  23. package/dist/workspace-runtime/workspaces/git.js +76 -7
  24. package/dist/workspace-runtime/workspaces/instructions.js +56 -0
  25. package/dist/workspace-runtime/workspaces/library-attachments.js +268 -0
  26. package/dist/workspace-runtime/workspaces/registry.js +11 -1
  27. package/dist/workspace-runtime/workspaces/transfer.js +288 -0
  28. package/dist/workspace-runtime/workspaces/turn-changes.js +72 -0
  29. package/package.json +3 -3
  30. package/project-templates/empty/AGENTS.md +14 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@playcraft/cli",
3
- "version": "0.1.30",
3
+ "version": "0.1.32",
4
4
  "private": false,
5
5
  "type": "module",
6
6
  "engines": {
@@ -50,8 +50,8 @@
50
50
  "@gltf-transform/core": "^4.3.0",
51
51
  "@gltf-transform/extensions": "^4.3.0",
52
52
  "@gltf-transform/functions": "^4.3.0",
53
- "@playcraft/build": "^0.1.30",
54
- "@playcraft/common": "^0.1.30",
53
+ "@playcraft/build": "^0.1.32",
54
+ "@playcraft/common": "^0.1.32",
55
55
  "better-sqlite3-pinned": "npm:better-sqlite3@13.0.3",
56
56
  "chokidar": "^4.0.3",
57
57
  "commander": "^13.1.0",
@@ -23,3 +23,17 @@ User attachments are stored in `.tmp/user_uploads/<attachment-id>/<original-file
23
23
  ## Verification
24
24
 
25
25
  Use the project's own scripts when available. Verify changes with focused checks and report the result. Keep credentials and temporary build output out of commits.
26
+
27
+ <!-- playcraft:workspace-artifacts:start -->
28
+
29
+ ## Deliverable artifacts
30
+
31
+ The artifact panel shows final deliverables under `dist/` at the current project directory's root, including images, video, audio, models, documents, and playable builds. Keep working sources, input references, dependencies, receipts, and build intermediates outside `dist/`. Do not copy unrelated source files into it just to make them appear in the panel.
32
+
33
+ When a generated asset is ready for delivery, save or copy it into `dist/` with a stable relative path. Keep the resources required by a model or document within `dist/` and preserve their relative links. Reuse the same delivery path for a revised artifact so its versions remain grouped; the platform retains its history. Use different paths for independent candidates or deliverables.
34
+
35
+ Run playable builds from the project root and place their final output under `dist/` (`playcraft build --mode full --platform playcraft --format html --output ./dist .`). A base build's `dist/index.html` can still require resource files; it is not proof of a self-contained playable. The workspace's playable publish action validates its isolated temporary build, then retains the exact single-file result at `dist/playable/index.html`. Temporary `.playcraft-preview-out/` and `.playcraft-temp/` files are not deliverables. Preserve other artifacts already in `dist/` when rebuilding a playable.
36
+
37
+ Keep this convention in `AGENTS.md`, the project's standard instruction filename. Do not create a separate `AGENT.md`.
38
+
39
+ <!-- playcraft:workspace-artifacts:end -->