@smthrs/core 1.0.0-rc.5 → 1.0.0-rc.7
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 +14 -14
- package/docs/installation.md +2 -2
- package/package.json +10 -10
package/README.md
CHANGED
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
|
|
3
3
|
Release candidate scope, host requirements and compatibility review are defined in the [library support policy](https://github.com/smithersai/smithers/blob/main/RELEASE_SUPPORT.md).
|
|
4
4
|
|
|
5
|
-
This package declares `effect` as
|
|
6
|
-
`
|
|
7
|
-
|
|
5
|
+
This package declares `effect` as a `^4.0.4` peer dependency. Install one
|
|
6
|
+
`effect` release in that range so all Smithers packages share one Effect
|
|
7
|
+
runtime.
|
|
8
8
|
|
|
9
9
|
**Documentation:** https://core.smithers.sh
|
|
10
10
|
|
|
@@ -22,17 +22,17 @@ The full API reference lives at [core.smithers.sh/reference/api](https://core.sm
|
|
|
22
22
|
|
|
23
23
|
The root entry point exports these namespaces; each is also importable from `@smthrs/core/<Module>`.
|
|
24
24
|
|
|
25
|
-
| Module | Public exports
|
|
26
|
-
| ------------- |
|
|
27
|
-
| `Annotations` | `empty`, `add`, `merge`, `getOption`, `Placement`, `Effects`, `Priority`
|
|
28
|
-
| `Digest` | `provideSync`, `digest`, `canonical`
|
|
29
|
-
| `Effects` | `Declaration`, `NarrowResult`, `make`, `covers`, `narrow`, `overlaps`, `sealed`
|
|
30
|
-
| `Flow` | `TypeId`, `Flow`, `Any`, `Payload`, `Reference`, `Seat`, `Input`, `Output`, `Error`, `isFlow`, `within`, `annotate`, `withFlows`
|
|
31
|
-
| `Graph` | `build`, `inspect`, `nodes`, `edges`, `drafts`, `diagnostics`, `evaluatedFrom`, `maximumGraphDepth`, `Graph`, `GraphNode`, `Edge`, `EdgeReason`, `LayerRequest`, `BuildOptions`, `Inspection`
|
|
32
|
-
| `KeyMaterial` | `InputRef`, `KeyMaterial`, `Entry`
|
|
33
|
-
| `Markdown` | `splitFrontmatter`, `MarkdownFrontmatter`, `SkillFrontmatter`, `SkillDocument`, `MarkdownErrorCode`, `MarkdownError`, `lowerMarkdown`, `isSkillName`, `validateSkillFrontmatter`, `parseSkill`, `lowerSkill`
|
|
34
|
-
| `Node` | `TypeId`, `Ast`, `Node`, `Any`, `Success`, `Error`, `CallMode`, `isNode`, `succeed`, `fail`, `all`, `race`, `any`, `quorum`, `map`, `andThen`, `branch`, `catch`, `capture`, `priority`, `declaredPriority`, `bindPlanned`, `plannedReference`, `branchSubject`, `catchSubject`, `catchFilter`, `continuation`, `mapper`, `predicate`, `declaration`, `flowCall`, `actionCall`, `functionIdentity` | `@smthrs/plan`'s inert, pipeable plan AST, re-exported. |
|
|
35
|
-
| `Placement` | `Options`, `Placement`, `local`, `client`, `sandbox`, `remote`
|
|
25
|
+
| Module | Public exports | Description |
|
|
26
|
+
| ------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
|
|
27
|
+
| `Annotations` | `empty`, `add`, `merge`, `getOption`, `Placement`, `Effects`, `Priority` | Builds and reads typed lexical annotations carried by flows and plan nodes. |
|
|
28
|
+
| `Digest` | `provideSync`, `digest`, `canonical` | Synchronous SHA-256 and canonical JSON for pure identity constructors. |
|
|
29
|
+
| `Effects` | `Declaration`, `NarrowResult`, `make`, `covers`, `narrow`, `overlaps`, `sealed` | Normalizes effect declarations and checks path coverage, narrowing, and conflicts. |
|
|
30
|
+
| `Flow` | `TypeId`, `Flow`, `Any`, `Payload`, `Reference`, `Seat`, `Input`, `Output`, `Error`, `isFlow`, `within`, `annotate`, `withFlows` | Retains Markdown signatures and their metadata combinators. |
|
|
31
|
+
| `Graph` | `build`, `inspect`, `nodes`, `edges`, `drafts`, `diagnostics`, `evaluatedFrom`, `maximumGraphDepth`, `Graph`, `GraphNode`, `Edge`, `EdgeReason`, `LayerRequest`, `BuildOptions`, `Inspection` | `@smthrs/flow`'s plan-time graph builder, re-exported. |
|
|
32
|
+
| `KeyMaterial` | `InputRef`, `KeyMaterial`, `Entry` | Defines the stable key projection emitted from a built graph. Types only. |
|
|
33
|
+
| `Markdown` | `splitFrontmatter`, `MarkdownFrontmatter`, `SkillFrontmatter`, `SkillDocument`, `MarkdownErrorCode`, `MarkdownError`, `lowerMarkdown`, `isSkillName`, `validateSkillFrontmatter`, `parseSkill`, `lowerSkill` | Parses and lowers Markdown and Agent Skills declarations to signatures. |
|
|
34
|
+
| `Node` | `TypeId`, `Ast`, `Node`, `Any`, `Success`, `Error`, `CallMode`, `isNode`, `succeed`, `fail`, `all`, `race`, `any`, `quorum`, `map`, `andThen`, `branch`, `catch`, `capture`, `priority`, `declaredPriority`, `bindPlanned`, `plannedReference`, `branchSubject`, `catchSubject`, `catchFilter`, `continuation`, `mapper`, `predicate`, `declaration`, `flowCall`, `actionCall`, `functionIdentity`, `schemaIdentity`, `representationIdentity`, `SchemaIdentityError` | `@smthrs/plan`'s inert, pipeable plan AST, re-exported. |
|
|
35
|
+
| `Placement` | `Options`, `Placement`, `local`, `client`, `sandbox`, `remote` | Creates serializable host-placement declarations. |
|
|
36
36
|
|
|
37
37
|
```ts
|
|
38
38
|
import { Graph, Node, Placement } from "@smthrs/core"
|
package/docs/installation.md
CHANGED
|
@@ -14,8 +14,8 @@ CommonJS with TypeScript declarations. It has no platform bindings: it reads no
|
|
|
14
14
|
file, opens no socket, and starts no process, so the same build runs in Node,
|
|
15
15
|
in Bun, in a browser, and in a Cloudflare Worker.
|
|
16
16
|
|
|
17
|
-
The package requires `effect
|
|
18
|
-
|
|
17
|
+
The package requires `effect@^4.0.4` as a peer dependency. Install one
|
|
18
|
+
`effect` release in that range so all Smithers packages share one Effect
|
|
19
19
|
runtime. [`effect`](https://effect.website) supplies `Schema`, `Context`,
|
|
20
20
|
`Result`, and `Data`, which appear in this package's public types. Import it
|
|
21
21
|
directly in your own code.
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@smthrs/core",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "1.0.0-rc.
|
|
4
|
+
"version": "1.0.0-rc.7",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"smthrs": {
|
|
7
7
|
"group": "agent"
|
|
@@ -165,22 +165,22 @@
|
|
|
165
165
|
"tag": "next"
|
|
166
166
|
},
|
|
167
167
|
"dependencies": {
|
|
168
|
-
"@smthrs/canonical": "1.0.0-rc.
|
|
169
|
-
"@smthrs/crypto": "1.0.0-rc.
|
|
170
|
-
"@smthrs/flow": "1.0.0-rc.
|
|
171
|
-
"@smthrs/plan": "1.0.0-rc.
|
|
168
|
+
"@smthrs/canonical": "1.0.0-rc.7",
|
|
169
|
+
"@smthrs/crypto": "1.0.0-rc.7",
|
|
170
|
+
"@smthrs/flow": "1.0.0-rc.7",
|
|
171
|
+
"@smthrs/plan": "1.0.0-rc.7",
|
|
172
172
|
"yaml": "2.9.0"
|
|
173
173
|
},
|
|
174
174
|
"devDependencies": {
|
|
175
175
|
"@effect/language-service": "0.87.2",
|
|
176
|
-
"@effect/platform-node": "4.0.
|
|
177
|
-
"@effect/vitest": "4.0.
|
|
176
|
+
"@effect/platform-node": "4.0.4",
|
|
177
|
+
"@effect/vitest": "4.0.4",
|
|
178
178
|
"@eslint/js": "9.39.5",
|
|
179
|
-
"@smthrs/engine": "1.0.0-rc.
|
|
179
|
+
"@smthrs/engine": "1.0.0-rc.7",
|
|
180
180
|
"@types/node": "26.4.1",
|
|
181
181
|
"@vitest/coverage-v8": "5.0.0",
|
|
182
182
|
"dprint": "0.57.1",
|
|
183
|
-
"effect": "4.0.
|
|
183
|
+
"effect": "4.0.4",
|
|
184
184
|
"esbuild": "0.28.2",
|
|
185
185
|
"eslint": "9.39.5",
|
|
186
186
|
"eslint-import-resolver-typescript": "4.4.5",
|
|
@@ -193,7 +193,7 @@
|
|
|
193
193
|
"vitest": "5.0.0"
|
|
194
194
|
},
|
|
195
195
|
"peerDependencies": {
|
|
196
|
-
"effect": "4.0.
|
|
196
|
+
"effect": "^4.0.4"
|
|
197
197
|
},
|
|
198
198
|
"scripts": {
|
|
199
199
|
"lint": "eslint src --max-warnings=0 && dprint check",
|