@arnilo/prism 0.11.1 → 0.12.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 (89) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/README.md +28 -27
  3. package/dist/cli-dev.js +1 -1
  4. package/dist/cli-init.js +4 -4
  5. package/dist/cli-provider-add.js +2 -2
  6. package/dist/field-evidence.d.ts +53 -0
  7. package/dist/field-evidence.js +143 -0
  8. package/dist/index.d.ts +3 -1
  9. package/dist/index.js +2 -1
  10. package/dist/run-bundle.js +2 -2
  11. package/docs/acp-agent.md +2 -2
  12. package/docs/ag-ui.md +1 -1
  13. package/docs/attention-compiler.md +1 -1
  14. package/docs/cli-rpc.md +2 -2
  15. package/docs/coding-tools.md +3 -3
  16. package/docs/compaction-observational-memory.md +13 -3
  17. package/docs/computer-use-linux.md +2 -2
  18. package/docs/core.md +9 -10
  19. package/docs/dev-inspector.md +1 -1
  20. package/docs/disaster-recovery.md +1 -1
  21. package/docs/document-extraction.md +140 -0
  22. package/docs/evaluations.md +1 -1
  23. package/docs/execution-timeline.md +30 -0
  24. package/docs/guardrails.md +53 -0
  25. package/docs/history/130-cyclic-workflows-primitive-review.md +293 -0
  26. package/docs/history/132-document-ingestion-primitive-review.md +124 -0
  27. package/docs/history/README.md +2 -0
  28. package/docs/history/migrate-to-0.12.0.md +57 -0
  29. package/docs/history/retire-node-runtime.md +59 -0
  30. package/docs/hooks.md +1 -1
  31. package/docs/host-compositions.md +2 -2
  32. package/docs/host-security.md +1 -1
  33. package/docs/index.md +29 -25
  34. package/docs/live-testing.md +1 -1
  35. package/docs/mcp-tools.md +2 -2
  36. package/docs/messaging-channels.md +1 -1
  37. package/docs/migrate-to-0.7.md +1 -1
  38. package/docs/migrate-to-0.8.md +2 -2
  39. package/docs/migrate-to-0.9.md +1 -1
  40. package/docs/migration.md +2 -2
  41. package/docs/model-registry.md +1 -1
  42. package/docs/model-routing.md +21 -0
  43. package/docs/multi-agent-patterns.md +77 -4
  44. package/docs/obscura.md +1 -1
  45. package/docs/openapi-tools.md +1 -1
  46. package/docs/operations.md +2 -2
  47. package/docs/peer-dependencies.md +18 -17
  48. package/docs/performance.md +32 -32
  49. package/docs/prompt-registry.md +1 -1
  50. package/docs/provider-packages.md +22 -22
  51. package/docs/providers/decisions.md +134 -0
  52. package/docs/providers/laya.md +3 -0
  53. package/docs/providers/typesafe.md +5 -2
  54. package/docs/rag.md +17 -5
  55. package/docs/release-and-install.md +118 -114
  56. package/docs/run-bundle.md +4 -0
  57. package/docs/runs-and-usage.md +1 -1
  58. package/docs/signal-channel.md +1 -1
  59. package/docs/sqlite-persistence.md +5 -5
  60. package/docs/synapta-integration-review.md +238 -0
  61. package/docs/telegram-channel.md +1 -1
  62. package/docs/testing.md +33 -14
  63. package/docs/wiki.md +12 -11
  64. package/docs/work-sandbox.md +2 -0
  65. package/docs/work-tools.md +3 -3
  66. package/docs/workflows.md +213 -11
  67. package/package.json +22 -21
  68. package/templates/business-worker/README.md.tmpl +3 -3
  69. package/templates/business-worker/package.json.tmpl +4 -5
  70. package/templates/business-worker/src/tests/agent.test.ts.tmpl +1 -1
  71. package/templates/business-worker/tsconfig.json.tmpl +2 -1
  72. package/templates/deep-research/README.md.tmpl +4 -4
  73. package/templates/deep-research/package.json.tmpl +4 -5
  74. package/templates/deep-research/src/tests/research.test.ts.tmpl +1 -1
  75. package/templates/deep-research/tsconfig.json.tmpl +2 -1
  76. package/templates/init/README.md.tmpl +3 -3
  77. package/templates/init/optional/evals-example.ts.tmpl +1 -1
  78. package/templates/init/optional/workflows-example.ts.tmpl +1 -1
  79. package/templates/init/package.json.tmpl +4 -5
  80. package/templates/init/src/tests/agent.test.ts.tmpl +1 -1
  81. package/templates/init/tsconfig.json.tmpl +2 -1
  82. package/templates/personal-assistant/README.md.tmpl +3 -3
  83. package/templates/personal-assistant/package.json.tmpl +4 -5
  84. package/templates/personal-assistant/src/tests/agent.test.ts.tmpl +1 -1
  85. package/templates/personal-assistant/tsconfig.json.tmpl +2 -1
  86. package/templates/provider/README.md.tmpl +2 -2
  87. package/templates/provider/package.json.tmpl +3 -4
  88. package/templates/provider/src/tests/provider.test.ts.tmpl +1 -1
  89. package/templates/provider/tsconfig.json.tmpl +1 -1
@@ -3,21 +3,20 @@
3
3
  "version": "0.1.0",
4
4
  "private": true,
5
5
  "type": "module",
6
+ "packageManager": "bun@1.4.2",
6
7
  "scripts": {
7
8
  "build": "tsc -p tsconfig.json",
8
9
  "typecheck": "tsc -p tsconfig.json --noEmit",
9
- "test": "npm run build && node --test dist/__tests__/agent.test.js",
10
- "start": "npm run build && node dist/index.js",
10
+ "test": "bun run build && bun test dist/__tests__/agent.test.js",
11
+ "start": "bun run build && bun dist/index.js",
11
12
  "dev": "prism dev"
12
13
  },
13
14
  "dependencies": {
14
15
  __DEPENDENCIES__
15
16
  },
16
17
  "devDependencies": {
18
+ "@types/bun": "^1.4.2",
17
19
  "@types/node": "^22.0.0",
18
20
  "typescript": "^5.7.0"
19
- },
20
- "engines": {
21
- "node": ">=20"
22
21
  }
23
22
  }
@@ -1,5 +1,5 @@
1
1
  import assert from "node:assert/strict";
2
- import { describe, it } from "node:test";
2
+ import { describe, it } from "bun:test";
3
3
  import { assertHostCompositionReadiness, inspectHostComposition } from "@arnilo/prism";
4
4
  import { createAppAgent } from "../agent.js";
5
5
 
@@ -9,7 +9,8 @@
9
9
  "declaration": true,
10
10
  "skipLibCheck": true,
11
11
  "esModuleInterop": true,
12
- "forceConsistentCasingInFileNames": true
12
+ "forceConsistentCasingInFileNames": true,
13
+ "types": ["node", "bun-types/test.d.ts"]
13
14
  },
14
15
  "include": ["src"]
15
16
  }
@@ -5,7 +5,7 @@ __PROVIDER_ID__ provider package for Prism (OpenAI-compatible Chat Completions).
5
5
  ## Quick start
6
6
 
7
7
  ```bash
8
- npm install __PACKAGE_NAME__ @arnilo/prism
8
+ bun add __PACKAGE_NAME__ @arnilo/prism
9
9
  ```
10
10
 
11
11
  Wire the provider and models into your Prism host. The package registers an
@@ -31,7 +31,7 @@ docs-verified model metadata (limits, costs, cache behavior) before publishing.
31
31
 
32
32
  ## Conformance
33
33
 
34
- `npm test` builds the package and runs the offline conformance suite wired to
34
+ `bun test` builds the package and runs the offline conformance suite wired to
35
35
  `@arnilo/prism/testing/provider-conformance` (stream shape, tool-call delta
36
36
  reconstruction, header ownership, secret-leak redaction, serialized content
37
37
  coverage).
@@ -3,6 +3,7 @@
3
3
  "version": "__PRISM_VERSION__",
4
4
  "description": "__PROVIDER_ID__ provider package for Prism.",
5
5
  "type": "module",
6
+ "packageManager": "bun@1.4.2",
6
7
  "main": "./dist/index.js",
7
8
  "types": "./dist/index.d.ts",
8
9
  "exports": {
@@ -21,19 +22,17 @@
21
22
  "scripts": {
22
23
  "build": "tsc -p tsconfig.json",
23
24
  "typecheck": "tsc -p tsconfig.json --noEmit",
24
- "test": "npm run build && node --test dist/__tests__/*.test.js",
25
+ "test": "bun run build && bun test dist/__tests__/",
25
26
  "pack:dry-run": "npm pack --dry-run"
26
27
  },
27
28
  "peerDependencies": {
28
29
  "@arnilo/prism": "__PRISM_VERSION__"
29
30
  },
30
31
  "devDependencies": {
32
+ "@types/bun": "^1.4.2",
31
33
  "@types/node": "^22.0.0",
32
34
  "typescript": "^5.7.0"
33
35
  },
34
- "engines": {
35
- "node": ">=20"
36
- },
37
36
  "license": "MIT",
38
37
  "keywords": [
39
38
  "prism",
@@ -1,5 +1,5 @@
1
1
  import assert from "node:assert/strict";
2
- import { describe, it } from "node:test";
2
+ import { describe, it } from "bun:test";
3
3
  import type { ProviderRequest } from "@arnilo/prism";
4
4
  import {
5
5
  assertNoSecretLeak,
@@ -10,7 +10,7 @@
10
10
  "skipLibCheck": true,
11
11
  "esModuleInterop": true,
12
12
  "forceConsistentCasingInFileNames": true,
13
- "types": ["node"]
13
+ "types": ["node", "bun-types/test.d.ts"]
14
14
  },
15
15
  "include": ["src"]
16
16
  }