experimental-ash 0.8.2 → 0.9.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 (57) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/dist/docs/public/channels/slack.md +53 -25
  3. package/dist/src/compiled/.vendor-stamp.json +14 -14
  4. package/dist/src/compiled/@ai-sdk/anthropic/index.js +2 -2
  5. package/dist/src/compiled/@ai-sdk/google/index.js +4 -4
  6. package/dist/src/compiled/@ai-sdk/mcp/index.js +1 -1
  7. package/dist/src/compiled/@ai-sdk/openai/index.js +6 -6
  8. package/dist/src/compiled/@ai-sdk/otel/index.js +1 -1
  9. package/dist/src/compiled/@ai-sdk/provider/_json-schema.d.ts +5 -0
  10. package/dist/src/compiled/@ai-sdk/provider/index.d.ts +6632 -1
  11. package/dist/src/compiled/@chat-adapter/slack/_chat-adapter-shared.d.ts +9 -0
  12. package/dist/src/compiled/@chat-adapter/slack/index.d.ts +632 -54
  13. package/dist/src/compiled/@chat-adapter/slack/index.js +25 -29
  14. package/dist/src/compiled/@chat-adapter/slack/package.json +1 -1
  15. package/dist/src/compiled/@chat-adapter/state-memory/index.d.ts +41 -25
  16. package/dist/src/compiled/@chat-adapter/state-memory/package.json +1 -1
  17. package/dist/src/compiled/@standard-schema/spec/index.d.ts +115 -62
  18. package/dist/src/compiled/@vercel/sandbox/index.d.ts +4 -1
  19. package/dist/src/compiled/@vercel/sandbox/index.js +5 -5
  20. package/dist/src/compiled/@workflow/core/index.js +1 -1
  21. package/dist/src/compiled/@workflow/core/runtime.d.ts +6 -2
  22. package/dist/src/compiled/@workflow/core/runtime.js +4 -4
  23. package/dist/src/compiled/@workflow/core/workflow.js +1 -1
  24. package/dist/src/compiled/@workflow/errors/_ms.d.ts +4 -0
  25. package/dist/src/compiled/@workflow/errors/error-codes.d.ts +17 -0
  26. package/dist/src/compiled/@workflow/errors/index.d.ts +438 -56
  27. package/dist/src/compiled/@workflow/errors/index.js +1 -1
  28. package/dist/src/compiled/_chunks/node/{auth-CdwuOxMs.js → auth-vbe4XEEK.js} +2 -2
  29. package/dist/src/compiled/_chunks/node/{dist-B6IOtzm1.js → dist-BdWHjlRQ.js} +12 -12
  30. package/dist/src/compiled/_chunks/node/retry-BOcy5BbJ.js +1 -0
  31. package/dist/src/compiled/_chunks/workflow/{context-errors-CXifqq6a.js → context-errors-zbKocOyk.js} +1 -1
  32. package/dist/src/compiled/_chunks/workflow/{dist-BuELZxm6.js → dist-Ci2brnHh.js} +3 -3
  33. package/dist/src/compiled/_chunks/workflow/{resume-hook-CgfgCU87.js → resume-hook-CL8Ed91K.js} +2 -2
  34. package/dist/src/compiled/_chunks/workflow/sleep-Dn3i9nxI.js +1 -0
  35. package/dist/src/compiled/chat/_mdast.d.ts +24 -0
  36. package/dist/src/compiled/chat/_workflow-serde.d.ts +5 -0
  37. package/dist/src/compiled/chat/index.d.ts +3851 -72
  38. package/dist/src/compiled/chat/index.js +1 -1
  39. package/dist/src/compiled/chat/jsx-runtime-DxGwoLu2.d.ts +782 -0
  40. package/dist/src/compiled/chat/package.json +1 -1
  41. package/dist/src/compiled/just-bash/index.js +1 -1
  42. package/dist/src/execution/authorization-challenge-defaults.d.ts +1 -1
  43. package/dist/src/execution/authorization-challenge-defaults.js +1 -1
  44. package/dist/src/internal/application/package.js +1 -1
  45. package/dist/src/public/channels/slack/index.d.ts +1 -1
  46. package/dist/src/public/channels/slack/slack.js +4 -1
  47. package/dist/src/public/channels/slack/slackChannel.d.ts +64 -1
  48. package/dist/src/public/channels/slack/slackChannel.js +50 -7
  49. package/dist/src/runtime/connections/authorization-tokens.d.ts +1 -1
  50. package/dist/src/runtime/connections/authorization-tokens.js +1 -1
  51. package/package.json +16 -16
  52. package/dist/src/compiled/_chunks/node/ms-B2k_qBoq.js +0 -1
  53. package/dist/src/compiled/_chunks/workflow/sleep-BzS_cSYx.js +0 -1
  54. /package/dist/src/compiled/_chunks/workflow/{dist-C9DdsXoK.js → dist-0iNBqPYp.js} +0 -0
  55. /package/dist/src/compiled/_chunks/workflow/{dist-BHbmiLmM.js → dist-D774SUM4.js} +0 -0
  56. /package/dist/src/compiled/_chunks/workflow/{src-CidBwKAD.js → src-ClRYdO4-.js} +0 -0
  57. /package/dist/src/compiled/_chunks/workflow/{symbols-BC0BVTM7.js → symbols-D-4tVV8x.js} +0 -0
@@ -1,2 +1,2 @@
1
- import{o as e,r as t}from"../../_chunks/workflow/dist-C9DdsXoK.js";import{i as n,n as r,r as i}from"../../_chunks/workflow/context-errors-CXifqq6a.js";import{Bt as a,Ht as o,L as s,S as c,Vt as l,h as u,n as d,w as f,z as p}from"../../_chunks/workflow/resume-hook-CgfgCU87.js";import{t as m}from"../../_chunks/workflow/sleep-BzS_cSYx.js";function h(e){i(`createHook()`,`https://workflow-sdk.dev/docs/api-reference/workflow/create-hook`,h)}function g(e){i(`createWebhook()`,`https://workflow-sdk.dev/docs/api-reference/workflow/create-webhook`,g)}function _({schema:e}={}){function t(e){i(`defineHook().create()`,`https://workflow-sdk.dev/docs/api-reference/workflow/define-hook`,t)}return{create:t,async resume(t,n){if(!e?.[`~standard`])return await d(t,n);let r=e[`~standard`].validate(n);if(r instanceof Promise&&(r=await r),r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>String(typeof e==`object`&&e?e.key:e)).join(`.`);return t?` at "${t}": ${e.message}`:` ${e.message}`});throw Error(`Hook payload did not match the defined schema:\n${e.join(`
1
+ import{o as e,r as t}from"../../_chunks/workflow/dist-0iNBqPYp.js";import{i as n,n as r,r as i}from"../../_chunks/workflow/context-errors-zbKocOyk.js";import{Bt as a,Ht as o,L as s,S as c,Vt as l,h as u,n as d,w as f,z as p}from"../../_chunks/workflow/resume-hook-CL8Ed91K.js";import{t as m}from"../../_chunks/workflow/sleep-Dn3i9nxI.js";function h(e){i(`createHook()`,`https://workflow-sdk.dev/docs/api-reference/workflow/create-hook`,h)}function g(e){i(`createWebhook()`,`https://workflow-sdk.dev/docs/api-reference/workflow/create-webhook`,g)}function _({schema:e}={}){function t(e){i(`defineHook().create()`,`https://workflow-sdk.dev/docs/api-reference/workflow/define-hook`,t)}return{create:t,async resume(t,n){if(!e?.[`~standard`])return await d(t,n);let r=e[`~standard`].validate(n);if(r instanceof Promise&&(r=await r),r.issues){let e=r.issues.map(e=>{let t=e.path?.map(e=>String(typeof e==`object`&&e?e.key:e)).join(`.`);return t?` at "${t}": ${e.message}`:` ${e.message}`});throw Error(`Hook payload did not match the defined schema:\n${e.join(`
2
2
  `)}`)}return await d(t,r.value)}}}function v(){let e=p.getStore();return e||r(`getStepMetadata()`,`https://workflow-sdk.dev/docs/api-reference/workflow/get-step-metadata`,v),e.stepMetadata}function y(){let e=p.getStore();return e||n(`getWorkflowMetadata()`,`https://workflow-sdk.dev/docs/api-reference/workflow/get-workflow-metadata`,y),e.workflowMetadata}function b(e={}){let t=p.getStore();t||n(`getWritable()`,`https://workflow-sdk.dev/docs/api-reference/workflow/get-writable`,b);let{namespace:r}=e,i=t.workflowMetadata.workflowRunId,d=s(i,r),m=f(c(globalThis,t.ops,i,t.encryptionKey),t.encryptionKey),h=new u(i,d),g=a();return t.ops.push(g.promise),l(m.readable,h,g).catch(()=>{}),o(m.writable,g),m.writable}export{t as FatalError,e as RetryableError,h as createHook,g as createWebhook,_ as defineHook,v as getStepMetadata,y as getWorkflowMetadata,b as getWritable,m as sleep};
@@ -21,7 +21,9 @@ export type StopSleepResult = any;
21
21
  export interface WorkflowWorldCollection {
22
22
  get(id: string, options?: Record<string, any>): Promise<any>;
23
23
  get(params?: Record<string, any>, options?: Record<string, any>): Promise<any>;
24
- list(params?: Record<string, any>): Promise<{ cursor?: string | null; data: any[]; hasMore?: boolean }>;
24
+ list(
25
+ params?: Record<string, any>,
26
+ ): Promise<{ cursor?: string | null; data: any[]; hasMore?: boolean }>;
25
27
  }
26
28
  export interface WorkflowWorld {
27
29
  readonly events: WorkflowWorldCollection;
@@ -60,4 +62,6 @@ export declare function start<T = any>(
60
62
  options?: StartOptions,
61
63
  ): Promise<Run<T>>;
62
64
  export declare function wakeUpRun(...args: unknown[]): Promise<unknown>;
63
- export declare function workflowEntrypoint(workflowCode: string): (req: Request) => Promise<Response>;
65
+ export declare function workflowEntrypoint(
66
+ workflowCode: string,
67
+ ): (req: Request) => Promise<Response>;