@theprototype/agent 1.61.0 → 1.64.0
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/README.md +1 -1
- package/catalog.json +1232 -72
- package/package.json +1 -1
- package/src/catalog.js +15 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@theprototype/agent",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.64.0",
|
|
4
4
|
"description": "Let an AI agent (Claude Code, Claude Desktop, any MCP host) join a theprototype.app session from its link and build the 3D scene with you.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
package/src/catalog.js
CHANGED
|
@@ -48,6 +48,7 @@ export const TOOL_ANNOTATIONS = /** @type {Record<string, {title: string, read?:
|
|
|
48
48
|
create_lathe: { title: 'Make a lathed shape', destructive: false },
|
|
49
49
|
create_text: { title: 'Add 3D text', destructive: false, openWorld: true },
|
|
50
50
|
list_fonts: { title: 'List fonts for 3D text', read: true },
|
|
51
|
+
create_path: { title: 'Add a path to walk along', destructive: false }, // 78 F4
|
|
51
52
|
create_tube: { title: 'Make a tube along a path', destructive: false },
|
|
52
53
|
extrude_shape: { title: 'Extrude an outline', destructive: false },
|
|
53
54
|
create_mesh: { title: 'Make a mesh from data', destructive: false },
|
|
@@ -103,7 +104,9 @@ export const TOOL_ANNOTATIONS = /** @type {Record<string, {title: string, read?:
|
|
|
103
104
|
inspect_runtime: { title: 'See what the game is doing', read: true },
|
|
104
105
|
validate_scene: { title: 'Check the game for problems', read: true },
|
|
105
106
|
logs: { title: 'Read the recent log', read: true },
|
|
106
|
-
playtest: { title: 'Play the game as a test player', destructive: false }
|
|
107
|
+
playtest: { title: 'Play the game as a test player', destructive: false },
|
|
108
|
+
// 98 P2
|
|
109
|
+
take_photo: { title: 'Take a path-traced photo of the view', destructive: false }
|
|
107
110
|
});
|
|
108
111
|
|
|
109
112
|
/** a title from a tool name: `create_objects` → `Create objects` @param {string} name */
|
|
@@ -261,8 +264,8 @@ export const CONNECTOR_FAMILIES = Object.freeze({
|
|
|
261
264
|
create_shape: {
|
|
262
265
|
title: 'Make a shape',
|
|
263
266
|
summary:
|
|
264
|
-
'Make shapes the basic objects cannot: a lathe (a vase, a bowl, a lamp from a profile turned around an axis), a tube along a path (a rail, a pipe, a cable), an extruded outline (a sign, a star, a wall with a hole), a mesh from your own vertices (anything else), or text = 3D words (a sign, a title: flat, or solid with depth and a bevel; any bundled or Google Fonts font); import = a glTF / GLB / OBJ model file (base64, chunks or an https url) whose named parts come back as children animate_parts can move.',
|
|
265
|
-
actions: { lathe: 'create_lathe', tube: 'create_tube', extrude: 'extrude_shape', mesh: 'create_mesh', text: 'create_text', import: 'import_shape' },
|
|
267
|
+
'Make shapes the basic objects cannot: a lathe (a vase, a bowl, a lamp from a profile turned around an axis), a tube along a path (a rail, a pipe, a cable), an extruded outline (a sign, a star, a wall with a hole), a mesh from your own vertices (anything else), or text = 3D words (a sign, a title: flat, or solid with depth and a bevel; any bundled or Google Fonts font); path = a Path object guards patrol along (points with waits, speeds, jumps and events; walkers walk it at once); import = a glTF / GLB / OBJ model file (base64, chunks or an https url) whose named parts come back as children animate_parts can move.',
|
|
268
|
+
actions: { lathe: 'create_lathe', tube: 'create_tube', extrude: 'extrude_shape', mesh: 'create_mesh', text: 'create_text', import: 'import_shape', path: 'create_path' }, // 78 F4: a new ACTION, no new connector tool name
|
|
266
269
|
batch: { key: 'shapes', tool: 'create_shapes' }
|
|
267
270
|
},
|
|
268
271
|
edit_shape: {
|
|
@@ -291,7 +294,10 @@ export const CONNECTOR_FAMILIES = Object.freeze({
|
|
|
291
294
|
sky: 'set_sky',
|
|
292
295
|
light: 'set_light',
|
|
293
296
|
environment: 'get_environment',
|
|
294
|
-
quality: 'set_quality'
|
|
297
|
+
quality: 'set_quality',
|
|
298
|
+
preset: 'set_look_preset',
|
|
299
|
+
// 98 P1: a new ACTION on set_look, no new connector tool name
|
|
300
|
+
bake: 'bake_light'
|
|
295
301
|
}
|
|
296
302
|
},
|
|
297
303
|
// 85b R1-R4 (lane 85-runtime): playtest is agent-page only (B4b), so the connector's `run` has no playtest;
|
|
@@ -299,8 +305,8 @@ export const CONNECTOR_FAMILIES = Object.freeze({
|
|
|
299
305
|
run: {
|
|
300
306
|
title: 'See and check what the game does',
|
|
301
307
|
summary:
|
|
302
|
-
"What the game does when it runs: inspect = when each event and action last fired, the game state and variables, errors, and why a node did not fire (pass node or object); validate = what would not work when someone presses Play, each with its fix; logs = the tab's recent errors, warnings and toasts.",
|
|
303
|
-
actions: { inspect: 'inspect_runtime', validate: 'validate_scene', logs: 'logs' }
|
|
308
|
+
"What the game does when it runs: inspect = when each event and action last fired, the game state and variables, errors, and why a node did not fire (pass node or object); validate = what would not work when someone presses Play, each with its fix; logs = the tab's recent errors, warnings and toasts; photo = a path-traced still of the person's view (a PC peer renders it for a Quest), optionally saved to the Library.",
|
|
309
|
+
actions: { inspect: 'inspect_runtime', validate: 'validate_scene', logs: 'logs', photo: 'take_photo' }
|
|
304
310
|
},
|
|
305
311
|
assets: {
|
|
306
312
|
title: 'Images and assets',
|
|
@@ -324,10 +330,10 @@ export const CONNECTOR_FAMILIES = Object.freeze({
|
|
|
324
330
|
},
|
|
325
331
|
// 85-scene (85b): 85 H3 + H6; levels / portal / loading / checkpoint join with 91 / 93
|
|
326
332
|
game_setup: {
|
|
327
|
-
title: 'Game setup: spawn
|
|
333
|
+
title: 'Game setup: spawn, play camera, levels, portals, checkpoints, loading',
|
|
328
334
|
summary:
|
|
329
|
-
'How the game starts: spawn = where Play starts and which way the player faces; play_camera = first person walking or flying (speed, jump, eye height) and openingView = where the editor camera starts when the scene opens.',
|
|
330
|
-
actions: { spawn: 'place_spawn', play_camera: 'set_play_camera' }
|
|
335
|
+
'How the game starts: spawn = where Play starts and which way the player faces; play_camera = first person walking or flying (speed, jump, eye height) and openingView = where the editor camera starts when the scene opens; levels = the game\'s one Levels table (order, scene or spawn point, goals) and what carries from level to level (score, inventory, health, named variables); portal = a doorway to a level, scene or spot (one player at a time, with a fade / iris / card); checkpoint = a pad that saves the player\'s progress; loading = the loading screen a level change shows.',
|
|
336
|
+
actions: { spawn: 'place_spawn', play_camera: 'set_play_camera', levels: 'set_levels', portal: 'set_portal', checkpoint: 'set_checkpoint', loading: 'set_loading' }
|
|
331
337
|
}
|
|
332
338
|
});
|
|
333
339
|
|