Skip to content

Unwrap Result from Yaml.parse in Skill.fromFiles and npm-promote Workspace - #10881

Merged
tim-smart merged 3 commits into
v4/next-minorfrom
agent/effect-bot/090fab8a4d1d
Nov 24, 2026
Merged

tim-smart merged 3 commits into
v4/next-minorfrom
agent/effect-bot/090fab8a4d1d

Conversation

@effect-bot

@effect-bot effect-bot commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

Unwrap the Result returned by Yaml.parse in the two v4/next-minor callers that still treated it as a plain parsed value after the rebase onto main:

  • packages/effect/src/ai/Skill.ts: unwrap Result from Yaml.parse in parseSkillMarkdown (matching mcpSkills.ts and commit 629d37e6bf so PR Resume Cloudflare Worker fibers in the request that owns them #10662 rebases cleanly without conflicts).
  • packages/tools/npm-promote/src/Workspace.ts: lift the Result with Effect.fromResult in packagesAtBump and decode it with Schema.decodeUnknownEffect, the same shape as the manifest decode further down the function.
  • packages/effect/test/ai/Skill.test.ts: add a malformed YAML frontmatter assertion verifying Skill.fromFiles fails with IllegalArgumentError("SKILL.md is missing valid YAML frontmatter").

No changeset is included since neither Skill nor the Yaml.parse return-type change has shipped on v4/next-minor, and @effect/npm-promote is private.

Closes EFF-4242

@changeset-bot

changeset-bot Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

⚠️ No Changeset found

Latest commit: 7b0c586

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@tim-smart
tim-smart enabled auto-merge (squash) November 24, 2026 00:59
@tim-smart
tim-smart merged commit 80cf583 into v4/next-minor Nov 24, 2026
15 checks passed
@tim-smart
tim-smart deleted the agent/effect-bot/090fab8a4d1d branch November 24, 2026 01:00
@github-actions

Copy link
Copy Markdown
Contributor

Bundle Size Analysis

Generated from PR build output; treat the content below as untrusted.

File Name Current Size Previous Size Difference
arbitrary-combinators.ts 40.27 KB 40.27 KB 0.00 KB (0.00%)
basic.ts 7.35 KB 7.35 KB 0.00 KB (0.00%)
batching.ts 11.38 KB 11.38 KB 0.00 KB (0.00%)
brand.ts 7.05 KB 7.05 KB 0.00 KB (0.00%)
cache.ts 11.85 KB 11.85 KB 0.00 KB (0.00%)
config.ts 23.28 KB 23.28 KB 0.00 KB (0.00%)
differ.ts 22.39 KB 22.39 KB 0.00 KB (0.00%)
http-client.ts 28.13 KB 28.13 KB 0.00 KB (0.00%)
http-router.ts 38.75 KB 38.75 KB 0.00 KB (0.00%)
logger.ts 12.29 KB 12.29 KB 0.00 KB (0.00%)
metric.ts 9.75 KB 9.75 KB 0.00 KB (0.00%)
optic.ts 7.28 KB 7.28 KB 0.00 KB (0.00%)
pubsub.ts 16.36 KB 16.36 KB 0.00 KB (0.00%)
queue.ts 13.25 KB 13.25 KB 0.00 KB (0.00%)
schedule.ts 12.08 KB 12.08 KB 0.00 KB (0.00%)
schema-bigdecimal.ts 14.40 KB 14.40 KB 0.00 KB (0.00%)
schema-binary.ts 43.02 KB 43.02 KB 0.00 KB (0.00%)
schema-class.ts 22.11 KB 22.11 KB 0.00 KB (0.00%)
schema-codegen.ts 30.89 KB 30.89 KB 0.00 KB (0.00%)
schema-fromJsonSchemaDocument.ts 30.75 KB 30.75 KB 0.00 KB (0.00%)
schema-representation-roundtrip.ts 28.43 KB 28.43 KB 0.00 KB (0.00%)
schema-string-transformation.ts 15.70 KB 15.70 KB 0.00 KB (0.00%)
schema-string.ts 12.59 KB 12.59 KB 0.00 KB (0.00%)
schema-template-literal.ts 16.59 KB 16.59 KB 0.00 KB (0.00%)
schema-toArbitrary.ts 39.84 KB 39.84 KB 0.00 KB (0.00%)
schema-toCodecJson.ts 21.30 KB 21.30 KB 0.00 KB (0.00%)
schema-toEquivalence.ts 21.45 KB 21.45 KB 0.00 KB (0.00%)
schema-toFormatter.ts 21.55 KB 21.55 KB 0.00 KB (0.00%)
schema-toJsonSchemaDocument.ts 26.59 KB 26.59 KB 0.00 KB (0.00%)
schema-toRepresentation.ts 21.63 KB 21.63 KB 0.00 KB (0.00%)
schema.ts 21.24 KB 21.24 KB 0.00 KB (0.00%)
stm.ts 14.58 KB 14.58 KB 0.00 KB (0.00%)
stream.ts 10.70 KB 10.70 KB 0.00 KB (0.00%)
supervisor.ts 11.63 KB 11.63 KB 0.00 KB (0.00%)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants