@causyne/agent 1.20.7 → 1.20.9

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 (42) hide show
  1. package/package.json +1 -1
  2. package/src/acp/agentCatalog.js +9 -3
  3. package/src/acp/agentCatalog.ts +20 -4
  4. package/src/agentLoop.js +167 -34
  5. package/src/agentLoop.ts +188 -37
  6. package/src/commands.js +25 -10
  7. package/src/compiledSkills.js +7330 -319
  8. package/src/computerUse/types.js +8 -0
  9. package/src/computerUse/types.ts +121 -0
  10. package/src/computerUse/visionGrounding.js +87 -29
  11. package/src/computerUse/visionGrounding.ts +108 -36
  12. package/src/decisionPolicy.js +7 -9
  13. package/src/decisionPolicy.ts +7 -9
  14. package/src/documentEngine/antiSlopAuditor.js +13 -43
  15. package/src/documentEngine/antiSlopAuditor.ts +15 -47
  16. package/src/documentEngine/documentForge.js +3 -3
  17. package/src/documentEngine/documentForge.ts +3 -3
  18. package/src/dynamicCatalogue.js +568 -77
  19. package/src/dynamicCatalogue.ts +608 -79
  20. package/src/launchIntent.js +3 -3
  21. package/src/launchIntent.ts +3 -3
  22. package/src/planCache.js +4 -14
  23. package/src/planCache.ts +4 -14
  24. package/src/providers/acp.js +39 -4
  25. package/src/providers/acp.ts +42 -4
  26. package/src/providers/antigravity.d.ts +7 -1
  27. package/src/providers/antigravity.js +222 -34
  28. package/src/providers/antigravity.ts +220 -33
  29. package/src/providers/base.d.ts +2 -0
  30. package/src/providers/pi.js +3 -1
  31. package/src/providers/pi.ts +4 -2
  32. package/src/sandbox.js +7 -10
  33. package/src/smartToolsUse.js +203 -0
  34. package/src/smartToolsUse.ts +263 -0
  35. package/src/taskShape.js +7 -7
  36. package/src/taskShape.ts +7 -7
  37. package/src/toolPacks.js +5 -5
  38. package/src/tools/blenderAutomator.js +198 -11
  39. package/src/tools/documentForge.js +1 -1
  40. package/src/tools/documentForge.ts +1 -1
  41. package/src/tui/modelPicker.js +288 -69
  42. package/src/tui/modelPicker.ts +333 -72
@@ -0,0 +1,203 @@
1
+ /**
2
+ * @file src/smartToolsUse.ts
3
+ * SmartToolsUse & LazyPlaybook Engine.
4
+ *
5
+ * Provides intent-based tool preloading and lazy playbook disclosure.
6
+ * Other capabilities remain discoverable through tool_search.
7
+ *
8
+ * Authorship: Strict TypeScript (Causyne Agent).
9
+ */
10
+ import { PACK_PLAYBOOKS } from './toolPacks.js';
11
+ // ---------------------------------------------------------------------------
12
+ // Intent Matchers & Negative Filters
13
+ // ---------------------------------------------------------------------------
14
+ // Personalization / desktop actions (setting wallpaper, changing desktop background)
15
+ const DESKTOP_PERSONALIZATION_PATTERN = /\b(desktop (picture|wallpaper|background|image)|set wallpaper|change wallpaper)\b/i;
16
+ // Pure web search / retrieval without UI/frontend construction
17
+ const PURE_WEB_SEARCH_PATTERN = /\b(search(ing)? (the )?web|web search|look up online|find on google|brows(e|ing) (the )?web)\b/i;
18
+ const WEB_CONSTRUCTION_EXCLUSION = /\b(build|create|make|design|develop|scaffold|code|program|css|html|tailwind|component|frontend|front-end|landing page|website|webpage|dashboard)\b/i;
19
+ // System admin / process & terminal operations
20
+ const SYSTEM_ADMIN_PATTERN = /\b(kill process|kill port|check port|port \d+|lsof|ps aux|terminate process|zip folder|unzip file|extract archive|compress folder)\b/i;
21
+ // Simple file management operations
22
+ const SIMPLE_FILE_OP_PATTERN = /\b(list (the )?files|show files|count files|rename file(s)?|delete file(s)?|move file(s)?|clean (up )?folder)\b/i;
23
+ // Media generation intent (explicit creation of 3D, video, audio, or synthesized speech)
24
+ const EXPLICIT_MEDIA_GENERATION_PATTERN = /\b(blender|3d model|render 3d|render frame|render animation|da vinci|resolve|audio synth|synthesizer|text to speech|tts|voiceover|dubbing)\b/i;
25
+ // Explicit web engineering intent
26
+ const EXPLICIT_WEB_ENGINEERING_PATTERN = /\b(build.*(website|webpage|landing page|dashboard|ui component|frontend)|create.*(website|webpage|landing page|dashboard|ui)|develop.*(website|web app|webapp))\b/i;
27
+ // Explicit game development intent
28
+ const EXPLICIT_GAME_DEV_PATTERN = /\b(build.*game|create.*game|develop.*game|godot|unity|unreal|platformer 2d|rpg game|arcade game)\b/i;
29
+ /**
30
+ * Select tools to preload based on prompt intent. This is never an allowlist:
31
+ * tool_search can add capabilities as the task develops.
32
+ */
33
+ export function determineToolScope(prompt, _taskShape) {
34
+ const text = (prompt || '').trim();
35
+ if (!text) {
36
+ return { toolScope: null, archetype: 'empty', suppressedPacks: [] };
37
+ }
38
+ // 1. Desktop personalization (e.g. wallpaper / desktop background)
39
+ if (DESKTOP_PERSONALIZATION_PATTERN.test(text)) {
40
+ const tools = new Set([
41
+ 'sysRun',
42
+ 'web_search',
43
+ 'web_fetch',
44
+ 'fs_read',
45
+ 'fs_write',
46
+ 'fs_list',
47
+ 'update_plan',
48
+ 'tool_search'
49
+ ]);
50
+ return {
51
+ toolScope: tools,
52
+ archetype: 'desktop_personalization',
53
+ suppressedPacks: ['media', 'web', 'game', 'advanced', 'system'],
54
+ reason: 'Start with search and system execution; discover desktop or browser tools if direct execution is unsuitable.'
55
+ };
56
+ }
57
+ // 2. Pure web research (searching/fetching online information without web app construction)
58
+ if (PURE_WEB_SEARCH_PATTERN.test(text) && !WEB_CONSTRUCTION_EXCLUSION.test(text)) {
59
+ const tools = new Set([
60
+ 'web_search',
61
+ 'web_fetch',
62
+ 'sysRun',
63
+ 'fs_read',
64
+ 'fs_write',
65
+ 'update_plan',
66
+ 'tool_search'
67
+ ]);
68
+ return {
69
+ toolScope: tools,
70
+ archetype: 'web_research_only',
71
+ suppressedPacks: ['media', 'game', 'web', 'advanced'],
72
+ reason: 'Pure information retrieval requires web search tools; suppresses UI forge and creative packs.'
73
+ };
74
+ }
75
+ // 3. System process or archive administration
76
+ if (SYSTEM_ADMIN_PATTERN.test(text)) {
77
+ const tools = new Set([
78
+ 'sysRun',
79
+ 'proc_term',
80
+ 'process_list',
81
+ 'archive',
82
+ 'fs_read',
83
+ 'fs_list',
84
+ 'update_plan',
85
+ 'tool_search'
86
+ ]);
87
+ return {
88
+ toolScope: tools,
89
+ archetype: 'system_admin',
90
+ suppressedPacks: ['media', 'game', 'web'],
91
+ reason: 'System administration uses process and archive utilities; suppresses creative packs.'
92
+ };
93
+ }
94
+ // 4. Simple local file manipulation
95
+ if (SIMPLE_FILE_OP_PATTERN.test(text) && !EXPLICIT_WEB_ENGINEERING_PATTERN.test(text) && !EXPLICIT_GAME_DEV_PATTERN.test(text)) {
96
+ const tools = new Set([
97
+ 'fs_read',
98
+ 'fs_write',
99
+ 'fs_edit',
100
+ 'fs_list',
101
+ 'fs_search',
102
+ 'sysRun',
103
+ 'update_plan',
104
+ 'tool_search'
105
+ ]);
106
+ return {
107
+ toolScope: tools,
108
+ archetype: 'simple_file_op',
109
+ suppressedPacks: ['media', 'game', 'web', 'advanced'],
110
+ reason: 'Simple filesystem operation; suppresses external domain packs.'
111
+ };
112
+ }
113
+ // Default: unconstrained (standard progressive disclosure and packs apply)
114
+ return {
115
+ toolScope: null,
116
+ archetype: 'generalist',
117
+ suppressedPacks: []
118
+ };
119
+ }
120
+ /**
121
+ * Filter out packs that have been explicitly suppressed for a given prompt intent.
122
+ */
123
+ export function filterSuppressedPacks(candidatePacks, prompt) {
124
+ const result = new Set();
125
+ const scopeResult = determineToolScope(prompt);
126
+ const suppressed = new Set(scopeResult.suppressedPacks);
127
+ for (const pack of candidatePacks) {
128
+ if (!suppressed.has(pack)) {
129
+ result.add(pack);
130
+ }
131
+ }
132
+ return result;
133
+ }
134
+ /**
135
+ * Resolve lazy playbooks. Discloses full multi-page mandates only when tools from that
136
+ * domain have been actively invoked or explicitly demanded. Otherwise generates micro-indicators.
137
+ */
138
+ export function resolveLazyPlaybooks(unlockedPacks, observedTools = [], prompt = '') {
139
+ const packs = new Set(unlockedPacks);
140
+ const tools = new Set(observedTools);
141
+ const text = prompt || '';
142
+ const activePlaybooks = [];
143
+ const microAnnouncements = [];
144
+ const activeDomains = [];
145
+ let tokenSavings = 0;
146
+ // 1. Web Domain
147
+ if (packs.has('web')) {
148
+ const webToolInvoked = tools.has('ui_forge') ||
149
+ tools.has('browser_act') ||
150
+ tools.has('vision_inspect_ui') ||
151
+ tools.has('screenshot') ||
152
+ tools.has('astryx_oracle');
153
+ const webExplicitDemand = EXPLICIT_WEB_ENGINEERING_PATTERN.test(text);
154
+ if ((webToolInvoked || webExplicitDemand) && PACK_PLAYBOOKS.web) {
155
+ activePlaybooks.push(PACK_PLAYBOOKS.web);
156
+ activeDomains.push('web');
157
+ }
158
+ else {
159
+ microAnnouncements.push('- web: browser automation & UI forge available on demand via tool_search.');
160
+ tokenSavings += Math.round((PACK_PLAYBOOKS.web?.length || 0) / 4);
161
+ }
162
+ }
163
+ // 2. Media Domain
164
+ if (packs.has('media')) {
165
+ const mediaToolInvoked = tools.has('blender_act') ||
166
+ tools.has('creative_apps') ||
167
+ tools.has('native_engine') ||
168
+ tools.has('execute_procedural_media') ||
169
+ tools.has('generate_media_via_api') ||
170
+ tools.has('open_source_tool_provisioner');
171
+ const mediaExplicitDemand = EXPLICIT_MEDIA_GENERATION_PATTERN.test(text);
172
+ if ((mediaToolInvoked || mediaExplicitDemand) && PACK_PLAYBOOKS.media) {
173
+ activePlaybooks.push(PACK_PLAYBOOKS.media);
174
+ activeDomains.push('media');
175
+ }
176
+ else {
177
+ microAnnouncements.push('- media: 3D Blender, audio synthesis & creative engines available on demand via tool_search.');
178
+ tokenSavings += Math.round((PACK_PLAYBOOKS.media?.length || 0) / 4);
179
+ }
180
+ }
181
+ // 3. Game Domain
182
+ if (packs.has('game')) {
183
+ const gameToolInvoked = tools.has('godot_act') ||
184
+ tools.has('game_build_html5') ||
185
+ tools.has('game_scene_build') ||
186
+ tools.has('game_asset_harvest');
187
+ const gameExplicitDemand = EXPLICIT_GAME_DEV_PATTERN.test(text);
188
+ if ((gameToolInvoked || gameExplicitDemand) && PACK_PLAYBOOKS.game) {
189
+ activePlaybooks.push(PACK_PLAYBOOKS.game);
190
+ activeDomains.push('game');
191
+ }
192
+ else {
193
+ microAnnouncements.push('- game: Godot 2D/3D & HTML5 game development cascade available on demand via tool_search.');
194
+ tokenSavings += Math.round((PACK_PLAYBOOKS.game?.length || 0) / 4);
195
+ }
196
+ }
197
+ return {
198
+ fullPlaybooks: activePlaybooks.join('\n\n'),
199
+ microAnnouncements: microAnnouncements.join('\n'),
200
+ activePlaybookDomains: activeDomains,
201
+ tokenSavingsEstimate: tokenSavings
202
+ };
203
+ }
@@ -0,0 +1,263 @@
1
+ /**
2
+ * @file src/smartToolsUse.ts
3
+ * SmartToolsUse & LazyPlaybook Engine.
4
+ *
5
+ * Provides intent-based tool preloading and lazy playbook disclosure.
6
+ * Other capabilities remain discoverable through tool_search.
7
+ *
8
+ * Authorship: Strict TypeScript (Causyne Agent).
9
+ */
10
+
11
+ import { PACK_PLAYBOOKS } from './toolPacks.js';
12
+
13
+ export interface SmartToolsScopeResult {
14
+ readonly toolScope: Set<string> | null;
15
+ readonly archetype: string;
16
+ readonly suppressedPacks: readonly string[];
17
+ readonly reason?: string;
18
+ }
19
+
20
+ export interface LazyPlaybookResult {
21
+ readonly fullPlaybooks: string;
22
+ readonly microAnnouncements: string;
23
+ readonly activePlaybookDomains: string[];
24
+ readonly tokenSavingsEstimate: number;
25
+ }
26
+
27
+ // ---------------------------------------------------------------------------
28
+ // Intent Matchers & Negative Filters
29
+ // ---------------------------------------------------------------------------
30
+
31
+ // Personalization / desktop actions (setting wallpaper, changing desktop background)
32
+ const DESKTOP_PERSONALIZATION_PATTERN =
33
+ /\b(desktop (picture|wallpaper|background|image)|set wallpaper|change wallpaper)\b/i;
34
+
35
+ // Pure web search / retrieval without UI/frontend construction
36
+ const PURE_WEB_SEARCH_PATTERN =
37
+ /\b(search(ing)? (the )?web|web search|look up online|find on google|brows(e|ing) (the )?web)\b/i;
38
+
39
+ const WEB_CONSTRUCTION_EXCLUSION =
40
+ /\b(build|create|make|design|develop|scaffold|code|program|css|html|tailwind|component|frontend|front-end|landing page|website|webpage|dashboard)\b/i;
41
+
42
+ // System admin / process & terminal operations
43
+ const SYSTEM_ADMIN_PATTERN =
44
+ /\b(kill process|kill port|check port|port \d+|lsof|ps aux|terminate process|zip folder|unzip file|extract archive|compress folder)\b/i;
45
+
46
+ // Simple file management operations
47
+ const SIMPLE_FILE_OP_PATTERN =
48
+ /\b(list (the )?files|show files|count files|rename file(s)?|delete file(s)?|move file(s)?|clean (up )?folder)\b/i;
49
+
50
+ // Media generation intent (explicit creation of 3D, video, audio, or synthesized speech)
51
+ const EXPLICIT_MEDIA_GENERATION_PATTERN =
52
+ /\b(blender|3d model|render 3d|render frame|render animation|da vinci|resolve|audio synth|synthesizer|text to speech|tts|voiceover|dubbing)\b/i;
53
+
54
+ // Explicit web engineering intent
55
+ const EXPLICIT_WEB_ENGINEERING_PATTERN =
56
+ /\b(build.*(website|webpage|landing page|dashboard|ui component|frontend)|create.*(website|webpage|landing page|dashboard|ui)|develop.*(website|web app|webapp))\b/i;
57
+
58
+ // Explicit game development intent
59
+ const EXPLICIT_GAME_DEV_PATTERN =
60
+ /\b(build.*game|create.*game|develop.*game|godot|unity|unreal|platformer 2d|rpg game|arcade game)\b/i;
61
+
62
+ /**
63
+ * Select tools to preload based on prompt intent. This is never an allowlist:
64
+ * tool_search can add capabilities as the task develops.
65
+ */
66
+ export function determineToolScope(
67
+ prompt: string,
68
+ _taskShape?: unknown
69
+ ): SmartToolsScopeResult {
70
+ const text = (prompt || '').trim();
71
+ if (!text) {
72
+ return { toolScope: null, archetype: 'empty', suppressedPacks: [] };
73
+ }
74
+
75
+ // 1. Desktop personalization (e.g. wallpaper / desktop background)
76
+ if (DESKTOP_PERSONALIZATION_PATTERN.test(text)) {
77
+ const tools = new Set([
78
+ 'sysRun',
79
+ 'web_search',
80
+ 'web_fetch',
81
+ 'fs_read',
82
+ 'fs_write',
83
+ 'fs_list',
84
+ 'update_plan',
85
+ 'tool_search'
86
+ ]);
87
+ return {
88
+ toolScope: tools,
89
+ archetype: 'desktop_personalization',
90
+ suppressedPacks: ['media', 'web', 'game', 'advanced', 'system'],
91
+ reason: 'Start with search and system execution; discover desktop or browser tools if direct execution is unsuitable.'
92
+ };
93
+ }
94
+
95
+ // 2. Pure web research (searching/fetching online information without web app construction)
96
+ if (PURE_WEB_SEARCH_PATTERN.test(text) && !WEB_CONSTRUCTION_EXCLUSION.test(text)) {
97
+ const tools = new Set([
98
+ 'web_search',
99
+ 'web_fetch',
100
+ 'sysRun',
101
+ 'fs_read',
102
+ 'fs_write',
103
+ 'update_plan',
104
+ 'tool_search'
105
+ ]);
106
+ return {
107
+ toolScope: tools,
108
+ archetype: 'web_research_only',
109
+ suppressedPacks: ['media', 'game', 'web', 'advanced'],
110
+ reason: 'Pure information retrieval requires web search tools; suppresses UI forge and creative packs.'
111
+ };
112
+ }
113
+
114
+ // 3. System process or archive administration
115
+ if (SYSTEM_ADMIN_PATTERN.test(text)) {
116
+ const tools = new Set([
117
+ 'sysRun',
118
+ 'proc_term',
119
+ 'process_list',
120
+ 'archive',
121
+ 'fs_read',
122
+ 'fs_list',
123
+ 'update_plan',
124
+ 'tool_search'
125
+ ]);
126
+ return {
127
+ toolScope: tools,
128
+ archetype: 'system_admin',
129
+ suppressedPacks: ['media', 'game', 'web'],
130
+ reason: 'System administration uses process and archive utilities; suppresses creative packs.'
131
+ };
132
+ }
133
+
134
+ // 4. Simple local file manipulation
135
+ if (SIMPLE_FILE_OP_PATTERN.test(text) && !EXPLICIT_WEB_ENGINEERING_PATTERN.test(text) && !EXPLICIT_GAME_DEV_PATTERN.test(text)) {
136
+ const tools = new Set([
137
+ 'fs_read',
138
+ 'fs_write',
139
+ 'fs_edit',
140
+ 'fs_list',
141
+ 'fs_search',
142
+ 'sysRun',
143
+ 'update_plan',
144
+ 'tool_search'
145
+ ]);
146
+ return {
147
+ toolScope: tools,
148
+ archetype: 'simple_file_op',
149
+ suppressedPacks: ['media', 'game', 'web', 'advanced'],
150
+ reason: 'Simple filesystem operation; suppresses external domain packs.'
151
+ };
152
+ }
153
+
154
+ // Default: unconstrained (standard progressive disclosure and packs apply)
155
+ return {
156
+ toolScope: null,
157
+ archetype: 'generalist',
158
+ suppressedPacks: []
159
+ };
160
+ }
161
+
162
+ /**
163
+ * Filter out packs that have been explicitly suppressed for a given prompt intent.
164
+ */
165
+ export function filterSuppressedPacks(
166
+ candidatePacks: Iterable<string>,
167
+ prompt: string
168
+ ): Set<string> {
169
+ const result = new Set<string>();
170
+ const scopeResult = determineToolScope(prompt);
171
+ const suppressed = new Set(scopeResult.suppressedPacks);
172
+
173
+ for (const pack of candidatePacks) {
174
+ if (!suppressed.has(pack)) {
175
+ result.add(pack);
176
+ }
177
+ }
178
+
179
+ return result;
180
+ }
181
+
182
+ /**
183
+ * Resolve lazy playbooks. Discloses full multi-page mandates only when tools from that
184
+ * domain have been actively invoked or explicitly demanded. Otherwise generates micro-indicators.
185
+ */
186
+ export function resolveLazyPlaybooks(
187
+ unlockedPacks: Iterable<string>,
188
+ observedTools: Iterable<string> = [],
189
+ prompt = ''
190
+ ): LazyPlaybookResult {
191
+ const packs = new Set(unlockedPacks);
192
+ const tools = new Set(observedTools);
193
+ const text = prompt || '';
194
+
195
+ const activePlaybooks: string[] = [];
196
+ const microAnnouncements: string[] = [];
197
+ const activeDomains: string[] = [];
198
+ let tokenSavings = 0;
199
+
200
+ // 1. Web Domain
201
+ if (packs.has('web')) {
202
+ const webToolInvoked =
203
+ tools.has('ui_forge') ||
204
+ tools.has('browser_act') ||
205
+ tools.has('vision_inspect_ui') ||
206
+ tools.has('screenshot') ||
207
+ tools.has('astryx_oracle');
208
+ const webExplicitDemand = EXPLICIT_WEB_ENGINEERING_PATTERN.test(text);
209
+
210
+ if ((webToolInvoked || webExplicitDemand) && PACK_PLAYBOOKS.web) {
211
+ activePlaybooks.push(PACK_PLAYBOOKS.web);
212
+ activeDomains.push('web');
213
+ } else {
214
+ microAnnouncements.push('- web: browser automation & UI forge available on demand via tool_search.');
215
+ tokenSavings += Math.round((PACK_PLAYBOOKS.web?.length || 0) / 4);
216
+ }
217
+ }
218
+
219
+ // 2. Media Domain
220
+ if (packs.has('media')) {
221
+ const mediaToolInvoked =
222
+ tools.has('blender_act') ||
223
+ tools.has('creative_apps') ||
224
+ tools.has('native_engine') ||
225
+ tools.has('execute_procedural_media') ||
226
+ tools.has('generate_media_via_api') ||
227
+ tools.has('open_source_tool_provisioner');
228
+ const mediaExplicitDemand = EXPLICIT_MEDIA_GENERATION_PATTERN.test(text);
229
+
230
+ if ((mediaToolInvoked || mediaExplicitDemand) && PACK_PLAYBOOKS.media) {
231
+ activePlaybooks.push(PACK_PLAYBOOKS.media);
232
+ activeDomains.push('media');
233
+ } else {
234
+ microAnnouncements.push('- media: 3D Blender, audio synthesis & creative engines available on demand via tool_search.');
235
+ tokenSavings += Math.round((PACK_PLAYBOOKS.media?.length || 0) / 4);
236
+ }
237
+ }
238
+
239
+ // 3. Game Domain
240
+ if (packs.has('game')) {
241
+ const gameToolInvoked =
242
+ tools.has('godot_act') ||
243
+ tools.has('game_build_html5') ||
244
+ tools.has('game_scene_build') ||
245
+ tools.has('game_asset_harvest');
246
+ const gameExplicitDemand = EXPLICIT_GAME_DEV_PATTERN.test(text);
247
+
248
+ if ((gameToolInvoked || gameExplicitDemand) && PACK_PLAYBOOKS.game) {
249
+ activePlaybooks.push(PACK_PLAYBOOKS.game);
250
+ activeDomains.push('game');
251
+ } else {
252
+ microAnnouncements.push('- game: Godot 2D/3D & HTML5 game development cascade available on demand via tool_search.');
253
+ tokenSavings += Math.round((PACK_PLAYBOOKS.game?.length || 0) / 4);
254
+ }
255
+ }
256
+
257
+ return {
258
+ fullPlaybooks: activePlaybooks.join('\n\n'),
259
+ microAnnouncements: microAnnouncements.join('\n'),
260
+ activePlaybookDomains: activeDomains,
261
+ tokenSavingsEstimate: tokenSavings
262
+ };
263
+ }
package/src/taskShape.js CHANGED
@@ -1,19 +1,19 @@
1
1
  const PACK_SIGNALS = {
2
2
  game: {
3
- strong: ['game', 'gamedev', 'permainan', 'godot', 'unity', 'unreal', 'rpg', 'platformer', 'roguelike', 'arcade', 'voxel', 'minecraft', 'tilemap', 'spritesheet', 'boss fight', 'level design'],
3
+ strong: ['game', 'gamedev', 'godot', 'unity', 'unreal', 'rpg', 'platformer', 'roguelike', 'arcade', 'voxel', 'minecraft', 'tilemap', 'spritesheet', 'boss fight', 'level design'],
4
4
  weak: ['sprite', 'player', 'enemy', 'quest', 'npc', 'gameplay', 'multiplayer', 'leaderboard']
5
5
  },
6
6
  web: {
7
- strong: ['web app', 'webapp', 'website', 'situs', 'landing page', 'homepage', 'frontend', 'front-end', 'dashboard', 'portfolio', 'react', 'vue', 'svelte', 'angular', 'nextjs', 'next.js', 'nuxt', 'astro', 'tailwind', 'html', 'css'],
8
- weak: ['web', 'ui', 'ux', 'page', 'halaman', 'responsive', 'browser', 'dom', 'component', 'layout', 'design', 'desain', 'tampilan']
7
+ strong: ['web app', 'webapp', 'website', 'landing page', 'homepage', 'frontend', 'front-end', 'dashboard', 'portfolio', 'react', 'vue', 'svelte', 'angular', 'nextjs', 'next.js', 'nuxt', 'astro', 'tailwind', 'html', 'css'],
8
+ weak: ['web', 'ui', 'ux', 'page', 'responsive', 'browser', 'dom', 'component', 'layout', 'design']
9
9
  },
10
10
  media: {
11
- strong: ['generate image', 'generate video', 'generate music', 'text to speech', 'voiceover', 'blender', 'davinci', 'resolve', 'render', '3d model', 'animation', 'animasi'],
12
- weak: ['image', 'gambar', 'photo', 'foto', 'video', 'audio', 'sound', 'suara', 'music', 'musik', 'lagu', 'thumbnail', 'poster', 'logo', 'illustration']
11
+ strong: ['generate image', 'generate video', 'generate music', 'text to speech', 'voiceover', 'blender', 'davinci', 'resolve', 'render', '3d model', 'animation'],
12
+ weak: ['image', 'photo', 'video', 'audio', 'sound', 'music', 'thumbnail', 'poster', 'logo', 'illustration']
13
13
  },
14
14
  system: {
15
- strong: ['kill process', 'port', 'zip', 'unzip', 'tar', 'archive', 'clipboard', 'printer', 'print', 'cetak'],
16
- weak: ['process', 'proses', 'compress', 'extract', 'ekstrak', 'open app', 'launch']
15
+ strong: ['kill process', 'port', 'zip', 'unzip', 'tar', 'archive', 'clipboard', 'printer', 'print'],
16
+ weak: ['process', 'compress', 'extract', 'open app', 'launch']
17
17
  },
18
18
  advanced: {
19
19
  strong: ['pdf', 'forge a tool', 'custom tool', 'plugin', 'plugins', 'custom plugin', 'subagent', 'sub-agent', 'parallel agent'],
package/src/taskShape.ts CHANGED
@@ -18,20 +18,20 @@ interface ArchetypeDefinition {
18
18
 
19
19
  const PACK_SIGNALS: Record<string, SignalSet> = {
20
20
  game: {
21
- strong: ['game', 'gamedev', 'permainan', 'godot', 'unity', 'unreal', 'rpg', 'platformer', 'roguelike', 'arcade', 'voxel', 'minecraft', 'tilemap', 'spritesheet', 'boss fight', 'level design'],
21
+ strong: ['game', 'gamedev', 'godot', 'unity', 'unreal', 'rpg', 'platformer', 'roguelike', 'arcade', 'voxel', 'minecraft', 'tilemap', 'spritesheet', 'boss fight', 'level design'],
22
22
  weak: ['sprite', 'player', 'enemy', 'quest', 'npc', 'gameplay', 'multiplayer', 'leaderboard']
23
23
  },
24
24
  web: {
25
- strong: ['web app', 'webapp', 'website', 'situs', 'landing page', 'homepage', 'frontend', 'front-end', 'dashboard', 'portfolio', 'react', 'vue', 'svelte', 'angular', 'nextjs', 'next.js', 'nuxt', 'astro', 'tailwind', 'html', 'css'],
26
- weak: ['web', 'ui', 'ux', 'page', 'halaman', 'responsive', 'browser', 'dom', 'component', 'layout', 'design', 'desain', 'tampilan']
25
+ strong: ['web app', 'webapp', 'website', 'landing page', 'homepage', 'frontend', 'front-end', 'dashboard', 'portfolio', 'react', 'vue', 'svelte', 'angular', 'nextjs', 'next.js', 'nuxt', 'astro', 'tailwind', 'html', 'css'],
26
+ weak: ['web', 'ui', 'ux', 'page', 'responsive', 'browser', 'dom', 'component', 'layout', 'design']
27
27
  },
28
28
  media: {
29
- strong: ['generate image', 'generate video', 'generate music', 'text to speech', 'voiceover', 'blender', 'davinci', 'resolve', 'render', '3d model', 'animation', 'animasi'],
30
- weak: ['image', 'gambar', 'photo', 'foto', 'video', 'audio', 'sound', 'suara', 'music', 'musik', 'lagu', 'thumbnail', 'poster', 'logo', 'illustration']
29
+ strong: ['generate image', 'generate video', 'generate music', 'text to speech', 'voiceover', 'blender', 'davinci', 'resolve', 'render', '3d model', 'animation'],
30
+ weak: ['image', 'photo', 'video', 'audio', 'sound', 'music', 'thumbnail', 'poster', 'logo', 'illustration']
31
31
  },
32
32
  system: {
33
- strong: ['kill process', 'port', 'zip', 'unzip', 'tar', 'archive', 'clipboard', 'printer', 'print', 'cetak'],
34
- weak: ['process', 'proses', 'compress', 'extract', 'ekstrak', 'open app', 'launch']
33
+ strong: ['kill process', 'port', 'zip', 'unzip', 'tar', 'archive', 'clipboard', 'printer', 'print'],
34
+ weak: ['process', 'compress', 'extract', 'open app', 'launch']
35
35
  },
36
36
  advanced: {
37
37
  strong: ['pdf', 'forge a tool', 'custom tool', 'plugin', 'plugins', 'custom plugin', 'subagent', 'sub-agent', 'parallel agent'],
package/src/toolPacks.js CHANGED
@@ -367,15 +367,15 @@ When the user asks you to build, create, test, expand, or develop a game, follow
367
367
  // raw prompt only.
368
368
  // ---------------------------------------------------------------------------
369
369
 
370
- const GAME_INTENT = /\b(game|games|gamedev|permainan|godot|unity|unreal|rpg|platformer|roguelike|arcade|sprite|spritesheet|tilemap|voxel|minecraft|aetheria|voxellia|nes|snes|gameplay|player character|level design|boss fight)\b|\.(tscn|gd)\b/i;
370
+ const GAME_INTENT = /\b(game|games|gamedev|godot|unity|unreal|rpg|platformer|roguelike|arcade|sprite|spritesheet|tilemap|voxel|minecraft|aetheria|voxellia|nes|snes|gameplay|player character|level design|boss fight)\b|\.(tscn|gd)\b/i;
371
371
 
372
- const WEB_INTENT = /\b(web|webpage|website|situs|frontend|front-end|landing page|homepage|dashboard|portfolio|html|css|scss|tailwind|bootstrap|react|vue|svelte|angular|next\.?js|nuxt|astro|ui|ux|user interface|web app|webapp|spa|dom|responsive|ui forge|component forge|component generation|ui component)\b/i;
372
+ const WEB_INTENT = /\b(web|webpage|website|frontend|front-end|landing page|homepage|dashboard|portfolio|html|css|scss|tailwind|bootstrap|react|vue|svelte|angular|next\.?js|nuxt|astro|ui|ux|user interface|web app|webapp|spa|dom|responsive|ui forge|component forge|component generation|ui component)\b/i;
373
373
 
374
- const MEDIA_INTENT = /\b(image|images|picture|photo|gambar|render|3d model|blender|animation|animate|video|movie|film|klip|audio|sound|sfx|music|musik|song|lagu|voice|suara|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b/i;
374
+ const MEDIA_INTENT = /\b(image|images|picture|photo|render|3d model|blender|animation|animate|video|movie|film|audio|sound|sfx|music|song|voice|tts|text.to.speech|narration|podcast|thumbnail|poster|illustration|logo)\b/i;
375
375
 
376
- const SYSTEM_INTENT = /\b(process|processes|pid|kill|port|zip|unzip|tar|archive|compress|extract|clipboard|copy to clipboard|print|printer|cetak|open in browser|launch app|computer use|vision grounding|desktop vision|gui agent|coordinate click|desktop control)\b/i;
376
+ const SYSTEM_INTENT = /\b(process|processes|pid|kill|port|zip|unzip|tar|archive|compress|extract|clipboard|copy to clipboard|print|printer|open in browser|launch app|computer use|vision grounding|desktop vision|gui agent|coordinate click|desktop control)\b/i;
377
377
 
378
- const ADVANCED_INTENT = /\b(pdf|document|proposal|dokumen|screenplay|naskah|shotlist|shot list|voiceover|dubbing|forge a tool|custom tool|new tool|plugin|plugins|custom plugin|subagent|sub-agent|parallel agent|swarm|ast|symbols|refactor across)\b/i;
378
+ const ADVANCED_INTENT = /\b(pdf|document|proposal|screenplay|shotlist|shot list|voiceover|dubbing|forge a tool|custom tool|new tool|plugin|plugins|custom plugin|subagent|sub-agent|parallel agent|swarm|ast|symbols|refactor across)\b/i;
379
379
 
380
380
  const INTENT_MATCHERS = {
381
381
  game: GAME_INTENT,