@frequencytalk/agent 0.2.2 → 0.2.3
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/cli.js +28 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.js +28 -1
- package/dist/index.js.map +1 -1
- package/dist/mcp/server.js +28 -1
- package/dist/mcp/server.js.map +1 -1
- package/package.json +1 -1
- package/server.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -3942,7 +3942,12 @@ var MediaServerToClientSchema = z11.discriminatedUnion("type", [
|
|
|
3942
3942
|
// fleet upgrade: a running container keeps its image until it is recycled. A sender
|
|
3943
3943
|
// uses wire v2 only when 2 is listed. ABSENT means [1] (a container from before 0.107.0),
|
|
3944
3944
|
// which is why the field is optional: its absence is the signal, not a missing value.
|
|
3945
|
-
wireVersions: z11.array(z11.number().int().positive()).optional()
|
|
3945
|
+
wireVersions: z11.array(z11.number().int().positive()).optional(),
|
|
3946
|
+
// This container's datapath answers link-probe control packets (nativeTransport.ts,
|
|
3947
|
+
// LINK_PROBE; contract §19 "The link meter"). Negotiated for the same reason as
|
|
3948
|
+
// wireVersions: a container that does not know the packet drops it on shape, silently,
|
|
3949
|
+
// and a client that probed anyway would read that silence as a dead link. Absent means no.
|
|
3950
|
+
linkProbe: z11.boolean().optional()
|
|
3946
3951
|
}).optional()
|
|
3947
3952
|
}),
|
|
3948
3953
|
z11.object({ type: z11.literal("authError"), message: z11.string() }),
|
|
@@ -4362,6 +4367,19 @@ var ERROR_CODES = {
|
|
|
4362
4367
|
},
|
|
4363
4368
|
// --- Missing resources --------------------------------------------------------------
|
|
4364
4369
|
NOT_FOUND: { status: 404, summary: "The addressed resource does not exist, or is not visible to this caller." },
|
|
4370
|
+
// --- Internal: where media runs (admin console only; docs/work-orders/cost-controls.md) ---
|
|
4371
|
+
HOST_ADMIN_REFUSED: {
|
|
4372
|
+
status: 409,
|
|
4373
|
+
summary: "A provider or media-host change was refused: a disabled provider, one with no active host, a host with live containers, or an on-demand host (provisioner/hostAdmin.ts). The message says which."
|
|
4374
|
+
},
|
|
4375
|
+
SWING_REFUSED: {
|
|
4376
|
+
status: 409,
|
|
4377
|
+
summary: "A live frequency could not be moved to another media host: no running container, a swing already in progress, no other active host, or the new container did not come up (provisioner/swing.ts). The message says which."
|
|
4378
|
+
},
|
|
4379
|
+
STANDBY_REFUSED: {
|
|
4380
|
+
status: 409,
|
|
4381
|
+
summary: "An on-demand standby media host could not be started or stopped in its current state (provisioner/standby.ts). The message says why."
|
|
4382
|
+
},
|
|
4365
4383
|
USER_NOT_FOUND: { status: 404, summary: "No user matches the supplied handle, Station ID or email." },
|
|
4366
4384
|
INVITE_INVALID: { status: 404, summary: "The invite or invite link is unknown, expired, revoked, or fully used." },
|
|
4367
4385
|
NO_BILLING_ACCOUNT: { status: 404, summary: "No billing account exists for this organization yet." },
|
|
@@ -4867,6 +4885,10 @@ var KNOWN_SHARD_FLAGS = VIDEO_SHARD_FLAG.keyframe | VIDEO_SHARD_FLAG.recoveryPoi
|
|
|
4867
4885
|
// ../shared/dist/share/assembler.js
|
|
4868
4886
|
var MAX_FORWARD_JUMP = 1 << 16;
|
|
4869
4887
|
|
|
4888
|
+
// ../shared/dist/share/linkProbe.js
|
|
4889
|
+
var LINK_PROBE_PAD_DATAGRAM_BYTES = SHARE_WEBTRANSPORT_DATAGRAM_MAX_BYTES;
|
|
4890
|
+
var PAD_PAYLOAD_BYTES = LINK_PROBE_PAD_DATAGRAM_BYTES - HEADER.LENGTH;
|
|
4891
|
+
|
|
4870
4892
|
// ../shared/dist/share/rateControl.js
|
|
4871
4893
|
var MOTION_RUNGS = [2160, 1440, 1080, 900, 720, 540];
|
|
4872
4894
|
var FRAME_BYTES_TARGET = Math.floor(MAX_FRAME_BYTES * 0.75);
|
|
@@ -5356,6 +5378,7 @@ var NativeSession = class {
|
|
|
5356
5378
|
}
|
|
5357
5379
|
/** One 20 ms Opus frame onto the stream: sealed under the home channel, and each relay, as the contract requires. */
|
|
5358
5380
|
sendOpusFrame(opus, relayChannelIds = []) {
|
|
5381
|
+
if (this.closedWith) throw new Error(`native: signalling closed (${this.closedWith.code} ${this.closedWith.reason}) while talking; close() and open() again`);
|
|
5359
5382
|
if (!this.producing) throw new Error("native: not talking; call startTalking first");
|
|
5360
5383
|
const payload = audioPayload(this.producing.streamId, this.timestamp, opus);
|
|
5361
5384
|
this.timestamp = this.timestamp + 960 >>> 0;
|
|
@@ -5363,6 +5386,10 @@ var NativeSession = class {
|
|
|
5363
5386
|
}
|
|
5364
5387
|
stopTalking() {
|
|
5365
5388
|
if (!this.producing) return;
|
|
5389
|
+
if (this.closedWith) {
|
|
5390
|
+
this.producing = null;
|
|
5391
|
+
return;
|
|
5392
|
+
}
|
|
5366
5393
|
this.send({ type: "closeNativeStream", streamId: this.producing.streamId });
|
|
5367
5394
|
this.producing = null;
|
|
5368
5395
|
}
|