@pinepaper.studio/mcp-server 1.6.6 → 1.6.8
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.de.md +24 -1
- package/README.es.md +24 -1
- package/README.fr.md +24 -1
- package/README.hi.md +21 -1
- package/README.ja.md +22 -1
- package/README.ko.md +22 -1
- package/README.md +329 -14
- package/README.pt-BR.md +24 -1
- package/README.zh-CN.md +20 -1
- package/assets/edit-whenever.svg +75 -0
- package/dist/agent/export-manager.d.ts.map +1 -1
- package/dist/agent/export-manager.js +2 -2
- package/dist/agent/export-manager.js.map +1 -1
- package/dist/agent/session-manager.d.ts.map +1 -1
- package/dist/agent/session-manager.js.map +1 -1
- package/dist/assets/repositories/fontawesome.d.ts.map +1 -1
- package/dist/assets/repositories/fontawesome.js.map +1 -1
- package/dist/assets/repositories/openclipart.d.ts.map +1 -1
- package/dist/character/data/concepts.json +1 -0
- package/dist/character/data/depictions.json +1 -0
- package/dist/character/data/styles.json +1 -0
- package/dist/character/duration-scale.d.ts +13 -0
- package/dist/character/duration-scale.d.ts.map +1 -0
- package/dist/character/duration-scale.js +13 -0
- package/dist/character/duration-scale.js.map +1 -0
- package/dist/character/path-bbox.d.ts +82 -0
- package/dist/character/path-bbox.d.ts.map +1 -0
- package/dist/character/path-bbox.js +496 -0
- package/dist/character/path-bbox.js.map +1 -0
- package/dist/character/perform.d.ts +149 -0
- package/dist/character/perform.d.ts.map +1 -0
- package/dist/character/perform.js +626 -0
- package/dist/character/perform.js.map +1 -0
- package/dist/character/resolve.d.ts +51 -0
- package/dist/character/resolve.d.ts.map +1 -0
- package/dist/character/resolve.js +239 -0
- package/dist/character/resolve.js.map +1 -0
- package/dist/design/design-systems.d.ts +126 -0
- package/dist/design/design-systems.d.ts.map +1 -0
- package/dist/design/design-systems.js +240 -0
- package/dist/design/design-systems.js.map +1 -0
- package/dist/execution/canvas-state.d.ts +7 -0
- package/dist/execution/canvas-state.d.ts.map +1 -1
- package/dist/execution/canvas-state.js +20 -8
- package/dist/execution/canvas-state.js.map +1 -1
- package/dist/index.d.ts +20 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/ontology/design-graph.d.ts +9 -0
- package/dist/ontology/design-graph.d.ts.map +1 -1
- package/dist/ontology/design-graph.js +98 -4
- package/dist/ontology/design-graph.js.map +1 -1
- package/dist/ontology/types.d.ts +42 -0
- package/dist/ontology/types.d.ts.map +1 -1
- package/dist/ontology/vocabulary.d.ts.map +1 -1
- package/dist/ontology/vocabulary.js +139 -0
- package/dist/ontology/vocabulary.js.map +1 -1
- package/dist/taxonomy/classifier.js +1 -1
- package/dist/taxonomy/classifier.js.map +1 -1
- package/dist/taxonomy/error-recovery.d.ts.map +1 -1
- package/dist/taxonomy/matcher.d.ts.map +1 -1
- package/dist/taxonomy/matcher.js.map +1 -1
- package/dist/tools/compact-descriptions.d.ts.map +1 -1
- package/dist/tools/compact-descriptions.js +25 -0
- package/dist/tools/compact-descriptions.js.map +1 -1
- package/dist/tools/definitions.d.ts +1 -1
- package/dist/tools/definitions.d.ts.map +1 -1
- package/dist/tools/definitions.js +1236 -45
- package/dist/tools/definitions.js.map +1 -1
- package/dist/tools/engine-methods.d.ts +18 -0
- package/dist/tools/engine-methods.d.ts.map +1 -0
- package/dist/tools/engine-methods.js +239 -0
- package/dist/tools/engine-methods.js.map +1 -0
- package/dist/tools/handlers/character.d.ts +121 -0
- package/dist/tools/handlers/character.d.ts.map +1 -0
- package/dist/tools/handlers/character.js +315 -0
- package/dist/tools/handlers/character.js.map +1 -0
- package/dist/tools/handlers.d.ts +2 -0
- package/dist/tools/handlers.d.ts.map +1 -1
- package/dist/tools/handlers.js +386 -22
- package/dist/tools/handlers.js.map +1 -1
- package/dist/tools/minimal-descriptions.d.ts.map +1 -1
- package/dist/tools/minimal-descriptions.js +24 -4
- package/dist/tools/minimal-descriptions.js.map +1 -1
- package/dist/tools/toolkits.d.ts.map +1 -1
- package/dist/tools/toolkits.js +21 -0
- package/dist/tools/toolkits.js.map +1 -1
- package/dist/types/code-generator.d.ts +141 -2
- package/dist/types/code-generator.d.ts.map +1 -1
- package/dist/types/code-generator.js +2246 -78
- package/dist/types/code-generator.js.map +1 -1
- package/dist/types/schemas.d.ts +9295 -603
- package/dist/types/schemas.d.ts.map +1 -1
- package/dist/types/schemas.js +1134 -61
- package/dist/types/schemas.js.map +1 -1
- package/dist/vendor/design/art-deco-generator.d.ts +52 -0
- package/dist/vendor/design/art-deco-generator.d.ts.map +1 -0
- package/dist/vendor/design/art-deco-generator.js +144 -0
- package/dist/vendor/design/art-deco-generator.js.map +1 -0
- package/dist/vendor/design/art-nouveau-generator.d.ts +46 -0
- package/dist/vendor/design/art-nouveau-generator.d.ts.map +1 -0
- package/dist/vendor/design/art-nouveau-generator.js +134 -0
- package/dist/vendor/design/art-nouveau-generator.js.map +1 -0
- package/dist/vendor/design/bauhaus-generator.d.ts +53 -0
- package/dist/vendor/design/bauhaus-generator.d.ts.map +1 -0
- package/dist/vendor/design/bauhaus-generator.js +126 -0
- package/dist/vendor/design/bauhaus-generator.js.map +1 -0
- package/dist/vendor/design/brutalist-generator.d.ts +53 -0
- package/dist/vendor/design/brutalist-generator.d.ts.map +1 -0
- package/dist/vendor/design/brutalist-generator.js +148 -0
- package/dist/vendor/design/brutalist-generator.js.map +1 -0
- package/dist/vendor/design/claymorphism-generator.d.ts +46 -0
- package/dist/vendor/design/claymorphism-generator.d.ts.map +1 -0
- package/dist/vendor/design/claymorphism-generator.js +135 -0
- package/dist/vendor/design/claymorphism-generator.js.map +1 -0
- package/dist/vendor/design/corporate-memphis-generator.d.ts +47 -0
- package/dist/vendor/design/corporate-memphis-generator.d.ts.map +1 -0
- package/dist/vendor/design/corporate-memphis-generator.js +144 -0
- package/dist/vendor/design/corporate-memphis-generator.js.map +1 -0
- package/dist/vendor/design/cyberpunk-generator.d.ts +52 -0
- package/dist/vendor/design/cyberpunk-generator.d.ts.map +1 -0
- package/dist/vendor/design/cyberpunk-generator.js +162 -0
- package/dist/vendor/design/cyberpunk-generator.js.map +1 -0
- package/dist/vendor/design/de-stijl-generator.d.ts +50 -0
- package/dist/vendor/design/de-stijl-generator.d.ts.map +1 -0
- package/dist/vendor/design/de-stijl-generator.js +154 -0
- package/dist/vendor/design/de-stijl-generator.js.map +1 -0
- package/dist/vendor/design/design-style.d.ts +3 -0
- package/dist/vendor/design/design-style.d.ts.map +1 -0
- package/dist/vendor/design/design-style.js +12 -0
- package/dist/vendor/design/design-style.js.map +1 -0
- package/dist/vendor/design/design-systems-dtcg.d.ts +59 -0
- package/dist/vendor/design/design-systems-dtcg.d.ts.map +1 -0
- package/dist/vendor/design/design-systems-dtcg.js +571 -0
- package/dist/vendor/design/design-systems-dtcg.js.map +1 -0
- package/dist/vendor/design/frutiger-aero-generator.d.ts +46 -0
- package/dist/vendor/design/frutiger-aero-generator.d.ts.map +1 -0
- package/dist/vendor/design/frutiger-aero-generator.js +133 -0
- package/dist/vendor/design/frutiger-aero-generator.js.map +1 -0
- package/dist/vendor/design/memphis-generator.d.ts +56 -0
- package/dist/vendor/design/memphis-generator.d.ts.map +1 -0
- package/dist/vendor/design/memphis-generator.js +158 -0
- package/dist/vendor/design/memphis-generator.js.map +1 -0
- package/dist/vendor/design/mid-century-upa-generator.d.ts +46 -0
- package/dist/vendor/design/mid-century-upa-generator.d.ts.map +1 -0
- package/dist/vendor/design/mid-century-upa-generator.js +137 -0
- package/dist/vendor/design/mid-century-upa-generator.js.map +1 -0
- package/dist/vendor/design/neumorphic-generator.d.ts +53 -0
- package/dist/vendor/design/neumorphic-generator.d.ts.map +1 -0
- package/dist/vendor/design/neumorphic-generator.js +182 -0
- package/dist/vendor/design/neumorphic-generator.js.map +1 -0
- package/dist/vendor/design/op-art-generator.d.ts +45 -0
- package/dist/vendor/design/op-art-generator.d.ts.map +1 -0
- package/dist/vendor/design/op-art-generator.js +116 -0
- package/dist/vendor/design/op-art-generator.js.map +1 -0
- package/dist/vendor/design/pixel-art-generator.d.ts +45 -0
- package/dist/vendor/design/pixel-art-generator.d.ts.map +1 -0
- package/dist/vendor/design/pixel-art-generator.js +143 -0
- package/dist/vendor/design/pixel-art-generator.js.map +1 -0
- package/dist/vendor/design/pop-art-generator.d.ts +53 -0
- package/dist/vendor/design/pop-art-generator.d.ts.map +1 -0
- package/dist/vendor/design/pop-art-generator.js +164 -0
- package/dist/vendor/design/pop-art-generator.js.map +1 -0
- package/dist/vendor/design/risograph-generator.d.ts +53 -0
- package/dist/vendor/design/risograph-generator.d.ts.map +1 -0
- package/dist/vendor/design/risograph-generator.js +170 -0
- package/dist/vendor/design/risograph-generator.js.map +1 -0
- package/dist/vendor/design/swiss-style-generator.d.ts +55 -0
- package/dist/vendor/design/swiss-style-generator.d.ts.map +1 -0
- package/dist/vendor/design/swiss-style-generator.js +147 -0
- package/dist/vendor/design/swiss-style-generator.js.map +1 -0
- package/dist/vendor/design/vaporwave-generator.d.ts +51 -0
- package/dist/vendor/design/vaporwave-generator.d.ts.map +1 -0
- package/dist/vendor/design/vaporwave-generator.js +139 -0
- package/dist/vendor/design/vaporwave-generator.js.map +1 -0
- package/manifest.json +65 -1
- package/package.json +18 -9
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Engine methods a tool REFUSES without — guarded with `!==` in the emitters.
|
|
3
|
+
*
|
|
4
|
+
* A studio missing one of these cannot serve the tools that need it, and will
|
|
5
|
+
* say so by name when called. Probe them all at once with
|
|
6
|
+
* `pinepaper_query_capabilities { action: 'studio' }` instead of discovering
|
|
7
|
+
* it one call at a time.
|
|
8
|
+
*/
|
|
9
|
+
export declare const REQUIRED_ENGINE_METHODS: readonly string[];
|
|
10
|
+
/**
|
|
11
|
+
* Engine methods a tool DEGRADES without — probed with `===` in the emitters.
|
|
12
|
+
*
|
|
13
|
+
* Their absence narrows an answer rather than failing it: a canvas that cannot
|
|
14
|
+
* be resized is not a failed compose. Reported separately so an older studio
|
|
15
|
+
* does not read as an unusable one.
|
|
16
|
+
*/
|
|
17
|
+
export declare const OPTIONAL_ENGINE_METHODS: readonly string[];
|
|
18
|
+
//# sourceMappingURL=engine-methods.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-methods.d.ts","sourceRoot":"","sources":["../../src/tools/engine-methods.ts"],"names":[],"mappings":"AAUA;;;;;;;GAOG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAsMpD,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,uBAAuB,EAAE,SAAS,MAAM,EAcpD,CAAC"}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
/* GENERATED — DO NOT EDIT.
|
|
2
|
+
*
|
|
3
|
+
* Source: src/types/code-generator.ts (its own `typeof app.X` guards)
|
|
4
|
+
* Generator: scripts/sync-engine-methods.mjs
|
|
5
|
+
*
|
|
6
|
+
* Re-run the generator after adding or removing a guard. A hand edit here is a
|
|
7
|
+
* second copy of a list that already exists in the emitters, which is the
|
|
8
|
+
* drift this file was created to prevent.
|
|
9
|
+
*/
|
|
10
|
+
/**
|
|
11
|
+
* Engine methods a tool REFUSES without — guarded with `!==` in the emitters.
|
|
12
|
+
*
|
|
13
|
+
* A studio missing one of these cannot serve the tools that need it, and will
|
|
14
|
+
* say so by name when called. Probe them all at once with
|
|
15
|
+
* `pinepaper_query_capabilities { action: 'studio' }` instead of discovering
|
|
16
|
+
* it one call at a time.
|
|
17
|
+
*/
|
|
18
|
+
export const REQUIRED_ENGINE_METHODS = [
|
|
19
|
+
'addComment',
|
|
20
|
+
'addPhysicsBody3D',
|
|
21
|
+
'addRelation',
|
|
22
|
+
'addWorldActor',
|
|
23
|
+
'addWorldLight',
|
|
24
|
+
'addWorldMaterial',
|
|
25
|
+
'analyzeAudio',
|
|
26
|
+
'analyzePalette',
|
|
27
|
+
'animateItems',
|
|
28
|
+
'animateToBeat',
|
|
29
|
+
'applyChromaKey',
|
|
30
|
+
'applyDirectorShots',
|
|
31
|
+
'applyHatching',
|
|
32
|
+
'applyImageFilter',
|
|
33
|
+
'applyPhysicsImpulse3D',
|
|
34
|
+
'applyRelationPreset',
|
|
35
|
+
'applyStorySpec',
|
|
36
|
+
'applyTemplateWithParams',
|
|
37
|
+
'applyTextEffect',
|
|
38
|
+
'applyTextStyle',
|
|
39
|
+
'applyThreadPainting',
|
|
40
|
+
'applyTrackMatte',
|
|
41
|
+
'autoDirectStory',
|
|
42
|
+
'bindTimelineToScroll',
|
|
43
|
+
'booleanOp',
|
|
44
|
+
'breakApart',
|
|
45
|
+
'bringForward',
|
|
46
|
+
'bringToFront',
|
|
47
|
+
'buildSoundFromText',
|
|
48
|
+
'canvasToGround',
|
|
49
|
+
'captureFramesAt',
|
|
50
|
+
'chordFrequencies',
|
|
51
|
+
'composeCollage',
|
|
52
|
+
'configureWorld3D',
|
|
53
|
+
'convertTextToCollage',
|
|
54
|
+
'create',
|
|
55
|
+
'createCursiveText',
|
|
56
|
+
'createEquationPath',
|
|
57
|
+
'createEvent',
|
|
58
|
+
'createSceneGraph',
|
|
59
|
+
'createSound',
|
|
60
|
+
'createTilemap',
|
|
61
|
+
'createWorld3D',
|
|
62
|
+
'cropImage',
|
|
63
|
+
'defineComponent',
|
|
64
|
+
'deleteComment',
|
|
65
|
+
'deleteItem',
|
|
66
|
+
'describeWorld3D',
|
|
67
|
+
'detachComponentInstance',
|
|
68
|
+
'detectObjects',
|
|
69
|
+
'diffAgainstVersion',
|
|
70
|
+
'diffHistoryStates',
|
|
71
|
+
'distillArticle',
|
|
72
|
+
'dollyWorldCamera',
|
|
73
|
+
'estimateExportSize',
|
|
74
|
+
'exportBVH',
|
|
75
|
+
'exportDotLottie',
|
|
76
|
+
'exportEngine.exportToStore',
|
|
77
|
+
'exportEngine.readExport',
|
|
78
|
+
'exportEngine.releaseExport',
|
|
79
|
+
'exportEngine.sceneHasAudio',
|
|
80
|
+
'exportGLB',
|
|
81
|
+
'exportLottie',
|
|
82
|
+
'exportPNGSequence',
|
|
83
|
+
'extractObject',
|
|
84
|
+
'extrudeToMesh',
|
|
85
|
+
'findPath',
|
|
86
|
+
'fireProjectile3D',
|
|
87
|
+
'fitToFrame',
|
|
88
|
+
'flipItems',
|
|
89
|
+
'getCapabilities',
|
|
90
|
+
'getDependents',
|
|
91
|
+
'getItemProvenance',
|
|
92
|
+
'getLineage',
|
|
93
|
+
'getPathGeometry',
|
|
94
|
+
'getProgress',
|
|
95
|
+
'getTemplateParams',
|
|
96
|
+
'getTimeScale',
|
|
97
|
+
'getWorldNavTarget',
|
|
98
|
+
'groundHeightAt',
|
|
99
|
+
'importBVH',
|
|
100
|
+
'importFigmaSVG',
|
|
101
|
+
'importGLTFToWorld',
|
|
102
|
+
'importLayeredCharacter',
|
|
103
|
+
'importLottie',
|
|
104
|
+
'importOBJToWorld',
|
|
105
|
+
'importSpine',
|
|
106
|
+
'instantiateComponent',
|
|
107
|
+
'latheToMesh',
|
|
108
|
+
'lintScene',
|
|
109
|
+
'listArtboardPresets',
|
|
110
|
+
'listCameraTreatments',
|
|
111
|
+
'listCollagePatterns',
|
|
112
|
+
'listComments',
|
|
113
|
+
'listComponents',
|
|
114
|
+
'listDesignMedia',
|
|
115
|
+
'listFlowFields',
|
|
116
|
+
'listGeneratorMotions',
|
|
117
|
+
'listHatchOptions',
|
|
118
|
+
'listInstruments',
|
|
119
|
+
'listPercussion',
|
|
120
|
+
'listPhysicsBodies3D',
|
|
121
|
+
'listPositionForms',
|
|
122
|
+
'listReveals',
|
|
123
|
+
'listScrubAnchors',
|
|
124
|
+
'listSfx',
|
|
125
|
+
'listStaggerOrigins',
|
|
126
|
+
'listStitches',
|
|
127
|
+
'listStyles',
|
|
128
|
+
'listTextEffects',
|
|
129
|
+
'listTextStyles',
|
|
130
|
+
'listWorldLights',
|
|
131
|
+
'listWorldMaterials',
|
|
132
|
+
'listWorldMeshClips',
|
|
133
|
+
'listWorldMeshes',
|
|
134
|
+
'mapSystem.animateGlobeRotation',
|
|
135
|
+
'mapSystem.enableGlobeMode',
|
|
136
|
+
'mapSystem.pinItemToGlobe',
|
|
137
|
+
'mapSystem.rotateGlobeTo',
|
|
138
|
+
'mapSystem.stopWorldTour',
|
|
139
|
+
'mapSystem.tourItemAlongCoords',
|
|
140
|
+
'mapSystem.tourRegions',
|
|
141
|
+
'mapSystem.worldTour',
|
|
142
|
+
'matchCut',
|
|
143
|
+
'outlineStroke',
|
|
144
|
+
'panWorldCamera',
|
|
145
|
+
'patternFrom',
|
|
146
|
+
'placeSequence',
|
|
147
|
+
'planBook',
|
|
148
|
+
'playChord',
|
|
149
|
+
'playPercussion',
|
|
150
|
+
'playSfx',
|
|
151
|
+
'playSound',
|
|
152
|
+
'playSoundFromText',
|
|
153
|
+
'playTone',
|
|
154
|
+
'pulseEvent',
|
|
155
|
+
'raycastWorld',
|
|
156
|
+
'recolorPalette',
|
|
157
|
+
'recordFlipState',
|
|
158
|
+
'recordLineage',
|
|
159
|
+
'registerInstrument',
|
|
160
|
+
'registerPercussion',
|
|
161
|
+
'registerSfx',
|
|
162
|
+
'removePhysicsBody3D',
|
|
163
|
+
'removeSound',
|
|
164
|
+
'removeWorld3D',
|
|
165
|
+
'removeWorldLight',
|
|
166
|
+
'removeWorldMaterial',
|
|
167
|
+
'removeWorldMesh',
|
|
168
|
+
'renderSoundtrackWav',
|
|
169
|
+
'resolveComment',
|
|
170
|
+
'resolveDesignMedium',
|
|
171
|
+
'resolveTimelinePosition',
|
|
172
|
+
'retargetBVH',
|
|
173
|
+
'sendBackward',
|
|
174
|
+
'sendToBack',
|
|
175
|
+
'setArtboard',
|
|
176
|
+
'setCollageTreatment',
|
|
177
|
+
'setComponentOverride',
|
|
178
|
+
'setFontAxes',
|
|
179
|
+
'setItemConstraints',
|
|
180
|
+
'setItemLocked',
|
|
181
|
+
'setPhysicsVelocity3D',
|
|
182
|
+
'setProgress',
|
|
183
|
+
'setSoundPlacement',
|
|
184
|
+
'setTimeRemap',
|
|
185
|
+
'setTimeScale',
|
|
186
|
+
'setWorldLight',
|
|
187
|
+
'setWorldMaterial',
|
|
188
|
+
'setWorldMeshClip',
|
|
189
|
+
'setWorldMeshInstances',
|
|
190
|
+
'setWorldNavTarget',
|
|
191
|
+
'shatterImage',
|
|
192
|
+
'simplifyPath',
|
|
193
|
+
'solveODE',
|
|
194
|
+
'speedRamp',
|
|
195
|
+
'staggerDelays',
|
|
196
|
+
'staggerItems',
|
|
197
|
+
'stepPhysics3D',
|
|
198
|
+
'stickFigure',
|
|
199
|
+
'stickSet',
|
|
200
|
+
'stitchPoses',
|
|
201
|
+
'stopLiveMatte',
|
|
202
|
+
'stopSounds',
|
|
203
|
+
'storyFromText',
|
|
204
|
+
'syncComponent',
|
|
205
|
+
'timbreFromPath',
|
|
206
|
+
'togglePathClosed',
|
|
207
|
+
'unlockAllItems',
|
|
208
|
+
'unwrapText',
|
|
209
|
+
'updateComponentFromInstance',
|
|
210
|
+
'validateOp',
|
|
211
|
+
'validateScene',
|
|
212
|
+
'validateSceneGraph',
|
|
213
|
+
'worldLineOfSight',
|
|
214
|
+
'worldToCanvas',
|
|
215
|
+
'wrapText',
|
|
216
|
+
];
|
|
217
|
+
/**
|
|
218
|
+
* Engine methods a tool DEGRADES without — probed with `===` in the emitters.
|
|
219
|
+
*
|
|
220
|
+
* Their absence narrows an answer rather than failing it: a canvas that cannot
|
|
221
|
+
* be resized is not a failed compose. Reported separately so an older studio
|
|
222
|
+
* does not read as an unusable one.
|
|
223
|
+
*/
|
|
224
|
+
export const OPTIONAL_ENGINE_METHODS = [
|
|
225
|
+
'_resolveRaster',
|
|
226
|
+
'activeWindowOf',
|
|
227
|
+
'captureFrameDataURL',
|
|
228
|
+
'clearCanvas',
|
|
229
|
+
'instantiateOntology',
|
|
230
|
+
'itemRegistry.getAll',
|
|
231
|
+
'listFontAxes',
|
|
232
|
+
'listTextPalettes',
|
|
233
|
+
'registerItem',
|
|
234
|
+
'relationRegistry.exportForSave',
|
|
235
|
+
'sceneAt',
|
|
236
|
+
'setBackgroundColor',
|
|
237
|
+
'setCanvasSize',
|
|
238
|
+
];
|
|
239
|
+
//# sourceMappingURL=engine-methods.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"engine-methods.js","sourceRoot":"","sources":["../../src/tools/engine-methods.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB;IACxD,YAAY;IACZ,kBAAkB;IAClB,aAAa;IACb,eAAe;IACf,eAAe;IACf,kBAAkB;IAClB,cAAc;IACd,gBAAgB;IAChB,cAAc;IACd,eAAe;IACf,gBAAgB;IAChB,oBAAoB;IACpB,eAAe;IACf,kBAAkB;IAClB,uBAAuB;IACvB,qBAAqB;IACrB,gBAAgB;IAChB,yBAAyB;IACzB,iBAAiB;IACjB,gBAAgB;IAChB,qBAAqB;IACrB,iBAAiB;IACjB,iBAAiB;IACjB,sBAAsB;IACtB,WAAW;IACX,YAAY;IACZ,cAAc;IACd,cAAc;IACd,oBAAoB;IACpB,gBAAgB;IAChB,iBAAiB;IACjB,kBAAkB;IAClB,gBAAgB;IAChB,kBAAkB;IAClB,sBAAsB;IACtB,QAAQ;IACR,mBAAmB;IACnB,oBAAoB;IACpB,aAAa;IACb,kBAAkB;IAClB,aAAa;IACb,eAAe;IACf,eAAe;IACf,WAAW;IACX,iBAAiB;IACjB,eAAe;IACf,YAAY;IACZ,iBAAiB;IACjB,yBAAyB;IACzB,eAAe;IACf,oBAAoB;IACpB,mBAAmB;IACnB,gBAAgB;IAChB,kBAAkB;IAClB,oBAAoB;IACpB,WAAW;IACX,iBAAiB;IACjB,4BAA4B;IAC5B,yBAAyB;IACzB,4BAA4B;IAC5B,4BAA4B;IAC5B,WAAW;IACX,cAAc;IACd,mBAAmB;IACnB,eAAe;IACf,eAAe;IACf,UAAU;IACV,kBAAkB;IAClB,YAAY;IACZ,WAAW;IACX,iBAAiB;IACjB,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nB,cAAc;IACd,cAAc;IACd,eAAe;IACf,kBAAkB;IAClB,kBAAkB;IAClB,uBAAuB;IACvB,mBAAmB;IACnB,cAAc;IACd,cAAc;IACd,UAAU;IACV,WAAW;IACX,eAAe;IACf,cAAc;IACd,eAAe;IACf,aAAa;IACb,UAAU;IACV,aAAa;IACb,eAAe;IACf,YAAY;IACZ,eAAe;IACf,eAAe;IACf,gBAAgB;IAChB,kBAAkB;IAClB,gBAAgB;IAChB,YAAY;IACZ,6BAA6B;IAC7B,YAAY;IACZ,eAAe;IACf,oBAAoB;IACpB,kBAAkB;IAClB,eAAe;IACf,UAAU;CACX,CAAC;AAEF;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAAsB;IACxD,gBAAgB;IAChB,gBAAgB;IAChB,qBAAqB;IACrB,aAAa;IACb,qBAAqB;IACrB,qBAAqB;IACrB,cAAc;IACd,kBAAkB;IAClB,cAAc;IACd,gCAAgC;IAChC,SAAS;IACT,oBAAoB;IACpB,eAAe;CAChB,CAAC"}
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `pinepaper_character` — a symbol and some beats become a figure that performs.
|
|
3
|
+
*
|
|
4
|
+
* This clears a PHANTOM. The tool was defined here and dispatched nowhere
|
|
5
|
+
* (b06fcde): advertised in tools/list, counted in the manifest, offered by a
|
|
6
|
+
* toolkit, and answering every call with UNKNOWN_TOOL. A missing tool is
|
|
7
|
+
* invisible; a phantom is a capability the model is told it has and plans
|
|
8
|
+
* around, and only discovers is absent at call time.
|
|
9
|
+
*
|
|
10
|
+
* NOTHING HERE REIMPLEMENTS THE PERFORMANCE. `resolveCharacter` composes the
|
|
11
|
+
* drawing across the concept's ancestry and hands it to the vendored
|
|
12
|
+
* `performCharacter`, which returns ops naming exactly two tools this package
|
|
13
|
+
* already emits. Those ops go through the EXISTING `generateCreateItem` and
|
|
14
|
+
* `generateKeyframeAnimate`, so there is no second code path to drift: a figure
|
|
15
|
+
* is created and keyframed by the same generators as everything else.
|
|
16
|
+
*
|
|
17
|
+
* ── THE ONE ADAPTATION, AND WHY IT IS NOT OPTIONAL ──────────────────────────
|
|
18
|
+
*
|
|
19
|
+
* The cloud's ops are written for the cloud's rasterizer, and the two renderers
|
|
20
|
+
* disagree about what `position` means next to `pathData`.
|
|
21
|
+
*
|
|
22
|
+
* `performCharacter` emits geometry ALREADY SHIFTED to canvas coordinates — a
|
|
23
|
+
* pigeon asked for at (470, 250) comes back with `pathData` in the 400-700
|
|
24
|
+
* range — and pairs it with `position: {x: 0, y: 0}`, which its own renderer
|
|
25
|
+
* ignores. PinePaper does not ignore it. `create('path', …)` treats pathData as
|
|
26
|
+
* the OTHER convention — a shape authored around its own origin and placed by
|
|
27
|
+
* (x, y) — and its guard is `params.x !== undefined`, which `0` satisfies. So
|
|
28
|
+
* the ops as the cloud writes them would move every part's centre to (0, 0) and
|
|
29
|
+
* stack the whole figure on the canvas origin.
|
|
30
|
+
*
|
|
31
|
+
* That is not hypothetical: PinePaper's own comment at that line records it,
|
|
32
|
+
* "measured on a rigged figure whose 27 parts all drew correctly and all landed
|
|
33
|
+
* on the canvas origin, stacked, while every other signal (item count,
|
|
34
|
+
* registry, attachments) said the scene was fine."
|
|
35
|
+
*
|
|
36
|
+
* So each part is converted to PinePaper's convention here: the pathData is
|
|
37
|
+
* shifted to sit around its own bbox centre, and that centre is passed as the
|
|
38
|
+
* position. Same pixels, stated the way this engine reads them. Converting
|
|
39
|
+
* rather than re-authoring keeps `performCharacter` the single source of the
|
|
40
|
+
* performance — the adaptation is a coordinate convention, not a second
|
|
41
|
+
* implementation.
|
|
42
|
+
*/
|
|
43
|
+
import { type CharacterArgs } from '../../character/resolve.js';
|
|
44
|
+
export interface CharacterOp {
|
|
45
|
+
tool: string;
|
|
46
|
+
args: Record<string, unknown>;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* Restate one create op in PinePaper's pathData convention.
|
|
50
|
+
*
|
|
51
|
+
* A part whose pathData cannot be measured is passed through UNCHANGED rather
|
|
52
|
+
* than guessed at: it will be misplaced, which is visible, instead of being
|
|
53
|
+
* silently dropped, which is not.
|
|
54
|
+
*/
|
|
55
|
+
export declare function toEngineConvention(op: CharacterOp, centres?: Map<string, {
|
|
56
|
+
cx: number;
|
|
57
|
+
cy: number;
|
|
58
|
+
}>): CharacterOp;
|
|
59
|
+
/**
|
|
60
|
+
* Convert a whole program, not one op at a time.
|
|
61
|
+
*
|
|
62
|
+
* The keyframe tracks cannot be converted without knowing where the create ops
|
|
63
|
+
* actually placed each part, so the creates go first and record their centres.
|
|
64
|
+
* Converting op-by-op is what left the tracks anchored on a different point
|
|
65
|
+
* from the items they drive.
|
|
66
|
+
*/
|
|
67
|
+
export declare function convertOps(ops: CharacterOp[]): CharacterOp[];
|
|
68
|
+
/**
|
|
69
|
+
* Plan a character call: ops in PinePaper's convention, or a refusal.
|
|
70
|
+
*
|
|
71
|
+
* Separated from the handler so it can be tested WITHOUT `handleToolCall`,
|
|
72
|
+
* which tries to reach a browser and times out at 5001ms.
|
|
73
|
+
*/
|
|
74
|
+
export declare function planCharacter(args: CharacterArgs): {
|
|
75
|
+
ok: true;
|
|
76
|
+
ops: CharacterOp[];
|
|
77
|
+
parts: string[];
|
|
78
|
+
tracks: number;
|
|
79
|
+
notes: string[];
|
|
80
|
+
concept: string;
|
|
81
|
+
root: string | null;
|
|
82
|
+
} | {
|
|
83
|
+
ok: false;
|
|
84
|
+
reason: string;
|
|
85
|
+
};
|
|
86
|
+
/**
|
|
87
|
+
* The part the others hang off.
|
|
88
|
+
*
|
|
89
|
+
* `part_of_figure` points at a SIBLING, exactly as `glyph_of` points at the
|
|
90
|
+
* root glyph — there is no wrapper item, and inventing one would be the Paper
|
|
91
|
+
* group this design deliberately avoids. The body is the natural root because
|
|
92
|
+
* it is the part every other one is drawn against; failing that, the first in
|
|
93
|
+
* z-order, which is stable for a given concept.
|
|
94
|
+
*/
|
|
95
|
+
export declare function figureRoot(parts: string[]): string | null;
|
|
96
|
+
/**
|
|
97
|
+
* The whole performance as one program.
|
|
98
|
+
*
|
|
99
|
+
* Emitted as a single block with one history save at the end, like
|
|
100
|
+
* `batch_create`: thirteen parts and eight tracks are ONE authoring act, and
|
|
101
|
+
* thirteen undo steps to remove one pigeon is not what anybody means by undo.
|
|
102
|
+
*
|
|
103
|
+
* Every interpolated value goes through `JSON.stringify`. Prose is DATA — an
|
|
104
|
+
* apostrophe in a refusal message, interpolated into a single-quoted literal,
|
|
105
|
+
* once made every generated `auto_walk` program a SyntaxError.
|
|
106
|
+
*/
|
|
107
|
+
export declare function generateCharacterCode(plan: {
|
|
108
|
+
ops: CharacterOp[];
|
|
109
|
+
parts: string[];
|
|
110
|
+
tracks: number;
|
|
111
|
+
notes: string[];
|
|
112
|
+
concept?: string;
|
|
113
|
+
root?: string | null;
|
|
114
|
+
}, gen: {
|
|
115
|
+
generateCreateItem: (input: unknown) => string;
|
|
116
|
+
generateKeyframeAnimate: (input: unknown) => string;
|
|
117
|
+
}, parse: {
|
|
118
|
+
createItem: (a: unknown) => unknown;
|
|
119
|
+
keyframeAnimate: (a: unknown) => unknown;
|
|
120
|
+
}): string;
|
|
121
|
+
//# sourceMappingURL=character.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"character.d.ts","sourceRoot":"","sources":["../../../src/tools/handlers/character.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AACH,OAAO,EAAoB,KAAK,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAGlF,MAAM,WAAW,WAAW;IAAG,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE;AAE5E;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE;IAAE,EAAE,EAAE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