@playcraft/cli 0.1.21 → 0.1.23
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/tools-batch.js +59 -0
- package/dist/commands/tools.js +2 -0
- package/dist/workspace-runtime/codex/app-server.js +23 -9
- package/dist/workspace-runtime/codex/model-broker.js +5 -5
- package/dist/workspace-runtime/previews/publish.js +7 -4
- package/dist/workspace-runtime/production/contracts.js +17 -0
- package/dist/workspace-runtime/production/controller.js +207 -0
- package/dist/workspace-runtime/production/dependencies.js +60 -0
- package/dist/workspace-runtime/production/native.js +70 -0
- package/dist/workspace-runtime/production/processes.js +86 -0
- package/dist/workspace-runtime/production/save-command.js +20 -0
- package/dist/workspace-runtime/production/stages.js +175 -0
- package/dist/workspace-runtime/production/storage.js +32 -0
- package/dist/workspace-runtime/serve.js +3 -6
- package/dist/workspace-runtime/server/desktop-host.js +1 -1
- package/dist/workspace-runtime/server/desktop-preview.js +5 -5
- package/dist/workspace-runtime/server/dispatch.js +37 -24
- package/dist/workspace-runtime/server/http.js +111 -32
- package/dist/workspace-runtime/server/terminal-host.js +6 -1
- package/dist/workspace-runtime/workspaces/batch-commit.js +142 -0
- package/dist/workspace-runtime/workspaces/dependencies.js +5 -3
- package/dist/workspace-runtime/workspaces/directories.js +106 -0
- package/dist/workspace-runtime/workspaces/directory-access.js +20 -0
- package/dist/workspace-runtime/workspaces/directory-maintenance.js +111 -0
- package/dist/workspace-runtime/workspaces/directory-stats.js +49 -0
- package/dist/workspace-runtime/workspaces/git-credential-broker.js +63 -30
- package/dist/workspace-runtime/workspaces/git-credential-helper.js +4 -2
- package/dist/workspace-runtime/workspaces/git-direct-store.js +12 -11
- package/dist/workspace-runtime/workspaces/prepare.js +20 -5
- package/dist/workspace-runtime/workspaces/registry.js +63 -12
- package/dist/workspace-runtime/workspaces/revisions.js +5 -5
- package/dist/workspace-runtime/workspaces/skill-artifact-loader.js +2 -2
- package/package.json +3 -3
- package/project-templates/batch-locks/phaser.yaml +922 -0
- package/project-templates/batch-locks/threejs.yaml +978 -0
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { readWorkspaceFile } from './files.js';
|
|
2
2
|
import { revisionScope, workspaceRoot } from './registry.js';
|
|
3
3
|
/** Observe native/manual edits before checking an editor's conditional write. */
|
|
4
|
-
export async function withObservedFile(state, workspaceId, path, action) {
|
|
5
|
-
const scope = revisionScope(state, workspaceId);
|
|
4
|
+
export async function withObservedFile(state, workspaceId, path, action, directoryName = 'basic') {
|
|
5
|
+
const scope = revisionScope(state, workspaceId, directoryName);
|
|
6
6
|
return state.journal.exclusive(`file:${scope ?? 'single'}:${path}`, async () => {
|
|
7
7
|
const records = state.journal.fileRevisions(scope);
|
|
8
8
|
const previous = records[path];
|
|
9
9
|
let file;
|
|
10
10
|
try {
|
|
11
|
-
file = await readWorkspaceFile(await workspaceRoot(state, workspaceId), path, records);
|
|
11
|
+
file = await readWorkspaceFile(await workspaceRoot(state, workspaceId, directoryName), path, records);
|
|
12
12
|
}
|
|
13
13
|
catch (error) {
|
|
14
14
|
if (error.code !== 'ENOENT')
|
|
@@ -22,10 +22,10 @@ export async function withObservedFile(state, workspaceId, path, action) {
|
|
|
22
22
|
return action({ file: file ? { ...file, revision } : undefined, revision });
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
|
-
export async function readObservedFile(state, workspaceId, path) {
|
|
25
|
+
export async function readObservedFile(state, workspaceId, path, directoryName = 'basic') {
|
|
26
26
|
return withObservedFile(state, workspaceId, path, async ({ file }) => {
|
|
27
27
|
if (!file)
|
|
28
28
|
throw Object.assign(new Error('file_not_found'), { code: 'ENOENT' });
|
|
29
29
|
return file;
|
|
30
|
-
});
|
|
30
|
+
}, directoryName);
|
|
31
31
|
}
|
|
@@ -3,8 +3,8 @@ import { workspaceRoot } from './registry.js';
|
|
|
3
3
|
import { PLATFORM_ROUTES, platformEndpoint } from '@playcraft/common/cloud-workspace/runtime';
|
|
4
4
|
const MAX_ARTIFACT_BYTES = 80 * 1024 * 1024;
|
|
5
5
|
/** Requests an exact locked artifact using control identity; no storage credentials reach Codex. */
|
|
6
|
-
export async function loadWorkspaceSkillArtifact(state, workspaceId, entry) {
|
|
7
|
-
await workspaceRoot(state, workspaceId);
|
|
6
|
+
export async function loadWorkspaceSkillArtifact(state, workspaceId, entry, directoryName = 'basic') {
|
|
7
|
+
await workspaceRoot(state, workspaceId, directoryName);
|
|
8
8
|
const epoch = state.runtimeEpoch;
|
|
9
9
|
if (state.journal.destroyed())
|
|
10
10
|
throw new Error('workspace_skills_unavailable');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@playcraft/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.23",
|
|
4
4
|
"private": false,
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -48,8 +48,8 @@
|
|
|
48
48
|
"@gltf-transform/core": "^4.3.0",
|
|
49
49
|
"@gltf-transform/extensions": "^4.3.0",
|
|
50
50
|
"@gltf-transform/functions": "^4.3.0",
|
|
51
|
-
"@playcraft/build": "^0.1.
|
|
52
|
-
"@playcraft/common": "^0.1.
|
|
51
|
+
"@playcraft/build": "^0.1.23",
|
|
52
|
+
"@playcraft/common": "^0.1.23",
|
|
53
53
|
"better-sqlite3-pinned": "npm:better-sqlite3@13.0.3",
|
|
54
54
|
"chokidar": "^4.0.3",
|
|
55
55
|
"commander": "^13.1.0",
|