@cchevli/inngest 1.8.1-walton.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 (44) hide show
  1. package/CHANGELOG.md +3981 -0
  2. package/dist/__tests__/adapters/_utils.d.ts +18 -0
  3. package/dist/__tests__/adapters/_utils.d.ts.map +1 -0
  4. package/dist/__tests__/durable-agent.test.utils.d.ts +43 -0
  5. package/dist/__tests__/durable-agent.test.utils.d.ts.map +1 -0
  6. package/dist/chunk-MICZJLEE.cjs +1977 -0
  7. package/dist/chunk-MICZJLEE.cjs.map +1 -0
  8. package/dist/chunk-SE7QPBOX.js +1970 -0
  9. package/dist/chunk-SE7QPBOX.js.map +1 -0
  10. package/dist/connect.cjs +12 -0
  11. package/dist/connect.cjs.map +1 -0
  12. package/dist/connect.d.ts +43 -0
  13. package/dist/connect.d.ts.map +1 -0
  14. package/dist/connect.js +3 -0
  15. package/dist/connect.js.map +1 -0
  16. package/dist/durable-agent/create-inngest-agent.d.ts +425 -0
  17. package/dist/durable-agent/create-inngest-agent.d.ts.map +1 -0
  18. package/dist/durable-agent/create-inngest-agentic-workflow.d.ts +56 -0
  19. package/dist/durable-agent/create-inngest-agentic-workflow.d.ts.map +1 -0
  20. package/dist/durable-agent/index.d.ts +48 -0
  21. package/dist/durable-agent/index.d.ts.map +1 -0
  22. package/dist/execution-engine.d.ts +209 -0
  23. package/dist/execution-engine.d.ts.map +1 -0
  24. package/dist/functions.d.ts +7 -0
  25. package/dist/functions.d.ts.map +1 -0
  26. package/dist/index.cjs +1576 -0
  27. package/dist/index.cjs.map +1 -0
  28. package/dist/index.d.ts +117 -0
  29. package/dist/index.d.ts.map +1 -0
  30. package/dist/index.js +1548 -0
  31. package/dist/index.js.map +1 -0
  32. package/dist/nested-workflow-output.d.ts +21 -0
  33. package/dist/nested-workflow-output.d.ts.map +1 -0
  34. package/dist/pubsub.d.ts +60 -0
  35. package/dist/pubsub.d.ts.map +1 -0
  36. package/dist/run.d.ts +234 -0
  37. package/dist/run.d.ts.map +1 -0
  38. package/dist/serve.d.ts +77 -0
  39. package/dist/serve.d.ts.map +1 -0
  40. package/dist/types.d.ts +16 -0
  41. package/dist/types.d.ts.map +1 -0
  42. package/dist/workflow.d.ts +58 -0
  43. package/dist/workflow.d.ts.map +1 -0
  44. package/package.json +98 -0
@@ -0,0 +1,18 @@
1
+ import { Mastra } from '@mastra/core/mastra';
2
+ import { Inngest } from 'inngest';
3
+ import type { InngestWorkflow } from '../../workflow.js';
4
+ export declare const INNGEST_PORT = 4100;
5
+ export declare const HANDLER_PORT = 4101;
6
+ export declare function createTestInngest(id: string): Inngest<{
7
+ readonly id: string;
8
+ readonly baseUrl: "http://localhost:4100";
9
+ }>;
10
+ export declare function resetInngest(): Promise<void>;
11
+ export declare function waitForInngestSync(ms?: number): Promise<void>;
12
+ export interface TestWorkflowResult {
13
+ workflow: InngestWorkflow<any, any, any>;
14
+ mastra: Mastra;
15
+ inngest: Inngest;
16
+ }
17
+ export declare function createTestWorkflow(adapterId: string): TestWorkflowResult;
18
+ //# sourceMappingURL=_utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"_utils.d.ts","sourceRoot":"","sources":["../../../src/__tests__/adapters/_utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAG7C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAEtD,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,YAAY,OAAO,CAAC;AAEjC,wBAAgB,iBAAiB,CAAC,EAAE,EAAE,MAAM;;;GAK3C;AAED,wBAAsB,YAAY,kBAIjC;AAED,wBAAsB,kBAAkB,CAAC,EAAE,SAAO,iBAEjD;AAED,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,eAAe,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC;IACzC,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,kBAAkB,CAAC,SAAS,EAAE,MAAM,GAAG,kBAAkB,CA0CxE"}
@@ -0,0 +1,43 @@
1
+ import { Mastra } from '@mastra/core/mastra';
2
+ import { Inngest } from 'inngest';
3
+ export declare const INNGEST_PORT = 4100;
4
+ export declare const HANDLER_PORT = 4101;
5
+ /**
6
+ * Generate unique test ID to isolate each test.
7
+ * Uses a short UUID for readability in logs.
8
+ */
9
+ export declare function generateTestId(): string;
10
+ /**
11
+ * Get the shared Inngest client.
12
+ * All tests use the same Inngest client since workflow state is isolated by runId/agentId.
13
+ */
14
+ export declare function getSharedInngest(): Inngest;
15
+ /**
16
+ * Get the shared Mastra instance.
17
+ * @throws Error if called before setupSharedTestInfrastructure()
18
+ */
19
+ export declare function getSharedMastra(): Mastra;
20
+ /**
21
+ * Wait for Inngest to sync with the app.
22
+ */
23
+ export declare function waitForInngestSync(ms?: number): Promise<void>;
24
+ /**
25
+ * Initialize shared test infrastructure.
26
+ * Call this once in beforeAll for the test suite.
27
+ *
28
+ * This starts the Inngest dev server using npx (no Docker required).
29
+ */
30
+ export declare function setupSharedTestInfrastructure(): Promise<void>;
31
+ /**
32
+ * Teardown shared test infrastructure.
33
+ * Call this once in afterAll for the test suite.
34
+ */
35
+ export declare function teardownSharedTestInfrastructure(): Promise<void>;
36
+ /**
37
+ * Test setup result containing everything needed to run a test.
38
+ */
39
+ export interface TestSetup {
40
+ mastra: Mastra;
41
+ cleanup: () => Promise<void>;
42
+ }
43
+ //# sourceMappingURL=durable-agent.test.utils.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"durable-agent.test.utils.d.ts","sourceRoot":"","sources":["../../src/__tests__/durable-agent.test.utils.ts"],"names":[],"mappings":"AAaA,OAAO,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAI7C,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAIlC,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,YAAY,OAAO,CAAC;AAejC;;;GAGG;AACH,wBAAgB,cAAc,IAAI,MAAM,CAEvC;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,IAAI,OAAO,CAQ1C;AAED;;;GAGG;AACH,wBAAgB,eAAe,IAAI,MAAM,CAKxC;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,EAAE,SAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAEhE;AAqFD;;;;;GAKG;AACH,wBAAsB,6BAA6B,IAAI,OAAO,CAAC,IAAI,CAAC,CAmDnE;AAED;;;GAGG;AACH,wBAAsB,gCAAgC,IAAI,OAAO,CAAC,IAAI,CAAC,CAuBtE;AAMD;;GAEG;AACH,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;CAC9B"}