@nylorun/runtime 0.28.0-beta → 0.29.0-beta
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/CHANGELOG.md +27 -1
- package/README.md +1 -1
- package/dist/api/components.d.ts +33 -0
- package/dist/api/http/define.d.ts +4 -0
- package/dist/api/http/define.js +20 -9
- package/dist/api/http/routes/agent-manifests.d.ts +1 -1
- package/dist/api/http/routes/agent-manifests.js +1 -1
- package/dist/api/http/routes/agents.js +6 -6
- package/dist/api/http/routes/reads.js +29 -4
- package/dist/api/http/routes/tenant.js +5 -2
- package/dist/api/http/routes/triggers.js +15 -12
- package/dist/api/openapi.js +3 -3
- package/dist/gates/http-tool.js +1 -1
- package/dist/gates/meter.js +16 -0
- package/dist/gates/tenant-vaults.d.ts +1 -1
- package/dist/host/config-for.d.ts +2 -0
- package/dist/host/config-for.js +1 -0
- package/dist/host/main.js +1 -0
- package/dist/management-openapi.json +134 -76
- package/dist/mcp/connect.d.ts +2 -2
- package/dist/mcp/connect.js +3 -3
- package/dist/model/pi-model.js +7 -0
- package/dist/openapi.json +253 -214
- package/dist/store/postgres/drizzle/0037_model_usage_cost_split.sql +4 -0
- package/dist/store/postgres/drizzle/meta/_journal.json +7 -0
- package/dist/store/postgres/reads.js +31 -1
- package/dist/store/postgres/schema.d.ts +76 -3
- package/dist/store/postgres/schema.js +11 -2
- package/dist/tenant/types.d.ts +5 -0
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +3 -3
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
"openapi": "3.2.0",
|
|
3
3
|
"info": {
|
|
4
4
|
"title": "Nylorun Management API",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.29.0-beta",
|
|
6
6
|
"x-nylorun-protocol": {
|
|
7
7
|
"min": 16,
|
|
8
|
-
"max":
|
|
8
|
+
"max": 18,
|
|
9
9
|
"features": [
|
|
10
10
|
"studio-principal",
|
|
11
11
|
"artifacts",
|
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
"harness-boundary",
|
|
17
17
|
"agents",
|
|
18
18
|
"session-queue",
|
|
19
|
+
"usage-by-kind",
|
|
19
20
|
"tenant-fixture-model",
|
|
20
21
|
"transcript-events",
|
|
21
22
|
"subject-headers",
|
|
@@ -2308,11 +2309,13 @@
|
|
|
2308
2309
|
},
|
|
2309
2310
|
"tool": {
|
|
2310
2311
|
"type": "string",
|
|
2311
|
-
"minLength": 1
|
|
2312
|
+
"minLength": 1,
|
|
2313
|
+
"description": "The tool's identity: an MCP tool's own name on its `server`, or an HTTP tool's declared name, never the name the model calls it by. `*` matches any run of characters; a name with `__` in it is refused"
|
|
2312
2314
|
},
|
|
2313
2315
|
"server": {
|
|
2314
2316
|
"type": "string",
|
|
2315
|
-
"minLength": 1
|
|
2317
|
+
"minLength": 1,
|
|
2318
|
+
"description": "An MCP server's name; `*` matches any run of characters"
|
|
2316
2319
|
},
|
|
2317
2320
|
"kind": {
|
|
2318
2321
|
"type": "string",
|
|
@@ -2323,7 +2326,8 @@
|
|
|
2323
2326
|
},
|
|
2324
2327
|
"agent": {
|
|
2325
2328
|
"type": "string",
|
|
2326
|
-
"minLength": 1
|
|
2329
|
+
"minLength": 1,
|
|
2330
|
+
"description": "The agent that calls the tool: the agent manifest's name, or the id of an agent used as a tool or of a flow's agent, never an Agent's id. `*` matches any run of characters"
|
|
2327
2331
|
},
|
|
2328
2332
|
"when": {
|
|
2329
2333
|
"type": "object",
|
|
@@ -2358,7 +2362,8 @@
|
|
|
2358
2362
|
}
|
|
2359
2363
|
},
|
|
2360
2364
|
"additionalProperties": false
|
|
2361
|
-
}
|
|
2365
|
+
},
|
|
2366
|
+
"description": "Fields of the call's input by dotted path, each tested by every test its condition sets"
|
|
2362
2367
|
},
|
|
2363
2368
|
"reason": {
|
|
2364
2369
|
"type": "string",
|
|
@@ -2406,11 +2411,13 @@
|
|
|
2406
2411
|
},
|
|
2407
2412
|
"tool": {
|
|
2408
2413
|
"type": "string",
|
|
2409
|
-
"minLength": 1
|
|
2414
|
+
"minLength": 1,
|
|
2415
|
+
"description": "The tool's identity: an MCP tool's own name on its `server`, or an HTTP tool's declared name, never the name the model calls it by. `*` matches any run of characters; a name with `__` in it is refused"
|
|
2410
2416
|
},
|
|
2411
2417
|
"server": {
|
|
2412
2418
|
"type": "string",
|
|
2413
|
-
"minLength": 1
|
|
2419
|
+
"minLength": 1,
|
|
2420
|
+
"description": "An MCP server's name; `*` matches any run of characters"
|
|
2414
2421
|
},
|
|
2415
2422
|
"kind": {
|
|
2416
2423
|
"type": "string",
|
|
@@ -2421,7 +2428,8 @@
|
|
|
2421
2428
|
},
|
|
2422
2429
|
"agent": {
|
|
2423
2430
|
"type": "string",
|
|
2424
|
-
"minLength": 1
|
|
2431
|
+
"minLength": 1,
|
|
2432
|
+
"description": "The agent that calls the tool: the agent manifest's name, or the id of an agent used as a tool or of a flow's agent, never an Agent's id. `*` matches any run of characters"
|
|
2425
2433
|
},
|
|
2426
2434
|
"when": {
|
|
2427
2435
|
"type": "object",
|
|
@@ -2456,7 +2464,8 @@
|
|
|
2456
2464
|
}
|
|
2457
2465
|
},
|
|
2458
2466
|
"additionalProperties": false
|
|
2459
|
-
}
|
|
2467
|
+
},
|
|
2468
|
+
"description": "Fields of the call's input by dotted path, each tested by every test its condition sets"
|
|
2460
2469
|
},
|
|
2461
2470
|
"reason": {
|
|
2462
2471
|
"type": "string",
|
|
@@ -3477,6 +3486,18 @@
|
|
|
3477
3486
|
"at": {
|
|
3478
3487
|
"type": "string"
|
|
3479
3488
|
},
|
|
3489
|
+
"startedAt": {
|
|
3490
|
+
"type": [
|
|
3491
|
+
"string",
|
|
3492
|
+
"null"
|
|
3493
|
+
]
|
|
3494
|
+
},
|
|
3495
|
+
"endedAt": {
|
|
3496
|
+
"type": [
|
|
3497
|
+
"string",
|
|
3498
|
+
"null"
|
|
3499
|
+
]
|
|
3500
|
+
},
|
|
3480
3501
|
"outcome": {
|
|
3481
3502
|
"type": "string",
|
|
3482
3503
|
"enum": [
|
|
@@ -3532,6 +3553,37 @@
|
|
|
3532
3553
|
"boolean",
|
|
3533
3554
|
"null"
|
|
3534
3555
|
]
|
|
3556
|
+
},
|
|
3557
|
+
"costSplit": {
|
|
3558
|
+
"type": [
|
|
3559
|
+
"object",
|
|
3560
|
+
"null"
|
|
3561
|
+
],
|
|
3562
|
+
"properties": {
|
|
3563
|
+
"input": {
|
|
3564
|
+
"type": "number",
|
|
3565
|
+
"minimum": 0
|
|
3566
|
+
},
|
|
3567
|
+
"cacheRead": {
|
|
3568
|
+
"type": "number",
|
|
3569
|
+
"minimum": 0
|
|
3570
|
+
},
|
|
3571
|
+
"cacheWrite": {
|
|
3572
|
+
"type": "number",
|
|
3573
|
+
"minimum": 0
|
|
3574
|
+
},
|
|
3575
|
+
"output": {
|
|
3576
|
+
"type": "number",
|
|
3577
|
+
"minimum": 0
|
|
3578
|
+
}
|
|
3579
|
+
},
|
|
3580
|
+
"required": [
|
|
3581
|
+
"input",
|
|
3582
|
+
"cacheRead",
|
|
3583
|
+
"cacheWrite",
|
|
3584
|
+
"output"
|
|
3585
|
+
],
|
|
3586
|
+
"additionalProperties": false
|
|
3535
3587
|
}
|
|
3536
3588
|
},
|
|
3537
3589
|
"required": [
|
|
@@ -3544,7 +3596,8 @@
|
|
|
3544
3596
|
"costUsd",
|
|
3545
3597
|
"duplicate",
|
|
3546
3598
|
"tokensReported",
|
|
3547
|
-
"costKnown"
|
|
3599
|
+
"costKnown",
|
|
3600
|
+
"costSplit"
|
|
3548
3601
|
],
|
|
3549
3602
|
"additionalProperties": false
|
|
3550
3603
|
}
|
|
@@ -3558,6 +3611,8 @@
|
|
|
3558
3611
|
"provider",
|
|
3559
3612
|
"model",
|
|
3560
3613
|
"at",
|
|
3614
|
+
"startedAt",
|
|
3615
|
+
"endedAt",
|
|
3561
3616
|
"outcome",
|
|
3562
3617
|
"usage"
|
|
3563
3618
|
],
|
|
@@ -3616,10 +3671,10 @@
|
|
|
3616
3671
|
{
|
|
3617
3672
|
"schema": {
|
|
3618
3673
|
"type": "string",
|
|
3619
|
-
"description": "The protocol version, `
|
|
3674
|
+
"description": "The protocol version, `18`"
|
|
3620
3675
|
},
|
|
3621
3676
|
"required": true,
|
|
3622
|
-
"description": "The protocol version, `
|
|
3677
|
+
"description": "The protocol version, `18`",
|
|
3623
3678
|
"name": "Nylorun-Protocol",
|
|
3624
3679
|
"in": "header"
|
|
3625
3680
|
}
|
|
@@ -3718,10 +3773,10 @@
|
|
|
3718
3773
|
{
|
|
3719
3774
|
"schema": {
|
|
3720
3775
|
"type": "string",
|
|
3721
|
-
"description": "The protocol version, `
|
|
3776
|
+
"description": "The protocol version, `18`"
|
|
3722
3777
|
},
|
|
3723
3778
|
"required": true,
|
|
3724
|
-
"description": "The protocol version, `
|
|
3779
|
+
"description": "The protocol version, `18`",
|
|
3725
3780
|
"name": "Nylorun-Protocol",
|
|
3726
3781
|
"in": "header"
|
|
3727
3782
|
}
|
|
@@ -3830,10 +3885,10 @@
|
|
|
3830
3885
|
{
|
|
3831
3886
|
"schema": {
|
|
3832
3887
|
"type": "string",
|
|
3833
|
-
"description": "The protocol version, `
|
|
3888
|
+
"description": "The protocol version, `18`"
|
|
3834
3889
|
},
|
|
3835
3890
|
"required": true,
|
|
3836
|
-
"description": "The protocol version, `
|
|
3891
|
+
"description": "The protocol version, `18`",
|
|
3837
3892
|
"name": "Nylorun-Protocol",
|
|
3838
3893
|
"in": "header"
|
|
3839
3894
|
}
|
|
@@ -3951,10 +4006,10 @@
|
|
|
3951
4006
|
{
|
|
3952
4007
|
"schema": {
|
|
3953
4008
|
"type": "string",
|
|
3954
|
-
"description": "The protocol version, `
|
|
4009
|
+
"description": "The protocol version, `18`"
|
|
3955
4010
|
},
|
|
3956
4011
|
"required": true,
|
|
3957
|
-
"description": "The protocol version, `
|
|
4012
|
+
"description": "The protocol version, `18`",
|
|
3958
4013
|
"name": "Nylorun-Protocol",
|
|
3959
4014
|
"in": "header"
|
|
3960
4015
|
},
|
|
@@ -4086,10 +4141,10 @@
|
|
|
4086
4141
|
{
|
|
4087
4142
|
"schema": {
|
|
4088
4143
|
"type": "string",
|
|
4089
|
-
"description": "The protocol version, `
|
|
4144
|
+
"description": "The protocol version, `18`"
|
|
4090
4145
|
},
|
|
4091
4146
|
"required": true,
|
|
4092
|
-
"description": "The protocol version, `
|
|
4147
|
+
"description": "The protocol version, `18`",
|
|
4093
4148
|
"name": "Nylorun-Protocol",
|
|
4094
4149
|
"in": "header"
|
|
4095
4150
|
}
|
|
@@ -4198,10 +4253,10 @@
|
|
|
4198
4253
|
{
|
|
4199
4254
|
"schema": {
|
|
4200
4255
|
"type": "string",
|
|
4201
|
-
"description": "The protocol version, `
|
|
4256
|
+
"description": "The protocol version, `18`"
|
|
4202
4257
|
},
|
|
4203
4258
|
"required": true,
|
|
4204
|
-
"description": "The protocol version, `
|
|
4259
|
+
"description": "The protocol version, `18`",
|
|
4205
4260
|
"name": "Nylorun-Protocol",
|
|
4206
4261
|
"in": "header"
|
|
4207
4262
|
}
|
|
@@ -4301,10 +4356,10 @@
|
|
|
4301
4356
|
{
|
|
4302
4357
|
"schema": {
|
|
4303
4358
|
"type": "string",
|
|
4304
|
-
"description": "The protocol version, `
|
|
4359
|
+
"description": "The protocol version, `18`"
|
|
4305
4360
|
},
|
|
4306
4361
|
"required": true,
|
|
4307
|
-
"description": "The protocol version, `
|
|
4362
|
+
"description": "The protocol version, `18`",
|
|
4308
4363
|
"name": "Nylorun-Protocol",
|
|
4309
4364
|
"in": "header"
|
|
4310
4365
|
}
|
|
@@ -4396,10 +4451,10 @@
|
|
|
4396
4451
|
{
|
|
4397
4452
|
"schema": {
|
|
4398
4453
|
"type": "string",
|
|
4399
|
-
"description": "The protocol version, `
|
|
4454
|
+
"description": "The protocol version, `18`"
|
|
4400
4455
|
},
|
|
4401
4456
|
"required": true,
|
|
4402
|
-
"description": "The protocol version, `
|
|
4457
|
+
"description": "The protocol version, `18`",
|
|
4403
4458
|
"name": "Nylorun-Protocol",
|
|
4404
4459
|
"in": "header"
|
|
4405
4460
|
}
|
|
@@ -4498,10 +4553,10 @@
|
|
|
4498
4553
|
{
|
|
4499
4554
|
"schema": {
|
|
4500
4555
|
"type": "string",
|
|
4501
|
-
"description": "The protocol version, `
|
|
4556
|
+
"description": "The protocol version, `18`"
|
|
4502
4557
|
},
|
|
4503
4558
|
"required": true,
|
|
4504
|
-
"description": "The protocol version, `
|
|
4559
|
+
"description": "The protocol version, `18`",
|
|
4505
4560
|
"name": "Nylorun-Protocol",
|
|
4506
4561
|
"in": "header"
|
|
4507
4562
|
}
|
|
@@ -4609,10 +4664,10 @@
|
|
|
4609
4664
|
{
|
|
4610
4665
|
"schema": {
|
|
4611
4666
|
"type": "string",
|
|
4612
|
-
"description": "The protocol version, `
|
|
4667
|
+
"description": "The protocol version, `18`"
|
|
4613
4668
|
},
|
|
4614
4669
|
"required": true,
|
|
4615
|
-
"description": "The protocol version, `
|
|
4670
|
+
"description": "The protocol version, `18`",
|
|
4616
4671
|
"name": "Nylorun-Protocol",
|
|
4617
4672
|
"in": "header"
|
|
4618
4673
|
}
|
|
@@ -4710,10 +4765,10 @@
|
|
|
4710
4765
|
{
|
|
4711
4766
|
"schema": {
|
|
4712
4767
|
"type": "string",
|
|
4713
|
-
"description": "The protocol version, `
|
|
4768
|
+
"description": "The protocol version, `18`"
|
|
4714
4769
|
},
|
|
4715
4770
|
"required": true,
|
|
4716
|
-
"description": "The protocol version, `
|
|
4771
|
+
"description": "The protocol version, `18`",
|
|
4717
4772
|
"name": "Nylorun-Protocol",
|
|
4718
4773
|
"in": "header"
|
|
4719
4774
|
}
|
|
@@ -4809,10 +4864,10 @@
|
|
|
4809
4864
|
{
|
|
4810
4865
|
"schema": {
|
|
4811
4866
|
"type": "string",
|
|
4812
|
-
"description": "The protocol version, `
|
|
4867
|
+
"description": "The protocol version, `18`"
|
|
4813
4868
|
},
|
|
4814
4869
|
"required": true,
|
|
4815
|
-
"description": "The protocol version, `
|
|
4870
|
+
"description": "The protocol version, `18`",
|
|
4816
4871
|
"name": "Nylorun-Protocol",
|
|
4817
4872
|
"in": "header"
|
|
4818
4873
|
}
|
|
@@ -4920,10 +4975,10 @@
|
|
|
4920
4975
|
{
|
|
4921
4976
|
"schema": {
|
|
4922
4977
|
"type": "string",
|
|
4923
|
-
"description": "The protocol version, `
|
|
4978
|
+
"description": "The protocol version, `18`"
|
|
4924
4979
|
},
|
|
4925
4980
|
"required": true,
|
|
4926
|
-
"description": "The protocol version, `
|
|
4981
|
+
"description": "The protocol version, `18`",
|
|
4927
4982
|
"name": "Nylorun-Protocol",
|
|
4928
4983
|
"in": "header"
|
|
4929
4984
|
}
|
|
@@ -5069,10 +5124,10 @@
|
|
|
5069
5124
|
{
|
|
5070
5125
|
"schema": {
|
|
5071
5126
|
"type": "string",
|
|
5072
|
-
"description": "The protocol version, `
|
|
5127
|
+
"description": "The protocol version, `18`"
|
|
5073
5128
|
},
|
|
5074
5129
|
"required": true,
|
|
5075
|
-
"description": "The protocol version, `
|
|
5130
|
+
"description": "The protocol version, `18`",
|
|
5076
5131
|
"name": "Nylorun-Protocol",
|
|
5077
5132
|
"in": "header"
|
|
5078
5133
|
}
|
|
@@ -5189,10 +5244,10 @@
|
|
|
5189
5244
|
{
|
|
5190
5245
|
"schema": {
|
|
5191
5246
|
"type": "string",
|
|
5192
|
-
"description": "The protocol version, `
|
|
5247
|
+
"description": "The protocol version, `18`"
|
|
5193
5248
|
},
|
|
5194
5249
|
"required": true,
|
|
5195
|
-
"description": "The protocol version, `
|
|
5250
|
+
"description": "The protocol version, `18`",
|
|
5196
5251
|
"name": "Nylorun-Protocol",
|
|
5197
5252
|
"in": "header"
|
|
5198
5253
|
}
|
|
@@ -5290,10 +5345,10 @@
|
|
|
5290
5345
|
{
|
|
5291
5346
|
"schema": {
|
|
5292
5347
|
"type": "string",
|
|
5293
|
-
"description": "The protocol version, `
|
|
5348
|
+
"description": "The protocol version, `18`"
|
|
5294
5349
|
},
|
|
5295
5350
|
"required": true,
|
|
5296
|
-
"description": "The protocol version, `
|
|
5351
|
+
"description": "The protocol version, `18`",
|
|
5297
5352
|
"name": "Nylorun-Protocol",
|
|
5298
5353
|
"in": "header"
|
|
5299
5354
|
}
|
|
@@ -5390,10 +5445,10 @@
|
|
|
5390
5445
|
{
|
|
5391
5446
|
"schema": {
|
|
5392
5447
|
"type": "string",
|
|
5393
|
-
"description": "The protocol version, `
|
|
5448
|
+
"description": "The protocol version, `18`"
|
|
5394
5449
|
},
|
|
5395
5450
|
"required": true,
|
|
5396
|
-
"description": "The protocol version, `
|
|
5451
|
+
"description": "The protocol version, `18`",
|
|
5397
5452
|
"name": "Nylorun-Protocol",
|
|
5398
5453
|
"in": "header"
|
|
5399
5454
|
}
|
|
@@ -5501,10 +5556,10 @@
|
|
|
5501
5556
|
{
|
|
5502
5557
|
"schema": {
|
|
5503
5558
|
"type": "string",
|
|
5504
|
-
"description": "The protocol version, `
|
|
5559
|
+
"description": "The protocol version, `18`"
|
|
5505
5560
|
},
|
|
5506
5561
|
"required": true,
|
|
5507
|
-
"description": "The protocol version, `
|
|
5562
|
+
"description": "The protocol version, `18`",
|
|
5508
5563
|
"name": "Nylorun-Protocol",
|
|
5509
5564
|
"in": "header"
|
|
5510
5565
|
}
|
|
@@ -5560,6 +5615,9 @@
|
|
|
5560
5615
|
}
|
|
5561
5616
|
}
|
|
5562
5617
|
},
|
|
5618
|
+
"409": {
|
|
5619
|
+
"description": "A stored rule names an MCP tool by its model-facing `server__tool` name: every call is refused until the policy is set again"
|
|
5620
|
+
},
|
|
5563
5621
|
"426": {
|
|
5564
5622
|
"description": "`Nylorun-Protocol` missing or unsupported",
|
|
5565
5623
|
"content": {
|
|
@@ -5587,7 +5645,7 @@
|
|
|
5587
5645
|
"Tool policy"
|
|
5588
5646
|
],
|
|
5589
5647
|
"summary": "Set the Tenant's tool policy",
|
|
5590
|
-
"description": "Replaces every rule. The Tool Gate applies them to each MCP and HTTP tool call of every harness, before it sends the call: the strictest rule that matches decides. `deny` refuses the call (the model gets `tool.denied`), `ask` holds it and pauses the turn until a person answers it with an `approve` command on the session, `allow` runs it. A call no rule matches runs. A rule matches when every selector it sets matches: `tool` (the name the model calls it by; `*` matches any run of characters), `server` (an MCP server's name), `kind` (`mcp` or `http`), `agent` (the agent that calls it) and `when` (fields of the call's input by dotted path, each tested with `equals`, `in`, `gt`, `gte`, `lt`, `lte` or `matches`). Sandbox tools never cross the gate. An empty list allows every call.",
|
|
5648
|
+
"description": "Replaces every rule. The Tool Gate applies them to each MCP and HTTP tool call of every harness, before it sends the call: the strictest rule that matches decides. `deny` refuses the call (the model gets `tool.denied`), `ask` holds it and pauses the turn until a person answers it with an `approve` command on the session, `allow` runs it. A call no rule matches runs. A rule matches when every selector it sets matches: `tool` (the tool's identity: an MCP tool's own name on its `server`, or an HTTP tool's declared name, never the name the model calls it by; `*` matches any run of characters), `server` (an MCP server's name), `kind` (`mcp` or `http`), `agent` (the agent that calls it: the agent manifest's name, or the id of an agent used as a tool or of a flow's agent, never an Agent's id) and `when` (fields of the call's input by dotted path, each tested with `equals`, `in`, `gt`, `gte`, `lt`, `lte` or `matches`). A `tool` with `__` in it, a model-facing `server__tool` name, is refused (`400`): name an MCP tool by `server` and `tool`. A stored policy with such a rule refuses every call until it is set again. Sandbox tools never cross the gate. An empty list allows every call.",
|
|
5591
5649
|
"security": [
|
|
5592
5650
|
{
|
|
5593
5651
|
"managementKey": []
|
|
@@ -5601,10 +5659,10 @@
|
|
|
5601
5659
|
{
|
|
5602
5660
|
"schema": {
|
|
5603
5661
|
"type": "string",
|
|
5604
|
-
"description": "The protocol version, `
|
|
5662
|
+
"description": "The protocol version, `18`"
|
|
5605
5663
|
},
|
|
5606
5664
|
"required": true,
|
|
5607
|
-
"description": "The protocol version, `
|
|
5665
|
+
"description": "The protocol version, `18`",
|
|
5608
5666
|
"name": "Nylorun-Protocol",
|
|
5609
5667
|
"in": "header"
|
|
5610
5668
|
}
|
|
@@ -5713,10 +5771,10 @@
|
|
|
5713
5771
|
{
|
|
5714
5772
|
"schema": {
|
|
5715
5773
|
"type": "string",
|
|
5716
|
-
"description": "The protocol version, `
|
|
5774
|
+
"description": "The protocol version, `18`"
|
|
5717
5775
|
},
|
|
5718
5776
|
"required": true,
|
|
5719
|
-
"description": "The protocol version, `
|
|
5777
|
+
"description": "The protocol version, `18`",
|
|
5720
5778
|
"name": "Nylorun-Protocol",
|
|
5721
5779
|
"in": "header"
|
|
5722
5780
|
}
|
|
@@ -5825,10 +5883,10 @@
|
|
|
5825
5883
|
{
|
|
5826
5884
|
"schema": {
|
|
5827
5885
|
"type": "string",
|
|
5828
|
-
"description": "The protocol version, `
|
|
5886
|
+
"description": "The protocol version, `18`"
|
|
5829
5887
|
},
|
|
5830
5888
|
"required": true,
|
|
5831
|
-
"description": "The protocol version, `
|
|
5889
|
+
"description": "The protocol version, `18`",
|
|
5832
5890
|
"name": "Nylorun-Protocol",
|
|
5833
5891
|
"in": "header"
|
|
5834
5892
|
}
|
|
@@ -5956,10 +6014,10 @@
|
|
|
5956
6014
|
{
|
|
5957
6015
|
"schema": {
|
|
5958
6016
|
"type": "string",
|
|
5959
|
-
"description": "The protocol version, `
|
|
6017
|
+
"description": "The protocol version, `18`"
|
|
5960
6018
|
},
|
|
5961
6019
|
"required": true,
|
|
5962
|
-
"description": "The protocol version, `
|
|
6020
|
+
"description": "The protocol version, `18`",
|
|
5963
6021
|
"name": "Nylorun-Protocol",
|
|
5964
6022
|
"in": "header"
|
|
5965
6023
|
}
|
|
@@ -6058,10 +6116,10 @@
|
|
|
6058
6116
|
{
|
|
6059
6117
|
"schema": {
|
|
6060
6118
|
"type": "string",
|
|
6061
|
-
"description": "The protocol version, `
|
|
6119
|
+
"description": "The protocol version, `18`"
|
|
6062
6120
|
},
|
|
6063
6121
|
"required": true,
|
|
6064
|
-
"description": "The protocol version, `
|
|
6122
|
+
"description": "The protocol version, `18`",
|
|
6065
6123
|
"name": "Nylorun-Protocol",
|
|
6066
6124
|
"in": "header"
|
|
6067
6125
|
}
|
|
@@ -6180,10 +6238,10 @@
|
|
|
6180
6238
|
{
|
|
6181
6239
|
"schema": {
|
|
6182
6240
|
"type": "string",
|
|
6183
|
-
"description": "The protocol version, `
|
|
6241
|
+
"description": "The protocol version, `18`"
|
|
6184
6242
|
},
|
|
6185
6243
|
"required": true,
|
|
6186
|
-
"description": "The protocol version, `
|
|
6244
|
+
"description": "The protocol version, `18`",
|
|
6187
6245
|
"name": "Nylorun-Protocol",
|
|
6188
6246
|
"in": "header"
|
|
6189
6247
|
}
|
|
@@ -6294,10 +6352,10 @@
|
|
|
6294
6352
|
{
|
|
6295
6353
|
"schema": {
|
|
6296
6354
|
"type": "string",
|
|
6297
|
-
"description": "The protocol version, `
|
|
6355
|
+
"description": "The protocol version, `18`"
|
|
6298
6356
|
},
|
|
6299
6357
|
"required": true,
|
|
6300
|
-
"description": "The protocol version, `
|
|
6358
|
+
"description": "The protocol version, `18`",
|
|
6301
6359
|
"name": "Nylorun-Protocol",
|
|
6302
6360
|
"in": "header"
|
|
6303
6361
|
}
|
|
@@ -6394,10 +6452,10 @@
|
|
|
6394
6452
|
{
|
|
6395
6453
|
"schema": {
|
|
6396
6454
|
"type": "string",
|
|
6397
|
-
"description": "The protocol version, `
|
|
6455
|
+
"description": "The protocol version, `18`"
|
|
6398
6456
|
},
|
|
6399
6457
|
"required": true,
|
|
6400
|
-
"description": "The protocol version, `
|
|
6458
|
+
"description": "The protocol version, `18`",
|
|
6401
6459
|
"name": "Nylorun-Protocol",
|
|
6402
6460
|
"in": "header"
|
|
6403
6461
|
}
|
|
@@ -6505,10 +6563,10 @@
|
|
|
6505
6563
|
{
|
|
6506
6564
|
"schema": {
|
|
6507
6565
|
"type": "string",
|
|
6508
|
-
"description": "The protocol version, `
|
|
6566
|
+
"description": "The protocol version, `18`"
|
|
6509
6567
|
},
|
|
6510
6568
|
"required": true,
|
|
6511
|
-
"description": "The protocol version, `
|
|
6569
|
+
"description": "The protocol version, `18`",
|
|
6512
6570
|
"name": "Nylorun-Protocol",
|
|
6513
6571
|
"in": "header"
|
|
6514
6572
|
}
|
|
@@ -6605,10 +6663,10 @@
|
|
|
6605
6663
|
{
|
|
6606
6664
|
"schema": {
|
|
6607
6665
|
"type": "string",
|
|
6608
|
-
"description": "The protocol version, `
|
|
6666
|
+
"description": "The protocol version, `18`"
|
|
6609
6667
|
},
|
|
6610
6668
|
"required": true,
|
|
6611
|
-
"description": "The protocol version, `
|
|
6669
|
+
"description": "The protocol version, `18`",
|
|
6612
6670
|
"name": "Nylorun-Protocol",
|
|
6613
6671
|
"in": "header"
|
|
6614
6672
|
}
|
|
@@ -6716,10 +6774,10 @@
|
|
|
6716
6774
|
{
|
|
6717
6775
|
"schema": {
|
|
6718
6776
|
"type": "string",
|
|
6719
|
-
"description": "The protocol version, `
|
|
6777
|
+
"description": "The protocol version, `18`"
|
|
6720
6778
|
},
|
|
6721
6779
|
"required": true,
|
|
6722
|
-
"description": "The protocol version, `
|
|
6780
|
+
"description": "The protocol version, `18`",
|
|
6723
6781
|
"name": "Nylorun-Protocol",
|
|
6724
6782
|
"in": "header"
|
|
6725
6783
|
}
|
|
@@ -6816,10 +6874,10 @@
|
|
|
6816
6874
|
{
|
|
6817
6875
|
"schema": {
|
|
6818
6876
|
"type": "string",
|
|
6819
|
-
"description": "The protocol version, `
|
|
6877
|
+
"description": "The protocol version, `18`"
|
|
6820
6878
|
},
|
|
6821
6879
|
"required": true,
|
|
6822
|
-
"description": "The protocol version, `
|
|
6880
|
+
"description": "The protocol version, `18`",
|
|
6823
6881
|
"name": "Nylorun-Protocol",
|
|
6824
6882
|
"in": "header"
|
|
6825
6883
|
}
|
|
@@ -6928,10 +6986,10 @@
|
|
|
6928
6986
|
{
|
|
6929
6987
|
"schema": {
|
|
6930
6988
|
"type": "string",
|
|
6931
|
-
"description": "The protocol version, `
|
|
6989
|
+
"description": "The protocol version, `18`"
|
|
6932
6990
|
},
|
|
6933
6991
|
"required": true,
|
|
6934
|
-
"description": "The protocol version, `
|
|
6992
|
+
"description": "The protocol version, `18`",
|
|
6935
6993
|
"name": "Nylorun-Protocol",
|
|
6936
6994
|
"in": "header"
|
|
6937
6995
|
}
|
|
@@ -7028,10 +7086,10 @@
|
|
|
7028
7086
|
{
|
|
7029
7087
|
"schema": {
|
|
7030
7088
|
"type": "string",
|
|
7031
|
-
"description": "The protocol version, `
|
|
7089
|
+
"description": "The protocol version, `18`"
|
|
7032
7090
|
},
|
|
7033
7091
|
"required": true,
|
|
7034
|
-
"description": "The protocol version, `
|
|
7092
|
+
"description": "The protocol version, `18`",
|
|
7035
7093
|
"name": "Nylorun-Protocol",
|
|
7036
7094
|
"in": "header"
|
|
7037
7095
|
}
|
package/dist/mcp/connect.d.ts
CHANGED
|
@@ -142,7 +142,7 @@ export declare class McpCallFailed extends Error {
|
|
|
142
142
|
*/
|
|
143
143
|
export declare class CredentialRejected extends McpCallFailed {
|
|
144
144
|
readonly server: string;
|
|
145
|
-
/** Whether a credential of the session's
|
|
145
|
+
/** Whether a credential of the session's Agent was sent. */
|
|
146
146
|
readonly sent: boolean;
|
|
147
147
|
/**
|
|
148
148
|
* The answer's `WWW-Authenticate`, which may name the server's protected-resource metadata
|
|
@@ -150,7 +150,7 @@ export declare class CredentialRejected extends McpCallFailed {
|
|
|
150
150
|
*/
|
|
151
151
|
readonly challenge?: string | undefined;
|
|
152
152
|
constructor(server: string,
|
|
153
|
-
/** Whether a credential of the session's
|
|
153
|
+
/** Whether a credential of the session's Agent was sent. */
|
|
154
154
|
sent: boolean,
|
|
155
155
|
/**
|
|
156
156
|
* The answer's `WWW-Authenticate`, which may name the server's protected-resource metadata
|
package/dist/mcp/connect.js
CHANGED
|
@@ -49,7 +49,7 @@ export class CredentialRejected extends McpCallFailed {
|
|
|
49
49
|
sent;
|
|
50
50
|
challenge;
|
|
51
51
|
constructor(server,
|
|
52
|
-
/** Whether a credential of the session's
|
|
52
|
+
/** Whether a credential of the session's Agent was sent. */
|
|
53
53
|
sent,
|
|
54
54
|
/**
|
|
55
55
|
* The answer's `WWW-Authenticate`, which may name the server's protected-resource metadata
|
|
@@ -59,8 +59,8 @@ export class CredentialRejected extends McpCallFailed {
|
|
|
59
59
|
super({
|
|
60
60
|
code: "credential_rejected",
|
|
61
61
|
message: sent
|
|
62
|
-
? `The MCP server '${server}' answered HTTP 401: it rejected the credential from the session's
|
|
63
|
-
: `The MCP server '${server}' answered HTTP 401: it needs a credential, and the session's
|
|
62
|
+
? `The MCP server '${server}' answered HTTP 401: it rejected the credential from the session's Agent`
|
|
63
|
+
: `The MCP server '${server}' answered HTTP 401: it needs a credential, and the session's Agent holds none for it`,
|
|
64
64
|
sent: true,
|
|
65
65
|
retryable: false,
|
|
66
66
|
server,
|
package/dist/model/pi-model.js
CHANGED
|
@@ -225,6 +225,13 @@ export function piModel(options = {}) {
|
|
|
225
225
|
// pi-ai initializes missing counters to zero; reporting provenance is unknown.
|
|
226
226
|
tokensReported: null,
|
|
227
227
|
costKnown: !selection.custom,
|
|
228
|
+
// The cost by token kind, at the catalog's prices: the usage ledger keeps it.
|
|
229
|
+
costSplit: {
|
|
230
|
+
input: response.usage.cost.input,
|
|
231
|
+
cacheRead: response.usage.cost.cacheRead,
|
|
232
|
+
cacheWrite: response.usage.cost.cacheWrite,
|
|
233
|
+
output: response.usage.cost.output,
|
|
234
|
+
},
|
|
228
235
|
producer: {
|
|
229
236
|
provider: selected.provider,
|
|
230
237
|
api: selected.api,
|