taskmonkey-cli 0.9.0 → 0.9.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "taskmonkey-cli",
3
- "version": "0.9.0",
3
+ "version": "0.9.1",
4
4
  "description": "TaskMonkey CLI — Remote dev tools for tenant config editing and tool testing",
5
5
  "bin": {
6
6
  "tm": "./bin/tm.js",
package/skills/gitignore CHANGED
@@ -1,6 +1,7 @@
1
1
  .tmrc
2
2
  .claude/
3
3
  docs/
4
+ shared/
4
5
  CLAUDE.md
5
6
  AGENTS.md
6
7
  node_modules/
@@ -38,11 +38,15 @@ export async function pull() {
38
38
 
39
39
  // Write docs if available
40
40
  if (docs?.files) {
41
- const docsDir = join(config._configDir, 'docs');
42
- mkdirSync(docsDir, { recursive: true });
43
41
  for (const [name, content] of Object.entries(docs.files)) {
44
- writeFileSync(join(docsDir, name), content);
45
- console.log(chalk.gray(` docs/${name}`));
42
+ // shared/ files go to shared/, docs go to docs/
43
+ const targetDir = name.startsWith('shared/')
44
+ ? join(config._configDir, 'shared')
45
+ : join(config._configDir, 'docs');
46
+ const fileName = name.startsWith('shared/') ? name.substring(7) : name;
47
+ mkdirSync(targetDir, { recursive: true });
48
+ writeFileSync(join(targetDir, fileName), content);
49
+ console.log(chalk.gray(` ${name.startsWith('shared/') ? 'shared' : 'docs'}/${fileName}`));
46
50
  written++;
47
51
  }
48
52
  }
@@ -414,6 +418,23 @@ Key konvertieren: \`ssh-keygen -p -m PEM -P "passphrase" -N "" -f key\`
414
418
 
415
419
  Siehe \`docs/DatabaseGateway.md\` für Troubleshooting und vollständige Feld-Referenz.
416
420
 
421
+ ## Shared Prompts (CMS-Wissen)
422
+
423
+ Im \`shared/\` Ordner liegen vorgefertigte Prompt-Fragmente mit CMS-Wissen (Tabellenstrukturen, Serialisierungsformate etc.).
424
+
425
+ Einbinden im Task-Prompt per PHP:
426
+ \`\`\`php
427
+ 'monkey_tasks.website.prompt' => file_get_contents(__DIR__ . '/../../_shared/tools/database/prompts_contao.php')
428
+ . <<<'PROMPT'
429
+ Zusätzliche Anweisungen für diesen spezifischen Task...
430
+ PROMPT,
431
+ \`\`\`
432
+
433
+ Oder den Inhalt aus \`shared/prompts_contao.php\` manuell in den Prompt kopieren.
434
+
435
+ Verfügbare Shared Prompts (nach \`tm pull\` in \`shared/\`):
436
+ - \`prompts_contao.php\` — Contao 4.x Tabellenstrukturen (tl_page, tl_article, tl_content, tl_news, tl_calendar_events, tl_files) + PHP-Serialisierung
437
+
417
438
  Siehe \`docs/DatabaseGateway.md\` für die vollständige Dokumentation inkl. SQL-Beispiele und CMS-Tabellen.
418
439
 
419
440
  ## Conversation Tests