@amalgm/apps 0.1.3-preview.37556579173 → 0.1.3-preview.39017162709

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 (69) hide show
  1. package/PURPOSE.md +24 -12
  2. package/README.md +39 -32
  3. package/dist/apps.d.ts +9 -7
  4. package/dist/apps.js +54 -45
  5. package/dist/apps.js.map +1 -1
  6. package/dist/command-surface.d.ts +3 -7
  7. package/dist/command-surface.js +9 -29
  8. package/dist/command-surface.js.map +1 -1
  9. package/dist/construct-surface.js +45 -17
  10. package/dist/construct-surface.js.map +1 -1
  11. package/dist/construct.d.ts +0 -5
  12. package/dist/construct.js +0 -22
  13. package/dist/construct.js.map +1 -1
  14. package/dist/folders.d.ts +40 -0
  15. package/dist/folders.js +94 -0
  16. package/dist/folders.js.map +1 -0
  17. package/dist/identity.d.ts +1 -2
  18. package/dist/identity.js +1 -13
  19. package/dist/identity.js.map +1 -1
  20. package/dist/index.d.ts +1 -6
  21. package/dist/index.js +1 -5
  22. package/dist/index.js.map +1 -1
  23. package/dist/layout.d.ts +20 -0
  24. package/dist/layout.js +27 -0
  25. package/dist/layout.js.map +1 -0
  26. package/dist/logs.js +2 -0
  27. package/dist/logs.js.map +1 -1
  28. package/dist/mcp-server.d.ts +1 -1
  29. package/dist/mcp-server.js +3 -33
  30. package/dist/mcp-server.js.map +1 -1
  31. package/dist/ownership.d.ts +1 -1
  32. package/dist/ownership.js +5 -4
  33. package/dist/ownership.js.map +1 -1
  34. package/dist/package.js +10 -2
  35. package/dist/package.js.map +1 -1
  36. package/dist/presentation.d.ts +1 -3
  37. package/dist/presentation.js +1 -12
  38. package/dist/presentation.js.map +1 -1
  39. package/dist/releases.d.ts +4 -6
  40. package/dist/releases.js +15 -24
  41. package/dist/releases.js.map +1 -1
  42. package/dist/runtime.js +4 -4
  43. package/dist/runtime.js.map +1 -1
  44. package/dist/schema.js +2 -13
  45. package/dist/schema.js.map +1 -1
  46. package/dist/store.d.ts +9 -3
  47. package/dist/store.js +20 -14
  48. package/dist/store.js.map +1 -1
  49. package/dist/supervisor.d.ts +2 -2
  50. package/dist/supervisor.js +11 -11
  51. package/dist/supervisor.js.map +1 -1
  52. package/dist/types.d.ts +14 -11
  53. package/docs/SHELL_INTEGRATION.md +23 -5
  54. package/docs/STATUS.md +31 -28
  55. package/docs/SUPERVISION.md +14 -15
  56. package/package.json +7 -18
  57. package/skills/apps/SKILL.md +56 -73
  58. package/dist/bin/apps.d.ts +0 -2
  59. package/dist/bin/apps.js +0 -6
  60. package/dist/bin/apps.js.map +0 -1
  61. package/dist/bin/mcp.d.ts +0 -2
  62. package/dist/bin/mcp.js +0 -15
  63. package/dist/bin/mcp.js.map +0 -1
  64. package/dist/cli.d.ts +0 -15
  65. package/dist/cli.js +0 -116
  66. package/dist/cli.js.map +0 -1
  67. package/dist/http.d.ts +0 -30
  68. package/dist/http.js +0 -77
  69. package/dist/http.js.map +0 -1
package/PURPOSE.md CHANGED
@@ -16,26 +16,31 @@ identity and routing effects, and expose its public adapters, but it does not
16
16
  absorb app lifecycle decisions or maintain a second Apps registry. Amalgm
17
17
  Engine is deprecated historical and parity evidence only.
18
18
 
19
- Runtime hosts may mount the Apps HTTP catalog, including its legacy Artifacts
20
- projection, without becoming lifecycle authorities. Catalog reads come from
21
- the same Apps store as the SDK, CLI, and MCP surfaces.
19
+ A runtime host serves the Apps MCP tools over the one Apps instance it owns,
20
+ without becoming a lifecycle authority. The `amalgm apps` command and agents
21
+ both reach that instance through those tools.
22
22
 
23
23
  ## Primitives
24
24
 
25
25
  - An **app** is a stable local identity with a user-controlled name, route,
26
26
  port, and desired running state.
27
+ - An app's **folder** is one folder in the user's apps root, named after the
28
+ app. Its identity file holds the app's permanent UUID; its source sits in the
29
+ folder when Amalgm owns it, or the identity file names the person's own
30
+ project; its `.private/` holds every file Amalgm makes for the app.
27
31
  - A **release** is one immutable, content-addressed package and its completed
28
32
  build output.
29
33
  - A **deployment** is an immutable record that activates one release for one
30
34
  app.
31
35
  - A **process generation** is one supervised execution attempt for a
32
36
  deployment.
33
- - The **Apps supervisor** is the sole lifecycle authority for apps in one
34
- Apps state directory.
37
+ - The **Apps supervisor** is the sole lifecycle authority for the apps in one
38
+ catalog.
35
39
  - A **product-service supervisor** is an optional host concern that observes
36
40
  whether the Apps product is available; it never supervises individual apps.
37
41
  - The **data directory** is stable writable storage for an app across
38
- deployments; release and deployment files are not persistent data.
42
+ deployments, `.private/data` in its folder; release and deployment files
43
+ are not persistent data.
39
44
 
40
45
  ## Axioms
41
46
 
@@ -81,15 +86,15 @@ locked dependency graph on the supported Node toolchain.
81
86
  is derived from desired state, process state, health, and DNS connection.
82
87
  9. App code receives a stable data directory explicitly; writes made inside a
83
88
  deployment directory never become part of a release or a later deploy.
84
- 10. The SDK owns behavior. CLI, MCP, HTTP, Shell, and other host integrations
85
- only adapt that public service.
89
+ 10. The SDK owns behavior. MCP, Shell, and other host integrations only adapt
90
+ that public service.
86
91
  11. Apps stores tool identifiers as opaque references and never edits Toolbox,
87
92
  Agents, or another product. Any workflow spanning products has an explicit
88
93
  product owner and never lives in a Core adapter.
89
94
  12. The app-side health lease is optional, inert outside Amalgm, and can never
90
95
  crash or keep the hosted app alive by itself.
91
- 13. The Apps supervisor belongs to this product in standalone and composed
92
- deployments; exactly one active Apps supervisor owns a state directory.
96
+ 13. The Apps supervisor belongs to this product wherever it is composed;
97
+ exactly one active Apps supervisor owns a catalog.
93
98
  14. Shell composes product capabilities and host effects. It may supervise the
94
99
  Apps product as one service, but it never reaches through that boundary to
95
100
  start, stop, adopt, or restart an individual app process outside the Apps
@@ -98,7 +103,7 @@ locked dependency graph on the supported Node toolchain.
98
103
  Apps state, an Apps-service failure changes Apps availability, and neither
99
104
  is represented as failure of an unrelated product.
100
105
  16. Every lifecycle mutation is serialized per app, and one operating-system
101
- owner guards every writable state directory.
106
+ owner guards every catalog folder.
102
107
  17. Crash restart budgets are derived from durable process-generation history;
103
108
  restarting the Apps service never resets an app's budget.
104
109
  18. A crash restart reuses the active deployment directory without copying,
@@ -111,6 +116,12 @@ locked dependency graph on the supported Node toolchain.
111
116
  hand or maintained as a parallel contract.
112
117
  21. An awaited lifecycle mutation resolves only after its ordered embedder
113
118
  change notifications settle; observer failures are reported and contained.
119
+ 22. Apps reads and writes only the three folders its host hands it: the apps
120
+ root, this computer's catalog folder, and the parked folder. It has no
121
+ default folder and no environment override.
122
+ 23. A person's own project is never written or deleted. Deleting an app parks
123
+ its `.private/` and removes its folder; a delete from another computer
124
+ only forgets the app and parks `.private/`; nothing parked is deleted.
114
125
 
115
126
  The packaged Apps skill describes these public adapters and is distributed with
116
127
  the same SDK source; it owns no installation or lifecycle implementation.
@@ -120,7 +131,8 @@ the same SDK source; it owns no installation or lifecycle implementation.
120
131
  Equal source and manifest content produces the same release id, even when
121
132
  deployed twice. Deploying changed content creates a new release and
122
133
  deployment. Rolling back selects an earlier successful release and appends a
123
- new deployment. Renaming changes only the app record. If validation or build
134
+ new deployment. Renaming changes the app record and its folder name, and a
135
+ running app restarts from the renamed folder. If validation or build
124
136
  fails, the running deployment is untouched. If the new process cannot start,
125
137
  the deployment is marked failed and the previous deployment is reactivated.
126
138
  When composed into Shell, the same Apps supervisor makes those decisions.
package/README.md CHANGED
@@ -19,51 +19,58 @@ An app can use any language or framework. Its only integration is a small
19
19
  }
20
20
  ```
21
21
 
22
- ```sh
23
- amalgm-apps create ./accounts
24
- amalgm-apps deploy <app-id>
25
- amalgm-apps versions <app-id>
26
- amalgm-apps rollback <app-id>
27
- amalgm-apps update <app-id> --name "Accounts"
28
- ```
29
-
30
- The SDK, CLI, and MCP tools call the same `Apps` service. Releases and
31
- deployment history live under `~/.amalgm/users/<scope>/apps` by default
32
- (the kernel's scoped layout; `AMALGM_APPS_DIR` and `AMALGM_DIR` still
33
- override). Hosted apps receive
34
- `AMALGM_APP_DATA_DIR`, a stable writable directory that survives deployments.
22
+ People and agents drive Apps through the `amalgm_apps_*` MCP tools, which the
23
+ Amalgm runtime serves at `/mcp/apps`; Shell's `amalgm apps` command calls the
24
+ same tools there. Every adapter calls the one `Apps` instance the runtime
25
+ owns, and the runtime hands it three folders:
35
26
 
36
27
  ```ts
37
- import { Apps } from '@amalgm/apps';
28
+ import { Apps, createMcpServer } from '@amalgm/apps';
38
29
 
39
- const apps = new Apps();
30
+ const apps = new Apps({
31
+ root: user.apps, // the user's apps root: one folder per app
32
+ dir: user.computer.apps, // this computer's catalog, apps.db
33
+ parked: user.computer.parked, // where a removed app's .private/ is kept
34
+ });
40
35
  const app = await apps.register({ cwd: './accounts' });
41
36
  await apps.deploy(app.id);
42
37
  await apps.rollback(app.id);
38
+ const mcp = createMcpServer({ apps });
43
39
  ```
44
40
 
45
- The same persisted catalog has an HTTP adapter for runtime hosts:
46
-
47
- ```ts
48
- import { Apps } from '@amalgm/apps';
49
- import { createAppsHttpServer } from '@amalgm/apps/http';
50
-
51
- const apps = new Apps({ stateDir: '/var/lib/amalgm/apps' });
52
- const http = createAppsHttpServer(apps);
53
- await http.listen();
41
+ Apps keeps nothing outside those three folders:
42
+
43
+ ```text
44
+ <root>/<Folder>/ one folder per app, named after the app
45
+ .amalgm-app.json its permanent id and name, and its source
46
+ when that is the person's own project
47
+ amalgm.app.json, ... the source, when Amalgm owns it
48
+ .private/ never leaves this computer
49
+ build/ releases being built
50
+ releases/<release-id>/ immutable built releases
51
+ current/<deployment-id>/ the copy one deployment runs from
52
+ data/ AMALGM_APP_DATA_DIR, kept across deploys
53
+ logs/app.log the process log (app.log.1 when capped)
54
+ <dir>/apps.db this computer's catalog
55
+ <parked>/app/<app-id>/ a removed app's .private/, never deleted
54
56
  ```
55
57
 
56
- It serves modern `/apps` and legacy-compatible `/apps/list` catalogs plus
57
- their `/artifacts` legacy projection. Lifecycle choices remain on the SDK,
58
- CLI, and MCP surfaces; this HTTP increment is read-only.
58
+ An app made from a person's own project leaves the project where it is; its
59
+ folder holds only `.amalgm-app.json`, which names the project, and
60
+ `.private/`. A source made in the apps root, received, or copied is the
61
+ folder itself. Renaming an app renames its folder, and a running app restarts
62
+ from the new place. Deleting an app parks `.private/` and removes the folder;
63
+ a person's own project is never touched. A delete made on another computer
64
+ only forgets the app here and parks `.private/`. A create that fails removes
65
+ only what it made.
59
66
 
60
- The SDK, supervisor, CLI, MCP server, lease, and tests are authored in
67
+ The SDK, supervisor, MCP server, lease, and tests are authored in
61
68
  TypeScript. `npm run build` emits the ESM runtime and declarations into
62
69
  `dist/`; generated output is not a second source tree.
63
70
 
64
- Shell supplies machine identity, route publication, host effects, and state
65
- projection through public adapters; it does not replace product behavior. The
66
- active boundary is described in
71
+ Shell supplies the folders, machine identity, route publication, host
72
+ effects, and state projection through public adapters; it does not replace
73
+ product behavior. The active boundary is described in
67
74
  [docs/SHELL_INTEGRATION.md](./docs/SHELL_INTEGRATION.md). Supervisor ownership
68
75
  is defined in [docs/SUPERVISION.md](./docs/SUPERVISION.md).
69
76
  What is proven and what remains is in [docs/STATUS.md](./docs/STATUS.md);
@@ -85,7 +92,7 @@ once, and installs that tarball on Linux, macOS and Windows before publication.
85
92
  `preview` has no checks: a push to it builds, packs and publishes directly.
86
93
  The `candidate-main`/`candidate-preview` tags are release-assembly inputs and
87
94
  never select installed runtimes. `package.json` declares this owner's gates,
88
- CLI probes, peer-only exports and lifecycle permissions. The standalone runner
95
+ peer-only exports and lifecycle permissions. The standalone runner
89
96
  under `scripts/release/` is intentionally copied across owners to preserve
90
97
  private repository access boundaries. The final publish step uses the `NPM_TOKEN`
91
98
  secret in the `npm-release` environment. Where npm trusted publishing is
package/dist/apps.d.ts CHANGED
@@ -10,8 +10,11 @@ import type { ConstructOrigin } from './construct.js';
10
10
  import type { AppLogs, AppRecord, AppSettingsPatch, AppsOptions, AppView, CloseOptions, Deployment, DeployInput, PackageInspection, PackedPackage, ReadyOptions, RegisterInput, Release, RollbackInput } from './types.js';
11
11
  declare class Apps {
12
12
  readonly options: AppsOptions;
13
- readonly stateDir: string;
14
13
  readonly domain: string;
14
+ /** The user's apps root, this computer's catalog folder, and where removed apps' `.private/` is kept. */
15
+ readonly root: string;
16
+ readonly dir: string;
17
+ readonly parked: string;
15
18
  readonly portMin: number;
16
19
  readonly portMax: number;
17
20
  routeQueue: Promise<unknown>;
@@ -23,7 +26,7 @@ declare class Apps {
23
26
  readonly releases: Releases;
24
27
  readonly store: Store;
25
28
  readonly supervisor: Supervisor;
26
- constructor(options?: AppsOptions);
29
+ constructor(options: AppsOptions);
27
30
  environment(app: AppRecord): NodeJS.ProcessEnv;
28
31
  changed(app: AppRecord | {
29
32
  id: string;
@@ -44,7 +47,7 @@ declare class Apps {
44
47
  /** Activate a new version of an app from a directory holding its source. */
45
48
  deployFrom(appId: string, from: string | undefined, origin: ConstructOrigin): Promise<AppView>;
46
49
  rollback(appId: string, input?: RollbackInput): Promise<AppView>;
47
- /** Settings that never touch identity, releases, or the running process. */
50
+ /** Settings that never touch identity or releases. A new name renames the app's folder. */
48
51
  update(appId: string, patch: AppSettingsPatch): Promise<AppView>;
49
52
  versions(appId: string): Release[];
50
53
  deployments(appId: string): Deployment[];
@@ -54,11 +57,10 @@ declare class Apps {
54
57
  ready(appId: string, options?: ReadyOptions): unknown;
55
58
  heartbeat(appId: string): unknown;
56
59
  routes(): import('./types.js').AppRoute[];
57
- /** A deliberate delete: the app goes, and the tombstone reaches the rails. */
60
+ /** A deliberate delete: the app and its folder go, and the tombstone reaches the rails. */
58
61
  delete(appId: string): Promise<AppView>;
59
- /** Take an app off this computer without recording anything. */
60
- remove(appId: string): Promise<AppRecord>;
61
- removeAppFiles(appId: string): void;
62
+ /** Take an app off this computer without recording anything; its `.private/` is parked. */
63
+ forget(appId: string): Promise<AppRecord>;
62
64
  boot(): Promise<PromiseSettledResult<AppView | null>[]>;
63
65
  close(options?: CloseOptions): Promise<void>;
64
66
  }
package/dist/apps.js CHANGED
@@ -3,18 +3,22 @@ import fs from 'node:fs';
3
3
  import path from 'node:path';
4
4
  import { errorMessage, invoke } from './boundaries.js';
5
5
  import { Changes } from './changes.js';
6
- import { allocatePort, allocateRef, assertAppRef, defaultStateDir } from './identity.js';
6
+ import { allocatePort, allocateRef, assertAppRef } from './identity.js';
7
+ import { claimFolder, parkPrivate, releaseClaim, renameApp, repointSource, writeIdentity } from './folders.js';
8
+ import { appLayout } from './layout.js';
7
9
  import { logTail } from './logs.js';
8
10
  import { inspectPackage, packPackage } from './package.js';
9
- import { isImportedSource } from './construct.js';
10
11
  import { promoteConstruct, recordConstruct } from './construct-surface.js';
11
12
  import { appEnvironment, appView, eligibleRoutes, queueRoutes, } from './presentation.js';
12
13
  import { createRuntime } from './runtime.js';
13
14
  import { activateRelease } from './releases.js';
14
15
  class Apps {
15
16
  options;
16
- stateDir;
17
17
  domain;
18
+ /** The user's apps root, this computer's catalog folder, and where removed apps' `.private/` is kept. */
19
+ root;
20
+ dir;
21
+ parked;
18
22
  portMin;
19
23
  portMax;
20
24
  routeQueue;
@@ -26,9 +30,11 @@ class Apps {
26
30
  releases;
27
31
  store;
28
32
  supervisor;
29
- constructor(options = {}) {
33
+ constructor(options) {
30
34
  this.options = options;
31
- this.stateDir = path.resolve(options.stateDir || defaultStateDir(options.env));
35
+ this.root = path.resolve(options.root);
36
+ this.dir = path.resolve(options.dir);
37
+ this.parked = path.resolve(options.parked);
32
38
  this.domain = options.domain || 'apps.amalgm.ai';
33
39
  this.portMin = options.portMin || 9100;
34
40
  this.portMax = options.portMax || 9199;
@@ -79,32 +85,42 @@ class Apps {
79
85
  const id = input.id || crypto.randomUUID();
80
86
  return this.operations.run(id, 'register', async () => {
81
87
  const appRef = assertAppRef(allocateRef(this.store));
88
+ const port = await allocatePort(this.store, input.port, this.portMin, this.portMax);
89
+ const claim = claimFolder(this, cwd, inspected.manifest.name);
82
90
  const now = new Date().toISOString();
83
- let app = this.store.createApp({
84
- id,
85
- name: inspected.manifest.name,
86
- description: inspected.manifest.description,
87
- appRef,
88
- publicUrl: `https://${appRef}.${this.domain}/`,
89
- port: await allocatePort(this.store, input.port, this.portMin, this.portMax),
90
- sourceDir: cwd,
91
- dataDir: path.join(this.stateDir, 'data', id),
92
- desiredState: 'running',
93
- status: 'registered',
94
- dnsConnected: input.connectDns !== false,
95
- autostart: input.autostart !== false,
96
- keepAlive: input.keepAlive !== false,
97
- createdAt: now,
98
- updatedAt: now,
99
- });
91
+ let app;
92
+ try {
93
+ app = this.store.createApp({
94
+ id,
95
+ name: inspected.manifest.name,
96
+ description: inspected.manifest.description,
97
+ appRef,
98
+ publicUrl: `https://${appRef}.${this.domain}/`,
99
+ port,
100
+ folder: claim.folder,
101
+ sourceDir: claim.sourceDir,
102
+ desiredState: 'running',
103
+ status: 'registered',
104
+ dnsConnected: input.connectDns !== false,
105
+ autostart: input.autostart !== false,
106
+ keepAlive: input.keepAlive !== false,
107
+ createdAt: now,
108
+ updatedAt: now,
109
+ });
110
+ }
111
+ catch (error) {
112
+ releaseClaim(claim);
113
+ throw error;
114
+ }
100
115
  try {
116
+ writeIdentity(this, app);
101
117
  const release = await this.releases.prepare(app, cwd);
102
118
  app = await activateRelease(this, app, release, 'register');
103
119
  return promoteConstruct(this, app, cwd, origin);
104
120
  }
105
121
  catch (error) {
106
122
  this.store.deleteApp(id);
107
- this.removeAppFiles(id);
123
+ releaseClaim(claim);
108
124
  throw new Error(`App registration failed: ${errorMessage(error)}`);
109
125
  }
110
126
  });
@@ -124,7 +140,7 @@ class Apps {
124
140
  // A received version runs from the copy the rails delivered; the source
125
141
  // directory a person edits is theirs and is never repointed or rewritten.
126
142
  if ('intentional' in origin)
127
- this.store.updateApp(appId, { sourceDir: cwd });
143
+ repointSource(this, app, cwd);
128
144
  await promoteConstruct(this, deployed, cwd, origin);
129
145
  return this.get(deployed.id);
130
146
  }
@@ -150,7 +166,7 @@ class Apps {
150
166
  return this.view(await activateRelease(this, app, release, 'rollback'));
151
167
  });
152
168
  }
153
- /** Settings that never touch identity, releases, or the running process. */
169
+ /** Settings that never touch identity or releases. A new name renames the app's folder. */
154
170
  async update(appId, patch) {
155
171
  return this.operations.run(appId, 'update', async () => {
156
172
  const previous = this.store.getApp(appId);
@@ -159,7 +175,9 @@ class Apps {
159
175
  const name = patch.name === undefined ? undefined : patch.name.trim();
160
176
  if (name === '')
161
177
  throw new Error('name must be a non-empty string');
162
- const app = this.store.updateApp(appId, { ...patch, name });
178
+ let app = this.store.updateApp(appId, { ...patch, name: undefined });
179
+ if (name !== undefined && name !== previous.name)
180
+ app = await renameApp(this, app, name);
163
181
  this.changed(app);
164
182
  // The name is on the rails; every other setting is this computer's own.
165
183
  if (app.name !== previous.name) {
@@ -188,9 +206,10 @@ class Apps {
188
206
  });
189
207
  }
190
208
  logs(appId, lines = 200) {
191
- if (!this.store.getApp(appId))
209
+ const app = this.store.getApp(appId);
210
+ if (!app)
192
211
  throw new Error(`App not found: ${appId}`);
193
- const file = this.supervisor.logPath(appId);
212
+ const file = this.supervisor.logPath(app);
194
213
  return { appId, path: file, lines: logTail(file, lines) };
195
214
  }
196
215
  ready(appId, options) {
@@ -202,40 +221,30 @@ class Apps {
202
221
  routes() {
203
222
  return eligibleRoutes(this);
204
223
  }
205
- /** A deliberate delete: the app goes, and the tombstone reaches the rails. */
224
+ /** A deliberate delete: the app and its folder go, and the tombstone reaches the rails. */
206
225
  async delete(appId) {
207
226
  return this.operations.run(appId, 'delete', async () => {
208
- const deleted = await this.remove(appId);
227
+ const deleted = await this.forget(appId);
228
+ // A person's own project lives outside the folder and is never touched.
229
+ fs.rmSync(appLayout(this.root, deleted.folder).dir, { recursive: true, force: true });
209
230
  await recordConstruct(this, {
210
231
  entityId: appId, name: deleted.name, status: 'deleted', payload: null,
211
232
  });
212
233
  return this.view(deleted);
213
234
  });
214
235
  }
215
- /** Take an app off this computer without recording anything. */
216
- async remove(appId) {
236
+ /** Take an app off this computer without recording anything; its `.private/` is parked. */
237
+ async forget(appId) {
217
238
  const app = this.store.getApp(appId);
218
239
  if (!app)
219
240
  throw new Error(`App not found: ${appId}`);
220
241
  await this.supervisor.stop(appId);
221
242
  this.health.forget(appId);
222
243
  this.store.deleteApp(appId);
223
- this.removeAppFiles(appId);
224
- // An imported source leaves with its app; a person's own directory stays.
225
- if (isImportedSource(this.stateDir, app.sourceDir)) {
226
- fs.rmSync(app.sourceDir, { recursive: true, force: true });
227
- }
244
+ parkPrivate(this, app);
228
245
  this.changed({ id: appId, deleted: true });
229
246
  return app;
230
247
  }
231
- removeAppFiles(appId) {
232
- for (const directory of ['data', 'deployments', 'releases']) {
233
- fs.rmSync(path.join(this.stateDir, directory, appId), { recursive: true, force: true });
234
- }
235
- const log = this.supervisor.logPath(appId);
236
- fs.rmSync(log, { force: true });
237
- fs.rmSync(`${log}.1`, { force: true });
238
- }
239
248
  async boot() {
240
249
  await this.ownership.acquire();
241
250
  this.health.start();
package/dist/apps.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"apps.js","sourceRoot":"","sources":["../src/apps.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,YAAY,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AACzF,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,WAAW,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAC3E,OAAO,EACL,cAAc,EACd,OAAO,EACP,cAAc,EACd,WAAW,GACZ,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAK7C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2
- * The one Apps command surface. Every adapter (CLI, MCP, and any later API)
2
+ * The one Apps command surface. Every adapter (MCP, and any later API)
3
3
  * consumes this list: the same names, the same inputs, the same annotations,
4
4
  * and the same SDK calls. Nothing here spawns, stores, or supervises.
5
5
  */
6
6
  import type { Apps } from './apps.js';
7
- import type { FieldShape, JsonObjectSchema } from './command-input.js';
7
+ import type { JsonObjectSchema } from './command-input.js';
8
8
  type AppCommandName = 'create' | 'list' | 'get' | 'update' | 'delete' | 'start' | 'stop' | 'deploy' | 'rollback' | 'versions' | 'deployments' | 'logs' | 'validate' | 'routes';
9
9
  interface AppCommandAnnotations {
10
10
  readOnlyHint: boolean;
@@ -17,9 +17,6 @@ interface AppCommandDefinition {
17
17
  mcpName: `amalgm_apps_${string}`;
18
18
  title: string;
19
19
  description: string;
20
- inputShape: FieldShape;
21
- /** Input fields the CLI fills from bare arguments, in order. */
22
- positional: readonly string[];
23
20
  annotations: AppCommandAnnotations;
24
21
  inputSchema(): JsonObjectSchema;
25
22
  invoke(apps: Apps, input: unknown): Promise<unknown>;
@@ -29,6 +26,5 @@ interface AppCommands {
29
26
  }
30
27
  declare const appCommandDefinitions: readonly AppCommandDefinition[];
31
28
  declare function createAppCommands(apps: Apps): AppCommands;
32
- declare function appCommandDefinition(name: string): AppCommandDefinition;
33
- export { appCommandDefinition, appCommandDefinitions, createAppCommands };
29
+ export { appCommandDefinitions, createAppCommands };
34
30
  export type { AppCommandAnnotations, AppCommandDefinition, AppCommandName, AppCommands };