@asyra/feature-system 0.5.0 → 0.5.2
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 +41 -5
- package/package.json +11 -5
package/README.md
CHANGED
|
@@ -1,13 +1,49 @@
|
|
|
1
1
|
# `@asyra/feature-system`
|
|
2
2
|
|
|
3
|
-
Deterministic
|
|
4
|
-
|
|
3
|
+
Deterministic Feature registration, priority, exclusivity, interaction sessions, cancellation, and non-mutating programmatic tasks.
|
|
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/feature-system
|
|
14
|
+
```
|
|
5
15
|
|
|
6
16
|
```ts
|
|
7
17
|
import { defineFeature, getFeature } from '@asyra/feature-system'
|
|
8
18
|
```
|
|
9
19
|
|
|
10
|
-
|
|
20
|
+
Use only the package root and the explicitly documented public subpaths.
|
|
21
|
+
|
|
22
|
+
## Owns
|
|
23
|
+
|
|
24
|
+
- Feature definitions, trigger arbitration, one serialized interaction queue, sessions, cancellation policy, and task abort ownership
|
|
25
|
+
|
|
26
|
+
## Does not own
|
|
27
|
+
|
|
28
|
+
- raw environment listeners, App command meaning, canonical package mutation, transaction history, or model-provider policy
|
|
29
|
+
|
|
30
|
+
## Start here
|
|
31
|
+
|
|
32
|
+
Compose it when inputs or commands require deterministic arbitration, a continuous session, or cancellable planning work.
|
|
33
|
+
|
|
34
|
+
## Lifecycle and composition
|
|
35
|
+
|
|
36
|
+
A session starts, updates, and then ends or cancels before conflicting work. Cancellation is explicit; handler errors and timeouts enter forced cleanup. Programmatic tasks are non-mutating and never replace canonical Feature/API execution.
|
|
37
|
+
|
|
38
|
+
## Learn more
|
|
39
|
+
|
|
40
|
+
- [Complete package guide](https://github.com/karote00/asyra/blob/main/docs/public/reference/packages/feature-system.md)
|
|
41
|
+
- [Framework release support](https://github.com/karote00/asyra/blob/main/docs/ai/framework/RELEASE_SUPPORT.md)
|
|
42
|
+
|
|
43
|
+
## Support and policy
|
|
11
44
|
|
|
12
|
-
|
|
13
|
-
|
|
45
|
+
This repository does not accept external issues or contributions. You may use,
|
|
46
|
+
inspect, and fork the package under the [MIT License](https://github.com/karote00/asyra/blob/main/LICENSE).
|
|
47
|
+
Follow the [security policy](https://github.com/karote00/asyra/blob/main/SECURITY.md) for
|
|
48
|
+
security-sensitive reports and the [root policy](https://github.com/karote00/asyra) for the
|
|
49
|
+
current support boundary.
|
package/package.json
CHANGED
|
@@ -1,9 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asyra/feature-system",
|
|
3
|
-
"version": "0.5.
|
|
3
|
+
"version": "0.5.2",
|
|
4
4
|
"description": "Feature System framework for modular, composable design tool capabilities",
|
|
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/feature-system"
|
|
11
|
+
},
|
|
12
|
+
"homepage": "https://asyra-framework.vercel.app",
|
|
7
13
|
"type": "module",
|
|
8
14
|
"engines": {
|
|
9
15
|
"node": "24.x"
|
|
@@ -36,12 +42,12 @@
|
|
|
36
42
|
"test:ci": "yarn has:test && vitest run --coverage --reporter=default --reporter=junit || echo 'No test files found. Skipping test:ci.'"
|
|
37
43
|
},
|
|
38
44
|
"devDependencies": {
|
|
39
|
-
"@vitest/coverage-v8": "^2.
|
|
45
|
+
"@vitest/coverage-v8": "^3.2.6",
|
|
40
46
|
"typescript": "^5.7.2",
|
|
41
|
-
"vitest": "^2.
|
|
47
|
+
"vitest": "^3.2.6"
|
|
42
48
|
},
|
|
43
49
|
"dependencies": {
|
|
44
|
-
"@asyra/reactive-events": "
|
|
45
|
-
"@asyra/utils": "
|
|
50
|
+
"@asyra/reactive-events": "workspace:*",
|
|
51
|
+
"@asyra/utils": "workspace:*"
|
|
46
52
|
}
|
|
47
53
|
}
|