@revenexx/integrations-node-devkit 0.8.0 → 0.8.1

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.
@@ -0,0 +1,96 @@
1
+ import type { INodeContext } from '@revenexx/integrations-node-sdk';
2
+ import { vi } from 'vitest';
3
+ /**
4
+ * Drop-in replacement for the `createMockContext` helper that was, until this
5
+ * package existed, copy-pasted byte-for-byte into every node repo's
6
+ * `tests/helpers/context.ts`. Builds a full {@link INodeContext} with
7
+ * `vi.fn()`-backed `logger`, `secrets.get`, `credentials.get` and `state` so a
8
+ * node's `execute` can be unit-tested in isolation.
9
+ *
10
+ * The state mock is **stateful on purpose**: what the node writes, it reads
11
+ * back. A node's interesting behaviour is precisely the second run — the one
12
+ * that finds the mapping it created the first time — and a mock that forgets
13
+ * would only ever exercise the create branch. It is the one place an author can
14
+ * test writes at all: in the real product, author-time execution is read-only.
15
+ *
16
+ * It reads back *when the store would let it*, which is not the same for all
17
+ * four roles (SDK 1.0.0, `specs/workflow-state.md`): a mapping and a claim take
18
+ * effect immediately, a cursor and a digest are staged and adopted only once the
19
+ * run completes. So `cursor.get` after `cursor.set` still answers what the last
20
+ * completed run left — call {@link MockContext.completeRun} between two
21
+ * `execute` calls to play the second run, and leave it uncalled to play the run
22
+ * that failed and left the watermark where it was.
23
+ */
24
+ export type MockLogger = {
25
+ info: ReturnType<typeof vi.fn>;
26
+ warn: ReturnType<typeof vi.fn>;
27
+ error: ReturnType<typeof vi.fn>;
28
+ };
29
+ export type MockSecrets = {
30
+ get: ReturnType<typeof vi.fn>;
31
+ };
32
+ export type MockCredentials = {
33
+ get: ReturnType<typeof vi.fn>;
34
+ };
35
+ /** Every state operation is a `vi.fn()`, so calls can be asserted on. */
36
+ export type MockState = {
37
+ mapping: {
38
+ get: ReturnType<typeof vi.fn>;
39
+ put: ReturnType<typeof vi.fn>;
40
+ };
41
+ cursor: {
42
+ get: ReturnType<typeof vi.fn>;
43
+ set: ReturnType<typeof vi.fn>;
44
+ };
45
+ claim: ReturnType<typeof vi.fn>;
46
+ digest: {
47
+ unchanged: ReturnType<typeof vi.fn>;
48
+ set: ReturnType<typeof vi.fn>;
49
+ };
50
+ };
51
+ /**
52
+ * What the store already knows when the node starts — the "this ran before"
53
+ * half of any sync test.
54
+ */
55
+ export interface MockStateSeed {
56
+ /** namespace -> { leftKey: rightKey }; readable from either side. */
57
+ mappings?: Record<string, Record<string, string>>;
58
+ /** namespace -> partitionKey ('' for the unpartitioned one) -> watermark. */
59
+ cursors?: Record<string, Record<string, unknown>>;
60
+ /** namespace -> keys already claimed, so `claim` returns false for them. */
61
+ claims?: Record<string, string[]>;
62
+ /** namespace -> { entityKey: digest }. */
63
+ digests?: Record<string, Record<string, string>>;
64
+ }
65
+ export type MockContext = INodeContext & {
66
+ logger: MockLogger;
67
+ secrets: MockSecrets;
68
+ credentials: MockCredentials;
69
+ state: MockState;
70
+ /**
71
+ * Adopts what this run staged — the cursors and digests it set — the way the
72
+ * engine does when a run completes. Not part of {@link INodeContext}: it is
73
+ * the harness standing in for the run's own ending, and a node can never call
74
+ * it. A test that never calls it has played a run that did not complete.
75
+ */
76
+ completeRun: () => void;
77
+ };
78
+ export interface CreateMockContextOptions {
79
+ signal?: AbortSignal;
80
+ /** Secret key -> value returned by `secrets.get`. Unknown keys fall back to a deterministic stub. */
81
+ secrets?: Record<string, string>;
82
+ /** When set, `secrets.get` rejects with this error instead of resolving. */
83
+ secretsError?: Error;
84
+ /** Credential instance id -> resolved access data returned by `credentials.get`. */
85
+ credentials?: Record<string, Record<string, unknown>>;
86
+ /** When set, `credentials.get` rejects with this error instead of resolving. */
87
+ credentialsError?: Error;
88
+ /** What the state store already holds when the node starts. */
89
+ state?: MockStateSeed;
90
+ /**
91
+ * When set, every state call rejects with this error — the shape of the
92
+ * engine refusing a namespace the workflow never declared.
93
+ */
94
+ stateError?: Error;
95
+ }
96
+ export declare function createMockContext(options?: CreateMockContextOptions): MockContext;
@@ -0,0 +1,66 @@
1
+ import type { ICredential, ICredentialContext, ICredentialResolveResult, ICredentialTestResult } from '@revenexx/integrations-node-sdk';
2
+ import { vi } from 'vitest';
3
+ /**
4
+ * Harness for unit-testing a credential type's `test` / `resolve` / 3-legged
5
+ * OAuth without the credentials broker or a real provider. Combine with
6
+ * {@link stubFetch} / {@link fakeTokenEndpoint} to drive the token endpoint,
7
+ * and inspect the returned `persistDurableCreds` spy to assert refresh-token
8
+ * rotation.
9
+ */
10
+ export type MockCredentialLogger = {
11
+ info: ReturnType<typeof vi.fn>;
12
+ warn: ReturnType<typeof vi.fn>;
13
+ error: ReturnType<typeof vi.fn>;
14
+ };
15
+ export type MockCredentialContext = ICredentialContext & {
16
+ logger: MockCredentialLogger;
17
+ /** Spy wired to `ctx.persistDurableCreds`; assert `.toHaveBeenCalledWith(...)`. */
18
+ persistDurableCreds: ReturnType<typeof vi.fn>;
19
+ };
20
+ export interface CreateCredentialContextOptions {
21
+ signal?: AbortSignal;
22
+ }
23
+ export declare function createCredentialContext(options?: CreateCredentialContextOptions): MockCredentialContext;
24
+ export interface RunCredentialTestOptions {
25
+ config: Record<string, unknown>;
26
+ signal?: AbortSignal;
27
+ }
28
+ /** Runs a credential's `test(ctx, config)` and returns its result. */
29
+ export declare function runCredentialTest(credential: ICredential, options: RunCredentialTestOptions): Promise<ICredentialTestResult>;
30
+ export interface RunCredentialResolveOptions {
31
+ config: Record<string, unknown>;
32
+ /** System-managed long-lived secrets (e.g. an OAuth `refresh_token`). */
33
+ durableCreds?: Record<string, unknown> | null;
34
+ signal?: AbortSignal;
35
+ }
36
+ export interface RunCredentialResolveResult {
37
+ result: ICredentialResolveResult;
38
+ /** Spy wired to `ctx.persistDurableCreds` — assert rotation happened. */
39
+ persistDurableCreds: ReturnType<typeof vi.fn>;
40
+ /** The context used, for further assertions (logger calls, etc.). */
41
+ ctx: MockCredentialContext;
42
+ }
43
+ /** Runs a credential's `resolve(ctx, config, durableCreds)` and captures rotation. */
44
+ export declare function runCredentialResolve(credential: ICredential, options: RunCredentialResolveOptions): Promise<RunCredentialResolveResult>;
45
+ export interface RunOAuthAuthorizeUrlOptions {
46
+ config: Record<string, unknown>;
47
+ redirectUri: string;
48
+ state: string;
49
+ signal?: AbortSignal;
50
+ }
51
+ /** Runs `buildAuthorizeUrl` on a 3-legged OAuth credential; throws if unsupported. */
52
+ export declare function runOAuthAuthorizeUrl(credential: ICredential, options: RunOAuthAuthorizeUrlOptions): Promise<{
53
+ authorizeUrl: string;
54
+ codeVerifier?: string;
55
+ }>;
56
+ export interface RunOAuthExchangeCodeOptions {
57
+ config: Record<string, unknown>;
58
+ code: string;
59
+ redirectUri: string;
60
+ codeVerifier?: string;
61
+ signal?: AbortSignal;
62
+ }
63
+ /** Runs `exchangeCode` on a 3-legged OAuth credential; throws if unsupported. */
64
+ export declare function runOAuthExchangeCode(credential: ICredential, options: RunOAuthExchangeCodeOptions): Promise<{
65
+ durableCreds: Record<string, unknown>;
66
+ }>;
@@ -0,0 +1,57 @@
1
+ import { vi } from 'vitest';
2
+ /**
3
+ * Utilities for stubbing the global `fetch` so a credential's `resolve` /
4
+ * `test` (which reach an OAuth token endpoint via the SDK's `postForm`) or a
5
+ * node's `execute` (which uses `safeFetch` → global `fetch`) can be
6
+ * unit-tested without touching the network. Builds real `Response` objects so
7
+ * `res.ok` / `res.status` / `res.text()` / `res.json()` all behave exactly as
8
+ * in production.
9
+ */
10
+ export interface StubResponseInit {
11
+ status?: number;
12
+ headers?: Record<string, string>;
13
+ /** JSON body — serialized and served as `application/json` unless `body` is set. */
14
+ json?: unknown;
15
+ /** Raw string body. Takes precedence over `json`. */
16
+ body?: string;
17
+ }
18
+ export interface StubbedRequest {
19
+ url: string;
20
+ method: string;
21
+ init?: RequestInit;
22
+ }
23
+ export type FetchHandler = (request: StubbedRequest) => StubResponseInit | Response | Promise<StubResponseInit | Response>;
24
+ /** Builds a real `Response` from a {@link StubResponseInit}. */
25
+ export declare function buildResponse(init: StubResponseInit): Response;
26
+ export interface StubFetchResult {
27
+ /** The `vi.fn()` installed as `globalThis.fetch` — assert calls on it. */
28
+ fetchMock: ReturnType<typeof vi.fn>;
29
+ /** Restores the previous `globalThis.fetch`. */
30
+ restore(): void;
31
+ }
32
+ /**
33
+ * Replaces `globalThis.fetch` with a `vi.fn()` driven by `handler`. Pass a
34
+ * static {@link StubResponseInit} to answer every request identically, or a
35
+ * {@link FetchHandler} to branch on url/method. Call `restore()` when done
36
+ * (e.g. in `afterEach`).
37
+ */
38
+ export declare function stubFetch(handler: FetchHandler | StubResponseInit): StubFetchResult;
39
+ export interface FakeTokenEndpointOptions {
40
+ /** Only answer requests to this exact URL; other requests 404. Omit to answer any URL. */
41
+ tokenUrl?: string;
42
+ accessToken?: string;
43
+ tokenType?: string;
44
+ /** Seconds until expiry (OAuth `expires_in`). Set `null` to omit the field. */
45
+ expiresIn?: number | null;
46
+ /** Included as `refresh_token` when set (e.g. to assert rotation). */
47
+ refreshToken?: string;
48
+ /** Extra fields merged into the token response body. */
49
+ extra?: Record<string, unknown>;
50
+ }
51
+ /**
52
+ * A {@link FetchHandler} that emulates an OAuth token endpoint, returning
53
+ * `{ access_token, token_type, expires_in, refresh_token? }`. Compose with
54
+ * {@link stubFetch} to unit-test `oauth2-*` credentials' `resolve` / OAuth
55
+ * `exchangeCode`.
56
+ */
57
+ export declare function fakeTokenEndpoint(options?: FakeTokenEndpointOptions): FetchHandler;
@@ -1,253 +1,4 @@
1
- import { INodeContext, INodeAuthorContext, ICredentialContext, ICredentialResolveResult, ICredential, ICredentialTestResult } from '@revenexx/integrations-node-sdk';
2
- import { vi } from 'vitest';
3
-
4
- /**
5
- * Drop-in replacement for the `createMockContext` helper that was, until this
6
- * package existed, copy-pasted byte-for-byte into every node repo's
7
- * `tests/helpers/context.ts`. Builds a full {@link INodeContext} with
8
- * `vi.fn()`-backed `logger`, `secrets.get`, `credentials.get` and `state` so a
9
- * node's `execute` can be unit-tested in isolation.
10
- *
11
- * The state mock is **stateful on purpose**: what the node writes, it reads
12
- * back. A node's interesting behaviour is precisely the second run — the one
13
- * that finds the mapping it created the first time — and a mock that forgets
14
- * would only ever exercise the create branch. It is the one place an author can
15
- * test writes at all: in the real product, author-time execution is read-only.
16
- *
17
- * It reads back *when the store would let it*, which is not the same for all
18
- * four roles (SDK 1.0.0, `specs/workflow-state.md`): a mapping and a claim take
19
- * effect immediately, a cursor and a digest are staged and adopted only once the
20
- * run completes. So `cursor.get` after `cursor.set` still answers what the last
21
- * completed run left — call {@link MockContext.completeRun} between two
22
- * `execute` calls to play the second run, and leave it uncalled to play the run
23
- * that failed and left the watermark where it was.
24
- */
25
- type MockLogger = {
26
- info: ReturnType<typeof vi.fn>;
27
- warn: ReturnType<typeof vi.fn>;
28
- error: ReturnType<typeof vi.fn>;
29
- };
30
- type MockSecrets = {
31
- get: ReturnType<typeof vi.fn>;
32
- };
33
- type MockCredentials = {
34
- get: ReturnType<typeof vi.fn>;
35
- };
36
- /** Every state operation is a `vi.fn()`, so calls can be asserted on. */
37
- type MockState = {
38
- mapping: {
39
- get: ReturnType<typeof vi.fn>;
40
- put: ReturnType<typeof vi.fn>;
41
- };
42
- cursor: {
43
- get: ReturnType<typeof vi.fn>;
44
- set: ReturnType<typeof vi.fn>;
45
- };
46
- claim: ReturnType<typeof vi.fn>;
47
- digest: {
48
- unchanged: ReturnType<typeof vi.fn>;
49
- set: ReturnType<typeof vi.fn>;
50
- };
51
- };
52
- /**
53
- * What the store already knows when the node starts — the "this ran before"
54
- * half of any sync test.
55
- */
56
- interface MockStateSeed {
57
- /** namespace -> { leftKey: rightKey }; readable from either side. */
58
- mappings?: Record<string, Record<string, string>>;
59
- /** namespace -> partitionKey ('' for the unpartitioned one) -> watermark. */
60
- cursors?: Record<string, Record<string, unknown>>;
61
- /** namespace -> keys already claimed, so `claim` returns false for them. */
62
- claims?: Record<string, string[]>;
63
- /** namespace -> { entityKey: digest }. */
64
- digests?: Record<string, Record<string, string>>;
65
- }
66
- type MockContext = INodeContext & {
67
- logger: MockLogger;
68
- secrets: MockSecrets;
69
- credentials: MockCredentials;
70
- state: MockState;
71
- /**
72
- * Adopts what this run staged — the cursors and digests it set — the way the
73
- * engine does when a run completes. Not part of {@link INodeContext}: it is
74
- * the harness standing in for the run's own ending, and a node can never call
75
- * it. A test that never calls it has played a run that did not complete.
76
- */
77
- completeRun: () => void;
78
- };
79
- interface CreateMockContextOptions {
80
- signal?: AbortSignal;
81
- /** Secret key -> value returned by `secrets.get`. Unknown keys fall back to a deterministic stub. */
82
- secrets?: Record<string, string>;
83
- /** When set, `secrets.get` rejects with this error instead of resolving. */
84
- secretsError?: Error;
85
- /** Credential instance id -> resolved access data returned by `credentials.get`. */
86
- credentials?: Record<string, Record<string, unknown>>;
87
- /** When set, `credentials.get` rejects with this error instead of resolving. */
88
- credentialsError?: Error;
89
- /** What the state store already holds when the node starts. */
90
- state?: MockStateSeed;
91
- /**
92
- * When set, every state call rejects with this error — the shape of the
93
- * engine refusing a namespace the workflow never declared.
94
- */
95
- stateError?: Error;
96
- }
97
- declare function createMockContext(options?: CreateMockContextOptions): MockContext;
98
-
99
- /**
100
- * Builds an {@link INodeAuthorContext} for unit-testing a node's *author-time*
101
- * resolvers (`loadOptions`, `resolveConfigSchema`, `resolveOutputs`). Until this
102
- * package existed, this factory was reinvented inline in each repo's resolver
103
- * tests. Mirrors {@link createMockContext}: `secrets.get` / `credentials.get`
104
- * are `vi.fn()`-backed and seedable.
105
- */
106
- type MockAuthorLogger = {
107
- info: ReturnType<typeof vi.fn>;
108
- warn: ReturnType<typeof vi.fn>;
109
- error: ReturnType<typeof vi.fn>;
110
- };
111
- type MockAuthorContext = INodeAuthorContext & {
112
- logger: MockAuthorLogger;
113
- secrets: {
114
- get: ReturnType<typeof vi.fn>;
115
- };
116
- credentials: {
117
- get: ReturnType<typeof vi.fn>;
118
- };
119
- };
120
- interface CreateAuthorContextOptions {
121
- signal?: AbortSignal;
122
- /** Preferred locale for resolved labels. */
123
- locale?: string;
124
- secrets?: Record<string, string>;
125
- secretsError?: Error;
126
- credentials?: Record<string, Record<string, unknown>>;
127
- credentialsError?: Error;
128
- }
129
- declare function createAuthorContext(config?: Record<string, unknown>, options?: CreateAuthorContextOptions): MockAuthorContext;
130
-
131
- /**
132
- * Utilities for stubbing the global `fetch` so a credential's `resolve` /
133
- * `test` (which reach an OAuth token endpoint via the SDK's `postForm`) or a
134
- * node's `execute` (which uses `safeFetch` → global `fetch`) can be
135
- * unit-tested without touching the network. Builds real `Response` objects so
136
- * `res.ok` / `res.status` / `res.text()` / `res.json()` all behave exactly as
137
- * in production.
138
- */
139
- interface StubResponseInit {
140
- status?: number;
141
- headers?: Record<string, string>;
142
- /** JSON body — serialized and served as `application/json` unless `body` is set. */
143
- json?: unknown;
144
- /** Raw string body. Takes precedence over `json`. */
145
- body?: string;
146
- }
147
- interface StubbedRequest {
148
- url: string;
149
- method: string;
150
- init?: RequestInit;
151
- }
152
- type FetchHandler = (request: StubbedRequest) => StubResponseInit | Response | Promise<StubResponseInit | Response>;
153
- /** Builds a real `Response` from a {@link StubResponseInit}. */
154
- declare function buildResponse(init: StubResponseInit): Response;
155
- interface StubFetchResult {
156
- /** The `vi.fn()` installed as `globalThis.fetch` — assert calls on it. */
157
- fetchMock: ReturnType<typeof vi.fn>;
158
- /** Restores the previous `globalThis.fetch`. */
159
- restore(): void;
160
- }
161
- /**
162
- * Replaces `globalThis.fetch` with a `vi.fn()` driven by `handler`. Pass a
163
- * static {@link StubResponseInit} to answer every request identically, or a
164
- * {@link FetchHandler} to branch on url/method. Call `restore()` when done
165
- * (e.g. in `afterEach`).
166
- */
167
- declare function stubFetch(handler: FetchHandler | StubResponseInit): StubFetchResult;
168
- interface FakeTokenEndpointOptions {
169
- /** Only answer requests to this exact URL; other requests 404. Omit to answer any URL. */
170
- tokenUrl?: string;
171
- accessToken?: string;
172
- tokenType?: string;
173
- /** Seconds until expiry (OAuth `expires_in`). Set `null` to omit the field. */
174
- expiresIn?: number | null;
175
- /** Included as `refresh_token` when set (e.g. to assert rotation). */
176
- refreshToken?: string;
177
- /** Extra fields merged into the token response body. */
178
- extra?: Record<string, unknown>;
179
- }
180
- /**
181
- * A {@link FetchHandler} that emulates an OAuth token endpoint, returning
182
- * `{ access_token, token_type, expires_in, refresh_token? }`. Compose with
183
- * {@link stubFetch} to unit-test `oauth2-*` credentials' `resolve` / OAuth
184
- * `exchangeCode`.
185
- */
186
- declare function fakeTokenEndpoint(options?: FakeTokenEndpointOptions): FetchHandler;
187
-
188
- /**
189
- * Harness for unit-testing a credential type's `test` / `resolve` / 3-legged
190
- * OAuth without the credentials broker or a real provider. Combine with
191
- * {@link stubFetch} / {@link fakeTokenEndpoint} to drive the token endpoint,
192
- * and inspect the returned `persistDurableCreds` spy to assert refresh-token
193
- * rotation.
194
- */
195
- type MockCredentialLogger = {
196
- info: ReturnType<typeof vi.fn>;
197
- warn: ReturnType<typeof vi.fn>;
198
- error: ReturnType<typeof vi.fn>;
199
- };
200
- type MockCredentialContext = ICredentialContext & {
201
- logger: MockCredentialLogger;
202
- /** Spy wired to `ctx.persistDurableCreds`; assert `.toHaveBeenCalledWith(...)`. */
203
- persistDurableCreds: ReturnType<typeof vi.fn>;
204
- };
205
- interface CreateCredentialContextOptions {
206
- signal?: AbortSignal;
207
- }
208
- declare function createCredentialContext(options?: CreateCredentialContextOptions): MockCredentialContext;
209
- interface RunCredentialTestOptions {
210
- config: Record<string, unknown>;
211
- signal?: AbortSignal;
212
- }
213
- /** Runs a credential's `test(ctx, config)` and returns its result. */
214
- declare function runCredentialTest(credential: ICredential, options: RunCredentialTestOptions): Promise<ICredentialTestResult>;
215
- interface RunCredentialResolveOptions {
216
- config: Record<string, unknown>;
217
- /** System-managed long-lived secrets (e.g. an OAuth `refresh_token`). */
218
- durableCreds?: Record<string, unknown> | null;
219
- signal?: AbortSignal;
220
- }
221
- interface RunCredentialResolveResult {
222
- result: ICredentialResolveResult;
223
- /** Spy wired to `ctx.persistDurableCreds` — assert rotation happened. */
224
- persistDurableCreds: ReturnType<typeof vi.fn>;
225
- /** The context used, for further assertions (logger calls, etc.). */
226
- ctx: MockCredentialContext;
227
- }
228
- /** Runs a credential's `resolve(ctx, config, durableCreds)` and captures rotation. */
229
- declare function runCredentialResolve(credential: ICredential, options: RunCredentialResolveOptions): Promise<RunCredentialResolveResult>;
230
- interface RunOAuthAuthorizeUrlOptions {
231
- config: Record<string, unknown>;
232
- redirectUri: string;
233
- state: string;
234
- signal?: AbortSignal;
235
- }
236
- /** Runs `buildAuthorizeUrl` on a 3-legged OAuth credential; throws if unsupported. */
237
- declare function runOAuthAuthorizeUrl(credential: ICredential, options: RunOAuthAuthorizeUrlOptions): Promise<{
238
- authorizeUrl: string;
239
- codeVerifier?: string;
240
- }>;
241
- interface RunOAuthExchangeCodeOptions {
242
- config: Record<string, unknown>;
243
- code: string;
244
- redirectUri: string;
245
- codeVerifier?: string;
246
- signal?: AbortSignal;
247
- }
248
- /** Runs `exchangeCode` on a 3-legged OAuth credential; throws if unsupported. */
249
- declare function runOAuthExchangeCode(credential: ICredential, options: RunOAuthExchangeCodeOptions): Promise<{
250
- durableCreds: Record<string, unknown>;
251
- }>;
252
-
253
- export { type CreateAuthorContextOptions, type CreateCredentialContextOptions, type CreateMockContextOptions, type FakeTokenEndpointOptions, type FetchHandler, type MockAuthorContext, type MockAuthorLogger, type MockContext, type MockCredentialContext, type MockCredentialLogger, type MockCredentials, type MockLogger, type MockSecrets, type MockState, type MockStateSeed, type RunCredentialResolveOptions, type RunCredentialResolveResult, type RunCredentialTestOptions, type RunOAuthAuthorizeUrlOptions, type RunOAuthExchangeCodeOptions, type StubFetchResult, type StubResponseInit, type StubbedRequest, buildResponse, createAuthorContext, createCredentialContext, createMockContext, fakeTokenEndpoint, runCredentialResolve, runCredentialTest, runOAuthAuthorizeUrl, runOAuthExchangeCode, stubFetch };
1
+ export * from './context.js';
2
+ export * from './author.js';
3
+ export * from './fetch.js';
4
+ export * from './credentials.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@revenexx/integrations-node-devkit",
3
- "version": "0.8.0",
3
+ "version": "0.8.1",
4
4
  "description": "Local development kit for Revenexx integration node packages \u2014 a mock Integrations API for previewing nodes/credentials/templates in the Cockpit UI, plus a unit-testing harness. Dev/CI only, never bundled.",
5
5
  "keywords": [
6
6
  "revenexx",
@@ -47,7 +47,7 @@
47
47
  "preview-host"
48
48
  ],
49
49
  "scripts": {
50
- "build": "tsup",
50
+ "build": "tsup && tsc -p tsconfig.build.json",
51
51
  "dev": "tsup --watch",
52
52
  "test": "vitest run",
53
53
  "test:watch": "vitest",
@@ -66,8 +66,8 @@
66
66
  "@changesets/cli": "^3.0.3",
67
67
  "@revenexx/integrations-node-sdk": ">=1.0.0",
68
68
  "@types/node": "^24.0.0",
69
- "tsup": "^8.0.0",
70
- "typescript": "^5.0.0",
69
+ "tsup": "^9.0.0",
70
+ "typescript": "^7.0.2",
71
71
  "vitest": "^2.1.0",
72
72
  "yaml": "^2.9.0"
73
73
  },
@@ -10,10 +10,10 @@
10
10
  "dependencies": {
11
11
  "@dagrejs/dagre": "^3.0.0",
12
12
  "@revenexx/studio": "^0.2.2",
13
- "@revenexx/studio-integrations": "1.4.1",
14
- "@revenexx/studio-shared": "^0.3.0",
13
+ "@revenexx/studio-integrations": "2.8.1",
14
+ "@revenexx/studio-shared": "^0.4.0",
15
15
  "@revenexx/talkback-js": "^0.3.0",
16
- "@solar-icons/nuxt": "^1.2.1",
16
+ "@solar-icons/nuxt": "^2.3.2",
17
17
  "@tiptap/core": "^3.28.0",
18
18
  "@tiptap/extension-document": "^3.28.0",
19
19
  "@tiptap/extension-history": "^3.28.0",