@isoloop/protocol 0.1.0-next.5 → 0.1.0-next.7
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/index.d.ts +6 -1
- package/dist/index.js +2 -0
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare function envelopeGuard<E extends AnyEnvelope>(types: MessageTypes
|
|
|
44
44
|
/** Exhaustiveness check for switches over message unions. */
|
|
45
45
|
export declare function assertNever(x: never, message?: string): never;
|
|
46
46
|
/** Every error code on the wire (design §3, §4.7, §6.1, §6.3; ADRs 0002, 0003, 0007, 0008). */
|
|
47
|
-
export declare const ERROR_CODES: readonly ["protocol_mismatch", "timeout", "no_surface", "forbidden", "not_found", "unsupported", "cross_origin", "routing_disabled", "navigate_failed", "unknown_topic", "too_large", "invalid", "not_encodable", "quota_exceeded", "bus_unavailable", "not_requestable", "already_replied", "reply_invalid", "aborted", "no_responder", "contracts_failed", "contracts_invalid", "contracts_mismatch", "reserved_topic", "seed_async", "seed_pending"];
|
|
47
|
+
export declare const ERROR_CODES: readonly ["protocol_mismatch", "timeout", "no_surface", "forbidden", "not_found", "unsupported", "cross_origin", "routing_disabled", "navigate_failed", "unknown_topic", "too_large", "invalid", "not_encodable", "quota_exceeded", "bus_unavailable", "not_requestable", "already_replied", "reply_invalid", "aborted", "no_responder", "dropped", "contracts_failed", "contracts_invalid", "contracts_mismatch", "reserved_topic", "seed_async", "seed_pending"];
|
|
48
48
|
export type ErrorCode = (typeof ERROR_CODES)[number];
|
|
49
49
|
export declare function isErrorCode(x: unknown): x is ErrorCode;
|
|
50
50
|
/** A schema issue, as reported with `invalid` (design §6.3). */
|
|
@@ -968,6 +968,11 @@ export type DevMcpOp = {
|
|
|
968
968
|
readonly op: "records";
|
|
969
969
|
readonly topic: string;
|
|
970
970
|
readonly last: number;
|
|
971
|
+
} | {
|
|
972
|
+
readonly op: "tap";
|
|
973
|
+
readonly topics: readonly string[];
|
|
974
|
+
readonly ms: number;
|
|
975
|
+
readonly max: number;
|
|
971
976
|
} | {
|
|
972
977
|
readonly op: "events";
|
|
973
978
|
readonly last: number;
|
package/dist/index.js
CHANGED
|
@@ -50,6 +50,7 @@ const ERROR_CODES = [
|
|
|
50
50
|
"reply_invalid",
|
|
51
51
|
"aborted",
|
|
52
52
|
"no_responder",
|
|
53
|
+
"dropped",
|
|
53
54
|
"contracts_failed",
|
|
54
55
|
"contracts_invalid",
|
|
55
56
|
"contracts_mismatch",
|
|
@@ -537,6 +538,7 @@ const DEV_MCP_OPS = [
|
|
|
537
538
|
"isolates",
|
|
538
539
|
"topics",
|
|
539
540
|
"records",
|
|
541
|
+
"tap",
|
|
540
542
|
"events",
|
|
541
543
|
"restart",
|
|
542
544
|
"kill",
|