@arnilo/prism 0.5.5 → 0.6.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 (71) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +10 -10
  3. package/dist/agent-approval.js +7 -6
  4. package/dist/agent-loops.js +51 -12
  5. package/dist/agent-session/session.d.ts +1 -0
  6. package/dist/agent-session/session.js +20 -2
  7. package/dist/agent-tool-dispatch.js +5 -4
  8. package/dist/cli-runner.d.ts +8 -1
  9. package/dist/cli-runner.js +97 -7
  10. package/dist/content.d.ts +3 -16
  11. package/dist/content.js +9 -99
  12. package/dist/context-budget.d.ts +12 -1
  13. package/dist/context-budget.js +42 -19
  14. package/dist/contracts-core/agent.d.ts +11 -0
  15. package/dist/contracts-core/agent.js +4 -1
  16. package/dist/extensions.d.ts +18 -1
  17. package/dist/extensions.js +10 -0
  18. package/dist/index.d.ts +6 -6
  19. package/dist/index.js +4 -4
  20. package/dist/input.d.ts +6 -0
  21. package/dist/input.js +12 -1
  22. package/dist/media-types.d.ts +34 -0
  23. package/dist/media-types.js +158 -0
  24. package/dist/pinned-fetch.d.ts +2 -2
  25. package/dist/pinned-fetch.js +11 -12
  26. package/dist/redaction.js +74 -1
  27. package/dist/session-stores.d.ts +11 -0
  28. package/dist/session-stores.js +23 -8
  29. package/docs/acp.md +1 -1
  30. package/docs/ag-ui.md +4 -2
  31. package/docs/agent-events.md +2 -0
  32. package/docs/agent-loops.md +1 -1
  33. package/docs/agent-session-runtime.md +3 -1
  34. package/docs/browser-automation.md +5 -2
  35. package/docs/cli-rpc.md +15 -1
  36. package/docs/contributing.md +37 -0
  37. package/docs/core.md +2 -0
  38. package/docs/document-reader.md +2 -0
  39. package/docs/documents.md +1 -1
  40. package/docs/extension-authoring.md +8 -9
  41. package/docs/extensions.md +13 -1
  42. package/docs/graft.md +29 -5
  43. package/docs/history/release-handoffs.md +33 -0
  44. package/docs/host-security.md +2 -2
  45. package/docs/index.md +33 -17
  46. package/docs/input-and-prompt-assembly.md +4 -4
  47. package/docs/language-intelligence.md +1 -1
  48. package/docs/migrate-to-0.5.md +7 -2
  49. package/docs/migrate-to-0.6.md +89 -0
  50. package/docs/migration.md +30 -0
  51. package/docs/model-registry.md +1 -1
  52. package/docs/multimodal-content.md +1 -1
  53. package/docs/obscura.md +3 -1
  54. package/docs/options-index.md +286 -0
  55. package/docs/peer-dependencies.md +94 -0
  56. package/docs/performance.md +34 -2
  57. package/docs/ponytail.md +2 -0
  58. package/docs/postgres-persistence.md +3 -1
  59. package/docs/provider-conformance.md +1 -1
  60. package/docs/provider-packages.md +21 -21
  61. package/docs/provider-primitives.md +2 -1
  62. package/docs/providers/ai-sdk.md +5 -2
  63. package/docs/public-contracts.md +2 -2
  64. package/docs/release-and-install.md +75 -55
  65. package/docs/server.md +1 -1
  66. package/docs/session-stores.md +3 -1
  67. package/docs/sqlite-persistence.md +2 -0
  68. package/docs/testing.md +38 -0
  69. package/docs/tools.md +1 -1
  70. package/docs/wiki.md +47 -3
  71. package/package.json +5 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@arnilo/prism",
3
- "version": "0.5.5",
3
+ "version": "0.6.0",
4
4
  "description": "Agent harness for AI providers, agents, sessions, and tools.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
@@ -139,7 +139,7 @@
139
139
  "typecheck": "npm run build && npm run typecheck --workspaces --if-present && tsc -p examples --noEmit",
140
140
  "sweep:unused": "node scripts/sweep-unused.mjs --json",
141
141
  "test:live": "node scripts/live-matrix.mjs",
142
- "test": "npm run build && node scripts/with-build-lock.mjs node --test dist/__tests__/*.test.js && node scripts/with-build-lock.mjs node --test scripts/release-gate.test.mjs scripts/tooling-gate.test.mjs scripts/budget-gate.test.mjs scripts/phase8-conformance.test.mjs scripts/phase9-conformance.test.mjs scripts/phase10-conformance.test.mjs scripts/phase11-conformance.test.mjs scripts/benchmark-0.1.0.test.mjs scripts/benchmark-multi-agent.test.mjs scripts/benchmark-tool-search.test.mjs scripts/benchmark-workflow-loop.test.mjs scripts/sweep-unused.test.mjs scripts/dead-export-verify.test.mjs scripts/e2e-enterprise-journey.test.mjs scripts/e2e-coding-journey.test.mjs scripts/e2e-full-surface.test.mjs scripts/phase23-quality-gates.test.mjs scripts/phase24-truth.test.mjs scripts/phase25-bounded-accumulation.test.mjs scripts/phase27-ha.test.mjs scripts/phase27-erp-journey.test.mjs scripts/phase37-provider-matrix.test.mjs scripts/phase26-index-benchmark.test.mjs scripts/obscura-host-conformance.test.mjs scripts/phase54-package-map.test.mjs scripts/phase54-legacy-registry.test.mjs scripts/truth-current.test.mjs scripts/packaging-current.test.mjs scripts/import-hygiene.test.mjs scripts/live-matrix.test.mjs scripts/e2e-coverage.test.mjs scripts/live-doc-check.test.mjs && node --test scripts/phase23-build-race.test.mjs && npm run test --workspaces --if-present",
142
+ "test": "node scripts/run-all-tests.mjs",
143
143
  "test:coverage": "node scripts/with-build-lock.mjs node --test --experimental-test-coverage --test-coverage-lines=60 --test-coverage-functions=70 --test-coverage-branches=75 --test-coverage-exclude='**/__tests__/**' --test-coverage-exclude='**/node_modules/**' --test-coverage-exclude='**/scripts/**' --test-coverage-exclude='**/packages/**' --test-coverage-exclude='**/examples/**' dist/__tests__/*.test.js && node scripts/with-build-lock.mjs node scripts/coverage-summary.mjs && node --test scripts/phase23-coverage.test.mjs && node --test scripts/phase23-skip-manifest.test.mjs",
144
144
  "coverage:summary": "node scripts/with-build-lock.mjs node scripts/coverage-summary.mjs",
145
145
  "lint": "biome lint . --reporter=sarif --reporter-file=scripts/lint-report.sarif",
@@ -157,12 +157,12 @@
157
157
  "security:threat-suites": "node --test scripts/phase8-conformance.test.mjs scripts/phase9-conformance.test.mjs scripts/phase10-conformance.test.mjs scripts/phase11-conformance.test.mjs scripts/phase20-security.test.mjs scripts/phase21-security.test.mjs scripts/phase22-security.test.mjs scripts/phase23-security.test.mjs scripts/phase38-codeql-regression.test.mjs scripts/phase40-security.test.mjs scripts/phase46-webhooks-security.test.mjs dist/__tests__/pinned-fetch.test.js packages/prism-core/dist/runtime/server/__tests__/webhooks.test.js"
158
158
  },
159
159
  "devDependencies": {
160
- "@biomejs/biome": "^2.5.11",
161
- "@types/node": "^26.1.1",
160
+ "@biomejs/biome": "^2.5.13",
161
+ "@types/node": "^22.20.0",
162
162
  "typescript": "^7.0.2"
163
163
  },
164
164
  "engines": {
165
- "node": ">=20"
165
+ "node": ">=22"
166
166
  },
167
167
  "license": "MIT",
168
168
  "repository": {