@mostra/protocol 0.6.2 → 0.7.0
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/bridge.d.ts +25 -0
- package/dist/bridge.d.ts.map +1 -1
- package/dist/bridge.js +32 -2
- package/dist/bridge.js.map +1 -1
- package/dist/browser.d.ts +76 -0
- package/dist/browser.d.ts.map +1 -1
- package/dist/browser.js +45 -2
- package/dist/browser.js.map +1 -1
- package/dist/diagnostics/codes/hygiene.d.ts +1 -1
- package/dist/diagnostics/codes/hygiene.d.ts.map +1 -1
- package/dist/diagnostics/codes/hygiene.js +12 -1
- package/dist/diagnostics/codes/hygiene.js.map +1 -1
- package/dist/diagnostics/codes/index.d.ts +3 -2
- package/dist/diagnostics/codes/index.d.ts.map +1 -1
- package/dist/diagnostics/codes/index.js +3 -1
- package/dist/diagnostics/codes/index.js.map +1 -1
- package/dist/diagnostics/codes/share.d.ts +8 -0
- package/dist/diagnostics/codes/share.d.ts.map +1 -0
- package/dist/diagnostics/codes/share.js +88 -0
- package/dist/diagnostics/codes/share.js.map +1 -0
- package/dist/hygiene.d.ts.map +1 -1
- package/dist/hygiene.js +2 -1
- package/dist/hygiene.js.map +1 -1
- package/dist/ids.d.ts +5 -1
- package/dist/ids.d.ts.map +1 -1
- package/dist/ids.js +3 -1
- package/dist/ids.js.map +1 -1
- package/dist/index.d.ts +10 -5
- package/dist/index.js +9 -4
- package/dist/methods/index.d.ts.map +1 -1
- package/dist/methods/index.js +9 -1
- package/dist/methods/index.js.map +1 -1
- package/dist/methods/instance/status.d.ts +24 -0
- package/dist/methods/instance/status.d.ts.map +1 -1
- package/dist/methods/instance/status.js +11 -2
- package/dist/methods/instance/status.js.map +1 -1
- package/dist/methods/port/addressing-external-base.d.ts +52 -0
- package/dist/methods/port/addressing-external-base.d.ts.map +1 -0
- package/dist/methods/port/addressing-external-base.js +61 -0
- package/dist/methods/port/addressing-external-base.js.map +1 -0
- package/dist/methods/share/list.d.ts +23 -0
- package/dist/methods/share/list.d.ts.map +1 -0
- package/dist/methods/share/list.js +29 -0
- package/dist/methods/share/list.js.map +1 -0
- package/dist/methods/share/start.d.ts +96 -0
- package/dist/methods/share/start.d.ts.map +1 -0
- package/dist/methods/share/start.js +73 -0
- package/dist/methods/share/start.js.map +1 -0
- package/dist/methods/share/stop.d.ts +29 -0
- package/dist/methods/share/stop.d.ts.map +1 -0
- package/dist/methods/share/stop.js +32 -0
- package/dist/methods/share/stop.js.map +1 -0
- package/package.json +2 -2
- package/schemas/protocol.draft-07.json +535 -0
- package/schemas/protocol.schema.json +507 -0
- package/src/bridge.ts +49 -0
- package/src/browser.ts +118 -0
- package/src/diagnostics/codes/hygiene.ts +12 -0
- package/src/diagnostics/codes/index.ts +6 -2
- package/src/diagnostics/codes/share.ts +100 -0
- package/src/hygiene.ts +1 -0
- package/src/ids.ts +9 -1
- package/src/index.ts +39 -0
- package/src/methods/index.ts +8 -0
- package/src/methods/instance/status.ts +38 -0
- package/src/methods/port/addressing-external-base.ts +113 -0
- package/src/methods/share/list.ts +42 -0
- package/src/methods/share/start.ts +150 -0
- package/src/methods/share/stop.ts +50 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { wireRegistry } from "../../wire-registry.js";
|
|
2
|
+
import { ArtifactId, ShareId, TokenId } from "../../ids.js";
|
|
3
|
+
import { ArtifactRef } from "../../artifact.js";
|
|
4
|
+
import { ViewerSpec } from "../../interaction.js";
|
|
5
|
+
import { CapabilityScope, Duration } from "../../capability.js";
|
|
6
|
+
import { defineMethod } from "../../method.js";
|
|
7
|
+
import * as z from "zod";
|
|
8
|
+
//#region src/methods/share/start.ts
|
|
9
|
+
/** The Zod schema of the `ShareVia` type. */
|
|
10
|
+
const ShareVia = z.enum([
|
|
11
|
+
"tailnet",
|
|
12
|
+
"funnel",
|
|
13
|
+
"cloudflare"
|
|
14
|
+
]).register(wireRegistry, {
|
|
15
|
+
id: "ShareVia",
|
|
16
|
+
description: "How a share reaches its viewers: tailnet, funnel or cloudflare."
|
|
17
|
+
});
|
|
18
|
+
/** The longest a public share (Funnel or Cloudflare) may last: 7 days (D158). */
|
|
19
|
+
const PUBLIC_SHARE_MAX_TTL_MS = 6048e5;
|
|
20
|
+
/** How long a public share lasts when its `ttl` isn't given: 1 hour (D63 item 5, D158). */
|
|
21
|
+
const PUBLIC_SHARE_DEFAULT_TTL = "1h";
|
|
22
|
+
const shareShape = {
|
|
23
|
+
shareId: ShareId.schema,
|
|
24
|
+
artifactId: ArtifactId.schema,
|
|
25
|
+
via: ShareVia,
|
|
26
|
+
url: z.string().min(1).exactOptional(),
|
|
27
|
+
hostname: z.string().min(1),
|
|
28
|
+
artifactOrigin: z.string().min(1).exactOptional(),
|
|
29
|
+
mode: z.enum(["cookie", "worker"]),
|
|
30
|
+
tokenId: TokenId.schema,
|
|
31
|
+
startedAt: z.iso.datetime(),
|
|
32
|
+
expiresAt: z.iso.datetime().exactOptional(),
|
|
33
|
+
state: z.enum(["active", "stopped"]),
|
|
34
|
+
stoppedAt: z.iso.datetime().exactOptional(),
|
|
35
|
+
stopReason: z.string().min(1).exactOptional()
|
|
36
|
+
};
|
|
37
|
+
/** The Zod schema of the `Share` type. */
|
|
38
|
+
const Share = z.object(shareShape).register(wireRegistry, {
|
|
39
|
+
id: "Share",
|
|
40
|
+
description: "A share: its tunnel, link, address, frame mode and lifetime."
|
|
41
|
+
});
|
|
42
|
+
const params = z.object({
|
|
43
|
+
artifact: ArtifactRef,
|
|
44
|
+
via: ShareVia,
|
|
45
|
+
ttl: Duration.exactOptional(),
|
|
46
|
+
scopes: z.array(CapabilityScope).min(1).readonly().exactOptional(),
|
|
47
|
+
viewer: ViewerSpec.exactOptional(),
|
|
48
|
+
requestId: z.string().min(1).exactOptional()
|
|
49
|
+
}).register(wireRegistry, { id: "ShareStartParams" });
|
|
50
|
+
const result = z.object({
|
|
51
|
+
...shareShape,
|
|
52
|
+
url: z.string().min(1)
|
|
53
|
+
}).register(wireRegistry, {
|
|
54
|
+
id: "ShareStartResult",
|
|
55
|
+
description: "The share that started, with its capability URL."
|
|
56
|
+
});
|
|
57
|
+
/**
|
|
58
|
+
* `share/start`: shares an artifact through a tunnel the instance drives (D158): Tailscale Serve
|
|
59
|
+
* for the tailnet, or Tailscale Funnel or a Cloudflare quick tunnel for anyone with the link. It
|
|
60
|
+
* answers once the tunnel serves, with a new link at the tunnel's address that works there only.
|
|
61
|
+
* A missing or unready tool is a `MOSTRA_SHARE_*` diagnostic saying what to do.
|
|
62
|
+
*/
|
|
63
|
+
const shareStartMethod = defineMethod({
|
|
64
|
+
method: "share/start",
|
|
65
|
+
direction: "client-to-instance",
|
|
66
|
+
mutating: true,
|
|
67
|
+
params,
|
|
68
|
+
result
|
|
69
|
+
});
|
|
70
|
+
//#endregion
|
|
71
|
+
export { PUBLIC_SHARE_DEFAULT_TTL, PUBLIC_SHARE_MAX_TTL_MS, Share, ShareVia, shareStartMethod };
|
|
72
|
+
|
|
73
|
+
//# sourceMappingURL=start.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"start.js","names":[],"sources":["../../../src/methods/share/start.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { ArtifactRef } from \"../../artifact.ts\";\nimport { CapabilityScope, Duration } from \"../../capability.ts\";\nimport { ArtifactId, ShareId, TokenId } from \"../../ids.ts\";\nimport { ViewerSpec } from \"../../interaction.ts\";\nimport { defineMethod, type MethodDefinition } from \"../../method.ts\";\nimport { wireRegistry } from \"../../wire-registry.ts\";\n\n/**\n * How a share reaches its viewers (D158): `tailnet` through Tailscale Serve, to the people of the\n * user's tailnet, who are known by name; `funnel` through Tailscale Funnel and `cloudflare`\n * through a Cloudflare quick tunnel, both public, where the link is all that admits a viewer.\n */\nexport type ShareVia = \"tailnet\" | \"funnel\" | \"cloudflare\";\n\n/** The Zod schema of the `ShareVia` type. */\nexport const ShareVia: z.ZodType<ShareVia> = z\n .enum([\"tailnet\", \"funnel\", \"cloudflare\"])\n .register(wireRegistry, {\n id: \"ShareVia\",\n description: \"How a share reaches its viewers: tailnet, funnel or cloudflare.\",\n });\n\n/** The longest a public share (Funnel or Cloudflare) may last: 7 days (D158). */\nexport const PUBLIC_SHARE_MAX_TTL_MS: number = 7 * 24 * 60 * 60 * 1000;\n\n/** How long a public share lasts when its `ttl` isn't given: 1 hour (D63 item 5, D158). */\nexport const PUBLIC_SHARE_DEFAULT_TTL: Duration = \"1h\";\n\n/** The params of `share/start` (INTERFACES §6, D158). */\nexport interface ShareStartParams {\n /** The artifact to share; the link opens its latest version. */\n readonly artifact: ArtifactRef;\n /** The tunnel. A public one (`funnel`, `cloudflare`) is explicit: never a fallback. */\n readonly via: ShareVia;\n /**\n * How long the share and its link last, such as `30m` or `24h`. Public shares: 1 hour by\n * default, at most 7 days. Tailnet shares: until stopped, unless given.\n */\n readonly ttl?: Duration;\n /** What the share's link allows (D97). Default: every scope. */\n readonly scopes?: readonly CapabilityScope[];\n /**\n * The person the share's link acts for (D104). Absent: whoever the tailnet or a host's identity\n * port names, else the link's own viewer, never the home's local user (D158).\n */\n readonly viewer?: ViewerSpec;\n /** Makes retries idempotent: a repeated `requestId` returns the same share (H-03). */\n readonly requestId?: string;\n}\n\n/** A share, as `share/start` and `share/list` report it. */\nexport interface Share {\n /** The share's ID, for `share/stop`. */\n readonly shareId: string;\n /** The artifact shared. */\n readonly artifactId: string;\n /** The tunnel. */\n readonly via: ShareVia;\n /**\n * The share's capability URL, at the tunnel's address. Holding it is the authorization (D06);\n * absent once the share ended, and in `share/list` when the home's key can no longer show it.\n */\n readonly url?: string;\n /** The tunnel's host name: the tailnet device's, or the quick tunnel's random one. */\n readonly hostname: string;\n /**\n * The address the artifact's frame is served at over the tunnel, while the share is active:\n * on a tailnet, the second port of this device that viewers must be allowed to reach.\n */\n readonly artifactOrigin?: string;\n /**\n * How the artifact's frame authenticates over this tunnel (D70): `cookie` where the shell and\n * the artifact are one site (Tailscale), `worker` where they are two (Cloudflare).\n */\n readonly mode: \"cookie\" | \"worker\";\n /** The share's link, for `view/rotate` and `view/revoke`. */\n readonly tokenId: string;\n /** When the share started (RFC 3339, UTC). */\n readonly startedAt: string;\n /** When the share and its link end, if they do. */\n readonly expiresAt?: string;\n /** `active` while it serves; `stopped` once it ended. */\n readonly state: \"active\" | \"stopped\";\n /** When it ended. */\n readonly stoppedAt?: string;\n /**\n * Why it ended: `stopped` (`share/stop`), `expired` (its TTL), `tunnel` (its tunnel ended and\n * couldn't be set up again), `restart` (a quick tunnel can't outlive its instance), or\n * `revoked` (its link was revoked).\n */\n readonly stopReason?: \"stopped\" | \"expired\" | \"tunnel\" | \"restart\" | \"revoked\" | (string & {});\n}\n\nconst shareShape = {\n shareId: ShareId.schema,\n artifactId: ArtifactId.schema,\n via: ShareVia,\n url: z.string().min(1).exactOptional(),\n hostname: z.string().min(1),\n artifactOrigin: z.string().min(1).exactOptional(),\n mode: z.enum([\"cookie\", \"worker\"]),\n tokenId: TokenId.schema,\n startedAt: z.iso.datetime(),\n expiresAt: z.iso.datetime().exactOptional(),\n state: z.enum([\"active\", \"stopped\"]),\n stoppedAt: z.iso.datetime().exactOptional(),\n stopReason: z.string().min(1).exactOptional(),\n};\n\n/** The Zod schema of the `Share` type. */\nexport const Share: z.ZodType<Share> = z.object(shareShape).register(wireRegistry, {\n id: \"Share\",\n description: \"A share: its tunnel, link, address, frame mode and lifetime.\",\n});\n\n/** The result of `share/start`: the share, with its link. */\nexport type ShareStartResult = Share & { readonly url: string };\n\nconst params: z.ZodType<ShareStartParams> = z\n .object({\n artifact: ArtifactRef,\n via: ShareVia,\n ttl: Duration.exactOptional(),\n scopes: z.array(CapabilityScope).min(1).readonly().exactOptional(),\n viewer: ViewerSpec.exactOptional(),\n requestId: z.string().min(1).exactOptional(),\n })\n .register(wireRegistry, { id: \"ShareStartParams\" });\n\nconst result: z.ZodType<ShareStartResult> = z\n .object({ ...shareShape, url: z.string().min(1) })\n .register(wireRegistry, {\n id: \"ShareStartResult\",\n description: \"The share that started, with its capability URL.\",\n });\n\n/**\n * `share/start`: shares an artifact through a tunnel the instance drives (D158): Tailscale Serve\n * for the tailnet, or Tailscale Funnel or a Cloudflare quick tunnel for anyone with the link. It\n * answers once the tunnel serves, with a new link at the tunnel's address that works there only.\n * A missing or unready tool is a `MOSTRA_SHARE_*` diagnostic saying what to do.\n */\nexport const shareStartMethod: MethodDefinition<ShareStartParams, ShareStartResult> = defineMethod({\n method: \"share/start\",\n direction: \"client-to-instance\",\n mutating: true,\n params,\n result,\n});\n"],"mappings":";;;;;;;;;AAgBA,MAAa,WAAgC,EAC1C,KAAK;CAAC;CAAW;CAAU;AAAY,CAAC,CAAC,CACzC,SAAS,cAAc;CACtB,IAAI;CACJ,aAAa;AACf,CAAC;;AAGH,MAAa,0BAAkC;;AAG/C,MAAa,2BAAqC;AAmElD,MAAM,aAAa;CACjB,SAAS,QAAQ;CACjB,YAAY,WAAW;CACvB,KAAK;CACL,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc;CACrC,UAAU,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;CAC1B,gBAAgB,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc;CAChD,MAAM,EAAE,KAAK,CAAC,UAAU,QAAQ,CAAC;CACjC,SAAS,QAAQ;CACjB,WAAW,EAAE,IAAI,SAAS;CAC1B,WAAW,EAAE,IAAI,SAAS,CAAC,CAAC,cAAc;CAC1C,OAAO,EAAE,KAAK,CAAC,UAAU,SAAS,CAAC;CACnC,WAAW,EAAE,IAAI,SAAS,CAAC,CAAC,cAAc;CAC1C,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc;AAC9C;;AAGA,MAAa,QAA0B,EAAE,OAAO,UAAU,CAAC,CAAC,SAAS,cAAc;CACjF,IAAI;CACJ,aAAa;AACf,CAAC;AAKD,MAAM,SAAsC,EACzC,OAAO;CACN,UAAU;CACV,KAAK;CACL,KAAK,SAAS,cAAc;CAC5B,QAAQ,EAAE,MAAM,eAAe,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,cAAc;CACjE,QAAQ,WAAW,cAAc;CACjC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc;AAC7C,CAAC,CAAC,CACD,SAAS,cAAc,EAAE,IAAI,mBAAmB,CAAC;AAEpD,MAAM,SAAsC,EACzC,OAAO;CAAE,GAAG;CAAY,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC;AAAE,CAAC,CAAC,CACjD,SAAS,cAAc;CACtB,IAAI;CACJ,aAAa;AACf,CAAC;;;;;;;AAQH,MAAa,mBAAyE,aAAa;CACjG,QAAQ;CACR,WAAW;CACX,UAAU;CACV;CACA;AACF,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { ArtifactRef } from "../../artifact.js";
|
|
2
|
+
import { MethodDefinition } from "../../method.js";
|
|
3
|
+
import { Share } from "./start.js";
|
|
4
|
+
//#region src/methods/share/stop.d.ts
|
|
5
|
+
/**
|
|
6
|
+
* The params of `share/stop` (INTERFACES §6, D158): one share, or every active share of an
|
|
7
|
+
* artifact. Exactly one of the two is named; naming both or neither is `MOSTRA_HOST_INVALID_PARAMS`.
|
|
8
|
+
*/
|
|
9
|
+
export interface ShareStopParams {
|
|
10
|
+
/** The share to stop. */
|
|
11
|
+
readonly shareId?: string;
|
|
12
|
+
/** Stops every active share of this artifact instead. */
|
|
13
|
+
readonly artifact?: ArtifactRef;
|
|
14
|
+
/** Makes retries idempotent: stopping is idempotent by itself, so a retry changes nothing. */
|
|
15
|
+
readonly requestId?: string;
|
|
16
|
+
}
|
|
17
|
+
/** The result of `share/stop`: the shares it ended (none when they had ended already). */
|
|
18
|
+
export interface ShareStopResult {
|
|
19
|
+
/** The shares this call ended. */
|
|
20
|
+
readonly stopped: readonly Share[];
|
|
21
|
+
}
|
|
22
|
+
/**
|
|
23
|
+
* `share/stop`: ends a share, or every active share of an artifact (D158): its link is revoked, so
|
|
24
|
+
* every session it gave answers 410, and its tunnel stops. Stopping a share that already ended
|
|
25
|
+
* succeeds and stops nothing; an unknown share is `MOSTRA_SHARE_NOT_FOUND`.
|
|
26
|
+
*/
|
|
27
|
+
export declare const shareStopMethod: MethodDefinition<ShareStopParams, ShareStopResult>;
|
|
28
|
+
//#endregion
|
|
29
|
+
//# sourceMappingURL=stop.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop.d.ts","names":[],"sources":["../../../src/methods/share/stop.ts"],"mappings":";;;;;;;;iBAWiB;;WAEN;;WAEA,WAAW;;WAEX;;;iBAIM;;WAEN,kBAAkB;;;;;;;qBAoBhB,iBAAiB,iBAAiB,iBAAiB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { wireRegistry } from "../../wire-registry.js";
|
|
2
|
+
import { ShareId } from "../../ids.js";
|
|
3
|
+
import { ArtifactRef } from "../../artifact.js";
|
|
4
|
+
import { defineMethod } from "../../method.js";
|
|
5
|
+
import { Share } from "./start.js";
|
|
6
|
+
import * as z from "zod";
|
|
7
|
+
//#region src/methods/share/stop.ts
|
|
8
|
+
const params = z.object({
|
|
9
|
+
shareId: ShareId.schema.exactOptional(),
|
|
10
|
+
artifact: ArtifactRef.exactOptional(),
|
|
11
|
+
requestId: z.string().min(1).exactOptional()
|
|
12
|
+
}).register(wireRegistry, { id: "ShareStopParams" });
|
|
13
|
+
const result = z.object({ stopped: z.array(Share).readonly() }).register(wireRegistry, {
|
|
14
|
+
id: "ShareStopResult",
|
|
15
|
+
description: "The shares that ended."
|
|
16
|
+
});
|
|
17
|
+
/**
|
|
18
|
+
* `share/stop`: ends a share, or every active share of an artifact (D158): its link is revoked, so
|
|
19
|
+
* every session it gave answers 410, and its tunnel stops. Stopping a share that already ended
|
|
20
|
+
* succeeds and stops nothing; an unknown share is `MOSTRA_SHARE_NOT_FOUND`.
|
|
21
|
+
*/
|
|
22
|
+
const shareStopMethod = defineMethod({
|
|
23
|
+
method: "share/stop",
|
|
24
|
+
direction: "client-to-instance",
|
|
25
|
+
mutating: true,
|
|
26
|
+
params,
|
|
27
|
+
result
|
|
28
|
+
});
|
|
29
|
+
//#endregion
|
|
30
|
+
export { shareStopMethod };
|
|
31
|
+
|
|
32
|
+
//# sourceMappingURL=stop.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stop.js","names":[],"sources":["../../../src/methods/share/stop.ts"],"sourcesContent":["import * as z from \"zod\";\nimport { ArtifactRef } from \"../../artifact.ts\";\nimport { ShareId } from \"../../ids.ts\";\nimport { defineMethod, type MethodDefinition } from \"../../method.ts\";\nimport { wireRegistry } from \"../../wire-registry.ts\";\nimport { Share } from \"./start.ts\";\n\n/**\n * The params of `share/stop` (INTERFACES §6, D158): one share, or every active share of an\n * artifact. Exactly one of the two is named; naming both or neither is `MOSTRA_HOST_INVALID_PARAMS`.\n */\nexport interface ShareStopParams {\n /** The share to stop. */\n readonly shareId?: string;\n /** Stops every active share of this artifact instead. */\n readonly artifact?: ArtifactRef;\n /** Makes retries idempotent: stopping is idempotent by itself, so a retry changes nothing. */\n readonly requestId?: string;\n}\n\n/** The result of `share/stop`: the shares it ended (none when they had ended already). */\nexport interface ShareStopResult {\n /** The shares this call ended. */\n readonly stopped: readonly Share[];\n}\n\nconst params: z.ZodType<ShareStopParams> = z\n .object({\n shareId: ShareId.schema.exactOptional(),\n artifact: ArtifactRef.exactOptional(),\n requestId: z.string().min(1).exactOptional(),\n })\n .register(wireRegistry, { id: \"ShareStopParams\" });\n\nconst result: z.ZodType<ShareStopResult> = z\n .object({ stopped: z.array(Share).readonly() })\n .register(wireRegistry, { id: \"ShareStopResult\", description: \"The shares that ended.\" });\n\n/**\n * `share/stop`: ends a share, or every active share of an artifact (D158): its link is revoked, so\n * every session it gave answers 410, and its tunnel stops. Stopping a share that already ended\n * succeeds and stops nothing; an unknown share is `MOSTRA_SHARE_NOT_FOUND`.\n */\nexport const shareStopMethod: MethodDefinition<ShareStopParams, ShareStopResult> = defineMethod({\n method: \"share/stop\",\n direction: \"client-to-instance\",\n mutating: true,\n params,\n result,\n});\n"],"mappings":";;;;;;;AA0BA,MAAM,SAAqC,EACxC,OAAO;CACN,SAAS,QAAQ,OAAO,cAAc;CACtC,UAAU,YAAY,cAAc;CACpC,WAAW,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,cAAc;AAC7C,CAAC,CAAC,CACD,SAAS,cAAc,EAAE,IAAI,kBAAkB,CAAC;AAEnD,MAAM,SAAqC,EACxC,OAAO,EAAE,SAAS,EAAE,MAAM,KAAK,CAAC,CAAC,SAAS,EAAE,CAAC,CAAC,CAC9C,SAAS,cAAc;CAAE,IAAI;CAAmB,aAAa;AAAyB,CAAC;;;;;;AAO1F,MAAa,kBAAsE,aAAa;CAC9F,QAAQ;CACR,WAAW;CACX,UAAU;CACV;CACA;AACF,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mostra/protocol",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.7.0",
|
|
4
4
|
"description": "Mostra's shared protocol vocabulary: IDs, dated revisions and diagnostics, with Zod schemas and generated JSON Schema.",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"author": "The Mostra Authors",
|
|
@@ -66,7 +66,7 @@
|
|
|
66
66
|
"ignore": [
|
|
67
67
|
"zod"
|
|
68
68
|
],
|
|
69
|
-
"limit": "
|
|
69
|
+
"limit": "52 kB"
|
|
70
70
|
},
|
|
71
71
|
{
|
|
72
72
|
"name": "@mostra/protocol JSON-RPC core (D83, zod excluded)",
|