@intentic/resources 1.224.0 → 1.225.0
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 +8 -8
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
1
|
# @intentic/resources
|
|
2
2
|
|
|
3
|
-
The closed list of things that can be deployed
|
|
3
|
+
The closed list of things that can be deployed: the resource vocabulary, and the single authority on it.
|
|
4
4
|
|
|
5
5
|
Shared by the state resolver (which emits these kinds), the engine (which reconciles them), and the providers (which implement them). The graph IR treats a node's `type` as an opaque string; this package says which kinds exist and what each produces. Depends only on [`@intentic/graph`](../graph).
|
|
6
6
|
|
|
7
7
|
## Responsibilities
|
|
8
8
|
|
|
9
|
-
- Define `ResourceType
|
|
10
|
-
- Define `ResolvedNode
|
|
11
|
-
- Catalog `OUTPUTS
|
|
9
|
+
- Define `ResourceType`: the closed union of every resource kind intentic understands (`host`, `cloudflare`, `forgejo`, `forgejo-runner`, `komodo`, `tunnel`, `cf-route`, `repo`, `ci`, `deployment`, `app`, `backup`, `workspace`, …).
|
|
10
|
+
- Define `ResolvedNode`: a `RawNode` whose `type` is constrained to a `ResourceType`.
|
|
11
|
+
- Catalog `OUTPUTS`: the output fields each kind produces, so downstream nodes can ref them with confidence.
|
|
12
12
|
- It is a vocabulary only: no resolution logic, no reconciliation, no provider code.
|
|
13
13
|
|
|
14
14
|
## Key files
|
|
15
15
|
|
|
16
|
-
- [src/resource-types.ts](src/resource-types.ts)
|
|
17
|
-
- [src/outputs.ts](src/outputs.ts)
|
|
18
|
-
- [src/index.ts](src/index.ts)
|
|
16
|
+
- [src/resource-types.ts](src/resource-types.ts): the `ResourceType` union + `ResolvedNode`.
|
|
17
|
+
- [src/outputs.ts](src/outputs.ts): the `OUTPUTS` map (kind → produced fields).
|
|
18
|
+
- [src/index.ts](src/index.ts): public surface.
|
|
19
19
|
|
|
20
20
|
## How it fits
|
|
21
21
|
|
|
@@ -23,5 +23,5 @@ Sits just above `graph`. The `state-resolver` emits `ResolvedNode`s of these typ
|
|
|
23
23
|
|
|
24
24
|
## Conventions & gotchas
|
|
25
25
|
|
|
26
|
-
- The union is **closed
|
|
26
|
+
- The union is **closed**: adding a kind means updating `ResourceType`, its `OUTPUTS` entry, the emitter in `state-resolver`, and a provider in `providers`, together.
|
|
27
27
|
- Keep `OUTPUTS` accurate: refs are validated against it, so a missing/typo'd output surfaces as a resolve-time error. See [ARCHITECTURE.md](../../ARCHITECTURE.md).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intentic/resources",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.225.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
},
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"tslib": "2.8.1",
|
|
34
|
-
"@intentic/graph": "1.
|
|
34
|
+
"@intentic/graph": "1.225.0"
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@typescript/native-preview": "7.0.0-dev.20260707.2",
|