@danypops/jittor 0.21.3 → 0.21.4
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 +4 -4
- package/src/vehicle/service.ts +6 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@danypops/jittor",
|
|
3
|
-
"version": "0.21.
|
|
3
|
+
"version": "0.21.4",
|
|
4
4
|
"description": "Just-in-Time Token Optimization Router for Pi -- token and context observability with optimization policies",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
}
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@danypops/vehicle-core": "^0.
|
|
44
|
-
"@danypops/vehicle-server": "^0.
|
|
45
|
-
"@danypops/vehicle-client": "^0.10.
|
|
43
|
+
"@danypops/vehicle-core": "^0.19.1",
|
|
44
|
+
"@danypops/vehicle-server": "^0.27.1",
|
|
45
|
+
"@danypops/vehicle-client": "^0.10.8",
|
|
46
46
|
"google-auth-library": "^10.9.0",
|
|
47
47
|
"gpt-tokenizer": "^3.4.0"
|
|
48
48
|
},
|
package/src/vehicle/service.ts
CHANGED
|
@@ -315,7 +315,12 @@ export function createApp(options: JittorAppOptions): { fetch(request: Request):
|
|
|
315
315
|
// composed here rather than replacing /api/v1/ops, matching every other Vehicle-migrated
|
|
316
316
|
// daemon in this ecosystem ("served alongside", not "instead of"). Routed before the
|
|
317
317
|
// top-level bearer check below since createVehicleHttpApp performs its own.
|
|
318
|
-
const
|
|
318
|
+
const permissions = [...new Set(options.service.vehicleRegistry.manifest().operations.flatMap((operation) => operation.permissions))];
|
|
319
|
+
const vehicleApp = createVehicleHttpApp({
|
|
320
|
+
registry: options.service.vehicleRegistry,
|
|
321
|
+
token: options.token,
|
|
322
|
+
invocationAuthority: { mode: "attested", resolve: () => ({ permissions, principal: { id: "jittor-authenticated-client" } }) },
|
|
323
|
+
});
|
|
319
324
|
return {
|
|
320
325
|
async fetch(request: Request): Promise<Response> {
|
|
321
326
|
const url = new URL(request.url);
|