@adobe/data-ai 0.9.97 → 0.9.99
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.
|
@@ -103,9 +103,9 @@ main-service/
|
|
|
103
103
|
core-database/ # the schema (above)
|
|
104
104
|
index-database/ # extends core; indexes/
|
|
105
105
|
transaction-database/ # extends index; transactions/
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
action-database/ # extends
|
|
106
|
+
service-database/ # extends transaction; services/
|
|
107
|
+
computed-database/ # extends service; computed/
|
|
108
|
+
action-database/ # extends computed; actions/
|
|
109
109
|
```
|
|
110
110
|
|
|
111
111
|
Each exports a namespace mirroring the plugin — the composed object is a
|
|
@@ -121,8 +121,8 @@ export namespace IndexDatabase {
|
|
|
121
121
|
|
|
122
122
|
### The assembled database — `MainService`
|
|
123
123
|
|
|
124
|
-
*Which* layer is topmost varies with the facets a feature uses (
|
|
125
|
-
|
|
124
|
+
*Which* layer is topmost varies with the facets a feature uses (service /
|
|
125
|
+
computed / action / system). Consumers — `ui/`, the app entry, `services/main-service/conformance/`
|
|
126
126
|
— need the *whole* feature database but must not name that layer, or adding or
|
|
127
127
|
dropping a layer rewrites them all. Alias it once from the **folder-eponymous
|
|
128
128
|
`main-service.ts`** (per `global/namespace.md`, a folder's primary export lives in
|
|
@@ -155,10 +155,11 @@ two features' `CoreDatabase`s never collide.
|
|
|
155
155
|
transaction-context type. Use **`CoreDatabase.Store`** for a transaction that
|
|
156
156
|
reads/writes entities, resources, or archetypes; **`IndexDatabase.Store`** the
|
|
157
157
|
moment it reads an index.
|
|
158
|
-
- **the whole `Database`** — **
|
|
158
|
+
- **the whole `Database`** — **services**, **computed**, and **actions** each
|
|
159
159
|
take `service: <Layer>` (the lowest layer whose database exposes what they
|
|
160
|
-
read/call):
|
|
161
|
-
|
|
160
|
+
read/call): services read observables and call transactions; computed reads
|
|
161
|
+
`service.observe.*` and, once it needs a service's own reactive surface,
|
|
162
|
+
`service.services.*`; actions call `service.services.*` then
|
|
162
163
|
`service.transactions.*`.
|
|
163
164
|
|
|
164
165
|
Each subfolder has its own rule. Modelling a plugin's authored vs. derived
|
|
@@ -11,7 +11,7 @@ its transactions. This is where the async `services/` contracts (or
|
|
|
11
11
|
framework services like `AgenticService`) are wired to ECS state.
|
|
12
12
|
|
|
13
13
|
```ts
|
|
14
|
-
export const createAgentService = (service:
|
|
14
|
+
export const createAgentService = (service: TransactionDatabase, mark: PlayerMark): AgenticService =>
|
|
15
15
|
/* … reads service.observe.*, calls service.transactions.* … */;
|
|
16
16
|
```
|
|
17
17
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adobe/data-ai",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.99",
|
|
4
4
|
"description": "Cross-agent architecture skills for @adobe/data — installable as a Claude Code plugin or copied into any Agent-Skills-compatible agent (Cursor, Codex).",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"private": false,
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
"skills"
|
|
30
30
|
],
|
|
31
31
|
"peerDependencies": {
|
|
32
|
-
"@adobe/data": "0.9.
|
|
32
|
+
"@adobe/data": "0.9.99"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"typescript": "^5.8.3",
|
|
36
36
|
"vitest": "^1.6.0",
|
|
37
|
-
"@adobe/data": "0.9.
|
|
37
|
+
"@adobe/data": "0.9.99"
|
|
38
38
|
},
|
|
39
39
|
"license": "MIT",
|
|
40
40
|
"scripts": {
|