@forge/cli 14.1.0-next.1-experimental-13c2f8d → 14.1.0-next.19-experimental-fd0ebbc

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 (171) hide show
  1. package/CHANGELOG.md +225 -10
  2. package/README.md +0 -42
  3. package/npm-shrinkwrap.json +41 -40
  4. package/out/autocomplete/autocomplete-config.json +0 -3
  5. package/out/build/graphql-client.d.ts.map +1 -1
  6. package/out/build/graphql-client.js +10 -17
  7. package/out/build/graphql-client.js.map +1 -1
  8. package/out/command-line/command.d.ts +0 -4
  9. package/out/command-line/command.d.ts.map +1 -1
  10. package/out/command-line/command.js +0 -18
  11. package/out/command-line/command.js.map +1 -1
  12. package/out/command-line/controller/global-install-controller.d.ts +47 -0
  13. package/out/command-line/controller/global-install-controller.d.ts.map +1 -0
  14. package/out/command-line/controller/global-install-controller.js +206 -0
  15. package/out/command-line/controller/global-install-controller.js.map +1 -0
  16. package/out/command-line/controller/tunnel-controller.d.ts +1 -3
  17. package/out/command-line/controller/tunnel-controller.d.ts.map +1 -1
  18. package/out/command-line/controller/tunnel-controller.js +25 -49
  19. package/out/command-line/controller/tunnel-controller.js.map +1 -1
  20. package/out/command-line/controller/version-controller.d.ts.map +1 -1
  21. package/out/command-line/controller/version-controller.js +1 -0
  22. package/out/command-line/controller/version-controller.js.map +1 -1
  23. package/out/command-line/dependency-injection.d.ts +0 -4
  24. package/out/command-line/dependency-injection.d.ts.map +1 -1
  25. package/out/command-line/dependency-injection.js +4 -15
  26. package/out/command-line/dependency-injection.js.map +1 -1
  27. package/out/command-line/register-app-commands.js +1 -1
  28. package/out/command-line/register-app-commands.js.map +1 -1
  29. package/out/command-line/register-environments-commands.d.ts.map +1 -1
  30. package/out/command-line/register-environments-commands.js +3 -1
  31. package/out/command-line/register-environments-commands.js.map +1 -1
  32. package/out/command-line/register-log-commands.d.ts.map +1 -1
  33. package/out/command-line/register-log-commands.js +43 -43
  34. package/out/command-line/register-log-commands.js.map +1 -1
  35. package/out/command-line/register-show-commands.d.ts.map +1 -1
  36. package/out/command-line/register-show-commands.js +118 -89
  37. package/out/command-line/register-show-commands.js.map +1 -1
  38. package/out/command-line/register-storage-commands.d.ts.map +1 -1
  39. package/out/command-line/register-storage-commands.js +0 -38
  40. package/out/command-line/register-storage-commands.js.map +1 -1
  41. package/out/command-line/register-tunnel-commands.d.ts.map +1 -1
  42. package/out/command-line/register-tunnel-commands.js +0 -1
  43. package/out/command-line/register-tunnel-commands.js.map +1 -1
  44. package/out/command-line/utils.d.ts +1 -0
  45. package/out/command-line/utils.d.ts.map +1 -1
  46. package/out/command-line/utils.js +14 -1
  47. package/out/command-line/utils.js.map +1 -1
  48. package/out/command-line/view/global-install-view.d.ts +42 -0
  49. package/out/command-line/view/global-install-view.d.ts.map +1 -0
  50. package/out/command-line/view/global-install-view.js +113 -0
  51. package/out/command-line/view/global-install-view.js.map +1 -0
  52. package/out/command-line/view/version-view.d.ts.map +1 -1
  53. package/out/command-line/view/version-view.js +11 -0
  54. package/out/command-line/view/version-view.js.map +1 -1
  55. package/out/containers/container-command.d.ts +2 -2
  56. package/out/containers/container-command.d.ts.map +1 -1
  57. package/out/containers/container-command.js +72 -33
  58. package/out/containers/container-command.js.map +1 -1
  59. package/out/custom-scopes/repository.d.ts.map +1 -1
  60. package/out/custom-scopes/repository.js +11 -7
  61. package/out/custom-scopes/repository.js.map +1 -1
  62. package/out/deploy/deployer/deploy-monitor-graphql-client.d.ts.map +1 -1
  63. package/out/deploy/deployer/deploy-monitor-graphql-client.js +4 -3
  64. package/out/deploy/deployer/deploy-monitor-graphql-client.js.map +1 -1
  65. package/out/deploy/deployer/deployer.d.ts +2 -2
  66. package/out/deploy/deployer/deployer.d.ts.map +1 -1
  67. package/out/deploy/deployer/deployer.js +50 -5
  68. package/out/deploy/deployer/deployer.js.map +1 -1
  69. package/out/deploy/deployer/trigger-deploy-graphql-client.d.ts.map +1 -1
  70. package/out/deploy/deployer/trigger-deploy-graphql-client.js +4 -3
  71. package/out/deploy/deployer/trigger-deploy-graphql-client.js.map +1 -1
  72. package/out/deploy/uploader/artifact-graphql-client.d.ts.map +1 -1
  73. package/out/deploy/uploader/artifact-graphql-client.js +13 -10
  74. package/out/deploy/uploader/artifact-graphql-client.js.map +1 -1
  75. package/out/deployments/deployments-graphql-client.d.ts +6 -0
  76. package/out/deployments/deployments-graphql-client.d.ts.map +1 -1
  77. package/out/deployments/deployments-graphql-client.js +45 -38
  78. package/out/deployments/deployments-graphql-client.js.map +1 -1
  79. package/out/devspace/graphql-client.d.ts.map +1 -1
  80. package/out/devspace/graphql-client.js +23 -12
  81. package/out/devspace/graphql-client.js.map +1 -1
  82. package/out/eligibility/graphql-client.d.ts.map +1 -1
  83. package/out/eligibility/graphql-client.js +8 -3
  84. package/out/eligibility/graphql-client.js.map +1 -1
  85. package/out/entities/graphql-client.d.ts.map +1 -1
  86. package/out/entities/graphql-client.js +5 -6
  87. package/out/entities/graphql-client.js.map +1 -1
  88. package/out/environment/graphql-client.d.ts.map +1 -1
  89. package/out/environment/graphql-client.js +14 -20
  90. package/out/environment/graphql-client.js.map +1 -1
  91. package/out/environment-variables/graphql-client.d.ts.map +1 -1
  92. package/out/environment-variables/graphql-client.js +10 -8
  93. package/out/environment-variables/graphql-client.js.map +1 -1
  94. package/out/installations/global-app.d.ts +9 -0
  95. package/out/installations/global-app.d.ts.map +1 -0
  96. package/out/installations/global-app.js +18 -0
  97. package/out/installations/global-app.js.map +1 -0
  98. package/out/installations/graphql-client.d.ts.map +1 -1
  99. package/out/installations/graphql-client.js +57 -43
  100. package/out/installations/graphql-client.js.map +1 -1
  101. package/out/installations/install-app-unit.d.ts +39 -0
  102. package/out/installations/install-app-unit.d.ts.map +1 -0
  103. package/out/installations/install-app-unit.js +3 -0
  104. package/out/installations/install-app-unit.js.map +1 -0
  105. package/out/installations/site-translation/bitbucket.d.ts +2 -1
  106. package/out/installations/site-translation/bitbucket.d.ts.map +1 -1
  107. package/out/installations/site-translation/bitbucket.js +10 -2
  108. package/out/installations/site-translation/bitbucket.js.map +1 -1
  109. package/out/installations/site-translation/sited-products.d.ts.map +1 -1
  110. package/out/installations/site-translation/sited-products.js +20 -20
  111. package/out/installations/site-translation/sited-products.js.map +1 -1
  112. package/out/manifest/render.d.ts.map +1 -1
  113. package/out/manifest/render.js +2 -2
  114. package/out/manifest/render.js.map +1 -1
  115. package/out/migration-keys/graphql-client.d.ts.map +1 -1
  116. package/out/migration-keys/graphql-client.js +50 -25
  117. package/out/migration-keys/graphql-client.js.map +1 -1
  118. package/out/providers/graphql-client.d.ts.map +1 -1
  119. package/out/providers/graphql-client.js +4 -3
  120. package/out/providers/graphql-client.js.map +1 -1
  121. package/out/rollout/graphql-client.d.ts.map +1 -1
  122. package/out/rollout/graphql-client.js +6 -7
  123. package/out/rollout/graphql-client.js.map +1 -1
  124. package/out/service/extensions-service.d.ts.map +1 -1
  125. package/out/service/extensions-service.js +10 -8
  126. package/out/service/extensions-service.js.map +1 -1
  127. package/out/service/identity/identity-client.d.ts +25 -0
  128. package/out/service/identity/identity-client.d.ts.map +1 -0
  129. package/out/service/identity/identity-client.js +72 -0
  130. package/out/service/identity/identity-client.js.map +1 -0
  131. package/out/service/resources-uploader-service.d.ts.map +1 -1
  132. package/out/service/resources-uploader-service.js +2 -1
  133. package/out/service/resources-uploader-service.js.map +1 -1
  134. package/out/service/tunnel-service.d.ts.map +1 -1
  135. package/out/service/tunnel-service.js +5 -14
  136. package/out/service/tunnel-service.js.map +1 -1
  137. package/out/service/version-service.d.ts.map +1 -1
  138. package/out/service/version-service.js +17 -13
  139. package/out/service/version-service.js.map +1 -1
  140. package/out/site/graphql-client.d.ts.map +1 -1
  141. package/out/site/graphql-client.js +6 -6
  142. package/out/site/graphql-client.js.map +1 -1
  143. package/out/version/graphql-client.d.ts +1 -1
  144. package/out/version/graphql-client.d.ts.map +1 -1
  145. package/out/version/graphql-client.js +56 -53
  146. package/out/version/graphql-client.js.map +1 -1
  147. package/out/webtrigger/graphql-client.d.ts.map +1 -1
  148. package/out/webtrigger/graphql-client.js +31 -29
  149. package/out/webtrigger/graphql-client.js.map +1 -1
  150. package/package.json +7 -7
  151. package/docs/local-storage.md +0 -82
  152. package/out/command-line/controller/local-storage-controller.d.ts +0 -18
  153. package/out/command-line/controller/local-storage-controller.d.ts.map +0 -1
  154. package/out/command-line/controller/local-storage-controller.js +0 -52
  155. package/out/command-line/controller/local-storage-controller.js.map +0 -1
  156. package/out/command-line/view/local-storage-view.d.ts +0 -15
  157. package/out/command-line/view/local-storage-view.d.ts.map +0 -1
  158. package/out/command-line/view/local-storage-view.js +0 -79
  159. package/out/command-line/view/local-storage-view.js.map +0 -1
  160. package/out/service/local-storage-lifecycle.d.ts +0 -91
  161. package/out/service/local-storage-lifecycle.d.ts.map +0 -1
  162. package/out/service/local-storage-lifecycle.js +0 -167
  163. package/out/service/local-storage-lifecycle.js.map +0 -1
  164. package/out/service/local-storage-manifest.d.ts +0 -20
  165. package/out/service/local-storage-manifest.d.ts.map +0 -1
  166. package/out/service/local-storage-manifest.js +0 -48
  167. package/out/service/local-storage-manifest.js.map +0 -1
  168. package/out/service/local-storage-service.d.ts +0 -58
  169. package/out/service/local-storage-service.d.ts.map +0 -1
  170. package/out/service/local-storage-service.js +0 -204
  171. package/out/service/local-storage-service.js.map +0 -1
@@ -1,82 +0,0 @@
1
- # Local storage reference
2
-
3
- For requirements, manifest configuration, and commands, see [Local storage in the Forge CLI README](../README.md#local-storage).
4
-
5
- ## KVS, Custom Entity, and Secret seeding
6
-
7
- The KVS seed file is strict JSON:
8
-
9
- ```json
10
- {
11
- "kvs": [
12
- { "key": "user:1", "value": { "name": "Ada", "active": true } }
13
- ],
14
- "customEntities": [
15
- {
16
- "entityName": "employee",
17
- "key": "employee:1",
18
- "value": { "name": "Ada", "department": "Engineering" }
19
- }
20
- ],
21
- "secrets": [
22
- { "key": "example-api-key", "value": "local-development-value" }
23
- ]
24
- }
25
- ```
26
-
27
- The CLI validates the object shape, key/value limits, duplicate storage locations, entity names,
28
- and entity attribute types before starting or mutating storage. The emulator validates the complete
29
- request before applying it transactionally. Secret values are plaintext local-development data but
30
- remain on the separate, non-queryable Secret Store surface. Do not commit seed files containing
31
- secrets.
32
-
33
- ## SQL seeding
34
-
35
- SQL seed files contain ordinary MySQL/TiDB statements separated by semicolons:
36
-
37
- ```sql
38
- CREATE TABLE people (id INT PRIMARY KEY, name VARCHAR(64));
39
- INSERT INTO people (id, name) VALUES (1, 'Ada');
40
- UPDATE people SET name = 'Ada Lovelace' WHERE id = 1;
41
- ```
42
-
43
- Statements execute in file order in one emulator transaction. Quoted semicolons and SQL comments
44
- are supported. A failure reports the failing statement number, text, and SQL error. DML-only seed
45
- batches roll back on failure. TiDB implicitly commits DDL, so a seed that mixes DDL with later
46
- statements can leave the schema and intervening writes applied when a later statement fails; use
47
- idempotent DDL or reset SQL after such a failure. Stored procedures that depend on client-side
48
- `DELIMITER` directives are not supported by the core parser.
49
-
50
- When both seed flags are present, files are fully parsed before either offering is changed. KVS and
51
- SQL then run independently and produce separate results; if only one succeeds, the overall command
52
- fails after showing that partial completion. Running `forge storage local seed` without flags prints
53
- the supported formats and does not change data.
54
-
55
- ## Reset semantics
56
-
57
- - `reset --kvs` clears KVS, Custom Entity, and Secret Store data for the current app only. SQL is
58
- preserved.
59
- - `reset --sql` drops and recreates the current app's empty SQL namespace. KVS-backed data is
60
- preserved.
61
- - bare `reset` clears every offering configured by the current manifest.
62
-
63
- There are deliberately no `--all`, `--yes`, or `--allow-write` reset options.
64
-
65
- ## Tunnel routing and shutdown
66
-
67
- `forge tunnel --local-storage` starts the storage capabilities configured in your manifest and routes
68
- `@forge/kvs` and `@forge/sql` calls to local storage. Your app code does not change.
69
-
70
- When the tunnel exits or fails to start, its local-storage containers stop, including containers
71
- that were already running before the tunnel started. Data is preserved for the next start.
72
- Without `--local-storage`, the tunnel continues to use hosted storage.
73
-
74
- ## Troubleshooting and limitations
75
-
76
- - Start Docker before running a local-storage command.
77
- - Free ports `18090` (KVS) and `18091` (SQL) if startup reports a port conflict.
78
- - Use `forge storage local status` to check which capabilities are configured, running, and healthy.
79
- - If an image download fails, check your connection to the registry shown in the error and try again.
80
- - Local storage is intended for development. Test against hosted Forge services before deploying.
81
- - Interactive inspection, REPL, and ad hoc query commands are not currently available. Use your app's
82
- normal `@forge/kvs` and `@forge/sql` calls to read or update local data.
@@ -1,18 +0,0 @@
1
- import { UserError } from '@forge/cli-shared';
2
- import { LocalStorageService, ResetOptions, SeedOptions } from '../../service/local-storage-service';
3
- import { LocalStorageView } from '../view/local-storage-view';
4
- export declare class LocalStorageOperationError extends UserError {
5
- }
6
- export declare class LocalStorageController {
7
- private readonly service;
8
- private readonly view;
9
- constructor(service: LocalStorageService, view: LocalStorageView);
10
- start(): Promise<void>;
11
- status(): Promise<void>;
12
- seed(options: SeedOptions): Promise<void>;
13
- reset(options: ResetOptions): Promise<void>;
14
- stop(): Promise<void>;
15
- startForTunnel(): Promise<void>;
16
- stopForTunnel(): Promise<void>;
17
- }
18
- //# sourceMappingURL=local-storage-controller.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-controller.d.ts","sourceRoot":"","sources":["../../../src/command-line/controller/local-storage-controller.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAEpD,OAAO,EAAE,mBAAmB,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACrG,OAAO,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AAE9D,qBAAa,0BAA2B,SAAQ,SAAS;CAAG;AAE5D,qBAAa,sBAAsB;IAE/B,OAAO,CAAC,QAAQ,CAAC,OAAO;IACxB,OAAO,CAAC,QAAQ,CAAC,IAAI;gBADJ,OAAO,EAAE,mBAAmB,EAC5B,IAAI,EAAE,gBAAgB;IAG5B,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC;IAItB,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC;IAIvB,IAAI,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC;IAazC,KAAK,CAAC,OAAO,EAAE,YAAY,GAAG,OAAO,CAAC,IAAI,CAAC;IAQ3C,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;IAKrB,cAAc,IAAI,OAAO,CAAC,IAAI,CAAC;IAI/B,aAAa,IAAI,OAAO,CAAC,IAAI,CAAC;CAG5C"}
@@ -1,52 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalStorageController = exports.LocalStorageOperationError = void 0;
4
- const cli_shared_1 = require("@forge/cli-shared");
5
- class LocalStorageOperationError extends cli_shared_1.UserError {
6
- }
7
- exports.LocalStorageOperationError = LocalStorageOperationError;
8
- class LocalStorageController {
9
- service;
10
- view;
11
- constructor(service, view) {
12
- this.service = service;
13
- this.view = view;
14
- }
15
- async start() {
16
- this.view.started(await this.service.start());
17
- }
18
- async status() {
19
- this.view.status(await this.service.status());
20
- }
21
- async seed(options) {
22
- if (!options.kvsPath && !options.sqlPath) {
23
- this.view.seedHelp();
24
- return;
25
- }
26
- this.view.seedWarning(options);
27
- const results = await this.service.seed(options);
28
- this.view.seedResults(results);
29
- if (results.some((result) => !result.ok)) {
30
- throw new LocalStorageOperationError(cli_shared_1.Text.localStorage.error.seedFailed);
31
- }
32
- }
33
- async reset(options) {
34
- const results = await this.service.reset(options);
35
- this.view.resetResults(results);
36
- if (results.some((result) => !result.ok)) {
37
- throw new LocalStorageOperationError(cli_shared_1.Text.localStorage.error.resetFailed);
38
- }
39
- }
40
- async stop() {
41
- await this.service.stop();
42
- this.view.stopped();
43
- }
44
- async startForTunnel() {
45
- await this.service.startForTunnel();
46
- }
47
- async stopForTunnel() {
48
- await this.service.stopForTunnel();
49
- }
50
- }
51
- exports.LocalStorageController = LocalStorageController;
52
- //# sourceMappingURL=local-storage-controller.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-controller.js","sourceRoot":"","sources":["../../../src/command-line/controller/local-storage-controller.ts"],"names":[],"mappings":";;;AAAA,kDAAoD;AAKpD,MAAa,0BAA2B,SAAQ,sBAAS;CAAG;AAA5D,gEAA4D;AAE5D,MAAa,sBAAsB;IAEd;IACA;IAFnB,YACmB,OAA4B,EAC5B,IAAsB;QADtB,YAAO,GAAP,OAAO,CAAqB;QAC5B,SAAI,GAAJ,IAAI,CAAkB;IACtC,CAAC;IAEG,KAAK,CAAC,KAAK;QAChB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,KAAK,CAAC,MAAM;QACjB,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,CAAC,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAAoB;QACpC,IAAI,CAAC,OAAO,CAAC,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,CAAC;YACzC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;YACrB,OAAO;QACT,CAAC;QACD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/B,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACjD,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QAC/B,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,0BAA0B,CAAC,iBAAI,CAAC,YAAY,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,KAAK,CAAC,OAAqB;QACtC,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC;QAClD,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;QAChC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,EAAE,CAAC;YACzC,MAAM,IAAI,0BAA0B,CAAC,iBAAI,CAAC,YAAY,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC;QAC5E,CAAC;IACH,CAAC;IAEM,KAAK,CAAC,IAAI;QACf,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,OAAO,EAAE,CAAC;IACtB,CAAC;IAEM,KAAK,CAAC,cAAc;QACzB,MAAM,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,CAAC;IACtC,CAAC;IAEM,KAAK,CAAC,aAAa;QACxB,MAAM,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;IACrC,CAAC;CACF;AA/CD,wDA+CC"}
@@ -1,15 +0,0 @@
1
- import { UI } from '@forge/cli-shared';
2
- import { LocalStorageManifest } from '../../service/local-storage-manifest';
3
- import { LocalStorageStatus, ResetResult, SeedOptions, SeedResult } from '../../service/local-storage-service';
4
- export declare class LocalStorageView {
5
- private readonly ui;
6
- constructor(ui: UI);
7
- started(manifest: LocalStorageManifest): void;
8
- status(result: LocalStorageStatus): void;
9
- seedHelp(): void;
10
- seedWarning(options: SeedOptions): void;
11
- seedResults(results: SeedResult[]): void;
12
- resetResults(results: ResetResult[]): void;
13
- stopped(): void;
14
- }
15
- //# sourceMappingURL=local-storage-view.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-view.d.ts","sourceRoot":"","sources":["../../../src/command-line/view/local-storage-view.ts"],"names":[],"mappings":"AAAA,OAAO,EAAQ,EAAE,EAAE,MAAM,mBAAmB,CAAC;AAE7C,OAAO,EAAE,oBAAoB,EAAwB,MAAM,sCAAsC,CAAC;AAClG,OAAO,EAAE,kBAAkB,EAAE,WAAW,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,qCAAqC,CAAC;AAK/G,qBAAa,gBAAgB;IACf,OAAO,CAAC,QAAQ,CAAC,EAAE;gBAAF,EAAE,EAAE,EAAE;IAE5B,OAAO,CAAC,QAAQ,EAAE,oBAAoB,GAAG,IAAI;IAY7C,MAAM,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI;IAmBxC,QAAQ,IAAI,IAAI;IAMhB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,IAAI;IAMvC,WAAW,CAAC,OAAO,EAAE,UAAU,EAAE,GAAG,IAAI;IAYxC,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,GAAG,IAAI;IAW1C,OAAO,IAAI,IAAI;CAGvB"}
@@ -1,79 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalStorageView = void 0;
4
- const cli_shared_1 = require("@forge/cli-shared");
5
- const text = cli_shared_1.Text.localStorage.view;
6
- const label = (offering) => text.labels[offering];
7
- class LocalStorageView {
8
- ui;
9
- constructor(ui) {
10
- this.ui = ui;
11
- }
12
- started(manifest) {
13
- const configured = ['kvs', 'sql'].filter((offering) => manifest.configured[offering]);
14
- this.ui.info(text.title);
15
- this.ui.info(text.app(manifest.appName));
16
- if (!configured.length) {
17
- this.ui.info(text.noServices);
18
- return;
19
- }
20
- this.ui.info(text.running(configured.map(label)));
21
- this.ui.info(text.dataPersistence);
22
- }
23
- status(result) {
24
- this.ui.info(text.title);
25
- this.ui.info(text.statusApp(result.manifest.appName));
26
- for (const offering of ['kvs', 'sql']) {
27
- const configured = result.manifest.configured[offering];
28
- const runtime = result.runtime[offering];
29
- this.ui.emptyLine();
30
- this.ui.info(label(offering));
31
- this.ui.info(text.configured(configured ? text.declarations[offering] : undefined));
32
- this.ui.info(text.states[runtime.state]);
33
- this.ui.info(text.health(runtime.healthy));
34
- if (runtime.endpoint)
35
- this.ui.info(text.endpoint(runtime.endpoint));
36
- this.ui.info(text.dataPreserved);
37
- if (!configured) {
38
- this.ui.info(text.notConfigured[offering]);
39
- }
40
- }
41
- }
42
- seedHelp() {
43
- for (const line of text.seedHelp) {
44
- this.ui.info(line);
45
- }
46
- }
47
- seedWarning(options) {
48
- if (options.kvsPath) {
49
- this.ui.warn(text.seedWarning);
50
- }
51
- }
52
- seedResults(results) {
53
- for (const result of results) {
54
- if (result.ok) {
55
- const count = result.offering === 'kvs' ? text.recordCount(result.records) : text.statementCount(result.statements);
56
- this.ui.info(text.seedSucceeded(label(result.offering), count));
57
- }
58
- else {
59
- this.ui.error(new Error(text.seedFailed(label(result.offering), result.error?.message)));
60
- }
61
- }
62
- }
63
- resetResults(results) {
64
- for (const result of results) {
65
- if (result.ok) {
66
- const detail = result.removed === undefined ? '' : text.recordsRemoved(result.removed);
67
- this.ui.info(text.resetSucceeded(label(result.offering), detail));
68
- }
69
- else {
70
- this.ui.error(new Error(text.resetFailed(label(result.offering), result.error?.message)));
71
- }
72
- }
73
- }
74
- stopped() {
75
- this.ui.info(text.stopped);
76
- }
77
- }
78
- exports.LocalStorageView = LocalStorageView;
79
- //# sourceMappingURL=local-storage-view.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-view.js","sourceRoot":"","sources":["../../../src/command-line/view/local-storage-view.ts"],"names":[],"mappings":";;;AAAA,kDAA6C;AAK7C,MAAM,IAAI,GAAG,iBAAI,CAAC,YAAY,CAAC,IAAI,CAAC;AACpC,MAAM,KAAK,GAAG,CAAC,QAA8B,EAAU,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;AAEhF,MAAa,gBAAgB;IACE;IAA7B,YAA6B,EAAM;QAAN,OAAE,GAAF,EAAE,CAAI;IAAG,CAAC;IAEhC,OAAO,CAAC,QAA8B;QAC3C,MAAM,UAAU,GAAI,CAAC,KAAK,EAA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CACF;AAxED,4CAwEC"}
@@ -1,91 +0,0 @@
1
- import { ComposeProjectLifecycle, ComposeServiceState, UserError } from '@forge/cli-shared';
2
- import { DockerService } from './docker-service';
3
- import { LocalStorageOffering } from './local-storage-manifest';
4
- export declare const LOCAL_STORAGE_PROJECT = "forge-local-storage-v1";
5
- export declare const LOCAL_STORAGE_VOLUME = "forge-local-storage-tidb-data-v1";
6
- export declare const TIDB_IMAGE = "pingcap/tidb:v8.5.3";
7
- export declare const KVS_IMAGE = "docker-public.packages.atlassian.com/atlassian/forge-kvs-emulator:latest";
8
- export declare const SQL_IMAGE = "docker-public.packages.atlassian.com/atlassian/forge-sql-emulator:latest";
9
- export interface LocalStorageRuntimeStatus {
10
- state: 'running' | 'stopped' | 'unhealthy';
11
- healthy: boolean;
12
- endpoint?: string;
13
- container?: ComposeServiceState;
14
- }
15
- export interface LocalStorageCompose {
16
- pull(services: string[]): Promise<void>;
17
- up(services: string[]): Promise<void>;
18
- down(): Promise<void>;
19
- states(): Promise<ComposeServiceState[]>;
20
- logs(service: string, lines?: number): Promise<string>;
21
- }
22
- export interface LocalStorageLifecycleOptions {
23
- readinessTimeoutMs?: number;
24
- pollIntervalMs?: number;
25
- pullImages?: boolean;
26
- fetch?: typeof fetch;
27
- pause?: (milliseconds: number) => Promise<void>;
28
- }
29
- export declare class LocalStorageStartupError extends UserError {
30
- }
31
- export declare const localStorageComposeConfig: (images?: {
32
- tidb: string;
33
- kvs: string;
34
- sql: string;
35
- }) => {
36
- services: {
37
- tidb: {
38
- image: string;
39
- command: string[];
40
- restart: string;
41
- volumes: string[];
42
- };
43
- kvs: {
44
- image: string;
45
- restart: string;
46
- depends_on: string[];
47
- environment: {
48
- FORGE_KVS_EMULATOR_ADDRESS: string;
49
- FORGE_TIDB_DSN: string;
50
- FORGE_KVS_DATABASE: string;
51
- };
52
- ports: string[];
53
- };
54
- sql: {
55
- image: string;
56
- restart: string;
57
- depends_on: string[];
58
- environment: {
59
- FORGE_SQL_EMULATOR_ADDRESS: string;
60
- FORGE_SQL_EMULATOR_ALLOW_NON_LOOPBACK: string;
61
- FORGE_TIDB_DSN: string;
62
- };
63
- ports: string[];
64
- };
65
- };
66
- volumes: {
67
- "forge-local-storage-tidb-data-v1": {
68
- name: string;
69
- };
70
- };
71
- };
72
- export declare class LocalStorageLifecycle {
73
- private readonly composePath;
74
- private readonly compose;
75
- private readonly docker;
76
- private readonly readinessTimeoutMs;
77
- private readonly pollIntervalMs;
78
- private readonly pullImages;
79
- private readonly fetchClient;
80
- private readonly pause;
81
- constructor(composePath: string, compose: LocalStorageCompose, docker: DockerService, options?: LocalStorageLifecycleOptions);
82
- static create(composePath: string, docker: DockerService, logger: ConstructorParameters<typeof ComposeProjectLifecycle>[2]): LocalStorageLifecycle;
83
- writeComposeFile(): void;
84
- start(offerings: LocalStorageOffering[]): Promise<void>;
85
- status(): Promise<Record<LocalStorageOffering, LocalStorageRuntimeStatus>>;
86
- stop(): Promise<void>;
87
- private isReady;
88
- private waitUntilReady;
89
- private diagnostics;
90
- }
91
- //# sourceMappingURL=local-storage-lifecycle.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-lifecycle.d.ts","sourceRoot":"","sources":["../../src/service/local-storage-lifecycle.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,uBAAuB,EAAE,mBAAmB,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG5F,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAEhE,eAAO,MAAM,qBAAqB,2BAA2B,CAAC;AAC9D,eAAO,MAAM,oBAAoB,qCAAqC,CAAC;AACvE,eAAO,MAAM,UAAU,wBAAwB,CAAC;AAChD,eAAO,MAAM,SAAS,6EAA6E,CAAC;AACpG,eAAO,MAAM,SAAS,6EAA6E,CAAC;AAOpG,MAAM,WAAW,yBAAyB;IACxC,KAAK,EAAE,SAAS,GAAG,SAA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AAQ,CAAC,WAAW,CAAe;IAC3C,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA0C;gBAG7C,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,mBAAmB,EAC5B,MAAM,EAAE,aAAa,EACtC,OAAO,GAAE,4BAAiC;WAS9B,MAAM,CAClB,WAAW,EAAE,MAAM,EACnB,MAAM,EAAE,aAAa,EACrB,MAAM,EAAE,qBAAqB,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC;IAS3D,gBAAgB,IAAI,IAAI;IAKlB,KAAK,CAAC,SAAS,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC;IA6BvD,MAAM,IAAI,OAAO,CAAC,MAAM,CAAC,oBAAoB,EAAE,yBAAyB,CAAC,CAAC;IAwB1E,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC;YAMpB,OAAO;YAUP,cAAc;YASd,WAAW;CAU1B"}
@@ -1,167 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.LocalStorageLifecycle = exports.localStorageComposeConfig = exports.LocalStorageStartupError = exports.SQL_IMAGE = exports.KVS_IMAGE = exports.TIDB_IMAGE = exports.LOCAL_STORAGE_VOLUME = exports.LOCAL_STORAGE_PROJECT = void 0;
4
- const tslib_1 = require("tslib");
5
- const fs_1 = tslib_1.__importDefault(require("fs"));
6
- const path_1 = tslib_1.__importDefault(require("path"));
7
- const cli_shared_1 = require("@forge/cli-shared");
8
- const yaml_1 = tslib_1.__importDefault(require("yaml"));
9
- exports.LOCAL_STORAGE_PROJECT = 'forge-local-storage-v1';
10
- exports.LOCAL_STORAGE_VOLUME = 'forge-local-storage-tidb-data-v1';
11
- exports.TIDB_IMAGE = 'pingcap/tidb:v8.5.3';
12
- exports.KVS_IMAGE = 'docker-public.packages.atlassian.com/atlassian/forge-kvs-emulator:latest';
13
- exports.SQL_IMAGE = 'docker-public.packages.atlassian.com/atlassian/forge-sql-emulator:latest';
14
- const SERVICE_DETAILS = {
15
- kvs: { service: 'kvs', endpoint: 'http://127.0.0.1:18090', healthPath: '/deep-check' },
16
- sql: { service: 'sql', endpoint: 'http://127.0.0.1:18091', healthPath: '/deepcheck' }
17
- };
18
- class LocalStorageStartupError extends cli_shared_1.UserError {
19
- }
20
- exports.LocalStorageStartupError = LocalStorageStartupError;
21
- const localStorageComposeConfig = (images = { tidb: exports.TIDB_IMAGE, kvs: exports.KVS_IMAGE, sql: exports.SQL_IMAGE }) => ({
22
- services: {
23
- tidb: {
24
- image: images.tidb,
25
- command: ['--store=unistore', '--path=/var/lib/tidb'],
26
- restart: 'unless-stopped',
27
- volumes: [`${exports.LOCAL_STORAGE_VOLUME}:/var/lib/tidb`]
28
- },
29
- kvs: {
30
- image: images.kvs,
31
- restart: 'unless-stopped',
32
- depends_on: ['tidb'],
33
- environment: {
34
- FORGE_KVS_EMULATOR_ADDRESS: '0.0.0.0:18090',
35
- FORGE_TIDB_DSN: 'root@tcp(tidb:4000)/',
36
- FORGE_KVS_DATABASE: 'forge_local_kvs'
37
- },
38
- ports: ['127.0.0.1:18090:18090']
39
- },
40
- sql: {
41
- image: images.sql,
42
- restart: 'unless-stopped',
43
- depends_on: ['tidb'],
44
- environment: {
45
- FORGE_SQL_EMULATOR_ADDRESS: '0.0.0.0:18091',
46
- FORGE_SQL_EMULATOR_ALLOW_NON_LOOPBACK: '1',
47
- FORGE_TIDB_DSN: 'root@tcp(tidb:4000)/'
48
- },
49
- ports: ['127.0.0.1:18091:18091']
50
- }
51
- },
52
- volumes: {
53
- [exports.LOCAL_STORAGE_VOLUME]: { name: exports.LOCAL_STORAGE_VOLUME }
54
- }
55
- });
56
- exports.localStorageComposeConfig = localStorageComposeConfig;
57
- class LocalStorageLifecycle {
58
- composePath;
59
- compose;
60
- docker;
61
- readinessTimeoutMs;
62
- pollIntervalMs;
63
- pullImages;
64
- fetchClient;
65
- pause;
66
- constructor(composePath, compose, docker, options = {}) {
67
- this.composePath = composePath;
68
- this.compose = compose;
69
- this.docker = docker;
70
- this.readinessTimeoutMs = options.readinessTimeoutMs ?? 60_000;
71
- this.pollIntervalMs = options.pollIntervalMs ?? 500;
72
- this.pullImages = options.pullImages ?? true;
73
- this.fetchClient = options.fetch ?? fetch;
74
- this.pause = options.pause ?? ((milliseconds) => new Promise((resolve) => setTimeout(resolve, milliseconds)));
75
- }
76
- static create(composePath, docker, logger) {
77
- return new LocalStorageLifecycle(composePath, new cli_shared_1.ComposeProjectLifecycle(composePath, exports.LOCAL_STORAGE_PROJECT, logger), docker);
78
- }
79
- writeComposeFile() {
80
- fs_1.default.mkdirSync(path_1.default.dirname(this.composePath), { recursive: true });
81
- fs_1.default.writeFileSync(this.composePath, yaml_1.default.stringify((0, exports.localStorageComposeConfig)()), { mode: 0o600 });
82
- }
83
- async start(offerings) {
84
- await this.docker.getDockerVersion(false);
85
- this.writeComposeFile();
86
- const services = ['tidb', ...offerings.map((offering) => SERVICE_DETAILS[offering].service)];
87
- try {
88
- const currentStates = await this.compose.states();
89
- const alreadyReady = await Promise.all(offerings.map(async (offering) => {
90
- const service = SERVICE_DETAILS[offering].service;
91
- return (currentStates.some((item) => item.service === service && item.state.toLowerCase() === 'running') &&
92
- (await this.isReady(offering)));
93
- }));
94
- if (alreadyReady.every(Boolean))
95
- return;
96
- if (this.pullImages)
97
- await this.compose.pull(services);
98
- await this.compose.up(services);
99
- for (const offering of offerings)
100
- await this.waitUntilReady(offering);
101
- }
102
- catch (error) {
103
- const diagnostics = await this.diagnostics(offerings);
104
- try {
105
- await this.compose.down();
106
- }
107
- catch { }
108
- const suffix = diagnostics ? `\n\nRecent container logs:\n${diagnostics}` : '';
109
- throw new LocalStorageStartupError(`${error.message}${suffix}`);
110
- }
111
- }
112
- async status() {
113
- await this.docker.getDockerVersion(false);
114
- this.writeComposeFile();
115
- const states = await this.compose.states();
116
- const entries = await Promise.all(['kvs', 'sql'].map(async (offering) => {
117
- const details = SERVICE_DETAILS[offering];
118
- const container = states.find((item) => item.service === details.service);
119
- const running = container?.state.toLowerCase() === 'running';
120
- const healthy = Boolean(running && (await this.isReady(offering)));
121
- return [
122
- offering,
123
- {
124
- state: healthy ? 'running' : running ? 'unhealthy' : 'stopped',
125
- healthy,
126
- endpoint: healthy ? details.endpoint : undefined,
127
- container
128
- }
129
- ];
130
- }));
131
- return Object.fromEntries(entries);
132
- }
133
- async stop() {
134
- await this.docker.getDockerVersion(false);
135
- this.writeComposeFile();
136
- await this.compose.down();
137
- }
138
- async isReady(offering) {
139
- const details = SERVICE_DETAILS[offering];
140
- try {
141
- const response = await this.fetchClient(`${details.endpoint}${details.healthPath}`);
142
- return response.ok;
143
- }
144
- catch {
145
- return false;
146
- }
147
- }
148
- async waitUntilReady(offering) {
149
- const deadline = Date.now() + this.readinessTimeoutMs;
150
- do {
151
- if (await this.isReady(offering))
152
- return;
153
- await this.pause(this.pollIntervalMs);
154
- } while (Date.now() < deadline);
155
- throw new Error(`${offering.toUpperCase()} did not become ready within ${this.readinessTimeoutMs / 1000}s`);
156
- }
157
- async diagnostics(offerings) {
158
- const services = ['tidb', ...offerings.map((offering) => SERVICE_DETAILS[offering].service)];
159
- const logs = await Promise.all(services.map(async (service) => {
160
- const output = await this.compose.logs(service);
161
- return output ? `[${service}]\n${output}` : '';
162
- }));
163
- return logs.filter(Boolean).join('\n\n');
164
- }
165
- }
166
- exports.LocalStorageLifecycle = LocalStorageLifecycle;
167
- //# sourceMappingURL=local-storage-lifecycle.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-lifecycle.js","sourceRoot":"","sources":["../../src/service/local-storage-lifecycle.ts"],"names":[],"mappings":";;;;AAAA,oDAAoB;AACpB,wDAAwB;AAExB,kDAA4F;AAC5F,wDAAwB;AAKX,QAAA,qBAAqB,GAAG,wBAAwB,CAAC;AACjD,QAAA,oBAAoB,GAAG,kCAAkC,CAAC;AAC1D,QAAA,UAAU,GAAG,qBAAqB,CAAC;AACnC,QAAA,SAAS,GAAG,0EAA0E,CAAC;A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AC,CAAC;QACxC,CAAC,QAAQ,IAAI,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE;QAChC,MAAM,IAAI,KAAK,CAAC,GAAG,QAAQ,CAAC,WAAW,EAAE,gCAAgC,IAAI,CAAC,kBAAkB,GAAG,IAAI,GAAG,CAAC,CAAC;IAC9G,CAAC;IAEO,KAAK,CAAC,WAAW,CAAC,SAAiC;QACzD,MAAM,QAAQ,GAAG,CAAC,MAAM,EAAE,GAAG,SAAS,CAAC,GAAG,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,eAAe,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;QAC7F,MAAM,IAAI,GAAG,MAAM,OAAO,CAAC,GAAG,CAC5B,QAAQ,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;YAC7B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YAChD,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,OAAO,MAAM,MAAM,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QACjD,CAAC,CAAC,CACH,CAAC;QACF,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAC3C,CAAC;CACF;AA7HD,sDA6HC"}
@@ -1,20 +0,0 @@
1
- import { ManifestSchema } from '@forge/manifest';
2
- export type LocalStorageOffering = 'kvs' | 'sql';
3
- export type EntityDefinition = NonNullable<NonNullable<ManifestSchema['app']['storage']>['entities']>[number];
4
- export interface LocalStorageManifest {
5
- appName: string;
6
- appId: string;
7
- namespace: LocalStorageNamespace;
8
- entities: EntityDefinition[];
9
- configured: Record<LocalStorageOffering, boolean>;
10
- }
11
- export interface LocalStorageNamespace {
12
- appId: string;
13
- environmentId: string;
14
- installationId: string;
15
- }
16
- export declare const inspectLocalStorageManifest: (manifest: ManifestSchema, appDirectory?: string) => LocalStorageManifest;
17
- export declare const configuredOfferings: (manifest: LocalStorageManifest) => LocalStorageOffering[];
18
- export declare const localStorageHeaders: (namespace: LocalStorageNamespace) => Record<string, string>;
19
- export declare const localStorageEnvironment: (namespace: LocalStorageNamespace) => Record<string, string>;
20
- //# sourceMappingURL=local-storage-manifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-manifest.d.ts","sourceRoot":"","sources":["../../src/service/local-storage-manifest.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,MAAM,oBAAoB,GAAG,KAAK,GAAG,KAAK,CAAC;AACjD,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,WAAW,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC;AAE9G,MAAM,WAAW,oBAAoB;IACnC,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,SAAS,EAAE,qBAAqB,CAAC;IACjC,QAAQ,EAAE,gBAAgB,EAAE,CAAC;IAC7B,UAAU,EAAE,MAAM,CAAC,oBAAoB,EAAE,OAAO,CAAC,CAAC;CACnD;AAED,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,MAAM,CAAC;IACd,aAAa,EAAE,MAAM,CAAC;IACtB,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,eAAO,MAAM,2BAA2B,GACtC,UAAU,cAAc,EACxB,qBAA4B,KAC3B,oBAmBF,CAAC;AAEF,eAAO,MAAM,mBAAmB,GAAI,UAAU,oBAAoB,KAAG,oBAAoB,EACV,CAAC;AAEhF,eAAO,MAAM,mBAAmB,GAAI,WAAW,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAQ1F,CAAC;AAEH,eAAO,MAAM,uBAAuB,GAAI,WAAW,qBAAqB,KAAG,MAAM,CAAC,MAAM,EAAE,MAAM,CAO9F,CAAC"}
@@ -1,48 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.localStorageEnvironment = exports.localStorageHeaders = exports.configuredOfferings = exports.inspectLocalStorageManifest = void 0;
4
- const tslib_1 = require("tslib");
5
- const crypto_1 = require("crypto");
6
- const path_1 = tslib_1.__importDefault(require("path"));
7
- const inspectLocalStorageManifest = (manifest, appDirectory = process.cwd()) => {
8
- const scopes = manifest.permissions?.scopes ?? [];
9
- const scopeKeys = Array.isArray(scopes) ? scopes : Object.keys(scopes);
10
- const digest = (0, crypto_1.createHash)('sha256').update(manifest.app.id).digest('hex');
11
- return {
12
- appName: path_1.default.basename(appDirectory),
13
- appId: manifest.app.id,
14
- namespace: {
15
- appId: `local-app-${digest.slice(0, 24)}`,
16
- environmentId: `local-environment-${digest.slice(24, 40)}`,
17
- installationId: `local-installation-${digest.slice(40, 56)}`
18
- },
19
- entities: [...(manifest.app.storage?.entities ?? [])],
20
- configured: {
21
- kvs: scopeKeys.includes('storage:app'),
22
- sql: Boolean(manifest.modules?.sql?.length)
23
- }
24
- };
25
- };
26
- exports.inspectLocalStorageManifest = inspectLocalStorageManifest;
27
- const configuredOfferings = (manifest) => ['kvs', 'sql'].filter((offering) => manifest.configured[offering]);
28
- exports.configuredOfferings = configuredOfferings;
29
- const localStorageHeaders = (namespace) => ({
30
- 'content-type': 'application/json',
31
- 'x-forge-app-id': namespace.appId,
32
- 'x-forge-environment-id': namespace.environmentId,
33
- 'x-forge-installation-id': namespace.installationId,
34
- 'x-atlassian-forgeapp-app-id': namespace.appId,
35
- 'x-atlassian-forgeapp-environment-id': namespace.environmentId,
36
- 'x-atlassian-forgeapp-installation-id': namespace.installationId
37
- });
38
- exports.localStorageHeaders = localStorageHeaders;
39
- const localStorageEnvironment = (namespace) => ({
40
- FORGE_LOCAL_STORAGE: '1',
41
- FORGE_LOCAL_KVS_URL: 'http://127.0.0.1:18090',
42
- FORGE_LOCAL_SQL_URL: 'http://127.0.0.1:18091',
43
- FORGE_LOCAL_STORAGE_APP_ID: namespace.appId,
44
- FORGE_LOCAL_STORAGE_ENVIRONMENT_ID: namespace.environmentId,
45
- FORGE_LOCAL_STORAGE_INSTALLATION_ID: namespace.installationId
46
- });
47
- exports.localStorageEnvironment = localStorageEnvironment;
48
- //# sourceMappingURL=local-storage-manifest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"local-storage-manifest.js","sourceRoot":"","sources":["../../src/service/local-storage-manifest.ts"],"names":[],"mappings":";;;;AAAA,mCAAoC;AACpC,wDAAwB;AAqBjB,MAAM,2BAA2B,GAAG,CACzC,QAAwB,EACxB,YAAY,GAAG,OAAO,CAAC,GAAG,EAAE,EACN,EAAE;IACxB,MAAM,MAAM,GAAG,QAAQ,CAAC,WAAW,EAAE,MAAM,IAAI,EAAE,CAAC;IAClD,MAAM,SAAS,GAAG,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IACvE,MAAM,MAAM,GAAG,IAAA,mBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IAE1E,OAAO;QACL,OAAO,EAAE,cAAI,CAAC,QAAQ,CAAC,YAAY,CAAC;QACpC,KAAK,EAAE,QAAQ,CAAC,GAAG,CAAC,EAAE;QACtB,SAAS,EAAE;YACT,KAAK,EAAE,aAAa,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,EAAE;YACzC,aAAa,EAAE,qBAAqB,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;YAC1D,cAAc,EAAE,sBAAsB,MAAM,CAAC,KAAK,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE;SAC7D;QACD,QAAQ,EAAE,CAAC,GAAG,C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