@amalgm/core 0.1.6 → 0.1.7
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 +3 -0
- package/dist/transport/index.d.ts +2 -1
- package/dist/transport/index.d.ts.map +1 -1
- package/dist/transport/index.js +2 -1
- package/dist/transport/index.js.map +1 -1
- package/dist/transport/routing.d.ts +2 -2
- package/dist/transport/routing.js +1 -1
- package/dist/transport/shipped-routes.d.ts +13 -5
- package/dist/transport/shipped-routes.d.ts.map +1 -1
- package/dist/transport/shipped-routes.js +13 -7
- package/dist/transport/shipped-routes.js.map +1 -1
- package/package.json +1 -1
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
|
-
*
|
|
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
|
|
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"}
|
package/dist/transport/index.js
CHANGED
|
@@ -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
|
-
*
|
|
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
|
|
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
|
|
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
|
|
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
|
|
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
|
|
3
|
-
* tunnel-events.js:58-89 — the canonical of
|
|
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,21 @@
|
|
|
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,
|
|
12
|
+
* 3 port-monitor prefixes, 7 chat prefixes, 24 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.
|
|
17
|
-
*
|
|
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.
|
|
26
|
+
*/
|
|
27
|
+
export declare const retiredEngineRoutePrefixes: readonly ["/tasks", "/mcp-connections"];
|
|
20
28
|
export declare const shippedRouteTable: RouteTable;
|
|
21
29
|
//# 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
|
|
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;;;;;GAKG;AACH,eAAO,MAAM,0BAA0B,yCAA0C,CAAC;AAElF,eAAO,MAAM,iBAAiB,EAAE,UA+B/B,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* The
|
|
3
|
-
* tunnel-events.js:58-89 — the canonical of
|
|
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,21 @@
|
|
|
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,
|
|
12
|
+
* 3 port-monitor prefixes, 7 chat prefixes, 24 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.
|
|
17
|
-
*
|
|
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.
|
|
25
|
+
*/
|
|
26
|
+
export const retiredEngineRoutePrefixes = ['/tasks', '/mcp-connections'];
|
|
19
27
|
export const shippedRouteTable = {
|
|
20
28
|
gatewayPrefixes: ['/__amalgm', '/diagnostics', '/pty'],
|
|
21
29
|
gatewayExactPaths: ['/', '/healthz', '/runtime-state', '/pty/session', '/pty/resize'],
|
|
@@ -24,14 +32,12 @@ export const shippedRouteTable = {
|
|
|
24
32
|
mcpPrefixes: [
|
|
25
33
|
'/mcp',
|
|
26
34
|
'/events',
|
|
27
|
-
'/tasks',
|
|
28
35
|
'/automations',
|
|
29
36
|
'/event-triggers',
|
|
30
37
|
'/workspace',
|
|
31
38
|
'/project-context',
|
|
32
39
|
'/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
|
|
1
|
+
{"version":3,"file":"shipped-routes.js","sourceRoot":"","sources":["../../src/transport/shipped-routes.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AAIH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,QAAQ,EAAE,kBAAkB,CAAU,CAAC;AAElF,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,eAAe,CAAC;IAC9D,YAAY,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,SAAS,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,EAAE,YAAY,CAAC;IAC7F,WAAW,EAAE;QACX,MAAM;QACN,SAAS;QACT,cAAc;QACd,iBAAiB;QACjB,YAAY;QACZ,kBAAkB;QAClB,SAAS;QACT,KAAK;QACL,UAAU;QACV,QAAQ;QACR,QAAQ;QACR,cAAc;QACd,gBAAgB;QAChB,QAAQ;QACR,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