@twin.org/dataspace-app-runner 0.0.3-next.15

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.
package/README.md ADDED
@@ -0,0 +1,21 @@
1
+ # Dataspace App Runner
2
+
3
+ Dataspace app runner task.
4
+
5
+ ## Installation
6
+
7
+ ```shell
8
+ npm install @twin.org/dataspace-app-runner
9
+ ```
10
+
11
+ ## Examples
12
+
13
+ Usage of the APIs is shown in the examples [docs/examples.md](docs/examples.md)
14
+
15
+ ## Reference
16
+
17
+ Detailed reference documentation for the API can be found in [docs/reference/index.md](docs/reference/index.md)
18
+
19
+ ## Changelog
20
+
21
+ The changes between each version can be found in [docs/changelog.md](docs/changelog.md)
@@ -0,0 +1,56 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ import { ContextIdStore } from "@twin.org/context";
4
+ import { Guards, Is } from "@twin.org/core";
5
+ import { DataspaceAppFactory } from "@twin.org/dataspace-models";
6
+ import { EngineCore } from "@twin.org/engine-core";
7
+ import { EngineCoreFactory } from "@twin.org/engine-models";
8
+ const APP_RUNNER_SOURCE = "appRunner";
9
+ let engine;
10
+ /**
11
+ * Dataspace Task Startup Method.
12
+ * @param engineCloneData The Engine.
13
+ * @returns Nothing.
14
+ */
15
+ export async function appRunnerStart(engineCloneData) {
16
+ if (!Is.empty(engineCloneData)) {
17
+ // If the clone data is not empty we use it to create a new engine as it's a new thread
18
+ // otherwise we assume the factories are already populated.
19
+ // We also must return a fixed instance of the engine from the factory in case another
20
+ // background task is started in the same process, otherwise if the app runner ends
21
+ // and removes the engine the factory would have a reference undefined.
22
+ const newEngine = new EngineCore();
23
+ EngineCoreFactory.register("engine", () => newEngine);
24
+ newEngine.populateClone(engineCloneData, await ContextIdStore.getContextIds(), true);
25
+ await newEngine.start();
26
+ engine = newEngine;
27
+ }
28
+ }
29
+ /**
30
+ * Dataspace Task End.
31
+ * @returns Nothing.
32
+ */
33
+ export async function appRunnerEnd() {
34
+ if (!Is.empty(engine)) {
35
+ await engine.stop();
36
+ engine = undefined;
37
+ }
38
+ }
39
+ /**
40
+ * Dataspace Task.
41
+ * @param engineCloneData The Engine.
42
+ * @param payload The payload
43
+ * @returns The execution result.
44
+ */
45
+ export async function appRunner(engineCloneData, payload) {
46
+ Guards.objectValue(APP_RUNNER_SOURCE, "payload", payload);
47
+ Guards.stringValue(APP_RUNNER_SOURCE, "payload.executorApp", payload.executorApp);
48
+ Guards.stringValue(APP_RUNNER_SOURCE, "payload.activityLogEntryId", payload.activityLogEntryId);
49
+ Guards.object(APP_RUNNER_SOURCE, "payload.activity", payload.activity);
50
+ const app = DataspaceAppFactory.get(payload.executorApp);
51
+ const handleActivity = app?.handleActivity?.bind(app);
52
+ Guards.function(APP_RUNNER_SOURCE, "handleActivity", handleActivity);
53
+ const result = await handleActivity(payload.activity);
54
+ return result;
55
+ }
56
+ //# sourceMappingURL=appRunner.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"appRunner.js","sourceRoot":"","sources":["../../src/appRunner.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AACvC,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AACnD,OAAO,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,gBAAgB,CAAC;AAC5C,OAAO,EACN,mBAAmB,EAGnB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACnD,OAAO,EACN,iBAAiB,EAGjB,MAAM,yBAAyB,CAAC;AAIjC,MAAM,iBAAiB,GAAG,WAAW,CAAC;AAEtC,IAAI,MAA+B,CAAC;AAEpC;;;;GAIG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,eAAiC;IACrE,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,eAAe,CAAC,EAAE,CAAC;QAChC,uFAAuF;QACvF,2DAA2D;QAC3D,sFAAsF;QACtF,mFAAmF;QACnF,uEAAuE;QACvE,MAAM,SAAS,GAAG,IAAI,UAAU,EAAE,CAAC;QACnC,iBAAiB,CAAC,QAAQ,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,SAAS,CAAC,CAAC;QAEtD,SAAS,CAAC,aAAa,CAAC,eAAe,EAAE,MAAM,cAAc,CAAC,aAAa,EAAE,EAAE,IAAI,CAAC,CAAC;QACrF,MAAM,SAAS,CAAC,KAAK,EAAE,CAAC;QACxB,MAAM,GAAG,SAAS,CAAC;IACpB,CAAC;AACF,CAAC;AAED;;;GAGG;AACH,MAAM,CAAC,KAAK,UAAU,YAAY;IACjC,IAAI,CAAC,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,EAAE,CAAC;QACvB,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;QACpB,MAAM,GAAG,SAAS,CAAC;IACpB,CAAC;AACF,CAAC;AAED;;;;;GAKG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAC9B,eAAiC,EACjC,OAA0B;IAE1B,MAAM,CAAC,WAAW,CAAoB,iBAAiB,aAAmB,OAAO,CAAC,CAAC;IACnF,MAAM,CAAC,WAAW,CAAC,iBAAiB,yBAA+B,OAAO,CAAC,WAAW,CAAC,CAAC;IACxF,MAAM,CAAC,WAAW,CACjB,iBAAiB,gCAEjB,OAAO,CAAC,kBAAkB,CAC1B,CAAC;IACF,MAAM,CAAC,MAAM,CACZ,iBAAiB,sBAEjB,OAAO,CAAC,QAAQ,CAChB,CAAC;IAEF,MAAM,GAAG,GAAG,mBAAmB,CAAC,GAAG,CAAgB,OAAO,CAAC,WAAW,CAAC,CAAC;IAExE,MAAM,cAAc,GAAG,GAAG,EAAE,cAAc,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;IACtD,MAAM,CAAC,QAAQ,CAAC,iBAAiB,oBAA0B,cAAc,CAAC,CAAC;IAC3E,MAAM,MAAM,GAAG,MAAM,cAAc,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC;IACtD,OAAO,MAAM,CAAC;AACf,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\nimport { ContextIdStore } from \"@twin.org/context\";\nimport { Guards, Is } from \"@twin.org/core\";\nimport {\n\tDataspaceAppFactory,\n\ttype IDataspaceApp,\n\ttype IExecutionPayload\n} from \"@twin.org/dataspace-models\";\nimport { EngineCore } from \"@twin.org/engine-core\";\nimport {\n\tEngineCoreFactory,\n\ttype IEngineCore,\n\ttype IEngineCoreClone\n} from \"@twin.org/engine-models\";\nimport { nameof } from \"@twin.org/nameof\";\nimport type { IActivityStreamsActivity } from \"@twin.org/standards-w3c-activity-streams\";\n\nconst APP_RUNNER_SOURCE = \"appRunner\";\n\nlet engine: IEngineCore | undefined;\n\n/**\n * Dataspace Task Startup Method.\n * @param engineCloneData The Engine.\n * @returns Nothing.\n */\nexport async function appRunnerStart(engineCloneData: IEngineCoreClone): Promise<void> {\n\tif (!Is.empty(engineCloneData)) {\n\t\t// If the clone data is not empty we use it to create a new engine as it's a new thread\n\t\t// otherwise we assume the factories are already populated.\n\t\t// We also must return a fixed instance of the engine from the factory in case another\n\t\t// background task is started in the same process, otherwise if the app runner ends\n\t\t// and removes the engine the factory would have a reference undefined.\n\t\tconst newEngine = new EngineCore();\n\t\tEngineCoreFactory.register(\"engine\", () => newEngine);\n\n\t\tnewEngine.populateClone(engineCloneData, await ContextIdStore.getContextIds(), true);\n\t\tawait newEngine.start();\n\t\tengine = newEngine;\n\t}\n}\n\n/**\n * Dataspace Task End.\n * @returns Nothing.\n */\nexport async function appRunnerEnd(): Promise<void> {\n\tif (!Is.empty(engine)) {\n\t\tawait engine.stop();\n\t\tengine = undefined;\n\t}\n}\n\n/**\n * Dataspace Task.\n * @param engineCloneData The Engine.\n * @param payload The payload\n * @returns The execution result.\n */\nexport async function appRunner(\n\tengineCloneData: IEngineCoreClone,\n\tpayload: IExecutionPayload\n): Promise<unknown> {\n\tGuards.objectValue<IExecutionPayload>(APP_RUNNER_SOURCE, nameof(payload), payload);\n\tGuards.stringValue(APP_RUNNER_SOURCE, nameof(payload.executorApp), payload.executorApp);\n\tGuards.stringValue(\n\t\tAPP_RUNNER_SOURCE,\n\t\tnameof(payload.activityLogEntryId),\n\t\tpayload.activityLogEntryId\n\t);\n\tGuards.object<IActivityStreamsActivity>(\n\t\tAPP_RUNNER_SOURCE,\n\t\tnameof(payload.activity),\n\t\tpayload.activity\n\t);\n\n\tconst app = DataspaceAppFactory.get<IDataspaceApp>(payload.executorApp);\n\n\tconst handleActivity = app?.handleActivity?.bind(app);\n\tGuards.function(APP_RUNNER_SOURCE, nameof(handleActivity), handleActivity);\n\tconst result = await handleActivity(payload.activity);\n\treturn result;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ // Copyright 2025 IOTA Stiftung.
2
+ // SPDX-License-Identifier: Apache-2.0.
3
+ export * from "./appRunner.js";
4
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,gCAAgC;AAChC,uCAAuC;AAEvC,cAAc,gBAAgB,CAAC","sourcesContent":["// Copyright 2025 IOTA Stiftung.\n// SPDX-License-Identifier: Apache-2.0.\n\nexport * from \"./appRunner.js\";\n"]}
@@ -0,0 +1,20 @@
1
+ import { type IExecutionPayload } from "@twin.org/dataspace-models";
2
+ import { type IEngineCoreClone } from "@twin.org/engine-models";
3
+ /**
4
+ * Dataspace Task Startup Method.
5
+ * @param engineCloneData The Engine.
6
+ * @returns Nothing.
7
+ */
8
+ export declare function appRunnerStart(engineCloneData: IEngineCoreClone): Promise<void>;
9
+ /**
10
+ * Dataspace Task End.
11
+ * @returns Nothing.
12
+ */
13
+ export declare function appRunnerEnd(): Promise<void>;
14
+ /**
15
+ * Dataspace Task.
16
+ * @param engineCloneData The Engine.
17
+ * @param payload The payload
18
+ * @returns The execution result.
19
+ */
20
+ export declare function appRunner(engineCloneData: IEngineCoreClone, payload: IExecutionPayload): Promise<unknown>;
@@ -0,0 +1 @@
1
+ export * from "./appRunner.js";
@@ -0,0 +1,262 @@
1
+ # Changelog
2
+
3
+ ## [0.0.3-next.15](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.14...dataspace-app-runner-v0.0.3-next.15) (2026-03-02)
4
+
5
+
6
+ ### Features
7
+
8
+ * unification of the data exchange and the data space connector ([#57](https://github.com/twinfoundation/dataspace/issues/57)) ([df2644d](https://github.com/twinfoundation/dataspace/commit/df2644d989471e07dadd83d27bef736179e31bf4))
9
+
10
+
11
+ ### Dependencies
12
+
13
+ * The following workspace dependencies were updated
14
+ * dependencies
15
+ * @twin.org/dataspace-models bumped from 0.0.3-next.14 to 0.0.3-next.15
16
+
17
+ ## [0.0.3-next.12](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.11...dataspace-app-runner-v0.0.3-next.12) (2026-01-22)
18
+
19
+
20
+ ### Miscellaneous Chores
21
+
22
+ * **dataspace-app-runner:** Synchronize repo versions
23
+
24
+
25
+ ### Dependencies
26
+
27
+ * The following workspace dependencies were updated
28
+ * dependencies
29
+ * @twin.org/dataspace-models bumped from 0.0.3-next.11 to 0.0.3-next.12
30
+
31
+ ## [0.0.3-next.11](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.10...dataspace-app-runner-v0.0.3-next.11) (2026-01-22)
32
+
33
+
34
+ ### Miscellaneous Chores
35
+
36
+ * **dataspace-app-runner:** Synchronize repo versions
37
+
38
+
39
+ ### Dependencies
40
+
41
+ * The following workspace dependencies were updated
42
+ * dependencies
43
+ * @twin.org/dataspace-models bumped from 0.0.3-next.10 to 0.0.3-next.11
44
+
45
+ ## [0.0.3-next.10](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.9...dataspace-app-runner-v0.0.3-next.10) (2026-01-19)
46
+
47
+
48
+ ### Miscellaneous Chores
49
+
50
+ * **dataspace-app-runner:** Synchronize repo versions
51
+
52
+
53
+ ### Dependencies
54
+
55
+ * The following workspace dependencies were updated
56
+ * dependencies
57
+ * @twin.org/dataspace-models bumped from 0.0.3-next.9 to 0.0.3-next.10
58
+
59
+ ## [0.0.3-next.9](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.8...dataspace-app-runner-v0.0.3-next.9) (2026-01-19)
60
+
61
+
62
+ ### Miscellaneous Chores
63
+
64
+ * **dataspace-app-runner:** Synchronize repo versions
65
+
66
+
67
+ ### Dependencies
68
+
69
+ * The following workspace dependencies were updated
70
+ * dependencies
71
+ * @twin.org/dataspace-models bumped from 0.0.3-next.8 to 0.0.3-next.9
72
+
73
+ ## [0.0.3-next.8](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.7...dataspace-app-runner-v0.0.3-next.8) (2026-01-16)
74
+
75
+
76
+ ### Bug Fixes
77
+
78
+ * engine-core moved to peer-dependency ([e9fd9c0](https://github.com/twinfoundation/dataspace/commit/e9fd9c0c77c7b0a99d0ffd1883cd9f9847bbd35c))
79
+
80
+
81
+ ### Dependencies
82
+
83
+ * The following workspace dependencies were updated
84
+ * dependencies
85
+ * @twin.org/dataspace-models bumped from 0.0.3-next.7 to 0.0.3-next.8
86
+
87
+ ## [0.0.3-next.7](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.6...dataspace-app-runner-v0.0.3-next.7) (2026-01-16)
88
+
89
+
90
+ ### Miscellaneous Chores
91
+
92
+ * **dataspace-app-runner:** Synchronize repo versions
93
+
94
+
95
+ ### Dependencies
96
+
97
+ * The following workspace dependencies were updated
98
+ * dependencies
99
+ * @twin.org/dataspace-models bumped from 0.0.3-next.6 to 0.0.3-next.7
100
+
101
+ ## [0.0.3-next.6](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.5...dataspace-app-runner-v0.0.3-next.6) (2026-01-15)
102
+
103
+
104
+ ### Miscellaneous Chores
105
+
106
+ * **dataspace-app-runner:** Synchronize repo versions
107
+
108
+
109
+ ### Dependencies
110
+
111
+ * The following workspace dependencies were updated
112
+ * dependencies
113
+ * @twin.org/dataspace-models bumped from 0.0.3-next.5 to 0.0.3-next.6
114
+
115
+ ## [0.0.3-next.5](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.4...dataspace-app-runner-v0.0.3-next.5) (2026-01-07)
116
+
117
+
118
+ ### Bug Fixes
119
+
120
+ * populate engine factory in app runner ([#39](https://github.com/twinfoundation/dataspace/issues/39)) ([5757087](https://github.com/twinfoundation/dataspace/commit/57570871a1b28fd518e3b6df7aed000077718855))
121
+
122
+
123
+ ### Dependencies
124
+
125
+ * The following workspace dependencies were updated
126
+ * dependencies
127
+ * @twin.org/dataspace-models bumped from 0.0.3-next.4 to 0.0.3-next.5
128
+
129
+ ## [0.0.3-next.4](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.3...dataspace-app-runner-v0.0.3-next.4) (2026-01-06)
130
+
131
+
132
+ ### Features
133
+
134
+ * update standards dependencies ([8534ad7](https://github.com/twinfoundation/dataspace/commit/8534ad74b996610ed5994b5213c857989c2bf57a))
135
+
136
+
137
+ ### Dependencies
138
+
139
+ * The following workspace dependencies were updated
140
+ * dependencies
141
+ * @twin.org/dataspace-models bumped from 0.0.3-next.3 to 0.0.3-next.4
142
+
143
+ ## [0.0.3-next.3](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.2...dataspace-app-runner-v0.0.3-next.3) (2025-12-01)
144
+
145
+
146
+ ### Miscellaneous Chores
147
+
148
+ * **dataspace-app-runner:** Synchronize repo versions
149
+
150
+
151
+ ### Dependencies
152
+
153
+ * The following workspace dependencies were updated
154
+ * dependencies
155
+ * @twin.org/dataspace-models bumped from 0.0.3-next.2 to 0.0.3-next.3
156
+
157
+ ## [0.0.3-next.2](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.1...dataspace-app-runner-v0.0.3-next.2) (2025-11-28)
158
+
159
+
160
+ ### Features
161
+
162
+ * update background task service ([72b2856](https://github.com/twinfoundation/dataspace/commit/72b2856c74196913ad514519f825a0f5b11b6d92))
163
+
164
+
165
+ ### Dependencies
166
+
167
+ * The following workspace dependencies were updated
168
+ * dependencies
169
+ * @twin.org/dataspace-models bumped from 0.0.3-next.1 to 0.0.3-next.2
170
+
171
+ ## [0.0.3-next.1](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.3-next.0...dataspace-app-runner-v0.0.3-next.1) (2025-11-12)
172
+
173
+
174
+ ### Features
175
+
176
+ * add context id features ([#26](https://github.com/twinfoundation/dataspace/issues/26)) ([6429a16](https://github.com/twinfoundation/dataspace/commit/6429a160dac9499304fdfb93a9dbdce37277ca7d))
177
+ * add rest and socket clients ([950bf70](https://github.com/twinfoundation/dataspace/commit/950bf705e6df4e709bbbe58e93968510067b9ddc))
178
+ * add validate-locales ([c0b08a7](https://github.com/twinfoundation/dataspace/commit/c0b08a73268f9fd3eb6ac3079b49d1ab0c01f118))
179
+ * dataspace ([#2](https://github.com/twinfoundation/dataspace/issues/2)) ([c2ac651](https://github.com/twinfoundation/dataspace/commit/c2ac651ceb6f35e46bd5eac97ac648bb1ee9dc0c))
180
+ * eslint migration to flat config ([b84e875](https://github.com/twinfoundation/dataspace/commit/b84e87530aa249891618096ab6e072b21ff9f63a))
181
+ * query interface data space connector ([#18](https://github.com/twinfoundation/dataspace/issues/18)) ([b12eca1](https://github.com/twinfoundation/dataspace/commit/b12eca124a8f46d290c168e364b7ed4bf72001d8))
182
+ * update framework components ([4d9ca95](https://github.com/twinfoundation/dataspace/commit/4d9ca95879bd6cae9d031595292b6a872bf5b5fd))
183
+ * use new engine extensions config ([80bdb5b](https://github.com/twinfoundation/dataspace/commit/80bdb5b298b65b5b22fa9927a0ad031cb9a3534d))
184
+
185
+
186
+ ### Dependencies
187
+
188
+ * The following workspace dependencies were updated
189
+ * dependencies
190
+ * @twin.org/dataspace-models bumped from 0.0.3-next.0 to 0.0.3-next.1
191
+
192
+ ## [0.0.1-next.8](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.1-next.7...dataspace-app-runner-v0.0.1-next.8) (2025-10-09)
193
+
194
+
195
+ ### Features
196
+
197
+ * add validate-locales ([c0b08a7](https://github.com/twinfoundation/dataspace/commit/c0b08a73268f9fd3eb6ac3079b49d1ab0c01f118))
198
+
199
+
200
+ ### Dependencies
201
+
202
+ * The following workspace dependencies were updated
203
+ * dependencies
204
+ * @twin.org/dataspace-models bumped from 0.0.1-next.7 to 0.0.1-next.8
205
+
206
+ ## [0.0.1-next.7](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.1-next.6...dataspace-app-runner-v0.0.1-next.7) (2025-10-02)
207
+
208
+
209
+ ### Features
210
+
211
+ * use new engine extensions config ([80bdb5b](https://github.com/twinfoundation/dataspace/commit/80bdb5b298b65b5b22fa9927a0ad031cb9a3534d))
212
+
213
+
214
+ ### Dependencies
215
+
216
+ * The following workspace dependencies were updated
217
+ * dependencies
218
+ * @twin.org/dataspace-models bumped from 0.0.1-next.6 to 0.0.1-next.7
219
+
220
+ ## [0.0.1-next.6](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.1-next.5...dataspace-app-runner-v0.0.1-next.6) (2025-09-29)
221
+
222
+
223
+ ### Miscellaneous Chores
224
+
225
+ * **dataspace-app-runner:** Synchronize repo versions
226
+
227
+
228
+ ### Dependencies
229
+
230
+ * The following workspace dependencies were updated
231
+ * dependencies
232
+ * @twin.org/dataspace-models bumped from 0.0.1-next.5 to 0.0.1-next.6
233
+
234
+ ## [0.0.1-next.5](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.1-next.4...dataspace-app-runner-v0.0.1-next.5) (2025-09-29)
235
+
236
+
237
+ ### Features
238
+
239
+ * update framework components ([4d9ca95](https://github.com/twinfoundation/dataspace/commit/4d9ca95879bd6cae9d031595292b6a872bf5b5fd))
240
+
241
+
242
+ ### Dependencies
243
+
244
+ * The following workspace dependencies were updated
245
+ * dependencies
246
+ * @twin.org/dataspace-models bumped from 0.0.1-next.4 to 0.0.1-next.5
247
+
248
+ ## [0.0.1-next.4](https://github.com/twinfoundation/dataspace/compare/dataspace-app-runner-v0.0.1-next.3...dataspace-app-runner-v0.0.1-next.4) (2025-08-29)
249
+
250
+
251
+ ### Features
252
+
253
+ * eslint migration to flat config ([b84e875](https://github.com/twinfoundation/dataspace/commit/b84e87530aa249891618096ab6e072b21ff9f63a))
254
+
255
+
256
+ ### Dependencies
257
+
258
+ * The following workspace dependencies were updated
259
+ * dependencies
260
+ * @twin.org/dataspace-models bumped from 0.0.1-next.3 to 0.0.1-next.4
261
+
262
+ ## Changelog
@@ -0,0 +1 @@
1
+ # @twin.org/dataspace-app-runner - Examples
@@ -0,0 +1,25 @@
1
+ # Function: appRunner()
2
+
3
+ > **appRunner**(`engineCloneData`, `payload`): `Promise`\<`unknown`\>
4
+
5
+ Dataspace Task.
6
+
7
+ ## Parameters
8
+
9
+ ### engineCloneData
10
+
11
+ `IEngineCoreClone`
12
+
13
+ The Engine.
14
+
15
+ ### payload
16
+
17
+ `IExecutionPayload`
18
+
19
+ The payload
20
+
21
+ ## Returns
22
+
23
+ `Promise`\<`unknown`\>
24
+
25
+ The execution result.
@@ -0,0 +1,11 @@
1
+ # Function: appRunnerEnd()
2
+
3
+ > **appRunnerEnd**(): `Promise`\<`void`\>
4
+
5
+ Dataspace Task End.
6
+
7
+ ## Returns
8
+
9
+ `Promise`\<`void`\>
10
+
11
+ Nothing.
@@ -0,0 +1,19 @@
1
+ # Function: appRunnerStart()
2
+
3
+ > **appRunnerStart**(`engineCloneData`): `Promise`\<`void`\>
4
+
5
+ Dataspace Task Startup Method.
6
+
7
+ ## Parameters
8
+
9
+ ### engineCloneData
10
+
11
+ `IEngineCoreClone`
12
+
13
+ The Engine.
14
+
15
+ ## Returns
16
+
17
+ `Promise`\<`void`\>
18
+
19
+ Nothing.
@@ -0,0 +1,7 @@
1
+ # @twin.org/dataspace-app-runner
2
+
3
+ ## Functions
4
+
5
+ - [appRunnerStart](functions/appRunnerStart.md)
6
+ - [appRunnerEnd](functions/appRunnerEnd.md)
7
+ - [appRunner](functions/appRunner.md)
package/package.json ADDED
@@ -0,0 +1,58 @@
1
+ {
2
+ "name": "@twin.org/dataspace-app-runner",
3
+ "version": "0.0.3-next.15",
4
+ "description": "Dataspace App Runner",
5
+ "repository": {
6
+ "type": "git",
7
+ "url": "git+https://github.com/twinfoundation/dataspace.git",
8
+ "directory": "packages/dataspace-app-runner"
9
+ },
10
+ "author": "jose.cantera@iota.org",
11
+ "license": "Apache-2.0",
12
+ "type": "module",
13
+ "engines": {
14
+ "node": ">=20.0.0"
15
+ },
16
+ "dependencies": {
17
+ "@twin.org/context": "next",
18
+ "@twin.org/core": "next",
19
+ "@twin.org/dataspace-models": "0.0.3-next.15",
20
+ "@twin.org/engine-models": "next",
21
+ "@twin.org/logging-models": "next",
22
+ "@twin.org/nameof": "next",
23
+ "@twin.org/standards-w3c-activity-streams": "next"
24
+ },
25
+ "peerDependencies": {
26
+ "@twin.org/engine-core": "next"
27
+ },
28
+ "main": "./dist/es/index.js",
29
+ "types": "./dist/types/index.d.ts",
30
+ "exports": {
31
+ ".": {
32
+ "types": "./dist/types/index.d.ts",
33
+ "import": "./dist/es/index.js",
34
+ "default": "./dist/es/index.js"
35
+ },
36
+ "./locales/*.json": "./locales/*.json"
37
+ },
38
+ "files": [
39
+ "dist/es",
40
+ "dist/types",
41
+ "locales",
42
+ "docs"
43
+ ],
44
+ "keywords": [
45
+ "twin",
46
+ "trade",
47
+ "iota",
48
+ "framework",
49
+ "blockchain",
50
+ "dataspace",
51
+ "adapter",
52
+ "integration"
53
+ ],
54
+ "bugs": {
55
+ "url": "git+https://github.com/twinfoundation/dataspace/issues"
56
+ },
57
+ "homepage": "https://twindev.org"
58
+ }