@amalgm/core 0.1.6 → 0.1.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/PURPOSE.md CHANGED
@@ -96,6 +96,9 @@ source until each module is cut over.
96
96
  fingerprint, and plaintext leaves solely through explicit resolution.
97
97
  Compatibility APIs share this vault; they never create a second secret
98
98
  file or cloud authority.
99
+ 17. **Retirement is explicit subtraction.** Every retired Engine prefix stays
100
+ named as evidence but is absent from the active route table, so dead
101
+ compatibility surfaces cannot masquerade as unfinished product work.
99
102
 
100
103
  ## Five surfaces, one behavior
101
104
 
@@ -7,7 +7,8 @@
7
7
  * codes.
8
8
  * - routing: ONE routing table (axiom 4) — prefix classification,
9
9
  * the port-mapping and target-port laws, denial contracts. The
10
- * engine's shipped table contents live in shipped-routes.
10
+ * decomposed target contents and explicit Engine retirements live in
11
+ * shipped-routes.
11
12
  * - admission: who gets routed to at all — app refs, the serving
12
13
  * gate and the advertising breaker, preview-port admission, header
13
14
  * hygiene, log redaction.
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -7,7 +7,8 @@
7
7
  * codes.
8
8
  * - routing: ONE routing table (axiom 4) — prefix classification,
9
9
  * the port-mapping and target-port laws, denial contracts. The
10
- * engine's shipped table contents live in shipped-routes.
10
+ * decomposed target contents and explicit Engine retirements live in
11
+ * shipped-routes.
11
12
  * - admission: who gets routed to at all — app refs, the serving
12
13
  * gate and the advertising breaker, preview-port admission, header
13
14
  * hygiene, log redaction.
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transport/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,cAAc,WAAW,CAAC;AAC1B,cAAc,cAAc,CAAC;AAC7B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kBAAkB,CAAC;AACjC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC"}
@@ -7,7 +7,7 @@
7
7
  * vice versa) is that drift cashing out. This module is the one
8
8
  * definition; the table CONTENTS are injected product configuration
9
9
  * (the kernel routes, it does not know what chat is — axiom 3), with
10
- * the engine's shipped lists exported from shipped-routes.ts.
10
+ * the decomposed target lists exported from shipped-routes.ts.
11
11
  *
12
12
  * The pipe never reads the mail: everything here classifies pathnames
13
13
  * and port numbers. Nothing inspects a payload.
@@ -23,7 +23,7 @@ export declare const RUNTIME_SERVICES: readonly ["gateway", "portMonitor", "mcp"
23
23
  /**
24
24
  * The one routing table. Buckets are prefix lists; gateway
25
25
  * additionally owns a set of exact paths. Contents are product
26
- * configuration — see shippedRouteTable for the engine's lists.
26
+ * configuration — see shippedRouteTable for the active target lists.
27
27
  */
28
28
  export interface RouteTable {
29
29
  readonly gatewayPrefixes: readonly string[];
@@ -7,7 +7,7 @@
7
7
  * vice versa) is that drift cashing out. This module is the one
8
8
  * definition; the table CONTENTS are injected product configuration
9
9
  * (the kernel routes, it does not know what chat is — axiom 3), with
10
- * the engine's shipped lists exported from shipped-routes.ts.
10
+ * the decomposed target lists exported from shipped-routes.ts.
11
11
  *
12
12
  * The pipe never reads the mail: everything here classifies pathnames
13
13
  * and port numbers. Nothing inspects a payload.
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The engine's shipped routing table, copied byte-for-byte from
3
- * tunnel-events.js:58-89 — the canonical of the three engine copies
2
+ * The decomposed runtime's active routing table, derived from the Engine
3
+ * table in tunnel-events.js:58-89 — the canonical of its three copies
4
4
  * (the other two: tunnel-chat.js:33-64, identical; local-gateway.js:
5
5
  * 133-176, which carries only the chat/mcp/portMonitor buckets
6
6
  * because the gateway dispatches its own routes before consulting a
@@ -9,13 +9,22 @@
9
9
  * under its own '/pty' handling).
10
10
  *
11
11
  * Counts, pinned by tests: 3 gateway prefixes, 5 gateway exact paths,
12
- * 3 port-monitor prefixes, 7 chat prefixes, 26 MCP prefixes.
12
+ * 3 port-monitor prefixes, 7 chat prefixes, 23 active MCP prefixes.
13
13
  *
14
14
  * This is product configuration riding in the kernel repo for the
15
15
  * cutover: the table SHAPE is core's; these CONTENTS belong to the
16
- * products that own the prefixes. A new runtime REST prefix goes here
17
- * (and, until cutover, in all three engine copies) or UI calls 404.
16
+ * products that own the prefixes. Engine compatibility prefixes which the
17
+ * target deliberately will not serve remain named below as retirement
18
+ * evidence instead of disappearing from history.
18
19
  */
19
20
  import type { RouteTable } from './routing.js';
21
+ /**
22
+ * Present in the current Engine gateway, absent from the decomposed target:
23
+ * `/tasks` is the superseded SQLite scheduler facade; `/mcp-connections` is
24
+ * the superseded second registry now represented by Tools connection records
25
+ * plus credential references resolved by Core's machine-local vault; `/github`
26
+ * is superseded by the next cloud integration and credential collection model.
27
+ */
28
+ export declare const retiredEngineRoutePrefixes: readonly ["/tasks", "/mcp-connections", "/github"];
20
29
  export declare const shippedRouteTable: RouteTable;
21
30
  //# sourceMappingURL=shipped-routes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-routes.d.ts","sourceRoot":"","sources":["../../src/transport/shipped-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,eAAO,MAAM,iBAAiB,EAAE,UAiC/B,CAAC"}
1
+ {"version":3,"file":"shipped-routes.d.ts","sourceRoot":"","sources":["../../src/transport/shipped-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAEH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C;;;;;;GAMG;AACH,eAAO,MAAM,0BAA0B,oDAAqD,CAAC;AAE7F,eAAO,MAAM,iBAAiB,EAAE,UA8B/B,CAAC"}
@@ -1,6 +1,6 @@
1
1
  /**
2
- * The engine's shipped routing table, copied byte-for-byte from
3
- * tunnel-events.js:58-89 — the canonical of the three engine copies
2
+ * The decomposed runtime's active routing table, derived from the Engine
3
+ * table in tunnel-events.js:58-89 — the canonical of its three copies
4
4
  * (the other two: tunnel-chat.js:33-64, identical; local-gateway.js:
5
5
  * 133-176, which carries only the chat/mcp/portMonitor buckets
6
6
  * because the gateway dispatches its own routes before consulting a
@@ -9,13 +9,22 @@
9
9
  * under its own '/pty' handling).
10
10
  *
11
11
  * Counts, pinned by tests: 3 gateway prefixes, 5 gateway exact paths,
12
- * 3 port-monitor prefixes, 7 chat prefixes, 26 MCP prefixes.
12
+ * 3 port-monitor prefixes, 7 chat prefixes, 23 active MCP prefixes.
13
13
  *
14
14
  * This is product configuration riding in the kernel repo for the
15
15
  * cutover: the table SHAPE is core's; these CONTENTS belong to the
16
- * products that own the prefixes. A new runtime REST prefix goes here
17
- * (and, until cutover, in all three engine copies) or UI calls 404.
16
+ * products that own the prefixes. Engine compatibility prefixes which the
17
+ * target deliberately will not serve remain named below as retirement
18
+ * evidence instead of disappearing from history.
18
19
  */
20
+ /**
21
+ * Present in the current Engine gateway, absent from the decomposed target:
22
+ * `/tasks` is the superseded SQLite scheduler facade; `/mcp-connections` is
23
+ * the superseded second registry now represented by Tools connection records
24
+ * plus credential references resolved by Core's machine-local vault; `/github`
25
+ * is superseded by the next cloud integration and credential collection model.
26
+ */
27
+ export const retiredEngineRoutePrefixes = ['/tasks', '/mcp-connections', '/github'];
19
28
  export const shippedRouteTable = {
20
29
  gatewayPrefixes: ['/__amalgm', '/diagnostics', '/pty'],
21
30
  gatewayExactPaths: ['/', '/healthz', '/runtime-state', '/pty/session', '/pty/resize'],
@@ -24,14 +33,11 @@ export const shippedRouteTable = {
24
33
  mcpPrefixes: [
25
34
  '/mcp',
26
35
  '/events',
27
- '/tasks',
28
36
  '/automations',
29
37
  '/event-triggers',
30
38
  '/workspace',
31
39
  '/project-context',
32
- '/github',
33
40
  '/fs',
34
- '/mcp-connections',
35
41
  '/toolbox',
36
42
  '/state',
37
43
  '/local',
@@ -1 +1 @@
1
- {"version":3,"file":"shipped-routes.js","sourceRoot":"","sources":["../../src/transport/shipped-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAIH,MAAM,CAAC,MAAM,iBAAiB,GAAe;IAC3C,eAAe,EAAE,CAAC,WAAW,EAAE,cAAc,EAAE,MAAM,CAAC;IACtD,iBAAiB,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,gBAAgB,EAAE,cAAc,EAAE,aAAa,CAAC;IACrF,mBAAmB,EAAE,CAAC,YAAY,EAAE,QAAQ,EAAE,eA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R,QAAQ;QACR,gBAAgB;QAChB,OAAO;QACP,YAAY;QACZ,SAAS;QACT,eAAe;QACf,gBAAgB;QAChB,SAAS;QACT,mBAAmB;QACnB,UAAU;KACX;CACF,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@amalgm/core",
3
- "version": "0.1.6",
3
+ "version": "0.1.8",
4
4
  "description": "The Amalgm kernel SDK — identity, transport, supervision, and host capability contracts behind host-injected adapters.",
5
5
  "type": "module",
6
6
  "license": "UNLICENSED",