ai-sdk-azure-durable-task 0.0.0 → 1.0.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 (98) hide show
  1. package/CHANGELOG.md +90 -0
  2. package/CONTRIBUTING.md +69 -0
  3. package/LICENSE +22 -0
  4. package/README.md +324 -2
  5. package/dist/src/agent.d.ts +110 -0
  6. package/dist/src/agent.js +1336 -0
  7. package/dist/src/agent.js.map +1 -0
  8. package/dist/src/approvals.d.ts +20 -0
  9. package/dist/src/approvals.js +100 -0
  10. package/dist/src/approvals.js.map +1 -0
  11. package/dist/src/client-entry.d.ts +12 -0
  12. package/dist/src/client-entry.js +7 -0
  13. package/dist/src/client-entry.js.map +1 -0
  14. package/dist/src/client.d.ts +109 -0
  15. package/dist/src/client.js +498 -0
  16. package/dist/src/client.js.map +1 -0
  17. package/dist/src/decisions.d.ts +54 -0
  18. package/dist/src/decisions.js +44 -0
  19. package/dist/src/decisions.js.map +1 -0
  20. package/dist/src/durable-chat-transport.d.ts +48 -0
  21. package/dist/src/durable-chat-transport.js +173 -0
  22. package/dist/src/durable-chat-transport.js.map +1 -0
  23. package/dist/src/history-types.d.ts +21 -0
  24. package/dist/src/history-types.js +6 -0
  25. package/dist/src/history-types.js.map +1 -0
  26. package/dist/src/history.d.ts +35 -0
  27. package/dist/src/history.js +163 -0
  28. package/dist/src/history.js.map +1 -0
  29. package/dist/src/http.d.ts +9 -0
  30. package/dist/src/http.js +67 -0
  31. package/dist/src/http.js.map +1 -0
  32. package/dist/src/index.d.ts +25 -0
  33. package/dist/src/index.js +14 -0
  34. package/dist/src/index.js.map +1 -0
  35. package/dist/src/logging.d.ts +4 -0
  36. package/dist/src/logging.js +8 -0
  37. package/dist/src/logging.js.map +1 -0
  38. package/dist/src/mcp.d.ts +41 -0
  39. package/dist/src/mcp.js +112 -0
  40. package/dist/src/mcp.js.map +1 -0
  41. package/dist/src/status.d.ts +29 -0
  42. package/dist/src/status.js +50 -0
  43. package/dist/src/status.js.map +1 -0
  44. package/dist/src/steps.d.ts +41 -0
  45. package/dist/src/steps.js +125 -0
  46. package/dist/src/steps.js.map +1 -0
  47. package/dist/src/stores/postgres.d.ts +53 -0
  48. package/dist/src/stores/postgres.js +140 -0
  49. package/dist/src/stores/postgres.js.map +1 -0
  50. package/dist/src/stores/sqlite.d.ts +1 -0
  51. package/dist/src/stores/sqlite.js +2 -0
  52. package/dist/src/stores/sqlite.js.map +1 -0
  53. package/dist/src/streaming/redis.d.ts +33 -0
  54. package/dist/src/streaming/redis.js +55 -0
  55. package/dist/src/streaming/redis.js.map +1 -0
  56. package/dist/src/streaming.d.ts +29 -0
  57. package/dist/src/streaming.js +64 -0
  58. package/dist/src/streaming.js.map +1 -0
  59. package/dist/src/telemetry.d.ts +10 -0
  60. package/dist/src/telemetry.js +49 -0
  61. package/dist/src/telemetry.js.map +1 -0
  62. package/dist/src/testing/index.d.ts +70 -0
  63. package/dist/src/testing/index.js +165 -0
  64. package/dist/src/testing/index.js.map +1 -0
  65. package/dist/src/tools.d.ts +96 -0
  66. package/dist/src/tools.js +69 -0
  67. package/dist/src/tools.js.map +1 -0
  68. package/dist/src/types.d.ts +321 -0
  69. package/dist/src/types.js +19 -0
  70. package/dist/src/types.js.map +1 -0
  71. package/dist/src/validation.d.ts +1 -0
  72. package/dist/src/validation.js +19 -0
  73. package/dist/src/validation.js.map +1 -0
  74. package/dist/src/worker-entry.d.ts +7 -0
  75. package/dist/src/worker-entry.js +6 -0
  76. package/dist/src/worker-entry.js.map +1 -0
  77. package/dist/src/worker.d.ts +24 -0
  78. package/dist/src/worker.js +107 -0
  79. package/dist/src/worker.js.map +1 -0
  80. package/docs/Hosted-DTS.md +115 -0
  81. package/docs/architecture.md +76 -0
  82. package/docs/decisions/0001-dual-surface-authoring.md +14 -0
  83. package/docs/decisions/0002-generator-turn-stepper.md +8 -0
  84. package/docs/decisions/0003-tools-deps-and-mcp.md +19 -0
  85. package/docs/decisions/0004-approvals-and-status.md +18 -0
  86. package/docs/decisions/0005-state-streaming-subagents-versioning.md +19 -0
  87. package/docs/decisions/0006-maf-entity-session-comparison-and-hybrid-model.md +360 -0
  88. package/docs/decisions/0007-workflow-world-dts-and-durable-functions-sketch.md +191 -0
  89. package/docs/decisions/README.md +17 -0
  90. package/docs/development.md +139 -0
  91. package/docs/getting-started.md +325 -0
  92. package/docs/limitations.md +130 -0
  93. package/docs/operations.md +178 -0
  94. package/docs/security-and-tenancy.md +41 -0
  95. package/docs/support-matrix.md +26 -0
  96. package/docs/user-guide.md +1120 -0
  97. package/package.json +121 -12
  98. package/index.js +0 -1
package/package.json CHANGED
@@ -1,22 +1,131 @@
1
1
  {
2
2
  "name": "ai-sdk-azure-durable-task",
3
- "version": "0.0.0",
4
- "description": "Seed for ai-sdk-azure-durable-task, provisioned by the npm provisioning control plane.",
3
+ "version": "1.0.0",
4
+ "description": "Public Preview: durable Vercel AI SDK agents on Azure Durable Task Scheduler",
5
+ "license": "MIT",
6
+ "author": "Tamir Dresher",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/vercel-labs/ai-sdk-azure-durable-task.git"
10
+ },
11
+ "homepage": "https://github.com/vercel-labs/ai-sdk-azure-durable-task#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/vercel-labs/ai-sdk-azure-durable-task/issues"
14
+ },
15
+ "keywords": [
16
+ "durabletask",
17
+ "azure",
18
+ "dts",
19
+ "vercel",
20
+ "ai-sdk",
21
+ "durable-execution",
22
+ "agents",
23
+ "workflow",
24
+ "typescript"
25
+ ],
5
26
  "type": "module",
6
- "main": "./index.js",
27
+ "sideEffects": false,
28
+ "publishConfig": {
29
+ "access": "public",
30
+ "tag": "preview"
31
+ },
32
+ "engines": {
33
+ "node": ">=22.15.0"
34
+ },
7
35
  "exports": {
8
- ".": "./index.js"
36
+ ".": {
37
+ "types": "./dist/src/index.d.ts",
38
+ "import": "./dist/src/index.js"
39
+ },
40
+ "./client": {
41
+ "types": "./dist/src/client-entry.d.ts",
42
+ "import": "./dist/src/client-entry.js"
43
+ },
44
+ "./transport": {
45
+ "types": "./dist/src/durable-chat-transport.d.ts",
46
+ "import": "./dist/src/durable-chat-transport.js"
47
+ },
48
+ "./worker": {
49
+ "types": "./dist/src/worker-entry.d.ts",
50
+ "import": "./dist/src/worker-entry.js"
51
+ },
52
+ "./testing": {
53
+ "types": "./dist/src/testing/index.d.ts",
54
+ "import": "./dist/src/testing/index.js"
55
+ },
56
+ "./stores/sqlite": {
57
+ "types": "./dist/src/stores/sqlite.d.ts",
58
+ "import": "./dist/src/stores/sqlite.js"
59
+ },
60
+ "./stores/postgres": {
61
+ "types": "./dist/src/stores/postgres.d.ts",
62
+ "import": "./dist/src/stores/postgres.js"
63
+ },
64
+ "./streaming/redis": {
65
+ "types": "./dist/src/streaming/redis.d.ts",
66
+ "import": "./dist/src/streaming/redis.js"
67
+ }
9
68
  },
69
+ "types": "./dist/src/index.d.ts",
10
70
  "files": [
11
- "index.js",
12
- "README.md"
71
+ "dist/src",
72
+ "README.md",
73
+ "LICENSE",
74
+ "CHANGELOG.md",
75
+ "CONTRIBUTING.md",
76
+ "docs/architecture.md",
77
+ "docs/development.md",
78
+ "docs/getting-started.md",
79
+ "docs/user-guide.md",
80
+ "docs/Hosted-DTS.md",
81
+ "docs/limitations.md",
82
+ "docs/operations.md",
83
+ "docs/security-and-tenancy.md",
84
+ "docs/support-matrix.md",
85
+ "docs/decisions/"
13
86
  ],
14
- "publishConfig": {
15
- "access": "public",
16
- "registry": "https://registry.npmjs.org/"
87
+ "scripts": {
88
+ "build": "tsc -p tsconfig.build.json",
89
+ "pretypecheck": "npm run build",
90
+ "typecheck": "tsc --noEmit --declaration false",
91
+ "check:package": "tsx scripts/check-package.ts",
92
+ "qualify:artifact": "tsx scripts/qualify-artifact.ts",
93
+ "pretest": "npm run build",
94
+ "test": "vitest run",
95
+ "test:emulator": "tsx scripts/run-emulator-tests.ts",
96
+ "test:dts": "tsx scripts/run-dts-tests.ts",
97
+ "examples": "tsx scripts/run-examples.ts --in-memory",
98
+ "examples:emulator": "tsx scripts/run-examples.ts --endpoint 127.0.0.1:18080 --taskhub vercel-ai",
99
+ "benchmark": "tsx benchmarks/run_history_scaling_benchmark.ts"
17
100
  },
18
- "repository": {
19
- "type": "git",
20
- "url": "https://github.com/vercel-labs/ai-sdk-azure-durable-task.git"
101
+ "dependencies": {
102
+ "@microsoft/durabletask-js": "0.4.0",
103
+ "@microsoft/durabletask-js-azuremanaged": "0.4.0",
104
+ "@opentelemetry/api": "1.10.0"
105
+ },
106
+ "peerDependencies": {
107
+ "ai": ">=6.0.303 <8.0.0"
108
+ },
109
+ "devDependencies": {
110
+ "@ai-sdk/react": "3.0.306",
111
+ "@azure/identity": "4.14.1",
112
+ "@types/google-protobuf": "3.15.12",
113
+ "@types/json-schema": "7.0.15",
114
+ "@types/node": "22.20.5",
115
+ "@types/react": "19.3.0",
116
+ "@types/react-dom": "19.3.0",
117
+ "ai": "6.0.303",
118
+ "react": "19.3.1",
119
+ "react-dom": "19.3.1",
120
+ "tsx": "4.23.15",
121
+ "typescript": "5.9.3",
122
+ "vitest": "4.1.12",
123
+ "zod": "4.6.7"
124
+ },
125
+ "overrides": {
126
+ "undici": "6.29.1",
127
+ "postcss": "8.5.23",
128
+ "@azure/msal-node": "7.1.0",
129
+ "tinypool": "2.1.2"
21
130
  }
22
131
  }
package/index.js DELETED
@@ -1 +0,0 @@
1
- export {};