@t4h.framework/cli 0.9.0 → 0.10.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 (208) hide show
  1. package/dist/bin/bin.js +4 -2
  2. package/dist/bin/bin.js.map +1 -1
  3. package/dist/commands/ai/ai-bootstrap.js +93 -0
  4. package/dist/commands/ai/ai-bootstrap.js.map +1 -0
  5. package/dist/commands/ai/ai-providers.js +13 -0
  6. package/dist/commands/ai/ai-providers.js.map +1 -0
  7. package/dist/commands/ai/tools/copy.js +6 -0
  8. package/dist/commands/ai/tools/copy.js.map +1 -0
  9. package/dist/commands/ai/tools/create-directory-snapshot.js +29 -0
  10. package/dist/commands/ai/tools/create-directory-snapshot.js.map +1 -0
  11. package/dist/commands/ai/tools/discover-packages.js +16 -0
  12. package/dist/commands/ai/tools/discover-packages.js.map +1 -0
  13. package/dist/commands/ai/tools/find-nearest-package-json-path.js +18 -0
  14. package/dist/commands/ai/tools/find-nearest-package-json-path.js.map +1 -0
  15. package/dist/commands/ai/tools/get-asset-sources.js +55 -0
  16. package/dist/commands/ai/tools/get-asset-sources.js.map +1 -0
  17. package/dist/commands/ai/tools/get-package-path.js +18 -0
  18. package/dist/commands/ai/tools/get-package-path.js.map +1 -0
  19. package/dist/commands/ai/tools/is-directory-equal.js +14 -0
  20. package/dist/commands/ai/tools/is-directory-equal.js.map +1 -0
  21. package/dist/commands/ai/tools/is-directory.js +8 -0
  22. package/dist/commands/ai/tools/is-directory.js.map +1 -0
  23. package/dist/commands/ai/tools/path-exists.js +8 -0
  24. package/dist/commands/ai/tools/path-exists.js.map +1 -0
  25. package/dist/commands/bootstrap/bootstrap.js +9 -0
  26. package/dist/commands/bootstrap/bootstrap.js.map +1 -0
  27. package/dist/commands/harness/harness.js +16 -0
  28. package/dist/commands/harness/harness.js.map +1 -0
  29. package/dist/commands/harness/prompts/get-destination-root-path.js +34 -0
  30. package/dist/commands/harness/prompts/get-destination-root-path.js.map +1 -0
  31. package/dist/commands/harness/target-options.js +33 -0
  32. package/dist/commands/harness/target-options.js.map +1 -0
  33. package/dist/commands/harness/tools/copy.js +6 -0
  34. package/dist/commands/harness/tools/copy.js.map +1 -0
  35. package/dist/commands/harness/tools/create-directory-snapshot.js +29 -0
  36. package/dist/commands/harness/tools/create-directory-snapshot.js.map +1 -0
  37. package/dist/commands/harness/tools/discover-packages.js +16 -0
  38. package/dist/commands/harness/tools/discover-packages.js.map +1 -0
  39. package/dist/commands/harness/tools/find-nearest-package-json-path.js +18 -0
  40. package/dist/commands/harness/tools/find-nearest-package-json-path.js.map +1 -0
  41. package/dist/commands/harness/tools/get-package-path.js +18 -0
  42. package/dist/commands/harness/tools/get-package-path.js.map +1 -0
  43. package/dist/commands/harness/tools/get-skill-sources.js +44 -0
  44. package/dist/commands/harness/tools/get-skill-sources.js.map +1 -0
  45. package/dist/commands/harness/tools/is-directory-equal.js +14 -0
  46. package/dist/commands/harness/tools/is-directory-equal.js.map +1 -0
  47. package/dist/commands/harness/tools/is-directory.js +8 -0
  48. package/dist/commands/harness/tools/is-directory.js.map +1 -0
  49. package/dist/commands/harness/tools/path-exists.js +8 -0
  50. package/dist/commands/harness/tools/path-exists.js.map +1 -0
  51. package/package.json +3 -3
  52. package/dist/bin/bin.d.ts +0 -2
  53. package/dist/commands/build/build.d.ts +0 -6
  54. package/dist/commands/dev/dev.d.ts +0 -7
  55. package/dist/commands/dev-server-up-app-process.d.ts +0 -2
  56. package/dist/commands/dev-server-up-app-process.js +0 -31
  57. package/dist/commands/dev-server-up-app-process.js.map +0 -1
  58. package/dist/commands/publish/publish.d.ts +0 -11
  59. package/dist/dev-runtime/__tests__/fixtures.d.ts +0 -57
  60. package/dist/dev-runtime/__tests__/fixtures.js +0 -31
  61. package/dist/dev-runtime/__tests__/fixtures.js.map +0 -1
  62. package/dist/dev-runtime/bootstrap.js +0 -51
  63. package/dist/dev-runtime/bootstrap.js.map +0 -1
  64. package/dist/dev-runtime/claims.d.ts +0 -24
  65. package/dist/dev-runtime/claims.js +0 -62
  66. package/dist/dev-runtime/claims.js.map +0 -1
  67. package/dist/dev-runtime/models/DevServerCacheClaim.d.ts +0 -6
  68. package/dist/dev-runtime/models/DevServerCacheClaim.js +0 -12
  69. package/dist/dev-runtime/models/DevServerCacheClaim.js.map +0 -1
  70. package/dist/dev-runtime/models/DevServerFileBinary.d.ts +0 -15
  71. package/dist/dev-runtime/models/DevServerFileBinary.js +0 -27
  72. package/dist/dev-runtime/models/DevServerFileBinary.js.map +0 -1
  73. package/dist/dev-runtime/models/DevServerFileSystemClaim.d.ts +0 -7
  74. package/dist/dev-runtime/models/DevServerFileSystemClaim.js +0 -30
  75. package/dist/dev-runtime/models/DevServerFileSystemClaim.js.map +0 -1
  76. package/dist/dev-runtime/models/DevServerGetActivityUniqueIdentifierClaim.d.ts +0 -7
  77. package/dist/dev-runtime/models/DevServerGetActivityUniqueIdentifierClaim.js +0 -31
  78. package/dist/dev-runtime/models/DevServerGetActivityUniqueIdentifierClaim.js.map +0 -1
  79. package/dist/dev-runtime/models/DevServerGetProjectUniqueIdentifierClaim.d.ts +0 -6
  80. package/dist/dev-runtime/models/DevServerGetProjectUniqueIdentifierClaim.js +0 -13
  81. package/dist/dev-runtime/models/DevServerGetProjectUniqueIdentifierClaim.js.map +0 -1
  82. package/dist/dev-runtime/models/DevServerGetProjectVersionUniqueIdentifierClaim.d.ts +0 -6
  83. package/dist/dev-runtime/models/DevServerGetProjectVersionUniqueIdentifierClaim.js +0 -13
  84. package/dist/dev-runtime/models/DevServerGetProjectVersionUniqueIdentifierClaim.js.map +0 -1
  85. package/dist/dev-runtime/models/DevServerGetProjectVersionWorkflowUniqueIdentifierClaim.d.ts +0 -7
  86. package/dist/dev-runtime/models/DevServerGetProjectVersionWorkflowUniqueIdentifierClaim.js +0 -31
  87. package/dist/dev-runtime/models/DevServerGetProjectVersionWorkflowUniqueIdentifierClaim.js.map +0 -1
  88. package/dist/dev-runtime/models/DevServerGetWorkflowUniqueIdentifierClaim.d.ts +0 -7
  89. package/dist/dev-runtime/models/DevServerGetWorkflowUniqueIdentifierClaim.js +0 -31
  90. package/dist/dev-runtime/models/DevServerGetWorkflowUniqueIdentifierClaim.js.map +0 -1
  91. package/dist/dev-runtime/models/DevServerHttpClientRequestClaim.d.ts +0 -5
  92. package/dist/dev-runtime/models/DevServerHttpClientRequestClaim.js +0 -39
  93. package/dist/dev-runtime/models/DevServerHttpClientRequestClaim.js.map +0 -1
  94. package/dist/dev-runtime/models/DevServerORMClaim.d.ts +0 -8
  95. package/dist/dev-runtime/models/DevServerORMClaim.js +0 -37
  96. package/dist/dev-runtime/models/DevServerORMClaim.js.map +0 -1
  97. package/dist/dev-runtime/models/DevServerSmtpSendEmailClaim.d.ts +0 -6
  98. package/dist/dev-runtime/models/DevServerSmtpSendEmailClaim.js +0 -32
  99. package/dist/dev-runtime/models/DevServerSmtpSendEmailClaim.js.map +0 -1
  100. package/dist/dev-runtime/models/DevServerWorkflowClaim.d.ts +0 -7
  101. package/dist/dev-runtime/models/DevServerWorkflowClaim.js +0 -38
  102. package/dist/dev-runtime/models/DevServerWorkflowClaim.js.map +0 -1
  103. package/dist/dev-runtime/models/WorkflowRun.d.ts +0 -18
  104. package/dist/dev-runtime/models/WorkflowRun.js +0 -19
  105. package/dist/dev-runtime/models/WorkflowRun.js.map +0 -1
  106. package/dist/dev-runtime/models/WorkflowRunActivity.d.ts +0 -40
  107. package/dist/dev-runtime/models/WorkflowRunActivity.js +0 -52
  108. package/dist/dev-runtime/models/WorkflowRunActivity.js.map +0 -1
  109. package/dist/dev-runtime/repositories/WorkflowRun.repository.d.ts +0 -8
  110. package/dist/dev-runtime/repositories/WorkflowRun.repository.js +0 -27
  111. package/dist/dev-runtime/repositories/WorkflowRun.repository.js.map +0 -1
  112. package/dist/dev-runtime/repositories/WorkflowRunActivity.repository.d.ts +0 -8
  113. package/dist/dev-runtime/repositories/WorkflowRunActivity.repository.js +0 -36
  114. package/dist/dev-runtime/repositories/WorkflowRunActivity.repository.js.map +0 -1
  115. package/dist/dev-runtime/services/BuildWorkflowRunResult.service.d.ts +0 -8
  116. package/dist/dev-runtime/services/BuildWorkflowRunResult.service.js +0 -49
  117. package/dist/dev-runtime/services/BuildWorkflowRunResult.service.js.map +0 -1
  118. package/dist/dev-runtime/services/RuntimeContext.service.d.ts +0 -10
  119. package/dist/dev-runtime/services/RuntimeContext.service.js +0 -22
  120. package/dist/dev-runtime/services/RuntimeContext.service.js.map +0 -1
  121. package/dist/dev-runtime/services/TimeoutScheduler.service.d.ts +0 -5
  122. package/dist/dev-runtime/services/TimeoutScheduler.service.js +0 -33
  123. package/dist/dev-runtime/services/TimeoutScheduler.service.js.map +0 -1
  124. package/dist/dev-runtime/services/WorkflowRunAsyncActivityFacade.service.d.ts +0 -20
  125. package/dist/dev-runtime/services/WorkflowRunAsyncActivityFacade.service.js +0 -54
  126. package/dist/dev-runtime/services/WorkflowRunAsyncActivityFacade.service.js.map +0 -1
  127. package/dist/dev-runtime/services/WorkflowRunFacade.service.d.ts +0 -13
  128. package/dist/dev-runtime/services/WorkflowRunFacade.service.js +0 -40
  129. package/dist/dev-runtime/services/WorkflowRunFacade.service.js.map +0 -1
  130. package/dist/dev-runtime/services/WorkflowRunSyncActivityFacade.service.d.ts +0 -7
  131. package/dist/dev-runtime/services/WorkflowRunSyncActivityFacade.service.js +0 -26
  132. package/dist/dev-runtime/services/WorkflowRunSyncActivityFacade.service.js.map +0 -1
  133. package/dist/dev-runtime/tools/find-claim-by-constructor.d.ts +0 -1
  134. package/dist/dev-runtime/tools/find-claim-by-constructor.js +0 -5
  135. package/dist/dev-runtime/tools/find-claim-by-constructor.js.map +0 -1
  136. package/dist/dev-runtime/transport/DevServerJsonRpc.d.ts +0 -2
  137. package/dist/dev-runtime/transport/DevServerJsonRpc.js +0 -42
  138. package/dist/dev-runtime/transport/DevServerJsonRpc.js.map +0 -1
  139. package/dist/dev-runtime/use-cases/CallbackWorkflowRunAsyncActivity.usecase.d.ts +0 -14
  140. package/dist/dev-runtime/use-cases/CallbackWorkflowRunAsyncActivity.usecase.js +0 -64
  141. package/dist/dev-runtime/use-cases/CallbackWorkflowRunAsyncActivity.usecase.js.map +0 -1
  142. package/dist/dev-runtime/use-cases/CreateWorkflowRun.usecase.d.ts +0 -14
  143. package/dist/dev-runtime/use-cases/CreateWorkflowRun.usecase.js +0 -43
  144. package/dist/dev-runtime/use-cases/CreateWorkflowRun.usecase.js.map +0 -1
  145. package/dist/dev-runtime/use-cases/CreateWorkflowRunAsyncActivity.usecase.d.ts +0 -9
  146. package/dist/dev-runtime/use-cases/CreateWorkflowRunAsyncActivity.usecase.js +0 -68
  147. package/dist/dev-runtime/use-cases/CreateWorkflowRunAsyncActivity.usecase.js.map +0 -1
  148. package/dist/dev-runtime/use-cases/NextTickWorkflowRun.usecase.d.ts +0 -20
  149. package/dist/dev-runtime/use-cases/NextTickWorkflowRun.usecase.js +0 -150
  150. package/dist/dev-runtime/use-cases/NextTickWorkflowRun.usecase.js.map +0 -1
  151. package/dist/dev-runtime/use-cases/TimeoutWorkflowRunAsyncActivity.usecase.d.ts +0 -8
  152. package/dist/dev-runtime/use-cases/TimeoutWorkflowRunAsyncActivity.usecase.js +0 -38
  153. package/dist/dev-runtime/use-cases/TimeoutWorkflowRunAsyncActivity.usecase.js.map +0 -1
  154. package/dist/dev-runtime/use-cases/WorkflowRunAsyncActivity.usecase.d.ts +0 -7
  155. package/dist/dev-runtime/use-cases/WorkflowRunAsyncActivity.usecase.js +0 -44
  156. package/dist/dev-runtime/use-cases/WorkflowRunAsyncActivity.usecase.js.map +0 -1
  157. package/dist/dev-runtime/use-cases/WorkflowRunAsyncActivityAdvance.usecase.d.ts +0 -10
  158. package/dist/dev-runtime/use-cases/WorkflowRunAsyncActivityAdvance.usecase.js +0 -57
  159. package/dist/dev-runtime/use-cases/WorkflowRunAsyncActivityAdvance.usecase.js.map +0 -1
  160. package/dist/dev-runtime/use-cases/WorkflowRunBuildHistory.usecase.d.ts +0 -8
  161. package/dist/dev-runtime/use-cases/WorkflowRunBuildHistory.usecase.js +0 -41
  162. package/dist/dev-runtime/use-cases/WorkflowRunBuildHistory.usecase.js.map +0 -1
  163. package/dist/dev-runtime/use-cases/WorkflowRunSyncActivity.usecase.d.ts +0 -4
  164. package/dist/dev-runtime/use-cases/WorkflowRunSyncActivity.usecase.js +0 -26
  165. package/dist/dev-runtime/use-cases/WorkflowRunSyncActivity.usecase.js.map +0 -1
  166. package/dist/models/DevServer.d.ts +0 -24
  167. package/dist/models/DevServer.js +0 -86
  168. package/dist/models/DevServer.js.map +0 -1
  169. package/dist/models/InMemoryDatabase.d.ts +0 -20
  170. package/dist/models/InMemoryDatabase.js +0 -86
  171. package/dist/models/InMemoryDatabase.js.map +0 -1
  172. package/dist/models/JSONCodec.d.ts +0 -30
  173. package/dist/models/JSONCodec.js +0 -110
  174. package/dist/models/JSONCodec.js.map +0 -1
  175. package/dist/models/JSONCodecKindFrameworkSerializableClass.d.ts +0 -8
  176. package/dist/models/JSONCodecKindFrameworkSerializableClass.js +0 -7
  177. package/dist/models/JSONCodecKindFrameworkSerializableClass.js.map +0 -1
  178. package/dist/models/JSONRPCClient.d.ts +0 -11
  179. package/dist/models/JSONRPCClient.js +0 -50
  180. package/dist/models/JSONRPCClient.js.map +0 -1
  181. package/dist/models/JSONRPCServer.d.ts +0 -63
  182. package/dist/models/JSONRPCServer.js +0 -61
  183. package/dist/models/JSONRPCServer.js.map +0 -1
  184. package/dist/tools/is-workflow-waiting.d.ts +0 -4
  185. package/dist/tools/is-workflow-waiting.js +0 -12
  186. package/dist/tools/is-workflow-waiting.js.map +0 -1
  187. package/dist/tools/json-codec.d.ts +0 -8
  188. package/dist/tools/json-codec.js +0 -17
  189. package/dist/tools/json-codec.js.map +0 -1
  190. package/dist/tools/json-schema-to-inquirer-question.d.ts +0 -11
  191. package/dist/tools/mkdir-out-dir-project-from-ts-config-path-and-json-package-path.d.ts +0 -1
  192. package/dist/tools/mkdir-out-dir-project-from-ts-config-path-and-json-package-path.js +0 -11
  193. package/dist/tools/mkdir-out-dir-project-from-ts-config-path-and-json-package-path.js.map +0 -1
  194. package/dist/tools/resolve-package-json-path.d.ts +0 -1
  195. package/dist/tools/resolve-package-json-path.js +0 -21
  196. package/dist/tools/resolve-package-json-path.js.map +0 -1
  197. package/dist/tools/resolve-tsconfig-path-from-package-json-path.d.ts +0 -1
  198. package/dist/tools/resolve-tsconfig-path-from-package-json-path.js +0 -14
  199. package/dist/tools/resolve-tsconfig-path-from-package-json-path.js.map +0 -1
  200. package/dist/tools/ts-build-watch.d.ts +0 -12
  201. package/dist/tools/ts-build-watch.js +0 -46
  202. package/dist/tools/ts-build-watch.js.map +0 -1
  203. package/dist/tools/ts-build.d.ts +0 -6
  204. package/dist/tools/ts-build.js +0 -37
  205. package/dist/tools/ts-build.js.map +0 -1
  206. package/dist/tools/up-app.d.ts +0 -2
  207. package/dist/tools/up-app.js +0 -10
  208. package/dist/tools/up-app.js.map +0 -1
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerGetProjectUniqueIdentifierClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerGetProjectUniqueIdentifierClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,OAAO,EAAE,+BAA+B,EAAE,MAAM,+BAA+B,CAAA;AAE/E,MAAM,OAAO,wCAAyC,SAAQ,+BAA+B;IAC9D;IAA7B,YAA6B,KAAa,UAAU,EAAE;QACpD,KAAK,EAAE,CAAA;QADoB,OAAE,GAAF,EAAE,CAAuB;IAEtD,CAAC;IAEM,0BAA0B;QAC/B,OAAO,IAAI,CAAC,EAAE,CAAA;IAChB,CAAC;CACF"}
@@ -1,6 +0,0 @@
1
- import { GetProjectVersionUniqueIdentifierClaim } from '@t4h.framework/runtime-claims';
2
- export declare class DevServerGetProjectVersionUniqueIdentifierClaim extends GetProjectVersionUniqueIdentifierClaim {
3
- private readonly id;
4
- constructor(id?: string);
5
- getProjectVersionUniqueIdentifier(): string;
6
- }
@@ -1,13 +0,0 @@
1
- import { randomUUID } from 'node:crypto';
2
- import { GetProjectVersionUniqueIdentifierClaim } from '@t4h.framework/runtime-claims';
3
- export class DevServerGetProjectVersionUniqueIdentifierClaim extends GetProjectVersionUniqueIdentifierClaim {
4
- id;
5
- constructor(id = randomUUID()) {
6
- super();
7
- this.id = id;
8
- }
9
- getProjectVersionUniqueIdentifier() {
10
- return this.id;
11
- }
12
- }
13
- //# sourceMappingURL=DevServerGetProjectVersionUniqueIdentifierClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerGetProjectVersionUniqueIdentifierClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerGetProjectVersionUniqueIdentifierClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,OAAO,EAAE,sCAAsC,EAAE,MAAM,+BAA+B,CAAA;AAEtF,MAAM,OAAO,+CAAgD,SAAQ,sCAAsC;IAC5E;IAA7B,YAA6B,KAAa,UAAU,EAAE;QACpD,KAAK,EAAE,CAAA;QADoB,OAAE,GAAF,EAAE,CAAuB;IAEtD,CAAC;IAEM,iCAAiC;QACtC,OAAO,IAAI,CAAC,EAAE,CAAA;IAChB,CAAC;CACF"}
@@ -1,7 +0,0 @@
1
- import { GetProjectVersionWorkflowUniqueIdentifierClaim } from '@t4h.framework/runtime-claims';
2
- import { RuntimeContextService } from '../services/RuntimeContext.service.js';
3
- export declare class DevServerGetProjectVersionWorkflowUniqueIdentifierClaim extends GetProjectVersionWorkflowUniqueIdentifierClaim {
4
- private readonly context;
5
- constructor(context: RuntimeContextService);
6
- getProjectVersionWorkflowUniqueIdentifier(): string | null;
7
- }
@@ -1,31 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __param = (this && this.__param) || function (paramIndex, decorator) {
8
- return function (target, key) { decorator(target, key, paramIndex); }
9
- };
10
- import { GetProjectVersionWorkflowUniqueIdentifierClaim } from '@t4h.framework/runtime-claims';
11
- import { Inject, Injectable } from 'pleroma';
12
- import { RuntimeContextService } from '../services/RuntimeContext.service.js';
13
- let DevServerGetProjectVersionWorkflowUniqueIdentifierClaim = class DevServerGetProjectVersionWorkflowUniqueIdentifierClaim extends GetProjectVersionWorkflowUniqueIdentifierClaim {
14
- context;
15
- constructor(context) {
16
- super();
17
- this.context = context;
18
- }
19
- getProjectVersionWorkflowUniqueIdentifier() {
20
- const context = this.context.getContext();
21
- if (!context)
22
- throw new Error('Project version workflow unique identifier requested outside of a workflow run');
23
- return context.runId;
24
- }
25
- };
26
- DevServerGetProjectVersionWorkflowUniqueIdentifierClaim = __decorate([
27
- Injectable(),
28
- __param(0, Inject(() => RuntimeContextService))
29
- ], DevServerGetProjectVersionWorkflowUniqueIdentifierClaim);
30
- export { DevServerGetProjectVersionWorkflowUniqueIdentifierClaim };
31
- //# sourceMappingURL=DevServerGetProjectVersionWorkflowUniqueIdentifierClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerGetProjectVersionWorkflowUniqueIdentifierClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerGetProjectVersionWorkflowUniqueIdentifierClaim.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,8CAA8C,EAAE,MAAM,+BAA+B,CAAA;AAC9F,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAGtE,IAAM,uDAAuD,GAA7D,MAAM,uDAAwD,SAAQ,8CAA8C;IAGtG;IAFnB,YAEmB,OAA8B;QAE/C,KAAK,EAAE,CAAA;QAFU,YAAO,GAAP,OAAO,CAAuB;IAGjD,CAAC;IAEM,yCAAyC;QAC9C,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA;QAEzC,IAAI,CAAC,OAAO;YACV,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAA;QAEH,OAAO,OAAO,CAAC,KAAK,CAAA;IACtB,CAAC;CACF,CAAA;AAlBY,uDAAuD;IADnE,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAA;GAF3B,uDAAuD,CAkBnE"}
@@ -1,7 +0,0 @@
1
- import { GetWorkflowUniqueIdentifierClaim } from '@t4h.framework/core';
2
- import { RuntimeContextService } from '../services/RuntimeContext.service.js';
3
- export declare class DevServerGetWorkflowUniqueIdentifierClaim extends GetWorkflowUniqueIdentifierClaim {
4
- private readonly context;
5
- constructor(context: RuntimeContextService);
6
- getWorkflowUniqueIdentifier(): string;
7
- }
@@ -1,31 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __param = (this && this.__param) || function (paramIndex, decorator) {
8
- return function (target, key) { decorator(target, key, paramIndex); }
9
- };
10
- import { GetWorkflowUniqueIdentifierClaim } from '@t4h.framework/core';
11
- import { Inject, Injectable } from 'pleroma';
12
- import { RuntimeContextService } from '../services/RuntimeContext.service.js';
13
- let DevServerGetWorkflowUniqueIdentifierClaim = class DevServerGetWorkflowUniqueIdentifierClaim extends GetWorkflowUniqueIdentifierClaim {
14
- context;
15
- constructor(context) {
16
- super();
17
- this.context = context;
18
- }
19
- getWorkflowUniqueIdentifier() {
20
- const context = this.context.getContext();
21
- if (!context)
22
- throw new Error('Project version workflow unique identifier requested outside of a workflow run');
23
- return context.workflowId;
24
- }
25
- };
26
- DevServerGetWorkflowUniqueIdentifierClaim = __decorate([
27
- Injectable(),
28
- __param(0, Inject(() => RuntimeContextService))
29
- ], DevServerGetWorkflowUniqueIdentifierClaim);
30
- export { DevServerGetWorkflowUniqueIdentifierClaim };
31
- //# sourceMappingURL=DevServerGetWorkflowUniqueIdentifierClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerGetWorkflowUniqueIdentifierClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerGetWorkflowUniqueIdentifierClaim.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,gCAAgC,EAAE,MAAM,qBAAqB,CAAA;AACtE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAGtE,IAAM,yCAAyC,GAA/C,MAAM,yCAA0C,SAAQ,gCAAgC;IAG1E;IAFnB,YAEmB,OAA8B;QAE/C,KAAK,EAAE,CAAA;QAFU,YAAO,GAAP,OAAO,CAAuB;IAGjD,CAAC;IAEM,2BAA2B;QAChC,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA;QAEzC,IAAI,CAAC,OAAO;YACV,MAAM,IAAI,KAAK,CACb,gFAAgF,CACjF,CAAA;QAEH,OAAO,OAAO,CAAC,UAAU,CAAA;IAC3B,CAAC;CACF,CAAA;AAlBY,yCAAyC;IADrD,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAA;GAF3B,yCAAyC,CAkBrD"}
@@ -1,5 +0,0 @@
1
- import { HttpClientRequestClaim, type HttpClientRequestClaimInput, type HttpClientRequestClaimOutput } from '@t4h.framework/http';
2
- export declare class DevServerHttpClientRequestClaim extends HttpClientRequestClaim {
3
- request(input: HttpClientRequestClaimInput): Promise<HttpClientRequestClaimOutput>;
4
- private toUndiciFormData;
5
- }
@@ -1,39 +0,0 @@
1
- import { HttpClientRequestClaim, } from '@t4h.framework/http';
2
- import { Agent, request, interceptors, FormData } from 'undici';
3
- function isFormData(value) {
4
- return (value?.[Symbol.toStringTag] === 'FormData' &&
5
- typeof value?.entries === 'function');
6
- }
7
- export class DevServerHttpClientRequestClaim extends HttpClientRequestClaim {
8
- async request(input) {
9
- if (input.body instanceof URLSearchParams)
10
- input.body = Buffer.from(input.body.toString());
11
- if (isFormData(input.body))
12
- Object.assign(input, {
13
- body: this.toUndiciFormData(input.body),
14
- });
15
- const response = await request(input.url, {
16
- method: input.method,
17
- body: input.body,
18
- headers: input.headers,
19
- dispatcher: new Agent().compose(interceptors.redirect({ maxRedirections: 5 })),
20
- });
21
- const res = {
22
- status: response.statusCode,
23
- headers: response.headers,
24
- body: response.body,
25
- };
26
- return res;
27
- }
28
- toUndiciFormData(webFormData) {
29
- const formData = new FormData();
30
- for (const [key, value] of webFormData.entries()) {
31
- if (value instanceof File)
32
- formData.append(key, value, value.name);
33
- else
34
- formData.append(key, value);
35
- }
36
- return formData;
37
- }
38
- }
39
- //# sourceMappingURL=DevServerHttpClientRequestClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerHttpClientRequestClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerHttpClientRequestClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,sBAAsB,GAGvB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAA;AAE/D,SAAS,UAAU,CAAC,KAAU;IAC5B,OAAO,CACL,KAAK,EAAE,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,UAAU;QAC1C,OAAO,KAAK,EAAE,OAAO,KAAK,UAAU,CACrC,CAAA;AACH,CAAC;AAED,MAAM,OAAO,+BAAgC,SAAQ,sBAAsB;IAClE,KAAK,CAAC,OAAO,CAClB,KAAkC;QAElC,IAAI,KAAK,CAAC,IAAI,YAAY,eAAe;YACvC,KAAK,CAAC,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAA;QAEjD,IAAI,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC;YACxB,MAAM,CAAC,MAAM,CAAC,KAAK,EAAE;gBACnB,IAAI,EAAE,IAAI,CAAC,gBAAgB,CAAC,KAAK,CAAC,IAAI,CAAC;aACxC,CAAC,CAAA;QAEJ,MAAM,QAAQ,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,GAAG,EAAE;YACxC,MAAM,EAAE,KAAK,CAAC,MAAM;YACpB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,UAAU,EAAE,IAAI,KAAK,EAAE,CAAC,OAAO,CAC7B,YAAY,CAAC,QAAQ,CAAC,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC,CAC9C;SACF,CAAC,CAAA;QAEF,MAAM,GAAG,GAAG;YACV,MAAM,EAAE,QAAQ,CAAC,UAAU;YAC3B,OAAO,EAAE,QAAQ,CAAC,OAAO;YACzB,IAAI,EAAE,QAAQ,CAAC,IAAI;SACpB,CAAA;QAED,OAAO,GAAG,CAAA;IACZ,CAAC;IAEO,gBAAgB,CAAC,WAAgC;QACvD,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAA;QAE/B,KAAK,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,IAAI,WAAW,CAAC,OAAO,EAAE,EAAE,CAAC;YACjD,IAAI,KAAK,YAAY,IAAI;gBAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;;gBAC7D,QAAQ,CAAC,MAAM,CAAC,GAAG,EAAE,KAAK,CAAC,CAAA;QAClC,CAAC;QAED,OAAO,QAAQ,CAAA;IACjB,CAAC;CACF"}
@@ -1,8 +0,0 @@
1
- import { ORMClaim, type SerializableCreateInput, type SerializableFindInput, type SerializableGetSnapshotInput, type SerializableRemoveInput, type SerializableUpdateInput, type SerializedRow } from '@t4h.framework/orm';
2
- export declare class DevServerORMClaim extends ORMClaim<string> {
3
- find(input: SerializableFindInput): string[];
4
- create(input: SerializableCreateInput): string[];
5
- getSnapshot(input: SerializableGetSnapshotInput<string>): SerializedRow;
6
- update(input: SerializableUpdateInput<string>): void;
7
- remove(input: SerializableRemoveInput<string>): void;
8
- }
@@ -1,37 +0,0 @@
1
- import fs from 'node:fs';
2
- import path from 'node:path';
3
- import { ORMClaim, } from '@t4h.framework/orm';
4
- import { InMemoryDatabase } from '../../models/InMemoryDatabase.js';
5
- import { jsonCodec } from '../../tools/json-codec.js';
6
- const dbPath = path.join(process.cwd(), 'db.json');
7
- const initial = fs.existsSync(dbPath) ? fs.readFileSync(dbPath, 'utf8') : '{}';
8
- const json = await jsonCodec.parse(initial, {});
9
- const db = new InMemoryDatabase(json);
10
- db.on('change', async () => {
11
- fs.writeFileSync(dbPath, await jsonCodec.stringify(db.toJSON(), {}));
12
- });
13
- export class DevServerORMClaim extends ORMClaim {
14
- find(input) {
15
- return db
16
- .table(input.table)
17
- .find(input)
18
- .map(row => row.id);
19
- }
20
- create(input) {
21
- return db.table(input.table).insert(input.data);
22
- }
23
- getSnapshot(input) {
24
- const [row] = db.table(input.table).find({
25
- where: { id: input.ref },
26
- limit: 1,
27
- });
28
- return row;
29
- }
30
- update(input) {
31
- db.table(input.table).update({ id: input.ref }, input.data);
32
- }
33
- remove(input) {
34
- db.table(input.table).delete({ id: input.ref });
35
- }
36
- }
37
- //# sourceMappingURL=DevServerORMClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerORMClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerORMClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAA;AACxB,OAAO,IAAI,MAAM,WAAW,CAAA;AAE5B,OAAO,EACL,QAAQ,GAOT,MAAM,oBAAoB,CAAA;AAE3B,OAAO,EAAE,gBAAgB,EAAE,MAAM,kCAAkC,CAAA;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAErD,MAAM,MAAM,GAAG,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,EAAE,SAAS,CAAC,CAAA;AAElD,MAAM,OAAO,GAAG,EAAE,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,YAAY,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,IAAI,CAAA;AAE9E,MAAM,IAAI,GAAG,MAAM,SAAS,CAAC,KAAK,CAAC,OAAO,EAAE,EAAE,CAAC,CAAA;AAE/C,MAAM,EAAE,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAA;AAErC,EAAE,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE;IACzB,EAAE,CAAC,aAAa,CAAC,MAAM,EAAE,MAAM,SAAS,CAAC,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,EAAE,CAAC,CAAC,CAAA;AACtE,CAAC,CAAC,CAAA;AAEF,MAAM,OAAO,iBAAkB,SAAQ,QAAgB;IAC9C,IAAI,CAAC,KAA4B;QACtC,OAAO,EAAE;aACN,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC;aAClB,IAAI,CAAC,KAAK,CAAC;aACX,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAA;IACvB,CAAC;IAEM,MAAM,CAAC,KAA8B;QAC1C,OAAO,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC,CAAA;IACjD,CAAC;IAEM,WAAW,CAChB,KAA2C;QAE3C,MAAM,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,IAAI,CAAC;YACvC,KAAK,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE;YACxB,KAAK,EAAE,CAAC;SACT,CAAC,CAAA;QAEF,OAAO,GAAI,CAAA;IACb,CAAC;IAEM,MAAM,CAAC,KAAsC;QAClD,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,EAAE,KAAK,CAAC,IAAI,CAAC,CAAA;IAC7D,CAAC;IAEM,MAAM,CAAC,KAAsC;QAClD,EAAE,CAAC,KAAK,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,EAAE,EAAE,EAAE,KAAK,CAAC,GAAG,EAAE,CAAC,CAAA;IACjD,CAAC;CACF"}
@@ -1,6 +0,0 @@
1
- import { SmtpSendEmailClaim, type SmtpSendEmailActivityInput } from '@t4h.framework/smtp';
2
- import nodemailer from 'nodemailer';
3
- export declare class DevServerSmtpSendEmailClaim extends SmtpSendEmailClaim {
4
- protected getTransport(input: SmtpSendEmailActivityInput): nodemailer.Transporter<import("nodemailer/lib/smtp-transport/index.js").SentMessageInfo, import("nodemailer/lib/smtp-transport/index.js").Options>;
5
- send(input: SmtpSendEmailActivityInput): Promise<import("nodemailer/lib/smtp-transport/index.js").SentMessageInfo>;
6
- }
@@ -1,32 +0,0 @@
1
- import { SmtpSendEmailClaim, } from '@t4h.framework/smtp';
2
- import nodemailer from 'nodemailer';
3
- export class DevServerSmtpSendEmailClaim extends SmtpSendEmailClaim {
4
- getTransport(input) {
5
- const url = new URL(input.connectionString);
6
- const secure = url.protocol === 'smtps:';
7
- const port = url.port ? Number(url.port) : secure ? 465 : 587;
8
- return nodemailer.createTransport({
9
- host: url.hostname,
10
- port,
11
- secure,
12
- auth: { user: url.username, pass: url.password },
13
- });
14
- }
15
- async send(input) {
16
- return await this.getTransport(input).sendMail({
17
- from: input.from,
18
- to: input.to.slice(),
19
- cc: input.cc?.slice(),
20
- bcc: input.bcc?.slice(),
21
- subject: input.subject,
22
- html: input.html,
23
- attachments: await Promise.all(input.attachments?.map(async (attachment) => ({
24
- filename: attachment.filename,
25
- content: await attachment.content.stream(),
26
- contentType: attachment.content.contentType,
27
- contentDisposition: 'attachment',
28
- })) ?? []),
29
- });
30
- }
31
- }
32
- //# sourceMappingURL=DevServerSmtpSendEmailClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerSmtpSendEmailClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerSmtpSendEmailClaim.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,GAEnB,MAAM,qBAAqB,CAAA;AAC5B,OAAO,UAAU,MAAM,YAAY,CAAA;AAGnC,MAAM,OAAO,2BAA4B,SAAQ,kBAAkB;IACvD,YAAY,CAAC,KAAiC;QACtD,MAAM,GAAG,GAAG,IAAI,GAAG,CAAC,KAAK,CAAC,gBAAgB,CAAC,CAAA;QAE3C,MAAM,MAAM,GAAG,GAAG,CAAC,QAAQ,KAAK,QAAQ,CAAA;QAExC,MAAM,IAAI,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAA;QAE7D,OAAO,UAAU,CAAC,eAAe,CAAC;YAChC,IAAI,EAAE,GAAG,CAAC,QAAQ;YAClB,IAAI;YACJ,MAAM;YACN,IAAI,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,EAAE,IAAI,EAAE,GAAG,CAAC,QAAQ,EAAE;SACjD,CAAC,CAAA;IACJ,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,KAAiC;QACjD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,QAAQ,CAAC;YAC7C,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,EAAE,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;YACpB,EAAE,EAAE,KAAK,CAAC,EAAE,EAAE,KAAK,EAAE;YACrB,GAAG,EAAE,KAAK,CAAC,GAAG,EAAE,KAAK,EAAE;YACvB,OAAO,EAAE,KAAK,CAAC,OAAO;YACtB,IAAI,EAAE,KAAK,CAAC,IAAI;YAChB,WAAW,EAAE,MAAM,OAAO,CAAC,GAAG,CAC5B,KAAK,CAAC,WAAW,EAAE,GAAG,CACpB,KAAK,EAAE,UAAU,EAAuB,EAAE,CAAC,CAAC;gBAC1C,QAAQ,EAAE,UAAU,CAAC,QAAQ;gBAC7B,OAAO,EAAE,MAAM,UAAU,CAAC,OAAO,CAAC,MAAM,EAAE;gBAC1C,WAAW,EAAE,UAAU,CAAC,OAAO,CAAC,WAAW;gBAC3C,kBAAkB,EAAE,YAAY;aACjC,CAAC,CACH,IAAI,EAAE,CACR;SACF,CAAC,CAAA;IACJ,CAAC;CACF"}
@@ -1,7 +0,0 @@
1
- import { WorkflowClaim, type Serializable, type Workflow, type WorkflowInput } from '@t4h.framework/core';
2
- import { RuntimeContextService } from '../services/RuntimeContext.service.js';
3
- export declare class DevServerWorkflowClaim extends WorkflowClaim {
4
- private readonly context;
5
- constructor(context: RuntimeContextService);
6
- start<TWorkflow extends Workflow<any, any>>(workflow: TWorkflow, input: WorkflowInput<TWorkflow>): Serializable;
7
- }
@@ -1,38 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __param = (this && this.__param) || function (paramIndex, decorator) {
8
- return function (target, key) { decorator(target, key, paramIndex); }
9
- };
10
- import { WorkflowClaim, } from '@t4h.framework/core';
11
- import { container, Inject, Injectable } from 'pleroma';
12
- import { RuntimeContextService } from '../services/RuntimeContext.service.js';
13
- import { WorkflowRunFacade } from '../services/WorkflowRunFacade.service.js';
14
- let DevServerWorkflowClaim = class DevServerWorkflowClaim extends WorkflowClaim {
15
- context;
16
- constructor(context) {
17
- super();
18
- this.context = context;
19
- }
20
- start(workflow, input) {
21
- const workflowId = workflow.id;
22
- if (!workflowId)
23
- throw new TypeError('Could not start workflow without an id');
24
- const parentContext = this.context.getContext();
25
- const workflowRun = container.resolve(WorkflowRunFacade);
26
- const run = workflowRun.create(workflowId, input, {
27
- parentWorkflowRunId: parentContext?.runId,
28
- parentWorkflowRunActivityId: parentContext?.activityId,
29
- });
30
- return run.id;
31
- }
32
- };
33
- DevServerWorkflowClaim = __decorate([
34
- Injectable(),
35
- __param(0, Inject(() => RuntimeContextService))
36
- ], DevServerWorkflowClaim);
37
- export { DevServerWorkflowClaim };
38
- //# sourceMappingURL=DevServerWorkflowClaim.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"DevServerWorkflowClaim.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/DevServerWorkflowClaim.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACL,aAAa,GAId,MAAM,qBAAqB,CAAA;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAEvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,uCAAuC,CAAA;AAC7E,OAAO,EAAE,iBAAiB,EAAE,MAAM,0CAA0C,CAAA;AAGrE,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,aAAa;IAGpC;IAFnB,YAEmB,OAA8B;QAE/C,KAAK,EAAE,CAAA;QAFU,YAAO,GAAP,OAAO,CAAuB;IAGjD,CAAC;IAEM,KAAK,CACV,QAAmB,EACnB,KAA+B;QAE/B,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAA;QAE9B,IAAI,CAAC,UAAU;YACb,MAAM,IAAI,SAAS,CAAC,wCAAwC,CAAC,CAAA;QAE/D,MAAM,aAAa,GAAG,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE,CAAA;QAE/C,MAAM,WAAW,GAAG,SAAS,CAAC,OAAO,CAAC,iBAAiB,CAAC,CAAA;QAExD,MAAM,GAAG,GAAG,WAAW,CAAC,MAAM,CAAC,UAAU,EAAE,KAAK,EAAE;YAChD,mBAAmB,EAAE,aAAa,EAAE,KAAK;YACzC,2BAA2B,EAAE,aAAa,EAAE,UAAU;SACvD,CAAC,CAAA;QAEF,OAAO,GAAG,CAAC,EAAE,CAAA;IACf,CAAC;CACF,CAAA;AA5BY,sBAAsB;IADlC,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,GAAG,EAAE,CAAC,qBAAqB,CAAC,CAAA;GAF3B,sBAAsB,CA4BlC"}
@@ -1,18 +0,0 @@
1
- import type { Log } from '@t4h.framework/core';
2
- import { WorkflowRunActivity } from './WorkflowRunActivity.js';
3
- export type WorkflowRunStatus = 'running' | 'fulfilled' | 'rejected';
4
- export declare class WorkflowRun {
5
- id: string;
6
- readonly workflow: string;
7
- readonly input: unknown;
8
- status: WorkflowRunStatus;
9
- output?: unknown;
10
- rejectedReason?: {
11
- message: string;
12
- stack?: string;
13
- };
14
- parent?: WorkflowRun;
15
- parentActivity?: WorkflowRunActivity;
16
- readonly logs: Log[];
17
- constructor(workflow: string, input: unknown, id?: string);
18
- }
@@ -1,19 +0,0 @@
1
- import { randomUUID } from 'node:crypto';
2
- import { WorkflowRunActivity } from './WorkflowRunActivity.js';
3
- export class WorkflowRun {
4
- id;
5
- workflow;
6
- input;
7
- status;
8
- output;
9
- rejectedReason;
10
- parent;
11
- parentActivity;
12
- constructor(workflow, input, id = randomUUID()) {
13
- this.id = id;
14
- this.workflow = workflow;
15
- this.input = input;
16
- this.status = 'running';
17
- }
18
- }
19
- //# sourceMappingURL=WorkflowRun.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowRun.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/WorkflowRun.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,OAAO,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAI9D,MAAM,OAAO,WAAW;IACf,EAAE,CAAQ;IACD,QAAQ,CAAQ;IAChB,KAAK,CAAS;IACvB,MAAM,CAAmB;IACzB,MAAM,CAAU;IAChB,cAAc,CAAsC;IACpD,MAAM,CAAc;IACpB,cAAc,CAAsB;IAE3C,YAAY,QAAgB,EAAE,KAAc,EAAE,KAAa,UAAU,EAAE;QACrE,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;QACxB,IAAI,CAAC,KAAK,GAAG,KAAK,CAAA;QAClB,IAAI,CAAC,MAAM,GAAG,SAAS,CAAA;IACzB,CAAC;CACF"}
@@ -1,40 +0,0 @@
1
- import { AsyncActivityResultPending, type ActivityConstructor, type AnyActivity } from '@t4h.framework/core';
2
- import type Type from 'typebox';
3
- import type { WorkflowRun } from './WorkflowRun.js';
4
- export declare class WorkflowRunActivity {
5
- readonly id: string;
6
- readonly run: WorkflowRun;
7
- readonly type: 'sync' | 'async';
8
- readonly constructable: ActivityConstructor<AnyActivity>;
9
- output?: unknown;
10
- asyncActivity?: WorkflowRunAsyncActivity;
11
- constructor(run: WorkflowRun, target: ActivityConstructor<AnyActivity>, id?: string);
12
- }
13
- export type AsyncActivityPendingStatus = 'pending' | 'fulfilled' | 'rejected';
14
- export declare class WorkflowRunAsyncActivity {
15
- readonly activity: WorkflowRunActivity;
16
- status: AsyncActivityPendingStatus;
17
- readonly pendingAsyncActivities: WorkflowRunAsyncActivityPending[];
18
- get lastPendingAsyncActivity(): WorkflowRunAsyncActivityPending | undefined;
19
- constructor(activity: WorkflowRunActivity);
20
- }
21
- interface WorkflowRunAsyncActivityPendingOptions {
22
- schema?: Type.TSchema;
23
- timeoutAt?: Date;
24
- previous?: WorkflowRunAsyncActivityPending;
25
- bootstrap: AsyncActivityResultPending;
26
- status: AsyncActivityPendingStatus;
27
- payload?: unknown;
28
- }
29
- export declare class WorkflowRunAsyncActivityPending {
30
- readonly asyncActivity: WorkflowRunAsyncActivity;
31
- readonly id: string;
32
- schema?: Type.TSchema;
33
- timeoutAt?: Date;
34
- previous?: WorkflowRunAsyncActivityPending;
35
- bootstrap: AsyncActivityResultPending;
36
- status: AsyncActivityPendingStatus;
37
- payload?: unknown;
38
- constructor(asyncActivity: WorkflowRunAsyncActivity, options?: WorkflowRunAsyncActivityPendingOptions);
39
- }
40
- export {};
@@ -1,52 +0,0 @@
1
- import { randomUUID } from 'node:crypto';
2
- import { AsyncActivityResultPending, SyncActivity, } from '@t4h.framework/core';
3
- export class WorkflowRunActivity {
4
- id;
5
- run;
6
- type;
7
- constructable;
8
- output;
9
- asyncActivity;
10
- constructor(run, target, id = randomUUID()) {
11
- this.id = id;
12
- this.run = run;
13
- this.type = target.prototype instanceof SyncActivity ? 'sync' : 'async';
14
- this.constructable = target;
15
- if (this.type === 'async') {
16
- this.asyncActivity = new WorkflowRunAsyncActivity(this);
17
- }
18
- }
19
- }
20
- export class WorkflowRunAsyncActivity {
21
- activity;
22
- status = 'pending';
23
- pendingAsyncActivities = [];
24
- get lastPendingAsyncActivity() {
25
- return this.pendingAsyncActivities[this.pendingAsyncActivities.length - 1];
26
- }
27
- constructor(activity) {
28
- this.activity = activity;
29
- }
30
- }
31
- export class WorkflowRunAsyncActivityPending {
32
- asyncActivity;
33
- id = randomUUID();
34
- schema;
35
- timeoutAt;
36
- previous;
37
- bootstrap;
38
- status = 'pending';
39
- payload;
40
- constructor(asyncActivity, options) {
41
- this.asyncActivity = asyncActivity;
42
- if (!options)
43
- return;
44
- this.schema = options.schema;
45
- this.timeoutAt = options.timeoutAt;
46
- this.previous = options.previous;
47
- this.bootstrap = options.bootstrap;
48
- this.status = options.status;
49
- this.payload = options.payload;
50
- }
51
- }
52
- //# sourceMappingURL=WorkflowRunActivity.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowRunActivity.js","sourceRoot":"","sources":["../../../src/dev-runtime/models/WorkflowRunActivity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AAExC,OAAO,EACL,0BAA0B,EAC1B,YAAY,GAGb,MAAM,qBAAqB,CAAA;AAK5B,MAAM,OAAO,mBAAmB;IACd,EAAE,CAAQ;IACV,GAAG,CAAa;IAChB,IAAI,CAAkB;IACtB,aAAa,CAAkC;IACxD,MAAM,CAAU;IAChB,aAAa,CAA2B;IAE/C,YACE,GAAgB,EAChB,MAAwC,EACxC,KAAa,UAAU,EAAE;QAEzB,IAAI,CAAC,EAAE,GAAG,EAAE,CAAA;QACZ,IAAI,CAAC,GAAG,GAAG,GAAG,CAAA;QACd,IAAI,CAAC,IAAI,GAAG,MAAM,CAAC,SAAS,YAAY,YAAY,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAA;QACvE,IAAI,CAAC,aAAa,GAAG,MAAM,CAAA;QAE3B,IAAI,IAAI,CAAC,IAAI,KAAK,OAAO,EAAE,CAAC;YAC1B,IAAI,CAAC,aAAa,GAAG,IAAI,wBAAwB,CAAC,IAAI,CAAC,CAAA;QACzD,CAAC;IACH,CAAC;CACF;AAID,MAAM,OAAO,wBAAwB;IACnB,QAAQ,CAAsB;IACvC,MAAM,GAA+B,SAAS,CAAA;IACrC,sBAAsB,GAAsC,EAAE,CAAA;IAE9E,IAAW,wBAAwB;QACjC,OAAO,IAAI,CAAC,sBAAsB,CAAC,IAAI,CAAC,sBAAsB,CAAC,MAAM,GAAG,CAAC,CAAC,CAAA;IAC5E,CAAC;IAED,YAAY,QAA6B;QACvC,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAA;IAC1B,CAAC;CACF;AAWD,MAAM,OAAO,+BAA+B;IAUxB;IATF,EAAE,GAAW,UAAU,EAAE,CAAA;IAClC,MAAM,CAAe;IACrB,SAAS,CAAO;IAChB,QAAQ,CAAkC;IAC1C,SAAS,CAA6B;IACtC,MAAM,GAA+B,SAAS,CAAA;IAC9C,OAAO,CAAU;IAExB,YACkB,aAAuC,EACvD,OAAgD;QADhC,kBAAa,GAAb,aAAa,CAA0B;QAGvD,IAAI,CAAC,OAAO;YAAE,OAAM;QAEpB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;QAC5B,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;QAClC,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC,QAAQ,CAAA;QAChC,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,SAAS,CAAA;QAClC,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAA;QAC5B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC,OAAO,CAAA;IAChC,CAAC;CACF"}
@@ -1,8 +0,0 @@
1
- import type { WorkflowRun } from '../models/WorkflowRun.js';
2
- export declare class WorkflowRunRepository {
3
- private readonly runs;
4
- findAll(): WorkflowRun[];
5
- findById(id: string): WorkflowRun | undefined;
6
- save(run: WorkflowRun): void;
7
- findBy(predicate: (run: WorkflowRun) => boolean): WorkflowRun[];
8
- }
@@ -1,27 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Injectable } from 'pleroma';
8
- let WorkflowRunRepository = class WorkflowRunRepository {
9
- runs = [];
10
- findAll() {
11
- return this.runs;
12
- }
13
- findById(id) {
14
- return this.runs.find(run => run.id === id);
15
- }
16
- save(run) {
17
- this.runs.push(run);
18
- }
19
- findBy(predicate) {
20
- return this.runs.filter(predicate);
21
- }
22
- };
23
- WorkflowRunRepository = __decorate([
24
- Injectable()
25
- ], WorkflowRunRepository);
26
- export { WorkflowRunRepository };
27
- //# sourceMappingURL=WorkflowRun.repository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowRun.repository.js","sourceRoot":"","sources":["../../../src/dev-runtime/repositories/WorkflowRun.repository.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAK7B,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IACf,IAAI,GAAkB,EAAE,CAAA;IAElC,OAAO;QACZ,OAAO,IAAI,CAAC,IAAI,CAAA;IAClB,CAAC;IAEM,QAAQ,CAAC,EAAU;QACxB,OAAO,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IAC7C,CAAC;IAEM,IAAI,CAAC,GAAgB;QAC1B,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,CAAA;IACrB,CAAC;IAEM,MAAM,CAAC,SAAwC;QACpD,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,SAAS,CAAC,CAAA;IACpC,CAAC;CACF,CAAA;AAlBY,qBAAqB;IADjC,UAAU,EAAE;GACA,qBAAqB,CAkBjC"}
@@ -1,8 +0,0 @@
1
- import type { WorkflowRunActivity } from '../models/WorkflowRunActivity.js';
2
- export declare class WorkflowRunActivityRepository {
3
- private activitiesByRun;
4
- save(activity: WorkflowRunActivity): void;
5
- findById(id: string): WorkflowRunActivity | undefined;
6
- findByRunId(run: string): WorkflowRunActivity[];
7
- findBy(predicate: (activity: WorkflowRunActivity) => boolean): WorkflowRunActivity[];
8
- }
@@ -1,36 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- import { Injectable } from 'pleroma';
8
- let WorkflowRunActivityRepository = class WorkflowRunActivityRepository {
9
- activitiesByRun = new Map();
10
- save(activity) {
11
- const activities = this.activitiesByRun.get(activity.run.id) || [];
12
- activities.push(activity);
13
- this.activitiesByRun.set(activity.run.id, activities);
14
- }
15
- findById(id) {
16
- return this.activitiesByRun
17
- .values()
18
- .flatMap(activities => activities)
19
- .find(activity => activity.id === id);
20
- }
21
- findByRunId(run) {
22
- return this.activitiesByRun.get(run) || [];
23
- }
24
- findBy(predicate) {
25
- return this.activitiesByRun
26
- .values()
27
- .flatMap(activities => activities)
28
- .filter(predicate)
29
- .toArray();
30
- }
31
- };
32
- WorkflowRunActivityRepository = __decorate([
33
- Injectable()
34
- ], WorkflowRunActivityRepository);
35
- export { WorkflowRunActivityRepository };
36
- //# sourceMappingURL=WorkflowRunActivity.repository.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkflowRunActivity.repository.js","sourceRoot":"","sources":["../../../src/dev-runtime/repositories/WorkflowRunActivity.repository.ts"],"names":[],"mappings":";;;;;;AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAK7B,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAChC,eAAe,GAAG,IAAI,GAAG,EAAiC,CAAA;IAE3D,IAAI,CAAC,QAA6B;QACvC,MAAM,UAAU,GAAG,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,CAAA;QAElE,UAAU,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAA;QAEzB,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,EAAE,UAAU,CAAC,CAAA;IACvD,CAAC;IAEM,QAAQ,CAAC,EAAU;QACxB,OAAO,IAAI,CAAC,eAAe;aACxB,MAAM,EAAE;aACR,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC;aACjC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,EAAE,KAAK,EAAE,CAAC,CAAA;IACzC,CAAC;IAEM,WAAW,CAAC,GAAW;QAC5B,OAAO,IAAI,CAAC,eAAe,CAAC,GAAG,CAAC,GAAG,CAAC,IAAI,EAAE,CAAA;IAC5C,CAAC;IAEM,MAAM,CACX,SAAqD;QAErD,OAAO,IAAI,CAAC,eAAe;aACxB,MAAM,EAAE;aACR,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,UAAU,CAAC;aACjC,MAAM,CAAC,SAAS,CAAC;aACjB,OAAO,EAAE,CAAA;IACd,CAAC;CACF,CAAA;AA/BY,6BAA6B;IADzC,UAAU,EAAE;GACA,6BAA6B,CA+BzC"}
@@ -1,8 +0,0 @@
1
- import { WorkflowRun } from '../models/WorkflowRun.js';
2
- import { WorkflowRunActivityRepository } from '../repositories/WorkflowRunActivity.repository.js';
3
- export declare class BuildWorkflowRunResultService {
4
- private readonly workflowRunActivityRepository;
5
- constructor(workflowRunActivityRepository: WorkflowRunActivityRepository);
6
- build(run: WorkflowRun): unknown;
7
- private findLastPendingAsyncActivityByRun;
8
- }
@@ -1,49 +0,0 @@
1
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
2
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
3
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
4
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
5
- return c > 3 && r && Object.defineProperty(target, key, r), r;
6
- };
7
- var __param = (this && this.__param) || function (paramIndex, decorator) {
8
- return function (target, key) { decorator(target, key, paramIndex); }
9
- };
10
- import { Inject, Injectable } from 'pleroma';
11
- import { WorkflowRun } from '../models/WorkflowRun.js';
12
- import { WorkflowRunActivityRepository } from '../repositories/WorkflowRunActivity.repository.js';
13
- let BuildWorkflowRunResultService = class BuildWorkflowRunResultService {
14
- workflowRunActivityRepository;
15
- constructor(workflowRunActivityRepository) {
16
- this.workflowRunActivityRepository = workflowRunActivityRepository;
17
- }
18
- build(run) {
19
- if (run.status === 'fulfilled')
20
- return run.output;
21
- if (run.status === 'rejected')
22
- return { error: run.rejectedReason };
23
- const pending = this.findLastPendingAsyncActivityByRun(run);
24
- if (pending)
25
- return { isWaiting: true, id: pending.asyncActivity.activity.id };
26
- return { isWaiting: false };
27
- }
28
- findLastPendingAsyncActivityByRun(run) {
29
- const activities = this.workflowRunActivityRepository
30
- .findByRunId(run.id)
31
- .filter(activity => activity.asyncActivity);
32
- for (const activity of activities.reverse()) {
33
- if (!activity.asyncActivity)
34
- continue;
35
- const pending = activity.asyncActivity.lastPendingAsyncActivity;
36
- if (!pending)
37
- continue;
38
- if (pending.status !== 'pending')
39
- continue;
40
- return pending;
41
- }
42
- }
43
- };
44
- BuildWorkflowRunResultService = __decorate([
45
- Injectable(),
46
- __param(0, Inject(() => WorkflowRunActivityRepository))
47
- ], BuildWorkflowRunResultService);
48
- export { BuildWorkflowRunResultService };
49
- //# sourceMappingURL=BuildWorkflowRunResult.service.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"BuildWorkflowRunResult.service.js","sourceRoot":"","sources":["../../../src/dev-runtime/services/BuildWorkflowRunResult.service.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,SAAS,CAAA;AAE5C,OAAO,EAAE,WAAW,EAAE,MAAM,0BAA0B,CAAA;AACtD,OAAO,EAAE,6BAA6B,EAAE,MAAM,mDAAmD,CAAA;AAG1F,IAAM,6BAA6B,GAAnC,MAAM,6BAA6B;IAGrB;IAFnB,YAEmB,6BAA4D;QAA5D,kCAA6B,GAA7B,6BAA6B,CAA+B;IAC5E,CAAC;IAEG,KAAK,CAAC,GAAgB;QAC3B,IAAI,GAAG,CAAC,MAAM,KAAK,WAAW;YAAE,OAAO,GAAG,CAAC,MAAM,CAAA;QAEjD,IAAI,GAAG,CAAC,MAAM,KAAK,UAAU;YAAE,OAAO,EAAE,KAAK,EAAE,GAAG,CAAC,cAAc,EAAE,CAAA;QAEnE,MAAM,OAAO,GAAG,IAAI,CAAC,iCAAiC,CAAC,GAAG,CAAC,CAAA;QAE3D,IAAI,OAAO;YACT,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,EAAE,EAAE,OAAO,CAAC,aAAa,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAA;QAEnE,OAAO,EAAE,SAAS,EAAE,KAAK,EAAE,CAAA;IAC7B,CAAC;IAEO,iCAAiC,CAAC,GAAgB;QACxD,MAAM,UAAU,GAAG,IAAI,CAAC,6BAA6B;aAClD,WAAW,CAAC,GAAG,CAAC,EAAE,CAAC;aACnB,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAA;QAE7C,KAAK,MAAM,QAAQ,IAAI,UAAU,CAAC,OAAO,EAAE,EAAE,CAAC;YAC5C,IAAI,CAAC,QAAQ,CAAC,aAAa;gBAAE,SAAQ;YAErC,MAAM,OAAO,GAAG,QAAQ,CAAC,aAAa,CAAC,wBAAwB,CAAA;YAE/D,IAAI,CAAC,OAAO;gBAAE,SAAQ;YAEtB,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS;gBAAE,SAAQ;YAE1C,OAAO,OAAO,CAAA;QAChB,CAAC;IACH,CAAC;CACF,CAAA;AApCY,6BAA6B;IADzC,UAAU,EAAE;IAGR,WAAA,MAAM,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC,CAAA;GAFnC,6BAA6B,CAoCzC"}