@statelyai/agent 1.1.6 → 2.0.0-alpha.11

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 (92) hide show
  1. package/LICENSE +21 -0
  2. package/dist/adapter.cjs +15 -0
  3. package/dist/adapter.d.cts +4 -0
  4. package/dist/adapter.d.mts +4 -0
  5. package/dist/adapter.mjs +2 -0
  6. package/dist/ai-sdk.cjs +306 -0
  7. package/dist/ai-sdk.d.cts +96 -0
  8. package/dist/ai-sdk.d.mts +96 -0
  9. package/dist/ai-sdk.mjs +304 -0
  10. package/dist/decision-C3k4ve51.mjs +227 -0
  11. package/dist/decision-D8wJrM8W.cjs +286 -0
  12. package/dist/events-CRQj3VtP.cjs +1010 -0
  13. package/dist/events-JiVPYrct.mjs +759 -0
  14. package/dist/index.cjs +2528 -0
  15. package/dist/index.d.cts +1232 -0
  16. package/dist/index.d.mts +1217 -413
  17. package/dist/index.mjs +2489 -584
  18. package/dist/openai-compat.cjs +309 -0
  19. package/dist/openai-compat.d.cts +59 -0
  20. package/dist/openai-compat.d.mts +59 -0
  21. package/dist/openai-compat.mjs +308 -0
  22. package/dist/steps-BALp1eZo.d.mts +198 -0
  23. package/dist/steps-CVe54GPP.cjs +420 -0
  24. package/dist/steps-CkyyyuHd.mjs +379 -0
  25. package/dist/steps-MjnQI4aB.d.cts +198 -0
  26. package/dist/steps.cjs +12 -0
  27. package/dist/steps.d.cts +3 -0
  28. package/dist/steps.d.mts +3 -0
  29. package/dist/steps.mjs +3 -0
  30. package/dist/text-logic-CaKqgX4Y.d.mts +710 -0
  31. package/dist/text-logic-Ckhr2kKC.d.cts +710 -0
  32. package/dist/types-C9QiMjre.d.cts +219 -0
  33. package/dist/types-qm00QF91.d.mts +219 -0
  34. package/dist/utils-BYqT_Dyv.d.cts +108 -0
  35. package/dist/utils-Do5wIJrh.d.mts +108 -0
  36. package/dist/zod.cjs +31 -0
  37. package/dist/zod.d.cts +30 -0
  38. package/dist/zod.d.mts +30 -0
  39. package/dist/zod.mjs +30 -0
  40. package/package.json +132 -28
  41. package/readme.md +153 -6
  42. package/schemas/agent-workflow.json +526 -0
  43. package/.changeset/README.md +0 -8
  44. package/.changeset/config.json +0 -11
  45. package/.env.template +0 -3
  46. package/.github/actions/ci-setup/action.yml +0 -24
  47. package/.github/workflows/release.yml +0 -46
  48. package/.vscode/launch.json +0 -28
  49. package/CHANGELOG.md +0 -222
  50. package/dist/index.d.ts +0 -428
  51. package/dist/index.js +0 -621
  52. package/examples/chatbot.ts +0 -71
  53. package/examples/cot.ts +0 -89
  54. package/examples/email.ts +0 -118
  55. package/examples/example.ts +0 -81
  56. package/examples/goal.ts +0 -94
  57. package/examples/helpers/helpers.ts +0 -17
  58. package/examples/helpers/loader.ts +0 -32
  59. package/examples/helpers/runner.ts +0 -27
  60. package/examples/joke.ts +0 -225
  61. package/examples/multi.ts +0 -103
  62. package/examples/newspaper.ts +0 -324
  63. package/examples/number.ts +0 -102
  64. package/examples/raffle.ts +0 -105
  65. package/examples/sandbox.ts +0 -28
  66. package/examples/simple.ts +0 -39
  67. package/examples/support.ts +0 -147
  68. package/examples/ticTacToe.ts +0 -224
  69. package/examples/todo.ts +0 -137
  70. package/examples/tutor.ts +0 -100
  71. package/examples/verify.ts +0 -120
  72. package/examples/weather.ts +0 -178
  73. package/examples/wiki.ts +0 -30
  74. package/examples/word.ts +0 -171
  75. package/src/adapters/vercel.ts +0 -7
  76. package/src/agent-experimental.ts +0 -221
  77. package/src/agent.test.ts +0 -506
  78. package/src/agent.ts +0 -300
  79. package/src/decision.test.ts +0 -179
  80. package/src/decision.ts +0 -84
  81. package/src/index.ts +0 -4
  82. package/src/memory.ts +0 -25
  83. package/src/planners/shortestPathPlanner.ts +0 -22
  84. package/src/planners/simplePlanner.ts +0 -139
  85. package/src/schemas.ts +0 -11
  86. package/src/strategies/chain-of-note.ts +0 -155
  87. package/src/templates/defaultText.ts +0 -18
  88. package/src/text.ts +0 -241
  89. package/src/types.ts +0 -499
  90. package/src/utils.ts +0 -72
  91. package/tsconfig.json +0 -109
  92. package/vitest.config.ts +0 -9
@@ -0,0 +1,526 @@
1
+ {
2
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
3
+ "$id": "https://stately.ai/schemas/agent-workflow.json",
4
+ "title": "Stately Agent Workflow Definition",
5
+ "description": "Static, declarative agent workflow definition that can be lowered to a setupAgent(...) XState machine.",
6
+ "type": "object",
7
+ "required": ["initial", "states"],
8
+ "properties": {
9
+ "$schema": {
10
+ "description": "JSON Schema reference an editor attaches to the config file. Ignored by the lowering.",
11
+ "type": "string"
12
+ },
13
+ "key": {
14
+ "description": "Stable workflow key used by tools, storage, and visual editors.",
15
+ "type": "string",
16
+ "minLength": 1
17
+ },
18
+ "id": {
19
+ "description": "Optional XState machine id.",
20
+ "type": "string",
21
+ "minLength": 1
22
+ },
23
+ "version": {
24
+ "description": "Definition version chosen by the author.",
25
+ "type": "string"
26
+ },
27
+ "description": {
28
+ "type": "string"
29
+ },
30
+ "schemas": {
31
+ "$ref": "#/$defs/AgentSchemas"
32
+ },
33
+ "context": {
34
+ "description": "Initial XState context. Values may be JSON literals or whole-string {{ }} expressions evaluated with machine input.",
35
+ "$ref": "#/$defs/ExpressionObject"
36
+ },
37
+ "requests": {
38
+ "description": "Named model requests that become typed invoke sources.",
39
+ "type": "object",
40
+ "propertyNames": {
41
+ "$ref": "#/$defs/Identifier"
42
+ },
43
+ "additionalProperties": {
44
+ "$ref": "#/$defs/Request"
45
+ },
46
+ "default": {}
47
+ },
48
+ "initial": {
49
+ "description": "Initial child state key.",
50
+ "type": "string"
51
+ },
52
+ "states": {
53
+ "description": "Root state nodes.",
54
+ "type": "object",
55
+ "minProperties": 1,
56
+ "propertyNames": {
57
+ "$ref": "#/$defs/Identifier"
58
+ },
59
+ "additionalProperties": {
60
+ "$ref": "#/$defs/State"
61
+ }
62
+ },
63
+ "meta": {
64
+ "$ref": "#/$defs/JsonObject"
65
+ }
66
+ },
67
+ "additionalProperties": false,
68
+ "$defs": {
69
+ "Identifier": {
70
+ "type": "string",
71
+ "minLength": 1,
72
+ "pattern": "^[A-Za-z_$][A-Za-z0-9_$.-]*$"
73
+ },
74
+ "ExpressionString": {
75
+ "description": "Whole-string expression delimited by {{ }}.",
76
+ "type": "string",
77
+ "pattern": "^\\{\\{[\\s\\S]*\\}\\}$"
78
+ },
79
+ "TemplateString": {
80
+ "description": "String that may contain {{ }} template expressions. Escape literal delimiters according to the selected expression/template evaluator.",
81
+ "type": "string"
82
+ },
83
+ "JsonValue": {
84
+ "anyOf": [
85
+ { "type": "null" },
86
+ { "type": "boolean" },
87
+ { "type": "number" },
88
+ { "type": "string" },
89
+ {
90
+ "type": "array",
91
+ "items": {
92
+ "$ref": "#/$defs/JsonValue"
93
+ }
94
+ },
95
+ {
96
+ "$ref": "#/$defs/JsonObject"
97
+ }
98
+ ]
99
+ },
100
+ "JsonObject": {
101
+ "type": "object",
102
+ "propertyNames": {
103
+ "type": "string"
104
+ },
105
+ "additionalProperties": {
106
+ "$ref": "#/$defs/JsonValue"
107
+ }
108
+ },
109
+ "ExpressionValue": {
110
+ "description": "JSON value or whole-string {{ }} expression. Use this for typed values, not prompt templating.",
111
+ "anyOf": [
112
+ { "$ref": "#/$defs/ExpressionString" },
113
+ { "type": "null" },
114
+ { "type": "boolean" },
115
+ { "type": "number" },
116
+ { "type": "string" },
117
+ {
118
+ "type": "array",
119
+ "items": {
120
+ "$ref": "#/$defs/ExpressionValue"
121
+ }
122
+ },
123
+ {
124
+ "type": "object",
125
+ "propertyNames": {
126
+ "type": "string"
127
+ },
128
+ "additionalProperties": {
129
+ "$ref": "#/$defs/ExpressionValue"
130
+ }
131
+ }
132
+ ]
133
+ },
134
+ "ExpressionObject": {
135
+ "type": "object",
136
+ "propertyNames": {
137
+ "type": "string"
138
+ },
139
+ "additionalProperties": {
140
+ "$ref": "#/$defs/ExpressionValue"
141
+ }
142
+ },
143
+ "JsonSchema": {
144
+ "description": "JSON Schema object.",
145
+ "type": "object",
146
+ "propertyNames": {
147
+ "type": "string"
148
+ },
149
+ "additionalProperties": true
150
+ },
151
+ "AgentSchemas": {
152
+ "type": "object",
153
+ "properties": {
154
+ "input": {
155
+ "$ref": "#/$defs/JsonSchema"
156
+ },
157
+ "context": {
158
+ "$ref": "#/$defs/JsonSchema"
159
+ },
160
+ "events": {
161
+ "type": "object",
162
+ "propertyNames": {
163
+ "$ref": "#/$defs/Identifier"
164
+ },
165
+ "additionalProperties": {
166
+ "$ref": "#/$defs/JsonSchema"
167
+ }
168
+ },
169
+ "emitted": {
170
+ "type": "object",
171
+ "description": "Schemas for events emitted outward by emit actions, keyed by emitted event type.",
172
+ "propertyNames": {
173
+ "$ref": "#/$defs/Identifier"
174
+ },
175
+ "additionalProperties": {
176
+ "$ref": "#/$defs/JsonSchema"
177
+ }
178
+ },
179
+ "output": {
180
+ "$ref": "#/$defs/JsonSchema"
181
+ },
182
+ "meta": {
183
+ "$ref": "#/$defs/JsonSchema"
184
+ }
185
+ },
186
+ "additionalProperties": false
187
+ },
188
+ "Request": {
189
+ "type": "object",
190
+ "required": ["model", "input", "output"],
191
+ "properties": {
192
+ "mode": {
193
+ "type": "string",
194
+ "enum": ["generate", "stream"],
195
+ "default": "generate"
196
+ },
197
+ "description": {
198
+ "type": "string"
199
+ },
200
+ "model": {
201
+ "$ref": "#/$defs/TemplateString"
202
+ },
203
+ "system": {
204
+ "$ref": "#/$defs/TemplateString"
205
+ },
206
+ "prompt": {
207
+ "$ref": "#/$defs/TemplateString"
208
+ },
209
+ "messages": {
210
+ "anyOf": [
211
+ { "$ref": "#/$defs/ExpressionString" },
212
+ {
213
+ "type": "array",
214
+ "items": {
215
+ "$ref": "#/$defs/Message"
216
+ }
217
+ }
218
+ ]
219
+ },
220
+ "input": {
221
+ "$ref": "#/$defs/JsonSchema"
222
+ },
223
+ "output": {
224
+ "$ref": "#/$defs/JsonSchema"
225
+ },
226
+ "tools": {
227
+ "type": "object",
228
+ "propertyNames": {
229
+ "$ref": "#/$defs/Identifier"
230
+ },
231
+ "additionalProperties": {
232
+ "$ref": "#/$defs/Tool"
233
+ }
234
+ },
235
+ "toolChoice": {
236
+ "anyOf": [
237
+ {
238
+ "type": "string",
239
+ "enum": ["auto", "none", "required"]
240
+ },
241
+ {
242
+ "type": "object",
243
+ "required": ["type", "name"],
244
+ "properties": {
245
+ "type": {
246
+ "const": "tool"
247
+ },
248
+ "name": {
249
+ "$ref": "#/$defs/Identifier"
250
+ }
251
+ },
252
+ "additionalProperties": false
253
+ },
254
+ { "$ref": "#/$defs/ExpressionString" }
255
+ ]
256
+ },
257
+ "temperature": {
258
+ "$ref": "#/$defs/ExpressionValue"
259
+ },
260
+ "maxOutputTokens": {
261
+ "$ref": "#/$defs/ExpressionValue"
262
+ },
263
+ "topP": {
264
+ "$ref": "#/$defs/ExpressionValue"
265
+ },
266
+ "topK": {
267
+ "$ref": "#/$defs/ExpressionValue"
268
+ },
269
+ "seed": {
270
+ "$ref": "#/$defs/ExpressionValue"
271
+ },
272
+ "stopSequences": {
273
+ "anyOf": [
274
+ { "$ref": "#/$defs/ExpressionString" },
275
+ {
276
+ "type": "array",
277
+ "items": {
278
+ "type": "string"
279
+ }
280
+ }
281
+ ]
282
+ },
283
+ "metadata": {
284
+ "$ref": "#/$defs/ExpressionValue"
285
+ }
286
+ },
287
+ "additionalProperties": false
288
+ },
289
+ "Message": {
290
+ "type": "object",
291
+ "required": ["role", "content"],
292
+ "properties": {
293
+ "role": {
294
+ "$ref": "#/$defs/TemplateString"
295
+ },
296
+ "content": {
297
+ "$ref": "#/$defs/TemplateString"
298
+ }
299
+ },
300
+ "additionalProperties": {
301
+ "$ref": "#/$defs/ExpressionValue"
302
+ }
303
+ },
304
+ "Tool": {
305
+ "type": "object",
306
+ "properties": {
307
+ "description": {
308
+ "type": "string"
309
+ },
310
+ "input": {
311
+ "$ref": "#/$defs/JsonSchema"
312
+ },
313
+ "output": {
314
+ "$ref": "#/$defs/JsonSchema"
315
+ }
316
+ },
317
+ "additionalProperties": {
318
+ "$ref": "#/$defs/JsonValue"
319
+ }
320
+ },
321
+ "State": {
322
+ "type": "object",
323
+ "properties": {
324
+ "description": {
325
+ "type": "string"
326
+ },
327
+ "type": {
328
+ "type": "string",
329
+ "enum": ["parallel", "history", "final", "choice"]
330
+ },
331
+ "initial": {
332
+ "type": "string"
333
+ },
334
+ "states": {
335
+ "type": "object",
336
+ "propertyNames": {
337
+ "$ref": "#/$defs/Identifier"
338
+ },
339
+ "additionalProperties": {
340
+ "$ref": "#/$defs/State"
341
+ }
342
+ },
343
+ "invoke": {
344
+ "anyOf": [
345
+ { "$ref": "#/$defs/Invoke" },
346
+ {
347
+ "type": "array",
348
+ "items": {
349
+ "$ref": "#/$defs/Invoke"
350
+ }
351
+ }
352
+ ]
353
+ },
354
+ "choice": {
355
+ "description": "Choice-state routing, equivalent to XState's type: 'choice' + choice transition function.",
356
+ "$ref": "#/$defs/TransitionOrArray"
357
+ },
358
+ "on": {
359
+ "type": "object",
360
+ "propertyNames": {
361
+ "type": "string"
362
+ },
363
+ "additionalProperties": {
364
+ "$ref": "#/$defs/TransitionOrArray"
365
+ }
366
+ },
367
+ "always": {
368
+ "$ref": "#/$defs/TransitionOrArray"
369
+ },
370
+ "onDone": {
371
+ "$ref": "#/$defs/TransitionOrArray"
372
+ },
373
+ "after": {
374
+ "type": "object",
375
+ "propertyNames": {
376
+ "type": "string"
377
+ },
378
+ "additionalProperties": {
379
+ "$ref": "#/$defs/TransitionOrArray"
380
+ }
381
+ },
382
+ "entry": {
383
+ "$ref": "#/$defs/ActionOrArray"
384
+ },
385
+ "exit": {
386
+ "$ref": "#/$defs/ActionOrArray"
387
+ },
388
+ "tags": {
389
+ "type": "array",
390
+ "items": {
391
+ "type": "string"
392
+ }
393
+ },
394
+ "output": {
395
+ "$ref": "#/$defs/ExpressionValue"
396
+ },
397
+ "meta": {
398
+ "$ref": "#/$defs/ExpressionObject"
399
+ }
400
+ },
401
+ "additionalProperties": false
402
+ },
403
+ "Invoke": {
404
+ "type": "object",
405
+ "required": ["src"],
406
+ "properties": {
407
+ "id": {
408
+ "type": "string"
409
+ },
410
+ "src": {
411
+ "description": "Actor source name. 'agent.decide' invokes are special: decision delivery is automatic (the chosen event is sent as soon as the model decides) and 'onDone' must be omitted — see the 'onDone' description.",
412
+ "$ref": "#/$defs/Identifier"
413
+ },
414
+ "input": {
415
+ "$ref": "#/$defs/ExpressionValue"
416
+ },
417
+ "onDone": {
418
+ "description": "Not valid on an 'agent.decide' invoke — the built-in lowering rejects it at setupAgent.fromConfig(...) time. A decision has no output value of its own (its output IS the chosen event), so delivery is automatic and not configurable from JSON. 'onError' (retries exhausted) still applies to 'agent.decide' invokes.",
419
+ "$ref": "#/$defs/TransitionOrArray"
420
+ },
421
+ "onError": {
422
+ "$ref": "#/$defs/TransitionOrArray"
423
+ },
424
+ "meta": {
425
+ "$ref": "#/$defs/ExpressionObject"
426
+ }
427
+ },
428
+ "additionalProperties": false
429
+ },
430
+ "TransitionOrArray": {
431
+ "anyOf": [
432
+ { "$ref": "#/$defs/Transition" },
433
+ {
434
+ "type": "array",
435
+ "items": {
436
+ "$ref": "#/$defs/Transition"
437
+ }
438
+ }
439
+ ]
440
+ },
441
+ "Transition": {
442
+ "type": "object",
443
+ "properties": {
444
+ "target": {
445
+ "anyOf": [
446
+ { "type": "string" },
447
+ {
448
+ "type": "array",
449
+ "items": {
450
+ "type": "string"
451
+ }
452
+ }
453
+ ]
454
+ },
455
+ "guard": {
456
+ "anyOf": [
457
+ { "$ref": "#/$defs/ExpressionString" },
458
+ {
459
+ "type": "object",
460
+ "required": ["type"],
461
+ "properties": {
462
+ "type": {
463
+ "type": "string"
464
+ },
465
+ "params": {
466
+ "$ref": "#/$defs/ExpressionValue"
467
+ }
468
+ },
469
+ "additionalProperties": false
470
+ }
471
+ ]
472
+ },
473
+ "assign": {
474
+ "description": "Context assignments applied when this transition is taken.",
475
+ "$ref": "#/$defs/ExpressionObject"
476
+ },
477
+ "actions": {
478
+ "$ref": "#/$defs/ActionOrArray"
479
+ },
480
+ "description": {
481
+ "type": "string"
482
+ },
483
+ "reenter": {
484
+ "type": "boolean"
485
+ },
486
+ "meta": {
487
+ "$ref": "#/$defs/ExpressionObject"
488
+ }
489
+ },
490
+ "additionalProperties": false
491
+ },
492
+ "ActionOrArray": {
493
+ "anyOf": [
494
+ { "$ref": "#/$defs/Action" },
495
+ {
496
+ "type": "array",
497
+ "items": {
498
+ "$ref": "#/$defs/Action"
499
+ }
500
+ }
501
+ ]
502
+ },
503
+ "Action": {
504
+ "type": "object",
505
+ "properties": {
506
+ "type": {
507
+ "type": "string"
508
+ },
509
+ "params": {
510
+ "$ref": "#/$defs/ExpressionValue"
511
+ },
512
+ "assign": {
513
+ "$ref": "#/$defs/ExpressionObject"
514
+ },
515
+ "emit": {
516
+ "description": "Event emitted outward through runAgent's on handlers.",
517
+ "$ref": "#/$defs/ExpressionValue"
518
+ }
519
+ },
520
+ "anyOf": [{ "required": ["type"] }, { "required": ["assign"] }, { "required": ["emit"] }],
521
+ "additionalProperties": {
522
+ "$ref": "#/$defs/ExpressionValue"
523
+ }
524
+ }
525
+ }
526
+ }
@@ -1,8 +0,0 @@
1
- # Changesets
2
-
3
- Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4
- with multi-package repos, or single-package repos to help you version and publish your code. You can
5
- find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6
-
7
- We have a quick list of common questions to get you started engaging with this project in
8
- [our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
@@ -1,11 +0,0 @@
1
- {
2
- "$schema": "https://unpkg.com/@changesets/config@3.0.0/schema.json",
3
- "changelog": ["@changesets/changelog-github", { "repo": "statelyai/agent" }],
4
- "commit": false,
5
- "fixed": [],
6
- "linked": [],
7
- "access": "restricted",
8
- "baseBranch": "main",
9
- "updateInternalDependencies": "patch",
10
- "ignore": []
11
- }
package/.env.template DELETED
@@ -1,3 +0,0 @@
1
-
2
- # Get your OpenAI API key from: https://platform.openai.com/signup/
3
- OPENAI_API_KEY="sk-..."
@@ -1,24 +0,0 @@
1
- name: Setup Workflow
2
- description: Composite action that sets up pnpm
3
- runs:
4
- using: 'composite'
5
- steps:
6
- - uses: pnpm/action-setup@v2
7
- - uses: actions/setup-node@v4
8
- with:
9
- node-version: 20.x
10
-
11
- - name: install pnpm
12
- run: npm i pnpm@latest -g
13
- shell: bash
14
-
15
- - name: Setup npmrc
16
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
17
- shell: bash
18
-
19
- - name: setup pnpm config
20
- run: pnpm config set store-dir $PNPM_CACHE_FOLDER
21
- shell: bash
22
-
23
- - run: pnpm install
24
- shell: bash
@@ -1,46 +0,0 @@
1
- name: Release
2
-
3
- on:
4
- push:
5
- branches:
6
- - main
7
-
8
- concurrency: ${{ github.workflow }}-${{ github.ref }}
9
-
10
- permissions: {}
11
- jobs:
12
- release:
13
- permissions:
14
- contents: write # to create release (changesets/action)
15
- issues: write # to post issue comments (changesets/action)
16
- pull-requests: write # to create pull request (changesets/action)
17
-
18
- if: github.repository == 'statelyai/agent'
19
-
20
- timeout-minutes: 20
21
-
22
- runs-on: ubuntu-latest
23
-
24
- steps:
25
- - name: checkout code repository
26
- uses: actions/checkout@v3
27
- with:
28
- fetch-depth: 0
29
- - name: setup node.js
30
- uses: actions/setup-node@v3
31
- with:
32
- node-version: 20
33
- - name: install pnpm
34
- run: npm i pnpm@latest -g
35
- - name: setup pnpm config
36
- run: pnpm config set store-dir $PNPM_CACHE_FOLDER
37
- - name: install dependencies
38
- run: pnpm install
39
- - name: create and publish versions
40
- uses: changesets/action@v1
41
- with:
42
- publish: pnpm run release
43
- version: pnpm run version
44
- env:
45
- GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46
- NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
@@ -1,28 +0,0 @@
1
- {
2
- // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
3
- "version": "0.2.0",
4
- "configurations": [
5
- {
6
- "type": "node",
7
- "request": "launch",
8
- "name": "Debug Current Test File",
9
- "autoAttachChildProcesses": true,
10
- "skipFiles": ["<node_internals>/**", "**/node_modules/**", "examples/**"],
11
- "program": "${workspaceRoot}/node_modules/vitest/vitest.mjs",
12
- "args": ["run", "${relativeFile}"],
13
- "smartStep": true,
14
- "console": "integratedTerminal"
15
- },
16
- {
17
- "type": "node",
18
- "request": "launch",
19
- "name": "Debug Current File",
20
- "program": "${file}",
21
- "cwd": "${workspaceFolder}",
22
- "runtimeExecutable": "${workspaceFolder}/node_modules/.bin/ts-node",
23
- "outFiles": ["${workspaceFolder}/dist/**/*.js"],
24
- "sourceMaps": true,
25
- "console": "integratedTerminal"
26
- }
27
- ]
28
- }