@adminide-stack/yantra-mobile 12.0.171 → 12.0.172-alpha.1
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/lib/components/GatewayConnector/GatewayConnector.js +10 -4
- package/lib/components/GatewayConnector/GatewayConnector.js.map +1 -1
- package/lib/components/GatewayConnector/GatewayStatusSheet.js +174 -0
- package/lib/components/GatewayConnector/GatewayStatusSheet.js.map +1 -0
- package/lib/components/GatewayToolbarButtonMobile.js +6 -2
- package/lib/components/GatewayToolbarButtonMobile.js.map +1 -1
- package/lib/compute.js +51 -1
- package/lib/compute.js.map +1 -1
- package/lib/config/env-config.js +12 -3
- package/lib/config/env-config.js.map +1 -1
- package/lib/features/apps/AppsCatalog.js +10 -0
- package/lib/features/apps/AppsCatalog.js.map +1 -1
- package/lib/features/apps/mobileAppCatalog.js +9 -0
- package/lib/features/apps/mobileAppCatalog.js.map +1 -1
- package/lib/features/apps/nativeAppHandoff.js +31 -13
- package/lib/features/apps/nativeAppHandoff.js.map +1 -1
- package/lib/features/apps/nativeSurfaceTwin.js +2 -1
- package/lib/features/apps/nativeSurfaceTwin.js.map +1 -1
- package/lib/features/canvas/set/agent/prompt.js +4 -5
- package/lib/features/canvas/set/agent/prompt.js.map +1 -1
- package/lib/features/canvas/set/supplyLibrary.js +1294 -2
- package/lib/features/canvas/set/supplyLibrary.js.map +1 -1
- package/lib/features/chat/PromptFillBar.js +153 -0
- package/lib/features/chat/PromptFillBar.js.map +1 -0
- package/lib/features/chat/promptBlanks.js +120 -0
- package/lib/features/chat/promptBlanks.js.map +1 -0
- package/lib/features/chat/savedReply.js +11 -0
- package/lib/features/chat/savedReply.js.map +1 -0
- package/lib/features/games/GameInviteCard.js +93 -0
- package/lib/features/games/GameInviteCard.js.map +1 -0
- package/lib/features/games/cubeforge3D.js +97 -0
- package/lib/features/games/cubeforge3D.js.map +1 -0
- package/lib/features/games/cubeforgeFriends.js +112 -0
- package/lib/features/games/cubeforgeFriends.js.map +1 -0
- package/lib/features/games/gameInvite.js +13 -0
- package/lib/features/games/gameInvite.js.map +1 -0
- package/lib/features/games/useCubeforgeFriends.js +63 -0
- package/lib/features/games/useCubeforgeFriends.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/permissions.js +76 -0
- package/lib/features/games/vendored/core/classroom/permissions.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/resourceLink.js +101 -0
- package/lib/features/games/vendored/core/classroom/resourceLink.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/rules.js +83 -0
- package/lib/features/games/vendored/core/classroom/rules.js.map +1 -0
- package/lib/features/games/vendored/core/classroom/worldSettings.js +49 -0
- package/lib/features/games/vendored/core/classroom/worldSettings.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/cycle.js +15 -0
- package/lib/features/games/vendored/core/cubeforge/cycle.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/inventory.js +75 -0
- package/lib/features/games/vendored/core/cubeforge/inventory.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/items.js +62 -0
- package/lib/features/games/vendored/core/cubeforge/items.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorld.js +4 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorld.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorlds.js +68 -0
- package/lib/features/games/vendored/core/cubeforge/nativeWorlds.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/recipes.js +52 -0
- package/lib/features/games/vendored/core/cubeforge/recipes.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/save.js +92 -0
- package/lib/features/games/vendored/core/cubeforge/save.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/session.js +154 -0
- package/lib/features/games/vendored/core/cubeforge/session.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/sharedWorlds.js +10 -0
- package/lib/features/games/vendored/core/cubeforge/sharedWorlds.js.map +1 -0
- package/lib/features/games/vendored/core/cubeforge/worldgen.js +44 -0
- package/lib/features/games/vendored/core/cubeforge/worldgen.js.map +1 -0
- package/lib/features/games/vendored/core/engine/iso.js +41 -0
- package/lib/features/games/vendored/core/engine/iso.js.map +1 -0
- package/lib/features/games/vendored/core/engine/palette.js +53 -0
- package/lib/features/games/vendored/core/engine/palette.js.map +1 -0
- package/lib/features/games/vendored/core/engine/world.js +148 -0
- package/lib/features/games/vendored/core/engine/world.js.map +1 -0
- package/lib/features/games/vendored/core/games/catalog.js +34 -0
- package/lib/features/games/vendored/core/games/catalog.js.map +1 -0
- package/lib/features/games/vendored/core/lessons/lessons.js +97 -0
- package/lib/features/games/vendored/core/lessons/lessons.js.map +1 -0
- package/lib/features/games/vendored/core/logging/events.js +24 -0
- package/lib/features/games/vendored/core/logging/events.js.map +1 -0
- package/lib/features/games/vendored/core/logging/logger.js +54 -0
- package/lib/features/games/vendored/core/logging/logger.js.map +1 -0
- package/lib/features/games/vendored/core/session/gameSession.js +317 -0
- package/lib/features/games/vendored/core/session/gameSession.js.map +1 -0
- package/lib/features/games/vendored/core/storage/worldRepository.js +192 -0
- package/lib/features/games/vendored/core/storage/worldRepository.js.map +1 -0
- package/lib/features/games/vendored/core/store/reactive.js +78 -0
- package/lib/features/games/vendored/core/store/reactive.js.map +1 -0
- package/lib/features/games/vendored/ui/GamesRoot.js +223 -0
- package/lib/features/games/vendored/ui/GamesRoot.js.map +1 -0
- package/lib/features/games/vendored/ui/components/BlockPalette.js +64 -0
- package/lib/features/games/vendored/ui/components/BlockPalette.js.map +1 -0
- package/lib/features/games/vendored/ui/components/IsoCanvas.js +124 -0
- package/lib/features/games/vendored/ui/components/IsoCanvas.js.map +1 -0
- package/lib/features/games/vendored/ui/components/primitives.js +257 -0
- package/lib/features/games/vendored/ui/components/primitives.js.map +1 -0
- package/lib/features/games/vendored/ui/hooks/useReactiveQuery.js +3 -0
- package/lib/features/games/vendored/ui/hooks/useReactiveQuery.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/ActivityScreen.js +68 -0
- package/lib/features/games/vendored/ui/screens/ActivityScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/BuilderScreen.js +227 -0
- package/lib/features/games/vendored/ui/screens/BuilderScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/ClassroomScreen.js +95 -0
- package/lib/features/games/vendored/ui/screens/ClassroomScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/Cubeforge3DHomeScreen.js +296 -0
- package/lib/features/games/vendored/ui/screens/Cubeforge3DHomeScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/CubeforgeScreen.js +342 -0
- package/lib/features/games/vendored/ui/screens/CubeforgeScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/HubScreen.js +131 -0
- package/lib/features/games/vendored/ui/screens/HubScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/ScreenHeader.js +51 -0
- package/lib/features/games/vendored/ui/screens/ScreenHeader.js.map +1 -0
- package/lib/features/games/vendored/ui/screens/WorldListScreen.js +134 -0
- package/lib/features/games/vendored/ui/screens/WorldListScreen.js.map +1 -0
- package/lib/features/games/vendored/ui/storage/asyncStorageAdapter.js +23 -0
- package/lib/features/games/vendored/ui/storage/asyncStorageAdapter.js.map +1 -0
- package/lib/features/games/vendored/ui/theme.js +53 -0
- package/lib/features/games/vendored/ui/theme.js.map +1 -0
- package/lib/features/messaging/ChatComponents.js +12 -4
- package/lib/features/messaging/ChatComponents.js.map +1 -1
- package/lib/features/messaging/messageCards.js +22 -0
- package/lib/features/messaging/messageCards.js.map +1 -0
- package/lib/features/travel/TravelAgentChatPane.js +9 -1
- package/lib/features/travel/TravelAgentChatPane.js.map +1 -1
- package/lib/hooks/useCdecliAutoConnect.js +8 -1
- package/lib/hooks/useCdecliAutoConnect.js.map +1 -1
- package/lib/hooks/useCdecliChannel.js +142 -49
- package/lib/hooks/useCdecliChannel.js.map +1 -1
- package/lib/hooks/useChatApi.js +21 -10
- package/lib/hooks/useChatApi.js.map +1 -1
- package/lib/hooks/useChatStream.js +18 -5
- package/lib/hooks/useChatStream.js.map +1 -1
- package/lib/module.js +2 -1
- package/lib/module.js.map +1 -1
- package/lib/routes.json +50 -0
- package/lib/screens/Chat/index.js +23 -15
- package/lib/screens/Chat/index.js.map +1 -1
- package/lib/screens/GamesNative/index.js +75 -0
- package/lib/screens/GamesNative/index.js.map +1 -0
- package/lib/screens/Home/HomeScreen.js +147 -33
- package/lib/screens/Home/HomeScreen.js.map +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js +1 -1
- package/lib/screens/Home/components/HomeSuggestions.js.map +1 -1
- package/lib/screens/Home/components/homeCatalog.js +68 -16
- package/lib/screens/Home/components/homeCatalog.js.map +1 -1
- package/package.json +4 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sources":["../../../../../src/features/canvas/set/agent/prompt.ts"],"sourcesContent":["/**\n * Twin of web `editors/set-editor/agent/prompt.ts`.\n *\n * What the set agent is told, once per turn, with the set appended.\n *\n * The craft in here is the yantra-3d-set skill's, condensed: the order that\n * works, where a camera goes for a given shot, and the surface heights that\n * stop things floating. The supply catalogue is NOT copied - it is generated\n * from `KIT_ENTRIES`, so a piece added to the library is a piece the agent can\n * reach for the same day, and a prompt that lists something the picker does\n * not have becomes impossible rather than merely unlikely.\n */\nimport { KIT_CATEGORY_LABEL, KIT_ENTRIES
|
|
1
|
+
{"version":3,"file":"prompt.js","sources":["../../../../../src/features/canvas/set/agent/prompt.ts"],"sourcesContent":["/**\n * Twin of web `editors/set-editor/agent/prompt.ts`.\n *\n * What the set agent is told, once per turn, with the set appended.\n *\n * The craft in here is the yantra-3d-set skill's, condensed: the order that\n * works, where a camera goes for a given shot, and the surface heights that\n * stop things floating. The supply catalogue is NOT copied - it is generated\n * from `KIT_ENTRIES`, so a piece added to the library is a piece the agent can\n * reach for the same day, and a prompt that lists something the picker does\n * not have becomes impossible rather than merely unlikely.\n */\nimport { KIT_CATEGORIES, KIT_CATEGORY_LABEL, KIT_ENTRIES } from '../supplyLibrary';\nimport { SET_ASPECTS, type SetProject } from '../setProject';\nimport { describeSet, type StillRef } from './snapshot';\n\n/** The supply library as the model sees it: id, real height, and what it is for. */\nexport function describeSupply(): string {\n return KIT_CATEGORIES\n .map((category) => {\n const rows = KIT_ENTRIES.filter((entry) => entry.category === category).map(\n (entry) => ` ${entry.id} (${entry.heightM > 0 ? `${entry.heightM}m` : 'flat'}) - ${entry.hint}`,\n );\n return [`${KIT_CATEGORY_LABEL[category]}:`, ...rows].join('\\n');\n })\n .join('\\n');\n}\n\nexport interface SetPromptOptions {\n /** Stills on the canvas board, which generate_object can turn into a mesh. */\n stills?: readonly StillRef[];\n}\n\nexport function buildSetSystemPrompt(project: SetProject, opts: SetPromptOptions = {}): string {\n const { stills = [] } = opts;\n\n return `You are the set agent inside a 3D set studio. You build and edit the user's set by calling tools; every change shows on the stage beside them at once, and each call is one undo step. Work like a director blocking a shot: act first, then say what you built in two or three plain sentences. Ask a question only when the request cannot be carried out without an answer.\n\nWHY A SET AND NOT A PROMPT\nA prompt gives a different room every time; a set gives the SAME room from a second angle, with the mug still on the same table. Everything you place should serve that: real sizes, real distances, a camera a person could stand at.\n\nHOW THE SET WORKS\n- Metres and degrees. +Y is up, the floor is y 0, and the camera looks at its target. An object's position is where its BASE sits, so a piece standing on the floor has y 0.\n- Stock geometry (\"kit\") is built in the browser: instant, free, and nothing to expire. It is most of a set.\n- Sizes are real. Scale a kit piece with height_m (the height you want it to end up) or scale/scale_xyz. A scaled cylinder is a mug at 0.1m, a barrel at 0.9m, a column drum at 2m.\n- Copy ids exactly from the snapshot or from a tool result. Never invent one.\n\nTHE SUPPLY LIBRARY\n${describeSupply()}\n\nTHE ORDER THAT WORKS\n1. Ground it: a floor, and a wall if the frame will see one. Lock both - they are not what the user will want to drag.\n2. Put the subject at or near x 0, z 0. That is what the camera targets.\n3. Put the camera where a person would stand, then set the target to the subject's interesting height.\n4. Dress outward from the subject: the things that explain the place, at three depths - something near, the subject, something behind.\n5. Generate last, and only the hero.\n\nSTANDING THINGS ON THINGS\nSet y to the surface's height, never nudge until it looks right. Floor 0 · plank top 0.08 · steps top 0.72 · desk top 0.75 · table top 0.77 · counter top 0.95 · cube top 1. A figure is 1.75m, so its eye is ~1.6m and a table comes to its hip. Every object line in the snapshot ends with its own top for exactly this. A figure-seated goes at the SAME x and z as its chair with y 0: its feet stay on the floor and its hips land on the seat. Most furniture faces +Z, so a desk's worker sits on its +Z side and looks toward -Z: turn the chair and figure 180° to face the desk, and put a monitor on the desk turned 0° on the -Z half, facing them.\n\nWHERE THE CAMERA GOES\nHeight decides character: 1.5-1.7m reads as a standing person, 1.1-1.3m as seated and intimate, below 0.8m makes the subject dominant, above 2.2m makes it small. Distance and lens decide the frame:\n wide room 5-7m on 24mm · full figure 4m on 35mm · two people across a table 3.5-4.5m on 35mm · product on a table 1.2-1.8m on 50mm · portrait 1.3m on 85mm · detail 0.6-0.9m on 85mm\nOff-centre it slightly rather than dead-on - a symmetrical frame reads as a diagram. Target a standing figure's chest (~1.2m), not its head. Never put the camera below the floor. Leave the lens a way in: two figures shoulder to shoulder between the camera and the subject will hide it.\n\nARRANGING PEOPLE\nFigures talking stand 1.2-1.6m apart, each turned 30-40° toward the other - dead-on is a police line-up. Three or more go on an arc around the subject, never in a row.\n\nFRAMING AND LIGHT\nAspect first, because it changes the blocking: ${SET_ASPECTS.join(', ')} - a 9:16 set stacks in depth, a 21:9 set spreads across. The key light is one direction and one intensity (set_light): 135°/42° is a pleasant three-quarter key; bring the elevation down to 15-25° for long dramatic shadows, raise ambient for a soft overcast look. The light-stand, floor-lamp, desk-lamp and street-lamp pieces are set dressing - they do not light anything.\n\nGENERATING\n- generate_object turns a prompt or a still into a real GLB and drops it into the set. It takes 45-120 seconds, so use it for the one or two pieces the shot is ABOUT, and block everything else. Say what you are generating before you call it.\n- generate_world paints the 360 panorama behind the set in a few seconds. Worth it whenever the brief names a place or a time of day. The camera turns inside a world; it cannot travel into it, so the set still needs its own floor and walls.\n- A generated mesh arrives at an unpredictable size. Give generate_object the height_m it should end up at; if it still looks wrong in the snapshot that comes back, update_objects it - a hero prop is usually 0.1-0.5m, a chair 0.9m, a car 4m.\n- When a generator fails, say so in one clause and leave the stand-in block in its place rather than retrying it twice.\n\nMETHOD\n- A first request for a scene is one block_set with mode \"replace\": the whole shot at once, floor to camera, rather than a dozen calls.\n- A later request is an edit: update_objects, remove_objects, set_camera, set_light. Do not rebuild a set the user has been moving by hand.\n- Respect what the user locked or hid; if a locked object is genuinely in the way, say so instead of unlocking it silently.\n- If a tool reports something dropped or missing, fix it in the next call rather than repeating the same one.\n\nREPLY STYLE\nPlain sentences, no headings, no bullet lists, no JSON, no ids. Say what you built, the lens and the distance you chose, and any judgment call worth one sentence.\n\nDescribe only what your tool calls actually DID. If you did not call set_camera, do not say where the camera is - go and call it instead. A reply that describes a camera, a light or a prop that no call placed is worse than a short one, because the user reads it as done and it is not.\n\nCURRENT SET\n${describeSet(project, stills)}`;\n}\n"],"names":[],"mappings":"mKAiBO,SAAS,cAAyB,GAAA;AACvC,EAAO,OAAA,cAAA,CAAe,IAAI,CAAY,QAAA,KAAA;AACpC,IAAM,MAAA,IAAA,GAAO,WAAY,CAAA,MAAA,CAAO,CAAS,KAAA,KAAA,KAAA,CAAM,aAAa,QAAQ,CAAA,CAAE,GAAI,CAAA,CAAA,KAAA,KAAS,CAAK,EAAA,EAAA,KAAA,CAAM,EAAE,CAAK,EAAA,EAAA,KAAA,CAAM,OAAU,GAAA,CAAA,GAAI,CAAG,EAAA,KAAA,CAAM,OAAO,CAAA,CAAA,CAAA,GAAM,MAAM,CAAA,IAAA,EAAO,KAAM,CAAA,IAAI,CAAE,CAAA,CAAA;AACxK,IAAO,OAAA,CAAC,CAAG,EAAA,kBAAA,CAAmB,QAAQ,CAAC,KAAK,GAAG,IAAI,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AAAA,GAC/D,CAAE,CAAA,IAAA,CAAK,IAAI,CAAA;AACd;AAKO,SAAS,oBAAqB,CAAA,OAAA,EAAqB,IAAyB,GAAA,EAAY,EAAA;AAC7F,EAAM,MAAA;AAAA,IACJ,SAAS;AAAC,GACR,GAAA,IAAA;AACJ,EAAO,OAAA,CAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA,EAYP,gBAAgB;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;AAAA,+CAqB+B,EAAA,WAAA,CAAY,IAAK,CAAA,IAAI,CAAC,CAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;AAAA;AAAA;AAAA;;AAAA;AAAA;;AAAA;;AAAA;AAAA,EAoBrE,WAAA,CAAY,OAAS,EAAA,MAAM,CAAC,CAAA,CAAA;AAC9B"}
|