@danypops/jittor 0.15.0 → 0.16.1
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danypops/jittor",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Just-in-Time Token Optimizing Router for Pi -- supervised daemon, router policy, and CLI",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
"service:install": "bun src/cli.ts service install"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@danypops/vehicle-core": "^0.
|
|
20
|
-
"@danypops/vehicle-server": "^0.
|
|
19
|
+
"@danypops/vehicle-core": "^0.11.0",
|
|
20
|
+
"@danypops/vehicle-server": "^0.16.0",
|
|
21
21
|
"@danypops/vehicle-client": "^0.5.1",
|
|
22
22
|
"google-auth-library": "^10.9.0"
|
|
23
23
|
},
|
|
@@ -5,6 +5,7 @@ import { join } from "node:path";
|
|
|
5
5
|
import { createNodeServiceInstallDeps, generateSystemdUnit, installUserService, type ServiceSpec } from "@danypops/vehicle-server/service";
|
|
6
6
|
import { SYSTEMD_UNIT_NAME } from "../constants.ts";
|
|
7
7
|
import { resolveJittorPaths } from "../state.ts";
|
|
8
|
+
import { VERSION } from "../version.ts";
|
|
8
9
|
import { parseJsonOnlyArgs } from "./router.ts";
|
|
9
10
|
import { type CliDependencies, callAndPrint } from "./support.ts";
|
|
10
11
|
|
|
@@ -24,10 +25,11 @@ function jittorServiceSpec(options: SystemdUnitOptions): ServiceSpec {
|
|
|
24
25
|
return {
|
|
25
26
|
name: "jittor",
|
|
26
27
|
displayName: "Jittor token optimizing router",
|
|
28
|
+
version: VERSION,
|
|
27
29
|
binPath: options.bunBin,
|
|
28
30
|
args: [options.cliPath, "serve"],
|
|
29
31
|
env,
|
|
30
|
-
|
|
32
|
+
handlePath: resolveJittorPaths().handle,
|
|
31
33
|
// Jittor's own client (connectJittorClient) never auto-spawns -- systemd's own
|
|
32
34
|
// supervision is this daemon's only recovery path, same as Lector's.
|
|
33
35
|
restartOnFailure: true,
|
package/src/service.ts
CHANGED
|
@@ -207,9 +207,12 @@ export class JittorService {
|
|
|
207
207
|
};
|
|
208
208
|
this.vehicleRegistry = new VehicleRegistry({
|
|
209
209
|
name: "jittor",
|
|
210
|
-
version:
|
|
210
|
+
version: VERSION,
|
|
211
211
|
description: "Just-in-Time Token Optimizing Router for Pi -- metrics, benchmark evidence, model ranking, and router policy.",
|
|
212
212
|
});
|
|
213
|
+
// withJittorErrorParity() already converts every real handler error into a well-formed
|
|
214
|
+
// VehicleError, so this only affects a genuine registration/binding bug.
|
|
215
|
+
this.vehicleRegistry.setExposeHandlerFailureDetails(true);
|
|
213
216
|
registerJittorVehicleOperations(this.vehicleRegistry, this.operations);
|
|
214
217
|
}
|
|
215
218
|
|