@joe-broadhead/messaging 0.8.0 → 0.9.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/CHANGELOG.md +150 -0
- package/dist/bin/messaging-mcp.js +202 -31
- package/dist/bin/messaging-relay.js +291 -43
- package/dist/bin/messaging.js +290 -32
- package/dist/bin/messagingd.js +1158 -138
- package/dist/lib/modules/core/agent/present.js +5 -0
- package/dist/lib/modules/core/agent-tools.js +12 -0
- package/dist/lib/modules/core/consent.js +54 -14
- package/dist/lib/modules/core/contact-card.js +3 -3
- package/dist/lib/modules/core/index.js +1 -1
- package/dist/lib/modules/core/jelly-host.js +3 -0
- package/dist/lib/modules/core/schema/common.js +2 -0
- package/dist/lib/modules/core/schema/consent.js +20 -3
- package/dist/lib/modules/core/schema/conv-frames.js +10 -3
- package/dist/lib/modules/core/schema/directory-frames.js +8 -3
- package/dist/lib/modules/core/schema/errors.js +3 -2
- package/dist/lib/modules/core/schema/ipc/consent.js +85 -10
- package/dist/lib/modules/core/schema/ipc/conversation-views.js +8 -1
- package/dist/lib/modules/core/schema/ipc/conversations.js +5 -1
- package/dist/lib/modules/core/schema/ipc/device.js +7 -0
- package/dist/lib/modules/core/schema/ipc/jelly.js +14 -7
- package/dist/lib/modules/core/schema/ipc/shapes.js +60 -1
- package/dist/lib/modules/core/schema/ipc.js +51 -3
- package/dist/lib/modules/core/version.js +1 -1
- package/dist/spec/messaging-v1.md +321 -49
- package/dist/types/core/agent/present.d.ts +1 -1
- package/dist/types/core/agent-tools.d.ts +32 -0
- package/dist/types/core/consent.d.ts +30 -7
- package/dist/types/core/contact-card.d.ts +3 -3
- package/dist/types/core/conversation-agent-tools.d.ts +21 -0
- package/dist/types/core/index.d.ts +1 -1
- package/dist/types/core/schema/common.d.ts +2 -0
- package/dist/types/core/schema/consent.d.ts +23 -2
- package/dist/types/core/schema/conv-frames.d.ts +6 -2
- package/dist/types/core/schema/directory-frames.d.ts +8 -3
- package/dist/types/core/schema/envelope.d.ts +2 -0
- package/dist/types/core/schema/errors.d.ts +2 -0
- package/dist/types/core/schema/ipc/consent.d.ts +377 -15
- package/dist/types/core/schema/ipc/conversation-views.d.ts +176 -0
- package/dist/types/core/schema/ipc/conversations.d.ts +368 -0
- package/dist/types/core/schema/ipc/device.d.ts +6 -0
- package/dist/types/core/schema/ipc/jelly.d.ts +14 -6
- package/dist/types/core/schema/ipc/shapes.d.ts +198 -0
- package/dist/types/core/schema/ipc/surfaces.d.ts +1 -0
- package/dist/types/core/schema/ipc/tasks.d.ts +2 -0
- package/dist/types/core/schema/ipc.d.ts +826 -3
- package/dist/types/core/schema/relay.d.ts +4 -0
- package/dist/types/core/version.d.ts +1 -1
- package/dist/types/ipc/server.d.ts +6 -0
- package/package.json +1 -1
|
@@ -86,6 +86,7 @@ export declare const NackFrame: z.ZodObject<{
|
|
|
86
86
|
jelly_unavailable: "jelly_unavailable";
|
|
87
87
|
log_conflict: "log_conflict";
|
|
88
88
|
conv_conflict: "conv_conflict";
|
|
89
|
+
conflict: "conflict";
|
|
89
90
|
stale_epoch: "stale_epoch";
|
|
90
91
|
device_limit: "device_limit";
|
|
91
92
|
admission_required: "admission_required";
|
|
@@ -291,6 +292,7 @@ export declare const ErrorFrame: z.ZodObject<{
|
|
|
291
292
|
jelly_unavailable: "jelly_unavailable";
|
|
292
293
|
log_conflict: "log_conflict";
|
|
293
294
|
conv_conflict: "conv_conflict";
|
|
295
|
+
conflict: "conflict";
|
|
294
296
|
stale_epoch: "stale_epoch";
|
|
295
297
|
device_limit: "device_limit";
|
|
296
298
|
admission_required: "admission_required";
|
|
@@ -370,6 +372,7 @@ export declare const RelayToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
370
372
|
jelly_unavailable: "jelly_unavailable";
|
|
371
373
|
log_conflict: "log_conflict";
|
|
372
374
|
conv_conflict: "conv_conflict";
|
|
375
|
+
conflict: "conflict";
|
|
373
376
|
stale_epoch: "stale_epoch";
|
|
374
377
|
device_limit: "device_limit";
|
|
375
378
|
admission_required: "admission_required";
|
|
@@ -570,6 +573,7 @@ export declare const RelayToClient: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
570
573
|
jelly_unavailable: "jelly_unavailable";
|
|
571
574
|
log_conflict: "log_conflict";
|
|
572
575
|
conv_conflict: "conv_conflict";
|
|
576
|
+
conflict: "conflict";
|
|
573
577
|
stale_epoch: "stale_epoch";
|
|
574
578
|
device_limit: "device_limit";
|
|
575
579
|
admission_required: "admission_required";
|
|
@@ -20,6 +20,12 @@ export interface ConnectionContext {
|
|
|
20
20
|
export interface CallAuthority {
|
|
21
21
|
readonly scope: "action" | "host";
|
|
22
22
|
readonly expiresAt: number;
|
|
23
|
+
/**
|
|
24
|
+
* The grant's `dev` and `mbr` (Jelly's device and member), as signed by the host. They give no authority; an action
|
|
25
|
+
* token rendered under them is bound to them (spec §8.2, "Action tokens").
|
|
26
|
+
*/
|
|
27
|
+
readonly dev?: string | undefined;
|
|
28
|
+
readonly mbr?: string | undefined;
|
|
23
29
|
}
|
|
24
30
|
/** One call as `authorize` sees it: before its params are parsed, with the request's `grant` member. */
|
|
25
31
|
export interface AuthorizeCall {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@joe-broadhead/messaging",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.9.0",
|
|
4
4
|
"description": "Messaging: the relay, the per-machine daemon and its CLI, and the MCP server as bundled single files, plus the client libraries and the protocol spec. Zero dependencies.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|