@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 +6 -6
- package/dist/cli.js +12 -6
- package/dist/daemon.js +564 -1349
- package/docs/01-prerequisites.md +1 -1
- package/docs/02-installation.md +1 -1
- package/docs/05-room-workflow.md +2 -2
- package/docs/06-invites.md +2 -0
- package/docs/07-messaging-history.md +2 -2
- package/docs/08-backup-restore.md +2 -2
- package/docs/09-service-management.md +1 -1
- package/docs/10-limitations.md +3 -2
- package/docs/11-web-console.md +1 -1
- package/package.json +3 -6
- package/dist/mufl_code/BBAE58CF78DEE59692F456EAFFA9A6109835B66846FC3989F6D201B8F4523A55.muflo +0 -0
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
|
|
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
|
|
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
|
|
21
|
-
them as opaque bytes, archives them before consuming
|
|
22
|
-
|
|
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,
|
|
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-
|
|
4332
|
-
function roomIdentityName(
|
|
4333
|
-
return `${ROOM_IDENTITY_PREFIX}${
|
|
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 =
|
|
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"),
|