@camstack/addon-ai 0.4.25 → 0.4.26
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/dist/addon.js +87 -5
- package/dist/addon.mjs +87 -5
- package/package.json +1 -1
package/dist/addon.js
CHANGED
|
@@ -26412,17 +26412,60 @@ var SetSiteLocationInputSchema = object({
|
|
|
26412
26412
|
longitude: number$1().min(-180).max(180)
|
|
26413
26413
|
}).nullable();
|
|
26414
26414
|
/**
|
|
26415
|
-
*
|
|
26415
|
+
* The TRANSPORT a call arrived on.
|
|
26416
|
+
*
|
|
26417
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
26418
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
26419
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
26420
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
26421
|
+
* checkable rather than asserted.
|
|
26422
|
+
*
|
|
26423
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
26424
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
26425
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
26426
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
26427
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
26428
|
+
* never touches a socket and therefore never touched a census.
|
|
26429
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
26430
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
26431
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
26432
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
26433
|
+
*/
|
|
26434
|
+
var TransportPlaneSchema = _enum([
|
|
26435
|
+
"http",
|
|
26436
|
+
"ws",
|
|
26437
|
+
"mesh",
|
|
26438
|
+
"unknown"
|
|
26439
|
+
]);
|
|
26440
|
+
/**
|
|
26441
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
26442
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
26443
|
+
* make an operator wonder about.
|
|
26444
|
+
*/
|
|
26445
|
+
var TransportPlaneCountsSchema = object({
|
|
26446
|
+
http: number$1(),
|
|
26447
|
+
ws: number$1(),
|
|
26448
|
+
mesh: number$1(),
|
|
26449
|
+
unknown: number$1()
|
|
26450
|
+
});
|
|
26451
|
+
/**
|
|
26452
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
26416
26453
|
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26417
26454
|
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26418
26455
|
* already prints - never a token, never an `Authorization` header.
|
|
26456
|
+
*
|
|
26457
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
26458
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
26459
|
+
* stream look like a storm.
|
|
26419
26460
|
*/
|
|
26420
26461
|
var RequestCensusGroupSchema = object({
|
|
26462
|
+
plane: TransportPlaneSchema,
|
|
26421
26463
|
procedure: string(),
|
|
26422
26464
|
userAgent: string(),
|
|
26423
26465
|
ip: string(),
|
|
26424
26466
|
principal: string(),
|
|
26425
26467
|
calls: number$1(),
|
|
26468
|
+
subscriptions: number$1(),
|
|
26426
26469
|
perMin: number$1()
|
|
26427
26470
|
});
|
|
26428
26471
|
/**
|
|
@@ -26435,6 +26478,14 @@ var RequestCensusGroupSchema = object({
|
|
|
26435
26478
|
var RequestCensusProcedureSchema = object({
|
|
26436
26479
|
procedure: string(),
|
|
26437
26480
|
calls: number$1(),
|
|
26481
|
+
/**
|
|
26482
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
26483
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
26484
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
26485
|
+
*/
|
|
26486
|
+
planes: TransportPlaneCountsSchema,
|
|
26487
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
26488
|
+
subscriptions: number$1(),
|
|
26438
26489
|
perMin: number$1()
|
|
26439
26490
|
});
|
|
26440
26491
|
/**
|
|
@@ -26462,14 +26513,45 @@ var RequestCensusStatusSchema = object({
|
|
|
26462
26513
|
*/
|
|
26463
26514
|
procedureCalls: number$1(),
|
|
26464
26515
|
/**
|
|
26516
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
26517
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
26518
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
26519
|
+
*/
|
|
26520
|
+
planes: TransportPlaneCountsSchema,
|
|
26521
|
+
/**
|
|
26522
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
26523
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
26524
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
26525
|
+
*/
|
|
26526
|
+
planesExplainTotal: boolean(),
|
|
26527
|
+
/**
|
|
26465
26528
|
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26466
|
-
*
|
|
26467
|
-
*
|
|
26529
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
26530
|
+
* count of zero against 37 open connections says something different from a
|
|
26531
|
+
* plane with no connections at all.
|
|
26468
26532
|
*/
|
|
26469
26533
|
wsConnections: number$1(),
|
|
26534
|
+
/**
|
|
26535
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
26536
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
26537
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
26538
|
+
*/
|
|
26539
|
+
wsMessages: number$1(),
|
|
26540
|
+
/**
|
|
26541
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
26542
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
26543
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
26544
|
+
* masquerade as the storm.
|
|
26545
|
+
*/
|
|
26546
|
+
subscriptions: number$1(),
|
|
26547
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
26548
|
+
subscriptionStops: number$1(),
|
|
26470
26549
|
distinctGroups: number$1(),
|
|
26471
|
-
/**
|
|
26472
|
-
*
|
|
26550
|
+
/**
|
|
26551
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
26552
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
26553
|
+
* which transport they arrived on, they just lost their group row.
|
|
26554
|
+
*/
|
|
26473
26555
|
unattributedCalls: number$1(),
|
|
26474
26556
|
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26475
26557
|
groups: array(RequestCensusGroupSchema).readonly()
|
package/dist/addon.mjs
CHANGED
|
@@ -26438,17 +26438,60 @@ var SetSiteLocationInputSchema = object({
|
|
|
26438
26438
|
longitude: number$1().min(-180).max(180)
|
|
26439
26439
|
}).nullable();
|
|
26440
26440
|
/**
|
|
26441
|
-
*
|
|
26441
|
+
* The TRANSPORT a call arrived on.
|
|
26442
|
+
*
|
|
26443
|
+
* Every counted call carries exactly one of these, and `unknown` is a PLANE
|
|
26444
|
+
* rather than a gap: a plane that cannot attribute a call declares it here, so
|
|
26445
|
+
* the call lands in a named bucket instead of vanishing. `planes` summing to
|
|
26446
|
+
* `procedureCalls` is what makes "the sum of the planes explains the total"
|
|
26447
|
+
* checkable rather than asserted.
|
|
26448
|
+
*
|
|
26449
|
+
* - `http` — the Fastify tRPC plugin (`/trpc/*`), one context per request.
|
|
26450
|
+
* - `ws` — `applyWSSHandler`, counted per OPERATION rather than per
|
|
26451
|
+
* connection; the viewer talks to the hub over `wsLink`
|
|
26452
|
+
* exclusively, so this is the plane the HTTP census could not see.
|
|
26453
|
+
* - `mesh` — the in-process `$core-caps` bridge (`createCaller`), which
|
|
26454
|
+
* never touches a socket and therefore never touched a census.
|
|
26455
|
+
* - `unknown` — counted, plane undecidable. No hook produces it today, and
|
|
26456
|
+
* that is exactly what its `0` asserts: every plane the hub has can name
|
|
26457
|
+
* itself. It is an output bucket, never a knob — a call that arrives on a
|
|
26458
|
+
* plane nobody instrumented lands here instead of vanishing from the total.
|
|
26459
|
+
*/
|
|
26460
|
+
var TransportPlaneSchema = _enum([
|
|
26461
|
+
"http",
|
|
26462
|
+
"ws",
|
|
26463
|
+
"mesh",
|
|
26464
|
+
"unknown"
|
|
26465
|
+
]);
|
|
26466
|
+
/**
|
|
26467
|
+
* Calls per plane. Every key is always present, `0` included — an absent plane
|
|
26468
|
+
* reads as "not instrumented", which is the one thing this census must never
|
|
26469
|
+
* make an operator wonder about.
|
|
26470
|
+
*/
|
|
26471
|
+
var TransportPlaneCountsSchema = object({
|
|
26472
|
+
http: number$1(),
|
|
26473
|
+
ws: number$1(),
|
|
26474
|
+
mesh: number$1(),
|
|
26475
|
+
unknown: number$1()
|
|
26476
|
+
});
|
|
26477
|
+
/**
|
|
26478
|
+
* One `(plane, procedure, user-agent, ip, principal)` tuple of the transport
|
|
26442
26479
|
* census. `principal` is the DERIVED identity (`apocaliss92 (admin)`,
|
|
26443
26480
|
* `scoped:1a2b3c4d (scoped-token)`, `anonymous`) that the tRPC error log
|
|
26444
26481
|
* already prints - never a token, never an `Authorization` header.
|
|
26482
|
+
*
|
|
26483
|
+
* `subscriptions` is counted APART from `calls`: a subscription is opened once
|
|
26484
|
+
* and lives for hours, so folding it into a call count makes one long-lived
|
|
26485
|
+
* stream look like a storm.
|
|
26445
26486
|
*/
|
|
26446
26487
|
var RequestCensusGroupSchema = object({
|
|
26488
|
+
plane: TransportPlaneSchema,
|
|
26447
26489
|
procedure: string(),
|
|
26448
26490
|
userAgent: string(),
|
|
26449
26491
|
ip: string(),
|
|
26450
26492
|
principal: string(),
|
|
26451
26493
|
calls: number$1(),
|
|
26494
|
+
subscriptions: number$1(),
|
|
26452
26495
|
perMin: number$1()
|
|
26453
26496
|
});
|
|
26454
26497
|
/**
|
|
@@ -26461,6 +26504,14 @@ var RequestCensusGroupSchema = object({
|
|
|
26461
26504
|
var RequestCensusProcedureSchema = object({
|
|
26462
26505
|
procedure: string(),
|
|
26463
26506
|
calls: number$1(),
|
|
26507
|
+
/**
|
|
26508
|
+
* The same total, split by transport. THIS is the row that answers the
|
|
26509
|
+
* question the census exists for: one look at `deviceManager.listAll` says
|
|
26510
|
+
* which plane carried the 4 960, without joining two log lines by eye.
|
|
26511
|
+
*/
|
|
26512
|
+
planes: TransportPlaneCountsSchema,
|
|
26513
|
+
/** Subscription STARTS on this procedure. Never folded into `calls`. */
|
|
26514
|
+
subscriptions: number$1(),
|
|
26464
26515
|
perMin: number$1()
|
|
26465
26516
|
});
|
|
26466
26517
|
/**
|
|
@@ -26488,14 +26539,45 @@ var RequestCensusStatusSchema = object({
|
|
|
26488
26539
|
*/
|
|
26489
26540
|
procedureCalls: number$1(),
|
|
26490
26541
|
/**
|
|
26542
|
+
* `procedureCalls` split by transport. The four keys sum to
|
|
26543
|
+
* `procedureCalls` by construction - {@link RequestCensusSnapshotSchema}'s
|
|
26544
|
+
* `planesExplainTotal` is that identity, checked rather than assumed.
|
|
26545
|
+
*/
|
|
26546
|
+
planes: TransportPlaneCountsSchema,
|
|
26547
|
+
/**
|
|
26548
|
+
* True iff `planes` sums to `procedureCalls`. False means a call was counted
|
|
26549
|
+
* on no plane at all - which is a RESULT (a plane is missing from the
|
|
26550
|
+
* instrument), not a failure, and it has to be visible to be read as one.
|
|
26551
|
+
*/
|
|
26552
|
+
planesExplainTotal: boolean(),
|
|
26553
|
+
/**
|
|
26491
26554
|
* tRPC WebSocket connections opened during the window. NOT calls - the WS
|
|
26492
|
-
*
|
|
26493
|
-
*
|
|
26555
|
+
* adapter resolves one context per connection - kept because a plane's call
|
|
26556
|
+
* count of zero against 37 open connections says something different from a
|
|
26557
|
+
* plane with no connections at all.
|
|
26494
26558
|
*/
|
|
26495
26559
|
wsConnections: number$1(),
|
|
26560
|
+
/**
|
|
26561
|
+
* Client frames the WS plane looked at. `wsMessages` far above
|
|
26562
|
+
* `planes.ws + subscriptions` means most traffic is not operations
|
|
26563
|
+
* (keepalives, connection params) - which is itself an answer.
|
|
26564
|
+
*/
|
|
26565
|
+
wsMessages: number$1(),
|
|
26566
|
+
/**
|
|
26567
|
+
* Subscription STARTS across every plane, excluded from `procedureCalls` on
|
|
26568
|
+
* purpose: one live-events stream opened at boot and held for six hours is
|
|
26569
|
+
* one subscription, and counting it as a call would let a quiet plane
|
|
26570
|
+
* masquerade as the storm.
|
|
26571
|
+
*/
|
|
26572
|
+
subscriptions: number$1(),
|
|
26573
|
+
/** `subscription.stop` frames. Starts minus stops is what is still open. */
|
|
26574
|
+
subscriptionStops: number$1(),
|
|
26496
26575
|
distinctGroups: number$1(),
|
|
26497
|
-
/**
|
|
26498
|
-
*
|
|
26576
|
+
/**
|
|
26577
|
+
* Operations counted in the totals whose CALLER attribution was shed at the
|
|
26578
|
+
* cardinality bound. Unrelated to the `unknown` PLANE: these calls know
|
|
26579
|
+
* which transport they arrived on, they just lost their group row.
|
|
26580
|
+
*/
|
|
26499
26581
|
unattributedCalls: number$1(),
|
|
26500
26582
|
procedures: array(RequestCensusProcedureSchema).readonly(),
|
|
26501
26583
|
groups: array(RequestCensusGroupSchema).readonly()
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@camstack/addon-ai",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.26",
|
|
4
4
|
"description": "AI addon for CamStack — the `llm` collection provider (cloud, LAN, and camstack-managed local llama.cpp profiles) plus the per-node `llm-runtime` managed executor.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"camstack",
|