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.
Files changed (52) hide show
  1. package/README.md +42 -140
  2. package/docs/effect-4.0.0-rc.116-changelog.md +2654 -0
  3. package/docs/effect-4.0.0-rc.116.md +102 -0
  4. package/guidance/effect-first-development.md +23 -14
  5. package/guidance/progressive-disclosure-guidance.md +3 -3
  6. package/package.json +3 -3
  7. package/patterns/avoid-direct-tag-checks.md +1 -1
  8. package/patterns/avoid-process-env.md +4 -4
  9. package/patterns/context-tag-extends.md +4 -4
  10. package/patterns/prefer-redacted-config.md +10 -10
  11. package/patterns/require-effect-concurrency.md +1 -1
  12. package/skills/effect-ai-chat/SKILL.md +2 -2
  13. package/skills/effect-ai-language-model/SKILL.md +36 -4
  14. package/skills/effect-ai-prompt/SKILL.md +1 -1
  15. package/skills/effect-ai-provider/SKILL.md +23 -12
  16. package/skills/effect-ai-tool/SKILL.md +13 -0
  17. package/skills/effect-atom-rpc/SKILL.md +7 -1
  18. package/skills/effect-atom-state/SKILL.md +8 -2
  19. package/skills/effect-cache/SKILL.md +10 -1
  20. package/skills/effect-cli/SKILL.md +105 -94
  21. package/skills/effect-command-executor/SKILL.md +7 -1
  22. package/skills/effect-config/SKILL.md +67 -44
  23. package/skills/effect-domain-modeling/SKILL.md +3 -3
  24. package/skills/effect-error-handling/SKILL.md +2 -2
  25. package/skills/effect-fiber/SKILL.md +2 -2
  26. package/skills/effect-filesystem/SKILL.md +34 -4
  27. package/skills/effect-http-api/SKILL.md +17 -2
  28. package/skills/effect-http-client/SKILL.md +11 -2
  29. package/skills/effect-http-server/SKILL.md +28 -11
  30. package/skills/effect-layer-design/SKILL.md +6 -2
  31. package/skills/effect-mcp-server/SKILL.md +21 -4
  32. package/skills/effect-observability/SKILL.md +2 -2
  33. package/skills/effect-optics/SKILL.md +1 -1
  34. package/skills/effect-parallelization/SKILL.md +2 -2
  35. package/skills/effect-pattern-matching/SKILL.md +1 -1
  36. package/skills/effect-platform-abstraction/SKILL.md +3 -3
  37. package/skills/effect-rpc-api/SKILL.md +3 -3
  38. package/skills/effect-rpc-client/SKILL.md +14 -13
  39. package/skills/effect-rpc-cluster/SKILL.md +15 -12
  40. package/skills/effect-rpc-server/SKILL.md +11 -13
  41. package/skills/effect-scheduling/SKILL.md +7 -0
  42. package/skills/effect-schema-composition/SKILL.md +12 -4
  43. package/skills/effect-schema-v4/SKILL.md +75 -20
  44. package/skills/effect-scope/SKILL.md +4 -4
  45. package/skills/effect-socket/SKILL.md +161 -658
  46. package/skills/effect-sql/SKILL.md +50 -12
  47. package/skills/effect-stream/SKILL.md +19 -24
  48. package/skills/effect-testing/SKILL.md +35 -22
  49. package/skills/effect-workflow/SKILL.md +13 -2
  50. package/src/enforcer.ts +1 -1
  51. package/src/index.ts +1 -1
  52. 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
- In rc.112, `Scope.State.Open` stores `finalizerKey` / `finalizer` inline and
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 (rc.112)
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` changed in rc.112 (incremental usage and intrusive
525
- FIFO tracking); use the public checkout/invalidation APIs rather than their fields.
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