@evref-bl/plexus 0.15.1 → 0.16.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 (255) hide show
  1. package/README.md +8 -12
  2. package/dist/cli.js +8 -183
  3. package/dist/cli.js.map +1 -1
  4. package/dist/commandLine.d.ts +13 -0
  5. package/dist/commandLine.d.ts.map +1 -0
  6. package/dist/commandLine.js +247 -0
  7. package/dist/commandLine.js.map +1 -0
  8. package/dist/config/pharoMcpVersion.d.ts +6 -7
  9. package/dist/config/pharoMcpVersion.d.ts.map +1 -1
  10. package/dist/config/pharoMcpVersion.js +6 -7
  11. package/dist/config/pharoMcpVersion.js.map +1 -1
  12. package/dist/errors.d.ts +11 -0
  13. package/dist/errors.d.ts.map +1 -0
  14. package/dist/errors.js +17 -0
  15. package/dist/errors.js.map +1 -0
  16. package/dist/forward/endpointHandoffFormat.d.ts +23 -0
  17. package/dist/forward/endpointHandoffFormat.d.ts.map +1 -0
  18. package/dist/forward/endpointHandoffFormat.js.map +1 -0
  19. package/dist/forward/index.d.ts +20 -0
  20. package/dist/forward/index.d.ts.map +1 -0
  21. package/dist/forward/index.js +77 -0
  22. package/dist/forward/index.js.map +1 -0
  23. package/dist/forward/jsonRpc.d.ts +20 -0
  24. package/dist/forward/jsonRpc.d.ts.map +1 -0
  25. package/dist/forward/jsonRpc.js +141 -0
  26. package/dist/forward/jsonRpc.js.map +1 -0
  27. package/dist/home.d.ts +15 -0
  28. package/dist/home.d.ts.map +1 -0
  29. package/dist/home.js +30 -0
  30. package/dist/home.js.map +1 -0
  31. package/dist/images/bases.d.ts +40 -0
  32. package/dist/images/bases.d.ts.map +1 -0
  33. package/dist/images/bases.js +190 -0
  34. package/dist/images/bases.js.map +1 -0
  35. package/dist/images/claims.d.ts +34 -0
  36. package/dist/images/claims.d.ts.map +1 -0
  37. package/dist/images/claims.js +119 -0
  38. package/dist/images/claims.js.map +1 -0
  39. package/dist/images/context.d.ts +22 -0
  40. package/dist/images/context.d.ts.map +1 -0
  41. package/dist/images/context.js +26 -0
  42. package/dist/images/context.js.map +1 -0
  43. package/dist/images/create.d.ts +19 -0
  44. package/dist/images/create.d.ts.map +1 -0
  45. package/dist/images/create.js +121 -0
  46. package/dist/images/create.js.map +1 -0
  47. package/dist/images/delete.d.ts +10 -0
  48. package/dist/images/delete.d.ts.map +1 -0
  49. package/dist/images/delete.js +31 -0
  50. package/dist/images/delete.js.map +1 -0
  51. package/dist/images/endpoint.d.ts +17 -0
  52. package/dist/images/endpoint.d.ts.map +1 -0
  53. package/dist/images/endpoint.js +58 -0
  54. package/dist/images/endpoint.js.map +1 -0
  55. package/dist/images/index.d.ts +28 -0
  56. package/dist/images/index.d.ts.map +1 -0
  57. package/dist/images/index.js +51 -0
  58. package/dist/images/index.js.map +1 -0
  59. package/dist/images/leftovers.d.ts +9 -0
  60. package/dist/images/leftovers.d.ts.map +1 -0
  61. package/dist/images/leftovers.js +38 -0
  62. package/dist/images/leftovers.js.map +1 -0
  63. package/dist/images/list.d.ts +12 -0
  64. package/dist/images/list.d.ts.map +1 -0
  65. package/dist/images/list.js +74 -0
  66. package/dist/images/list.js.map +1 -0
  67. package/dist/images/names.d.ts +15 -0
  68. package/dist/images/names.d.ts.map +1 -0
  69. package/dist/images/names.js +53 -0
  70. package/dist/images/names.js.map +1 -0
  71. package/dist/images/prepare.d.ts +18 -0
  72. package/dist/images/prepare.d.ts.map +1 -0
  73. package/dist/images/prepare.js +58 -0
  74. package/dist/images/prepare.js.map +1 -0
  75. package/dist/images/processes.d.ts +21 -0
  76. package/dist/images/processes.d.ts.map +1 -0
  77. package/dist/images/processes.js +83 -0
  78. package/dist/images/processes.js.map +1 -0
  79. package/dist/images/scripts.d.ts +39 -0
  80. package/dist/images/scripts.d.ts.map +1 -0
  81. package/dist/images/scripts.js +127 -0
  82. package/dist/images/scripts.js.map +1 -0
  83. package/dist/images/start.d.ts +23 -0
  84. package/dist/images/start.d.ts.map +1 -0
  85. package/dist/images/start.js +173 -0
  86. package/dist/images/start.js.map +1 -0
  87. package/dist/images/stop.d.ts +11 -0
  88. package/dist/images/stop.d.ts.map +1 -0
  89. package/dist/images/stop.js +42 -0
  90. package/dist/images/stop.js.map +1 -0
  91. package/dist/images/store.d.ts +62 -0
  92. package/dist/images/store.d.ts.map +1 -0
  93. package/dist/images/store.js +180 -0
  94. package/dist/images/store.js.map +1 -0
  95. package/dist/images/templates.d.ts +14 -0
  96. package/dist/images/templates.d.ts.map +1 -0
  97. package/dist/images/templates.js +84 -0
  98. package/dist/images/templates.js.map +1 -0
  99. package/dist/index.d.ts +12 -22
  100. package/dist/index.d.ts.map +1 -1
  101. package/dist/index.js +8 -22
  102. package/dist/index.js.map +1 -1
  103. package/dist/launcher/pharoLauncherMcpClient.d.ts +22 -59
  104. package/dist/launcher/pharoLauncherMcpClient.d.ts.map +1 -1
  105. package/dist/launcher/pharoLauncherMcpClient.js +128 -87
  106. package/dist/launcher/pharoLauncherMcpClient.js.map +1 -1
  107. package/dist/launcher/pharoLauncherProfile.d.ts +7 -29
  108. package/dist/launcher/pharoLauncherProfile.d.ts.map +1 -1
  109. package/dist/launcher/pharoLauncherProfile.js +19 -111
  110. package/dist/launcher/pharoLauncherProfile.js.map +1 -1
  111. package/dist/launcher/vmRenewal.d.ts +30 -0
  112. package/dist/launcher/vmRenewal.d.ts.map +1 -0
  113. package/dist/launcher/vmRenewal.js +58 -0
  114. package/dist/launcher/vmRenewal.js.map +1 -0
  115. package/dist/mcp/server.d.ts +18 -0
  116. package/dist/mcp/server.d.ts.map +1 -0
  117. package/dist/mcp/server.js +206 -0
  118. package/dist/mcp/server.js.map +1 -0
  119. package/dist/types.d.ts +68 -0
  120. package/dist/types.d.ts.map +1 -0
  121. package/dist/types.js +2 -0
  122. package/dist/types.js.map +1 -0
  123. package/dist/version.d.ts +2 -0
  124. package/dist/version.d.ts.map +1 -0
  125. package/dist/version.js +5 -0
  126. package/dist/version.js.map +1 -0
  127. package/package.json +3 -12
  128. package/dist/config/config.d.ts +0 -15
  129. package/dist/config/config.d.ts.map +0 -1
  130. package/dist/config/config.js +0 -74
  131. package/dist/config/config.js.map +0 -1
  132. package/dist/config/plexusHome.d.ts +0 -17
  133. package/dist/config/plexusHome.d.ts.map +0 -1
  134. package/dist/config/plexusHome.js +0 -30
  135. package/dist/config/plexusHome.js.map +0 -1
  136. package/dist/config/projectConfig.d.ts +0 -141
  137. package/dist/config/projectConfig.d.ts.map +0 -1
  138. package/dist/config/projectConfig.js +0 -722
  139. package/dist/config/projectConfig.js.map +0 -1
  140. package/dist/config/projectConfigAuthoring.d.ts +0 -53
  141. package/dist/config/projectConfigAuthoring.d.ts.map +0 -1
  142. package/dist/config/projectConfigAuthoring.js +0 -159
  143. package/dist/config/projectConfigAuthoring.js.map +0 -1
  144. package/dist/gateway/projectImageMcpEndpoint.d.ts +0 -23
  145. package/dist/gateway/projectImageMcpEndpoint.d.ts.map +0 -1
  146. package/dist/gateway/projectImageMcpEndpoint.js +0 -40
  147. package/dist/gateway/projectImageMcpEndpoint.js.map +0 -1
  148. package/dist/gateway/server/index.d.ts +0 -8
  149. package/dist/gateway/server/index.d.ts.map +0 -1
  150. package/dist/gateway/server/index.js +0 -34
  151. package/dist/gateway/server/index.js.map +0 -1
  152. package/dist/gateway/server/mcp/server.d.ts +0 -66
  153. package/dist/gateway/server/mcp/server.d.ts.map +0 -1
  154. package/dist/gateway/server/mcp/server.js +0 -458
  155. package/dist/gateway/server/mcp/server.js.map +0 -1
  156. package/dist/gateway/server/routing/endpointHandoffFormat.d.ts +0 -26
  157. package/dist/gateway/server/routing/endpointHandoffFormat.d.ts.map +0 -1
  158. package/dist/gateway/server/routing/endpointHandoffFormat.js.map +0 -1
  159. package/dist/gateway/server/routing/gateway.d.ts +0 -167
  160. package/dist/gateway/server/routing/gateway.d.ts.map +0 -1
  161. package/dist/gateway/server/routing/gateway.js +0 -863
  162. package/dist/gateway/server/routing/gateway.js.map +0 -1
  163. package/dist/gateway/server/routing/imageMcpRouter.d.ts +0 -59
  164. package/dist/gateway/server/routing/imageMcpRouter.d.ts.map +0 -1
  165. package/dist/gateway/server/routing/imageMcpRouter.js +0 -253
  166. package/dist/gateway/server/routing/imageMcpRouter.js.map +0 -1
  167. package/dist/gateway/server/routing/pharoFacade.d.ts +0 -12
  168. package/dist/gateway/server/routing/pharoFacade.d.ts.map +0 -1
  169. package/dist/gateway/server/routing/pharoFacade.js +0 -67
  170. package/dist/gateway/server/routing/pharoFacade.js.map +0 -1
  171. package/dist/gateway/server/routing/routeDiscovery.d.ts +0 -26
  172. package/dist/gateway/server/routing/routeDiscovery.d.ts.map +0 -1
  173. package/dist/gateway/server/routing/routeDiscovery.js +0 -46
  174. package/dist/gateway/server/routing/routeDiscovery.js.map +0 -1
  175. package/dist/gateway/server/routing/routingTable.d.ts +0 -120
  176. package/dist/gateway/server/routing/routingTable.d.ts.map +0 -1
  177. package/dist/gateway/server/routing/routingTable.js +0 -215
  178. package/dist/gateway/server/routing/routingTable.js.map +0 -1
  179. package/dist/gateway/server/support/processLiveness.d.ts +0 -10
  180. package/dist/gateway/server/support/processLiveness.d.ts.map +0 -1
  181. package/dist/gateway/server/support/processLiveness.js +0 -25
  182. package/dist/gateway/server/support/processLiveness.js.map +0 -1
  183. package/dist/gateway/server/support/sourceBuildPreflight.d.ts +0 -15
  184. package/dist/gateway/server/support/sourceBuildPreflight.d.ts.map +0 -1
  185. package/dist/gateway/server/support/sourceBuildPreflight.js +0 -88
  186. package/dist/gateway/server/support/sourceBuildPreflight.js.map +0 -1
  187. package/dist/gateway/server/support/toolResultFormatting.d.ts +0 -8
  188. package/dist/gateway/server/support/toolResultFormatting.d.ts.map +0 -1
  189. package/dist/gateway/server/support/toolResultFormatting.js +0 -74
  190. package/dist/gateway/server/support/toolResultFormatting.js.map +0 -1
  191. package/dist/images/homeImageCache.d.ts +0 -302
  192. package/dist/images/homeImageCache.d.ts.map +0 -1
  193. package/dist/images/homeImageCache.js +0 -1024
  194. package/dist/images/homeImageCache.js.map +0 -1
  195. package/dist/images/imageRescue.d.ts +0 -151
  196. package/dist/images/imageRescue.d.ts.map +0 -1
  197. package/dist/images/imageRescue.js +0 -748
  198. package/dist/images/imageRescue.js.map +0 -1
  199. package/dist/images/imageRuntime.d.ts +0 -60
  200. package/dist/images/imageRuntime.d.ts.map +0 -1
  201. package/dist/images/imageRuntime.js +0 -90
  202. package/dist/images/imageRuntime.js.map +0 -1
  203. package/dist/images/preparedImageCache.d.ts +0 -86
  204. package/dist/images/preparedImageCache.d.ts.map +0 -1
  205. package/dist/images/preparedImageCache.js +0 -229
  206. package/dist/images/preparedImageCache.js.map +0 -1
  207. package/dist/images/scopedTemplateCatalog.d.ts +0 -33
  208. package/dist/images/scopedTemplateCatalog.d.ts.map +0 -1
  209. package/dist/images/scopedTemplateCatalog.js +0 -363
  210. package/dist/images/scopedTemplateCatalog.js.map +0 -1
  211. package/dist/internal.d.ts +0 -20
  212. package/dist/internal.d.ts.map +0 -1
  213. package/dist/internal.js +0 -20
  214. package/dist/internal.js.map +0 -1
  215. package/dist/launcher/scopedPharoLauncherServer.d.ts +0 -349
  216. package/dist/launcher/scopedPharoLauncherServer.d.ts.map +0 -1
  217. package/dist/launcher/scopedPharoLauncherServer.js +0 -1307
  218. package/dist/launcher/scopedPharoLauncherServer.js.map +0 -1
  219. package/dist/lifecycle/startProjectImage.d.ts +0 -94
  220. package/dist/lifecycle/startProjectImage.d.ts.map +0 -1
  221. package/dist/lifecycle/startProjectImage.js +0 -1008
  222. package/dist/lifecycle/startProjectImage.js.map +0 -1
  223. package/dist/lifecycle/stopProjectImage.d.ts +0 -31
  224. package/dist/lifecycle/stopProjectImage.d.ts.map +0 -1
  225. package/dist/lifecycle/stopProjectImage.js +0 -201
  226. package/dist/lifecycle/stopProjectImage.js.map +0 -1
  227. package/dist/mcp/agentServer.d.ts +0 -15
  228. package/dist/mcp/agentServer.d.ts.map +0 -1
  229. package/dist/mcp/agentServer.js +0 -67
  230. package/dist/mcp/agentServer.js.map +0 -1
  231. package/dist/mcp/imageOperations.d.ts +0 -54
  232. package/dist/mcp/imageOperations.d.ts.map +0 -1
  233. package/dist/mcp/imageOperations.js +0 -223
  234. package/dist/mcp/imageOperations.js.map +0 -1
  235. package/dist/mcp/pharoMcpHealth.d.ts +0 -26
  236. package/dist/mcp/pharoMcpHealth.d.ts.map +0 -1
  237. package/dist/mcp/pharoMcpHealth.js +0 -97
  238. package/dist/mcp/pharoMcpHealth.js.map +0 -1
  239. package/dist/support/pathStyle.d.ts +0 -11
  240. package/dist/support/pathStyle.d.ts.map +0 -1
  241. package/dist/support/pathStyle.js +0 -61
  242. package/dist/support/pathStyle.js.map +0 -1
  243. package/dist/support/toolResultFormatting.d.ts +0 -8
  244. package/dist/support/toolResultFormatting.d.ts.map +0 -1
  245. package/dist/support/toolResultFormatting.js +0 -74
  246. package/dist/support/toolResultFormatting.js.map +0 -1
  247. package/dist/workspace/projectStartupScript.d.ts +0 -73
  248. package/dist/workspace/projectStartupScript.d.ts.map +0 -1
  249. package/dist/workspace/projectStartupScript.js +0 -607
  250. package/dist/workspace/projectStartupScript.js.map +0 -1
  251. package/dist/workspace/projectState.d.ts +0 -216
  252. package/dist/workspace/projectState.d.ts.map +0 -1
  253. package/dist/workspace/projectState.js +0 -172
  254. package/dist/workspace/projectState.js.map +0 -1
  255. /package/dist/{gateway/server/routing → forward}/endpointHandoffFormat.js +0 -0
@@ -1,363 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { loadPharoLauncherConfig } from "@evref-bl/pharo-launcher-mcp/config";
4
- import { defaultLauncherDir } from "@evref-bl/pharo-launcher-mcp/platform";
5
- const defaultTemplateSourcesUrl = "https://files.pharo.org/pharo-launcher/sources.list";
6
- const templateSourcesFileName = "sources.list";
7
- // A group in the sources list is one template category. The launcher's own
8
- // category listing walks the whole tree and returns template names and URLs
9
- // alongside the group names, so it cannot be used to enumerate categories.
10
- const templateGroupNamePattern = /#type\s*:\s*#(?:URLGroup|Cache)\s*,\s*#name\s*:\s*'((?:[^']|'')*)'/g;
11
- export function templateCategoryNames(destinationDirectory) {
12
- if (!destinationDirectory) {
13
- return [];
14
- }
15
- let sources;
16
- try {
17
- sources = fs.readFileSync(path.join(destinationDirectory, templateSourcesFileName), "utf8");
18
- }
19
- catch {
20
- return [];
21
- }
22
- return [
23
- ...new Set([...sources.matchAll(templateGroupNamePattern)].map((match) => match[1].replaceAll("''", "'"))),
24
- ];
25
- }
26
- function nonEmptyFile(filePath) {
27
- try {
28
- const stat = fs.statSync(filePath);
29
- return stat.isFile() && stat.size > 0;
30
- }
31
- catch {
32
- return false;
33
- }
34
- }
35
- function readableDirectory(directoryPath) {
36
- try {
37
- const stat = fs.statSync(directoryPath);
38
- if (!stat.isDirectory()) {
39
- return false;
40
- }
41
- fs.accessSync(directoryPath, fs.constants.R_OK);
42
- return true;
43
- }
44
- catch {
45
- return false;
46
- }
47
- }
48
- function hasInstalledTemplates(directoryPath) {
49
- if (!readableDirectory(directoryPath)) {
50
- return false;
51
- }
52
- return fs.readdirSync(directoryPath, { withFileTypes: true }).some((entry) => {
53
- if (entry.name === templateSourcesFileName) {
54
- return false;
55
- }
56
- return ((entry.isFile() && entry.name.toLowerCase().endsWith(".ston")) ||
57
- entry.isDirectory());
58
- });
59
- }
60
- function hasInstalledTemplateSeed(catalogPath) {
61
- if (nonEmptyFile(catalogPath) &&
62
- path.basename(catalogPath).toLowerCase().endsWith(".ston")) {
63
- return true;
64
- }
65
- return hasInstalledTemplates(catalogPath);
66
- }
67
- function hasTemplateCatalogSeed(catalogPath) {
68
- if (nonEmptyFile(catalogPath)) {
69
- return true;
70
- }
71
- if (!readableDirectory(catalogPath)) {
72
- return false;
73
- }
74
- return (nonEmptyFile(path.join(catalogPath, templateSourcesFileName)) ||
75
- hasInstalledTemplates(catalogPath));
76
- }
77
- function sourcePolicy(policy) {
78
- if (policy?.source) {
79
- return policy.source;
80
- }
81
- return policy?.path ? "path" : "user-or-server";
82
- }
83
- function catalogCandidatePaths(rootPath) {
84
- return [
85
- path.join(rootPath, "templates"),
86
- path.join(rootPath, "template-sources"),
87
- path.join(rootPath, "templateSources"),
88
- path.join(rootPath, templateSourcesFileName),
89
- path.join(rootPath, "Contents", "Resources", "templates"),
90
- path.join(rootPath, "Contents", "Resources", templateSourcesFileName),
91
- ];
92
- }
93
- function uniqueCandidates(candidates, destinationDirectory) {
94
- const seen = new Set();
95
- return candidates.filter((candidate) => {
96
- const resolved = path.resolve(candidate.path);
97
- if (resolved === path.resolve(destinationDirectory) ||
98
- seen.has(resolved)) {
99
- return false;
100
- }
101
- seen.add(resolved);
102
- return true;
103
- });
104
- }
105
- function candidatePaths(options) {
106
- if (options.source === "server" || options.source === "none") {
107
- return [];
108
- }
109
- if (options.source === "path") {
110
- return options.policy?.path
111
- ? [
112
- {
113
- kind: "explicit-path",
114
- path: options.policy.path,
115
- },
116
- ]
117
- : [];
118
- }
119
- const launcherConfig = loadPharoLauncherConfig(options.env, options.platform);
120
- const candidates = [];
121
- if (options.policy?.path) {
122
- candidates.push({
123
- kind: "explicit-path",
124
- path: options.policy.path,
125
- });
126
- }
127
- if (launcherConfig.profile?.templateSourcesDir) {
128
- candidates.push({
129
- kind: "active-profile",
130
- path: launcherConfig.profile.templateSourcesDir,
131
- });
132
- }
133
- for (const pathCandidate of catalogCandidatePaths(defaultLauncherDir(options.env, options.platform))) {
134
- candidates.push({
135
- kind: "user-profile",
136
- path: pathCandidate,
137
- });
138
- }
139
- for (const pathCandidate of catalogCandidatePaths(launcherConfig.launcherDir)) {
140
- candidates.push({
141
- kind: "installation",
142
- path: pathCandidate,
143
- });
144
- }
145
- return uniqueCandidates(candidates, options.destinationDirectory);
146
- }
147
- function copyIfPresent(sourcePath, destinationPath) {
148
- if (!fs.existsSync(sourcePath)) {
149
- return 0;
150
- }
151
- fs.cpSync(sourcePath, destinationPath, {
152
- force: true,
153
- recursive: true,
154
- });
155
- return 1;
156
- }
157
- function seedCatalogFromPath(sourcePath, destinationDirectory) {
158
- fs.mkdirSync(destinationDirectory, { recursive: true });
159
- const stat = fs.statSync(sourcePath);
160
- if (stat.isFile()) {
161
- const targetName = path.basename(sourcePath) === templateSourcesFileName
162
- ? templateSourcesFileName
163
- : path.basename(sourcePath);
164
- fs.copyFileSync(sourcePath, path.join(destinationDirectory, targetName));
165
- return stat.size;
166
- }
167
- let copied = 0;
168
- copied += copyIfPresent(path.join(sourcePath, templateSourcesFileName), path.join(destinationDirectory, templateSourcesFileName));
169
- for (const entry of fs.readdirSync(sourcePath, { withFileTypes: true })) {
170
- if (entry.name === templateSourcesFileName) {
171
- continue;
172
- }
173
- if (!entry.isDirectory() && !entry.name.toLowerCase().endsWith(".ston")) {
174
- continue;
175
- }
176
- copied += copyIfPresent(path.join(sourcePath, entry.name), path.join(destinationDirectory, entry.name));
177
- }
178
- return copied;
179
- }
180
- async function downloadServerSources(options) {
181
- const fetchSources = options.fetch ?? fetch;
182
- const response = await fetchSources(options.url);
183
- if (!response.ok) {
184
- throw new Error(`HTTP ${response.status} ${response.statusText}`.trim());
185
- }
186
- const body = await response.text();
187
- if (body.trim().length === 0) {
188
- throw new Error("downloaded template source list was empty");
189
- }
190
- fs.mkdirSync(options.destinationDirectory, { recursive: true });
191
- const sourcesPath = path.join(options.destinationDirectory, templateSourcesFileName);
192
- const tempPath = `${sourcesPath}.${process.pid}.${Date.now()}.tmp`;
193
- try {
194
- fs.writeFileSync(tempPath, body, "utf8");
195
- fs.renameSync(tempPath, sourcesPath);
196
- }
197
- finally {
198
- fs.rmSync(tempPath, { force: true });
199
- }
200
- return Buffer.byteLength(body, "utf8");
201
- }
202
- function failure(options) {
203
- return {
204
- ok: false,
205
- message: options.message,
206
- details: {
207
- destinationDirectory: options.destinationDirectory,
208
- source: options.source,
209
- networkPolicy: options.networkPolicy,
210
- searchedPaths: options.searchedPaths,
211
- ...(options.serverSourcesUrl
212
- ? { serverSourcesUrl: options.serverSourcesUrl }
213
- : {}),
214
- ...(options.error ? { error: options.error } : {}),
215
- },
216
- };
217
- }
218
- async function refreshTemplateSources(options) {
219
- const destination = path.join(options.destinationDirectory, templateSourcesFileName);
220
- if (!nonEmptyFile(destination)) {
221
- return false;
222
- }
223
- const before = fs.readFileSync(destination, "utf8");
224
- try {
225
- await downloadServerSources({
226
- url: options.url,
227
- destinationDirectory: options.destinationDirectory,
228
- fetch: options.fetch,
229
- });
230
- }
231
- catch {
232
- // Keep the list we have; the launcher still refreshes from it.
233
- return false;
234
- }
235
- return fs.readFileSync(destination, "utf8") !== before;
236
- }
237
- export async function prepareScopedTemplateCatalog(options) {
238
- const source = sourcePolicy(options.policy);
239
- if (source === "none") {
240
- return {
241
- ok: true,
242
- action: "disabled",
243
- refreshTemplateCatalog: false,
244
- };
245
- }
246
- const destinationDirectory = options.destinationDirectory;
247
- if (!destinationDirectory) {
248
- return {
249
- ok: true,
250
- action: "disabled",
251
- refreshTemplateCatalog: false,
252
- };
253
- }
254
- if (hasInstalledTemplateSeed(destinationDirectory)) {
255
- return {
256
- ok: true,
257
- action: "already-present",
258
- refreshTemplateCatalog: false,
259
- };
260
- }
261
- if (hasTemplateCatalogSeed(destinationDirectory)) {
262
- if (options.networkPolicy === "local-only") {
263
- return failure({
264
- message: "Scoped template catalogue has no installed templates and local-only policy forbids refresh",
265
- destinationDirectory,
266
- source,
267
- networkPolicy: options.networkPolicy,
268
- searchedPaths: [],
269
- });
270
- }
271
- // Seeded once and then kept, a sources list from an earlier Pharo cycle
272
- // goes on naming templates that no longer exist. Refresh it from the same
273
- // upstream list Pharo Launcher uses, so a managed profile stays current
274
- // whether or not Pharo Launcher is installed.
275
- await refreshTemplateSources({
276
- destinationDirectory,
277
- url: options.policy?.serverSourcesUrl ?? defaultTemplateSourcesUrl,
278
- fetch: options.fetch,
279
- });
280
- return {
281
- ok: true,
282
- action: "already-present",
283
- refreshTemplateCatalog: true,
284
- };
285
- }
286
- const env = options.env ?? process.env;
287
- const platform = options.platform ?? process.platform;
288
- const candidates = candidatePaths({
289
- policy: options.policy,
290
- source,
291
- destinationDirectory,
292
- env,
293
- platform,
294
- });
295
- const searchedPaths = candidates.map((candidate) => candidate.path);
296
- const candidate = candidates.find((item) => hasTemplateCatalogSeed(item.path));
297
- if (candidate) {
298
- if (options.networkPolicy === "local-only" &&
299
- !hasInstalledTemplateSeed(candidate.path)) {
300
- return failure({
301
- message: "Scoped template catalogue has no installed templates and local-only policy forbids refresh",
302
- destinationDirectory,
303
- source,
304
- networkPolicy: options.networkPolicy,
305
- searchedPaths,
306
- });
307
- }
308
- const copiedEntries = seedCatalogFromPath(candidate.path, destinationDirectory);
309
- return {
310
- ok: true,
311
- action: "seeded",
312
- source: candidate.kind,
313
- sourcePath: candidate.path,
314
- copiedEntries,
315
- refreshTemplateCatalog: options.networkPolicy === "online",
316
- };
317
- }
318
- if (source === "path" || source === "user") {
319
- return failure({
320
- message: "Scoped template catalogue source was not readable",
321
- destinationDirectory,
322
- source,
323
- networkPolicy: options.networkPolicy,
324
- searchedPaths,
325
- });
326
- }
327
- if (options.networkPolicy === "local-only") {
328
- return failure({
329
- message: "Scoped template catalogue is missing and local-only policy forbids server bootstrap",
330
- destinationDirectory,
331
- source,
332
- networkPolicy: options.networkPolicy,
333
- searchedPaths,
334
- });
335
- }
336
- const serverSourcesUrl = options.policy?.serverSourcesUrl ?? defaultTemplateSourcesUrl;
337
- try {
338
- const bytes = await downloadServerSources({
339
- url: serverSourcesUrl,
340
- destinationDirectory,
341
- fetch: options.fetch,
342
- });
343
- return {
344
- ok: true,
345
- action: "downloaded",
346
- serverSourcesUrl,
347
- bytes,
348
- refreshTemplateCatalog: true,
349
- };
350
- }
351
- catch (error) {
352
- return failure({
353
- message: "Scoped template catalogue server bootstrap failed",
354
- destinationDirectory,
355
- source,
356
- networkPolicy: options.networkPolicy,
357
- searchedPaths,
358
- serverSourcesUrl,
359
- error: error instanceof Error ? error.message : String(error),
360
- });
361
- }
362
- }
363
- //# sourceMappingURL=scopedTemplateCatalog.js.map
@@ -1 +0,0 @@
1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M,KAAK,GAAG,MAAM,qBAAqB,CAAC;YACxC,GAAG,EAAE,gBAAgB;YACrB,oBAAoB;YACpB,KAAK,EAAE,OAAO,CAAC,KAAK;SACrB,CAAC,CAAC;QACH,OAAO;YACL,EAAE,EAAE,IAAI;YACR,MAAM,EAAE,YAAY;YACpB,gBAAgB;YAChB,KAAK;YACL,sBAAsB,EAAE,IAAI;SAC7B,CAAC;IACJ,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,OAAO,OAAO,CAAC;YACb,OAAO,EAAE,mDAAmD;YAC5D,oBAAoB;YACpB,MAAM;YACN,aAAa,EAAE,OAAO,CAAC,aAAa;YACpC,aAAa;YACb,gBAAgB;YAChB,KAAK,EAAE,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC;SAC9D,CAAC,CAAC;IACL,CAAC;AACH,CAAC"}
@@ -1,20 +0,0 @@
1
- /**
2
- * Not API.
3
- *
4
- * These are PLexus's working parts, reachable so that this repository's own
5
- * scripts and tests can use them without a relative path into `dist`. Nothing
6
- * here carries a compatibility promise: names, shapes and whole modules may
7
- * change or disappear in any release, including a patch.
8
- *
9
- * A consumer that needs something from here should ask for it to be promoted
10
- * to the root instead.
11
- */
12
- export * from "./config/config.js";
13
- export * from "./images/homeImageCache.js";
14
- export * from "./images/imageRescue.js";
15
- export * from "./images/imageRuntime.js";
16
- export * from "./images/preparedImageCache.js";
17
- export * from "./launcher/pharoLauncherMcpClient.js";
18
- export * from "./mcp/pharoMcpHealth.js";
19
- export * from "./workspace/projectStartupScript.js";
20
- //# sourceMappingURL=internal.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.d.ts","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC"}
package/dist/internal.js DELETED
@@ -1,20 +0,0 @@
1
- /**
2
- * Not API.
3
- *
4
- * These are PLexus's working parts, reachable so that this repository's own
5
- * scripts and tests can use them without a relative path into `dist`. Nothing
6
- * here carries a compatibility promise: names, shapes and whole modules may
7
- * change or disappear in any release, including a patch.
8
- *
9
- * A consumer that needs something from here should ask for it to be promoted
10
- * to the root instead.
11
- */
12
- export * from "./config/config.js";
13
- export * from "./images/homeImageCache.js";
14
- export * from "./images/imageRescue.js";
15
- export * from "./images/imageRuntime.js";
16
- export * from "./images/preparedImageCache.js";
17
- export * from "./launcher/pharoLauncherMcpClient.js";
18
- export * from "./mcp/pharoMcpHealth.js";
19
- export * from "./workspace/projectStartupScript.js";
20
- //# sourceMappingURL=internal.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"internal.js","sourceRoot":"","sources":["../src/internal.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,cAAc,oBAAoB,CAAC;AACnC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,yBAAyB,CAAC;AACxC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,sCAAsC,CAAC;AACrD,cAAc,yBAAyB,CAAC;AACxC,cAAc,qCAAqC,CAAC"}