@asyra/collaboration 0.5.2 → 0.5.4

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.
Files changed (2) hide show
  1. package/README.md +41 -41
  2. package/package.json +11 -6
package/README.md CHANGED
@@ -1,38 +1,17 @@
1
1
  # `@asyra/collaboration`
2
2
 
3
- Optional, provider-replaceable live transport for completed Asyra Factory
4
- publications and ephemeral Awareness.
5
-
6
- The package owns connection lifecycle and FIFO publication handoff only. Apps
7
- remain responsible for payload validation, permissions, canonical remote apply,
8
- conflict policy, persistence, snapshots, and recovery.
9
-
10
- Every Provider implements one data method in each direction:
11
- `sendPublication(publication)` and
12
- `onPublication(async (publication) => ...)`. Collaboration hands each immutable
13
- Factory-owned `SharedPublication` to `sendPublication` exactly once and in FIFO
14
- order without cloning or rebuilding it. It does not advance to the next
15
- publication until the current send settles. The receiving callback remains
16
- pending until the app finishes canonical remote apply.
17
-
18
- Concrete transports own bounded queues, wire framing, encoding, and any
19
- internal grouping that does not alter publication identity or order. Generic
20
- Collaboration owns none of those transport policies. If the Provider is not
21
- connected when a Factory publication arrives, Collaboration reports it as
22
- skipped and does not replay it after reconnect.
23
-
24
- `MemoryHub` and `MemoryProvider` are non-durable development references. They
25
- create one detached publication snapshot per receiving peer, retain no
26
- publication history, and do not echo the sender. Their one-slot peer capacity
27
- bounds pending app work without making the current sender Promise wait for peer
28
- apply. Disconnected peers miss publications and reconnect receives only future
29
- live publications. These in-process semantics are not wire serialization or a
30
- disk/database acknowledgement. Product apps that promise durable collaboration
31
- must supply an app-owned backend.
32
-
33
- An app apply failure reports a Collaboration `process-failed` outcome and
34
- rejects the Provider callback. It is not a `ProviderFailure`; that type remains
35
- reserved for connection and transport failures.
3
+ Optional provider-replaceable transport for completed Factory publications and separate ephemeral Awareness.
4
+
5
+ ## Requirements
6
+
7
+ - Node.js 24.x
8
+ - Yarn 4.3.1 for this repository's maintained workflows
9
+
10
+ ## Install
11
+
12
+ ```bash
13
+ npm install @asyra/collaboration
14
+ ```
36
15
 
37
16
  ```ts
38
17
  import {
@@ -42,13 +21,34 @@ import {
42
21
  } from '@asyra/collaboration'
43
22
  ```
44
23
 
45
- See the
46
- [Collaboration package contract](https://github.com/karote00/asyra/blob/main/docs/ai/framework/packages/collaboration.md)
47
- for complete composition, lifecycle, provider, and app-ownership details.
24
+ Use only the package root and the explicitly documented public subpaths.
25
+
26
+ ## Owns
27
+
28
+ - explicit connection lifecycle and FIFO publication handoff
29
+ - exclusive inbound callback delivery, provider outcomes, Awareness, and owned-resource cleanup
30
+
31
+ ## Does not own
32
+
33
+ - canonical documents, payload validation, permissions, conflict policy, durable outboxes, checkpoints, or backend storage
34
+
35
+ ## Start here
36
+
37
+ Compose it when an App already owns immutable Factory publications, a provider, and a validated canonical remote-apply route.
38
+
39
+ ## Lifecycle and composition
40
+
41
+ Construction is inert. `start()` connects and subscribes; connected publications are sent once in FIFO order. Disconnected publications are skipped, not retained. `dispose()` releases only resources the composition owns.
42
+
43
+ ## Learn more
44
+
45
+ - [Complete package guide](https://github.com/karote00/asyra/blob/main/docs/public/reference/packages/collaboration.md)
46
+ - [Framework release support](https://github.com/karote00/asyra/blob/main/docs/ai/framework/RELEASE_SUPPORT.md)
48
47
 
49
- ## Release support
48
+ ## Support and policy
50
49
 
51
- The `@asyra/collaboration` `0.2.5` ESM artifact supports Node.js 24.x. Use only
52
- package-root exports. The package is opt-in and creates no provider or network
53
- side effect until an app explicitly composes and connects it. See the
54
- [Framework release support contract](../../docs/ai/framework/RELEASE_SUPPORT.md).
50
+ This repository does not accept external issues or contributions. You may use,
51
+ inspect, and fork the package under the [MIT License](https://github.com/karote00/asyra/blob/main/LICENSE).
52
+ Follow the [security policy](https://github.com/karote00/asyra/blob/main/SECURITY.md) for
53
+ security-sensitive reports and the [root policy](https://github.com/karote00/asyra) for the
54
+ current support boundary.
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@asyra/collaboration",
3
- "version": "0.5.2",
3
+ "version": "0.5.4",
4
4
  "description": "Optional provider-replaceable publication transport for Asyra",
5
5
  "author": "Asa Tsai",
6
6
  "license": "MIT",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/karote00/asyra.git",
10
+ "directory": "packages/collaboration"
11
+ },
12
+ "homepage": "https://asyra-framework.vercel.app",
7
13
  "type": "module",
8
14
  "engines": {
9
15
  "node": "24.x"
@@ -29,18 +35,17 @@
29
35
  "dev": "tsc --watch --preserveWatchOutput",
30
36
  "clean": "rm -rf dist",
31
37
  "build:collaboration": "tsc",
32
- "example:collaboration": "vitest run src/__tests__/documentation-example.test.js",
33
38
  "test": "vitest",
34
39
  "test:local": "vitest run",
35
40
  "test:ci": "vitest run --coverage --reporter=default --reporter=junit"
36
41
  },
37
42
  "devDependencies": {
38
- "@vitest/coverage-v8": "^2.1.8",
43
+ "@vitest/coverage-v8": "^3.2.6",
39
44
  "typescript": "^5.7.2",
40
- "vitest": "^2.1.8"
45
+ "vitest": "^3.2.6"
41
46
  },
42
47
  "dependencies": {
43
- "@asyra/factory": "0.5.1",
44
- "@asyra/utils": "0.5.0"
48
+ "@asyra/factory": "0.5.3",
49
+ "@asyra/utils": "0.5.1"
45
50
  }
46
51
  }