faceted-prompting 0.2.0 → 0.3.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.
Files changed (58) hide show
  1. package/README.md +29 -5
  2. package/dist/cli/compose-command.d.ts +3 -0
  3. package/dist/cli/compose-command.d.ts.map +1 -0
  4. package/dist/cli/compose-command.js +156 -0
  5. package/dist/cli/compose-command.js.map +1 -0
  6. package/dist/cli/compose-context.js +3 -3
  7. package/dist/cli/compose-context.js.map +1 -1
  8. package/dist/cli/index.d.ts.map +1 -1
  9. package/dist/cli/index.js +21 -89
  10. package/dist/cli/index.js.map +1 -1
  11. package/dist/cli/install-skill/facet-token-file-ops.d.ts +7 -0
  12. package/dist/cli/install-skill/facet-token-file-ops.d.ts.map +1 -0
  13. package/dist/cli/install-skill/facet-token-file-ops.js +69 -0
  14. package/dist/cli/install-skill/facet-token-file-ops.js.map +1 -0
  15. package/dist/cli/install-skill/facet-token-renderer.d.ts +6 -0
  16. package/dist/cli/install-skill/facet-token-renderer.d.ts.map +1 -0
  17. package/dist/cli/install-skill/facet-token-renderer.js +35 -0
  18. package/dist/cli/install-skill/facet-token-renderer.js.map +1 -0
  19. package/dist/cli/install-skill/facets.d.ts +6 -3
  20. package/dist/cli/install-skill/facets.d.ts.map +1 -1
  21. package/dist/cli/install-skill/facets.js +33 -15
  22. package/dist/cli/install-skill/facets.js.map +1 -1
  23. package/dist/cli/install-skill/flow.d.ts +3 -3
  24. package/dist/cli/install-skill/flow.d.ts.map +1 -1
  25. package/dist/cli/install-skill/flow.js +115 -21
  26. package/dist/cli/install-skill/flow.js.map +1 -1
  27. package/dist/cli/install-skill/modes.d.ts +2 -10
  28. package/dist/cli/install-skill/modes.d.ts.map +1 -1
  29. package/dist/cli/install-skill/modes.js +18 -45
  30. package/dist/cli/install-skill/modes.js.map +1 -1
  31. package/dist/cli/path-guard.d.ts +1 -0
  32. package/dist/cli/path-guard.d.ts.map +1 -1
  33. package/dist/cli/path-guard.js +34 -2
  34. package/dist/cli/path-guard.js.map +1 -1
  35. package/dist/cli/runner.d.ts +1 -0
  36. package/dist/cli/runner.d.ts.map +1 -1
  37. package/dist/cli/runner.js +11 -0
  38. package/dist/cli/runner.js.map +1 -1
  39. package/dist/cli/skill-commands.d.ts +13 -4
  40. package/dist/cli/skill-commands.d.ts.map +1 -1
  41. package/dist/cli/skill-commands.js +66 -15
  42. package/dist/cli/skill-commands.js.map +1 -1
  43. package/dist/cli/skill-renderer.d.ts +7 -4
  44. package/dist/cli/skill-renderer.d.ts.map +1 -1
  45. package/dist/cli/skill-renderer.js +48 -21
  46. package/dist/cli/skill-renderer.js.map +1 -1
  47. package/dist/cli/update-check.d.ts +2 -0
  48. package/dist/cli/update-check.d.ts.map +1 -0
  49. package/dist/cli/update-check.js +32 -0
  50. package/dist/cli/update-check.js.map +1 -0
  51. package/dist/init/index.d.ts +5 -1
  52. package/dist/init/index.d.ts.map +1 -1
  53. package/dist/init/index.js +36 -19
  54. package/dist/init/index.js.map +1 -1
  55. package/dist/prompt-payload.d.ts +2 -1
  56. package/dist/prompt-payload.d.ts.map +1 -1
  57. package/dist/prompt-payload.js.map +1 -1
  58. package/package.json +8 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "faceted-prompting",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
4
4
  "description": "Faceted Prompting — structured prompt composition for LLMs",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -27,8 +27,12 @@
27
27
  "test:e2e": "tmp=\"$(mktemp -t faceted-prompting-e2e.XXXXXX)\"; mkdir -p e2e/results; npm run test:e2e:cli >\"$tmp\" 2>&1; code=$?; cat \"$tmp\"; rm -f \"$tmp\"; if [ \"$code\" -eq 0 ]; then msg='test:e2e passed'; else msg=\"test:e2e failed (exit=$code)\"; fi; if command -v osascript >/dev/null 2>&1; then osascript -e \"display notification \\\"$msg\\\" with title \\\"faceted-prompting\\\" subtitle \\\"E2E\\\"\" >/dev/null 2>&1 || true; fi; echo \"[faceted-prompting] $msg\"; exit $code",
28
28
  "test:e2e:cli": "vitest run --config vitest.config.e2e.ts --outputFile.json=e2e/results/cli.json",
29
29
  "lint": "eslint src/",
30
+ "pack:check": "npm_config_cache=/tmp/.npm-faceted npm pack --dry-run",
31
+ "smoke:pack": "tmp=\"$(mktemp -d -t faceted-prompting-pack.XXXXXX)\"; npm_config_cache=/tmp/.npm-faceted npm pack --pack-destination \"$tmp\" >/dev/null; tarball=\"$(find \"$tmp\" -maxdepth 1 -name '*.tgz' -print -quit)\"; npm_config_cache=/tmp/.npm-faceted npm install --no-audit --fund=false --ignore-scripts --prefix \"$tmp/install\" \"$tarball\" >/dev/null; cd \"$tmp/install\" && node --input-type=module -e \"const pkg = await import('faceted-prompting'); if (typeof pkg.compose !== 'function') throw new Error('compose export missing');\" && test -x ./node_modules/.bin/facet; rm -rf \"$tmp\"",
32
+ "verify:release": "npm run build && npm run lint && npm run test:unit && npm run test:e2e && npm run pack:check && npm run smoke:pack",
30
33
  "check:release": "npm run build && npm run lint && npm run test:unit && npm run test:e2e; code=$?; if [ \"$code\" -eq 0 ]; then msg='check:release passed'; else msg=\"check:release failed (exit=$code)\"; fi; if command -v osascript >/dev/null 2>&1; then osascript -e \"display notification \\\"$msg\\\" with title \\\"faceted-prompting\\\" subtitle \\\"Release Check\\\"\" >/dev/null 2>&1 || true; fi; echo \"[faceted-prompting] $msg\"; exit $code",
31
- "prepublishOnly": "npm run build && npm run test"
34
+ "prepack": "npm run build",
35
+ "prepublishOnly": "npm run verify:release"
32
36
  },
33
37
  "keywords": [
34
38
  "prompt",
@@ -45,10 +49,12 @@
45
49
  "@types/node": "^22.19.11",
46
50
  "eslint": "^9.0.0",
47
51
  "typescript": "^5.9.3",
52
+ "typescript-eslint": "^8.57.0",
48
53
  "vitest": "^3.2.4"
49
54
  },
50
55
  "dependencies": {
51
56
  "traced-config": "^0.1.0",
57
+ "update-notifier": "^7.3.1",
52
58
  "yaml": "^2.8.1"
53
59
  }
54
60
  }