@ours.network/cowork 0.3.6 → 0.3.7-nightly.20260815.80ea770

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/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # ours-cowork
2
2
 
3
- `ours-cowork` is a standalone daemon for durable ours mission rooms. It owns one ordinary packet per room, an ordered local archive, a private Unix management socket, and a localhost web console with room RPC.
3
+ `ours-cowork` is a standalone standard-SDK daemon for durable ours mission rooms. It owns one ordinary ours identity per room through an embedded `@ours.network/sdk` runtime, an ordered local archive, a private Unix management socket, and a localhost web console with room RPC.
4
4
 
5
5
  ```sh
6
6
  ours-cowork web
@@ -9,7 +9,7 @@ ours-cowork docs
9
9
 
10
10
  `ours-cowork web` starts the daemon if it is absent, waits for the console, and opens `http://127.0.0.1:3052/`. Create a room with a friendly display name first, then add each invitation requirement from its Invite panel. Names are trimmed, normalized to Unicode NFC, and may contain 1–64 Unicode characters excluding control and format characters. Duplicate names are allowed. The Communication view contains the human-readable room chat; operational records remain in Events and the complete ordered stream remains in Archive.
11
11
 
12
- The friendly `room_name` is presentation metadata. New rooms announce the technical identity `ours-cowork-room:<initial room_name>`; that authenticated announced name is frozen when the display name later changes. Duplicate display and announced names are allowed because identity CIDs, not names, are the authorization and routing keys. The opaque `room_id` remains the stable key for URLs, storage, and identity correlation. Existing `cowork-room-<room_id>` identities are never renamed or recreated, and rooms created before friendly names existed migrate only their display metadata to `Room <first 8 room_id characters>`.
12
+ The friendly `room_name` is presentation metadata. New rooms use the globally unique SDK identity `ours-cowork-<room_id>`; that authenticated name is independent of later display-name changes. Duplicate display names are allowed because identity CIDs and room IDs, not names, are the authorization and routing keys. Pre-1.0 rooms using `cowork-room-<room_id>` or `ours-cowork-room:<name>` custom packet state are detected and refused: back them up with the old release, recreate them, and re-invite their participants.
13
13
 
14
14
  The localhost HTTP console has no authentication. Keep it bound to `127.0.0.1`; do not proxy, forward, or expose the port to other hosts. Room state is refreshed by periodic polling, not pushed to the browser.
15
15
 
@@ -17,13 +17,13 @@ The package runs independently with its own config and state directory. Operator
17
17
 
18
18
  Ordinary ours-mcp identities can join only as remote participants over the ours protocol.
19
19
 
20
- Active participants can also send files through the room packet. Cowork treats
21
- them as opaque bytes, archives them before consuming packet state, and relays a
22
- signed metadata envelope plus the core binary file to every other active seat.
20
+ Active participants can also send files through the room identity. Cowork treats
21
+ them as opaque bytes, archives them before consuming SDK inbox state, and relays an
22
+ SDK-authenticated metadata envelope plus the binary file to every other active seat.
23
23
  Files are limited to 2 MiB; larger inputs fail loudly instead of weakening
24
24
  crash recovery guarantees.
25
25
 
26
- The release package contains the standalone daemon, operator CLI, compiled room packet, deterministic web assets, and all eleven offline operator topics. It has no dependency on another agent daemon.
26
+ The release package contains the standalone daemon, operator CLI, deterministic web assets, and all eleven offline operator topics. Standard identity, messaging, reply, file, and lifecycle behavior comes from the public `@ours.network/sdk`; no custom MUFL room actor is shipped.
27
27
 
28
28
  Licensed under [FSL-1.1-Apache-2.0](./LICENSE).
29
29
 
package/dist/cli.js CHANGED
@@ -4328,9 +4328,9 @@ var RoomNameSchema = external_exports.string().refine(
4328
4328
  });
4329
4329
  }
4330
4330
  });
4331
- var ROOM_IDENTITY_PREFIX = "ours-cowork-room:";
4332
- function roomIdentityName(roomName) {
4333
- return `${ROOM_IDENTITY_PREFIX}${RoomNameSchema.parse(roomName)}`;
4331
+ var ROOM_IDENTITY_PREFIX = "ours-cowork-";
4332
+ function roomIdentityName(roomId) {
4333
+ return `${ROOM_IDENTITY_PREFIX}${LowerCrockfordUlidSchema.parse(roomId)}`;
4334
4334
  }
4335
4335
  function legacyRoomIdentityName(roomId) {
4336
4336
  return `cowork-room-${LowerCrockfordUlidSchema.parse(roomId)}`;
@@ -4510,7 +4510,7 @@ var RoleBriefingSchema = external_exports.object({
4510
4510
  }).strict();
4511
4511
  function refineRoomLineage(room, context) {
4512
4512
  const pendingIdentityName = legacyRoomIdentityName(room.room_id);
4513
- const currentPendingIdentityName = room.room_name === void 0 ? void 0 : roomIdentityName(room.room_name);
4513
+ const currentPendingIdentityName = roomIdentityName(room.room_id);
4514
4514
  const exactPacketPending = room.state === "provisioning" && room.status === "packet_pending" && (room.identity_name === pendingIdentityName || room.identity_name === currentPendingIdentityName) && room.invites.length === 0 && room.seats.length === 0 && room.activated_at === void 0 && room.closed_at === void 0;
4515
4515
  if (room.identity_cid === "" && !exactPacketPending) {
4516
4516
  context.addIssue({
@@ -4738,6 +4738,10 @@ var AuthorAliasSchema = external_exports.object({
4738
4738
  participant_id: LowerCrockfordUlidSchema,
4739
4739
  alias: NonEmptyStringSchema
4740
4740
  }).strict();
4741
+ var ReplyReferenceSchema = external_exports.object({
4742
+ wire_id: NonEmptyStringSchema,
4743
+ sentence: PositiveSafeIntegerSchema.optional()
4744
+ }).strict();
4741
4745
  var MessageShape = {
4742
4746
  kind: external_exports.literal("message"),
4743
4747
  message_id: LowerCrockfordUlidSchema,
@@ -4762,7 +4766,8 @@ var MessageShape = {
4762
4766
  }
4763
4767
  }),
4764
4768
  source_msg_id: external_exports.number().int().nonnegative().safe().optional(),
4765
- source_wire_id: NonEmptyStringSchema.optional()
4769
+ source_wire_id: NonEmptyStringSchema.optional(),
4770
+ source_reply_to: ReplyReferenceSchema.optional()
4766
4771
  };
4767
4772
  var RelayIntentShape = {
4768
4773
  kind: external_exports.literal("relay_intent"),
@@ -4805,7 +4810,8 @@ var FileShape = {
4805
4810
  }
4806
4811
  }),
4807
4812
  source_file_id: external_exports.number().int().nonnegative().safe(),
4808
- source_wire_id: NonEmptyStringSchema.optional()
4813
+ source_wire_id: NonEmptyStringSchema.optional(),
4814
+ source_reply_to: ReplyReferenceSchema.optional()
4809
4815
  };
4810
4816
  var MembershipIntentShape = {
4811
4817
  kind: external_exports.literal("membership_intent"),