@nodetool-ai/protocol 0.7.0-rc.15 → 0.7.0-rc.17
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.
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge protocol versioning between the JS runtime and the Python worker.
|
|
3
|
+
*
|
|
4
|
+
* Lives in @nodetool-ai/protocol (not @nodetool-ai/runtime) so the Electron
|
|
5
|
+
* main process can read these constants without dragging the runtime barrel
|
|
6
|
+
* — which re-exports every LLM provider with their heavy SDK imports —
|
|
7
|
+
* into the main bundle.
|
|
8
|
+
*
|
|
9
|
+
* Bumped only when the stdio worker protocol changes in a non-backward-
|
|
10
|
+
* compatible way (new message types, framing changes, schema breaks).
|
|
11
|
+
* Most JS or Python releases do NOT bump this — we want to allow the JS
|
|
12
|
+
* and Python sides to ship on independent cadences.
|
|
13
|
+
*
|
|
14
|
+
* Coupling rules:
|
|
15
|
+
*
|
|
16
|
+
* - `BRIDGE_PROTOCOL_VERSION` is what the JS runtime speaks. The Python
|
|
17
|
+
* worker reports its own value in its `discover` response.
|
|
18
|
+
* - `MIN_NODETOOL_CORE_VERSION` is the lowest published `nodetool-core`
|
|
19
|
+
* PEP 440 version that ships `BRIDGE_PROTOCOL_VERSION`. The Electron
|
|
20
|
+
* installer pins `nodetool-core>=MIN_NODETOOL_CORE_VERSION` and the
|
|
21
|
+
* prebuild check refuses to ship if the registry has no wheel that
|
|
22
|
+
* satisfies the constraint.
|
|
23
|
+
*
|
|
24
|
+
* On a breaking protocol change:
|
|
25
|
+
*
|
|
26
|
+
* 1. Bump `BRIDGE_PROTOCOL_VERSION` here AND in
|
|
27
|
+
* `nodetool-core/src/nodetool/worker/__init__.py` (lockstep).
|
|
28
|
+
* 2. Cut a new `nodetool-core` release containing the bump.
|
|
29
|
+
* 3. Update `MIN_NODETOOL_CORE_VERSION` to that new release.
|
|
30
|
+
*/
|
|
31
|
+
export declare const BRIDGE_PROTOCOL_VERSION = 1;
|
|
32
|
+
/**
|
|
33
|
+
* Lowest published nodetool-core version (PEP 440 string) that speaks
|
|
34
|
+
* `BRIDGE_PROTOCOL_VERSION` AND reports it in its `discover` response.
|
|
35
|
+
* Used by the prebuild registry check and the Electron installer's pin
|
|
36
|
+
* specifier.
|
|
37
|
+
*
|
|
38
|
+
* IMPORTANT: when you publish a new nodetool-core release that bumps
|
|
39
|
+
* BRIDGE_PROTOCOL_VERSION, update this string to that new release. The
|
|
40
|
+
* prebuild check will refuse to build the Electron app until a wheel
|
|
41
|
+
* satisfying this lower bound exists on the registry.
|
|
42
|
+
*/
|
|
43
|
+
export declare const MIN_NODETOOL_CORE_VERSION = "0.7.0rc8";
|
|
44
|
+
//# sourceMappingURL=bridge-protocol.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-protocol.d.ts","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,eAAO,MAAM,uBAAuB,IAAI,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,eAAO,MAAM,yBAAyB,aAAa,CAAC"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bridge protocol versioning between the JS runtime and the Python worker.
|
|
3
|
+
*
|
|
4
|
+
* Lives in @nodetool-ai/protocol (not @nodetool-ai/runtime) so the Electron
|
|
5
|
+
* main process can read these constants without dragging the runtime barrel
|
|
6
|
+
* — which re-exports every LLM provider with their heavy SDK imports —
|
|
7
|
+
* into the main bundle.
|
|
8
|
+
*
|
|
9
|
+
* Bumped only when the stdio worker protocol changes in a non-backward-
|
|
10
|
+
* compatible way (new message types, framing changes, schema breaks).
|
|
11
|
+
* Most JS or Python releases do NOT bump this — we want to allow the JS
|
|
12
|
+
* and Python sides to ship on independent cadences.
|
|
13
|
+
*
|
|
14
|
+
* Coupling rules:
|
|
15
|
+
*
|
|
16
|
+
* - `BRIDGE_PROTOCOL_VERSION` is what the JS runtime speaks. The Python
|
|
17
|
+
* worker reports its own value in its `discover` response.
|
|
18
|
+
* - `MIN_NODETOOL_CORE_VERSION` is the lowest published `nodetool-core`
|
|
19
|
+
* PEP 440 version that ships `BRIDGE_PROTOCOL_VERSION`. The Electron
|
|
20
|
+
* installer pins `nodetool-core>=MIN_NODETOOL_CORE_VERSION` and the
|
|
21
|
+
* prebuild check refuses to ship if the registry has no wheel that
|
|
22
|
+
* satisfies the constraint.
|
|
23
|
+
*
|
|
24
|
+
* On a breaking protocol change:
|
|
25
|
+
*
|
|
26
|
+
* 1. Bump `BRIDGE_PROTOCOL_VERSION` here AND in
|
|
27
|
+
* `nodetool-core/src/nodetool/worker/__init__.py` (lockstep).
|
|
28
|
+
* 2. Cut a new `nodetool-core` release containing the bump.
|
|
29
|
+
* 3. Update `MIN_NODETOOL_CORE_VERSION` to that new release.
|
|
30
|
+
*/
|
|
31
|
+
export const BRIDGE_PROTOCOL_VERSION = 1;
|
|
32
|
+
/**
|
|
33
|
+
* Lowest published nodetool-core version (PEP 440 string) that speaks
|
|
34
|
+
* `BRIDGE_PROTOCOL_VERSION` AND reports it in its `discover` response.
|
|
35
|
+
* Used by the prebuild registry check and the Electron installer's pin
|
|
36
|
+
* specifier.
|
|
37
|
+
*
|
|
38
|
+
* IMPORTANT: when you publish a new nodetool-core release that bumps
|
|
39
|
+
* BRIDGE_PROTOCOL_VERSION, update this string to that new release. The
|
|
40
|
+
* prebuild check will refuse to build the Electron app until a wheel
|
|
41
|
+
* satisfying this lower bound exists on the registry.
|
|
42
|
+
*/
|
|
43
|
+
export const MIN_NODETOOL_CORE_VERSION = "0.7.0rc8";
|
|
44
|
+
//# sourceMappingURL=bridge-protocol.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bridge-protocol.js","sourceRoot":"","sources":["../src/bridge-protocol.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAEH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC;AAEzC;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAAG,UAAU,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nodetool-ai/protocol",
|
|
3
|
-
"version": "0.7.0-rc.
|
|
3
|
+
"version": "0.7.0-rc.17",
|
|
4
4
|
"description": "Shared message types and protocol definitions for the NodeTool workflow runtime",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -25,6 +25,12 @@
|
|
|
25
25
|
"import": "./dist/index.js",
|
|
26
26
|
"default": "./dist/index.js"
|
|
27
27
|
},
|
|
28
|
+
"./bridge-protocol": {
|
|
29
|
+
"nodetool-dev": "./src/bridge-protocol.ts",
|
|
30
|
+
"types": "./dist/bridge-protocol.d.ts",
|
|
31
|
+
"import": "./dist/bridge-protocol.js",
|
|
32
|
+
"default": "./dist/bridge-protocol.js"
|
|
33
|
+
},
|
|
28
34
|
"./api-schemas": {
|
|
29
35
|
"nodetool-dev": "./src/api-schemas/index.ts",
|
|
30
36
|
"types": "./dist/api-schemas/index.d.ts",
|