opencode-effect-enforcer 0.2.4 → 0.2.6
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 +42 -140
- package/docs/effect-4.0.0-rc.116-changelog.md +2654 -0
- package/docs/effect-4.0.0-rc.116.md +102 -0
- package/guidance/effect-first-development.md +23 -14
- package/guidance/progressive-disclosure-guidance.md +3 -3
- package/package.json +3 -3
- package/patterns/avoid-direct-tag-checks.md +1 -1
- package/patterns/avoid-process-env.md +4 -4
- package/patterns/context-tag-extends.md +4 -4
- package/patterns/prefer-redacted-config.md +10 -10
- package/patterns/require-effect-concurrency.md +1 -1
- package/skills/effect-ai-chat/SKILL.md +2 -2
- package/skills/effect-ai-language-model/SKILL.md +36 -4
- package/skills/effect-ai-prompt/SKILL.md +1 -1
- package/skills/effect-ai-provider/SKILL.md +23 -12
- package/skills/effect-ai-tool/SKILL.md +13 -0
- package/skills/effect-atom-rpc/SKILL.md +7 -1
- package/skills/effect-atom-state/SKILL.md +8 -2
- package/skills/effect-cache/SKILL.md +10 -1
- package/skills/effect-cli/SKILL.md +105 -94
- package/skills/effect-command-executor/SKILL.md +7 -1
- package/skills/effect-config/SKILL.md +67 -44
- package/skills/effect-domain-modeling/SKILL.md +3 -3
- package/skills/effect-error-handling/SKILL.md +2 -2
- package/skills/effect-fiber/SKILL.md +2 -2
- package/skills/effect-filesystem/SKILL.md +34 -4
- package/skills/effect-http-api/SKILL.md +17 -2
- package/skills/effect-http-client/SKILL.md +11 -2
- package/skills/effect-http-server/SKILL.md +28 -11
- package/skills/effect-layer-design/SKILL.md +6 -2
- package/skills/effect-mcp-server/SKILL.md +21 -4
- package/skills/effect-observability/SKILL.md +2 -2
- package/skills/effect-optics/SKILL.md +1 -1
- package/skills/effect-parallelization/SKILL.md +2 -2
- package/skills/effect-pattern-matching/SKILL.md +1 -1
- package/skills/effect-platform-abstraction/SKILL.md +3 -3
- package/skills/effect-rpc-api/SKILL.md +3 -3
- package/skills/effect-rpc-client/SKILL.md +14 -13
- package/skills/effect-rpc-cluster/SKILL.md +15 -12
- package/skills/effect-rpc-server/SKILL.md +11 -13
- package/skills/effect-scheduling/SKILL.md +7 -0
- package/skills/effect-schema-composition/SKILL.md +12 -4
- package/skills/effect-schema-v4/SKILL.md +75 -20
- package/skills/effect-scope/SKILL.md +4 -4
- package/skills/effect-socket/SKILL.md +161 -658
- package/skills/effect-sql/SKILL.md +50 -12
- package/skills/effect-stream/SKILL.md +19 -24
- package/skills/effect-testing/SKILL.md +35 -22
- package/skills/effect-workflow/SKILL.md +13 -2
- package/src/enforcer.ts +1 -1
- package/src/index.ts +1 -1
- package/src/skills.ts +4 -4
|
@@ -305,7 +305,7 @@ Close semantics (from `internal/effect.ts` `scopeCloseFinalizers`):
|
|
|
305
305
|
- The scope transitions to `Closed` *before* finalizers run, so finalizers registered from inside finalizers execute immediately.
|
|
306
306
|
- You can inspect `scope.state._tag` (`'Empty' | 'Open' | 'Closed'`) and `scope.strategy` directly.
|
|
307
307
|
|
|
308
|
-
|
|
308
|
+
`Scope.State.Open` stores `finalizerKey` / `finalizer` inline and
|
|
309
309
|
allocates its optional `finalizers` map only for additional entries. Avoid
|
|
310
310
|
constructing or mutating that representation; use `Scope.addFinalizer*` and
|
|
311
311
|
`Scope.close`. LIFO order and failure-preserving cleanup still apply.
|
|
@@ -499,7 +499,7 @@ Semantics (verified in `ScopedRef.ts` and its tests):
|
|
|
499
499
|
|
|
500
500
|
For keyed collections of scoped resources, see `LayerMap` (`ai-docs/src/01_effect/04_resources/30_layer-map.ts`); for capacity-managed pools, see `Pool` (`packages/effect/src/Pool.ts` — `Pool.make` returns a scoped pool whose `Pool.get(pool)` is itself scoped per item). `ScopedCache` is covered by the `effect-cache` skill.
|
|
501
501
|
|
|
502
|
-
### Callback-scoped pool checkout
|
|
502
|
+
### Callback-scoped pool checkout
|
|
503
503
|
|
|
504
504
|
Prefer `Pool.use(pool, use)` when one callback owns the entire borrow. It returns
|
|
505
505
|
the item on success, failure, or interruption without adding `Scope` to the
|
|
@@ -521,8 +521,8 @@ const program = Effect.gen(function* () {
|
|
|
521
521
|
|
|
522
522
|
`Effect.scoped(Pool.get(pool))` releases the checkout before the returned item is
|
|
523
523
|
used outside that effect. Put the use inside the scope or use `Pool.use`.
|
|
524
|
-
`Pool.State` / `Pool.PoolItem`
|
|
525
|
-
FIFO tracking
|
|
524
|
+
`Pool.State` / `Pool.PoolItem` use incremental usage and intrusive
|
|
525
|
+
FIFO tracking; use the public checkout/invalidation APIs rather than their fields.
|
|
526
526
|
|
|
527
527
|
---
|
|
528
528
|
|