Skip to content

fix: create stub files on init and rename apiVersion to v1alpha1#32

Open
wiliyam wants to merge 1 commit intoagents-oss:mainfrom
wiliyam:fix/init-create-stub-files-and-apiver-20-21
Open

fix: create stub files on init and rename apiVersion to v1alpha1#32
wiliyam wants to merge 1 commit intoagents-oss:mainfrom
wiliyam:fix/init-create-stub-files-and-apiver-20-21

Conversation

@wiliyam
Copy link
Copy Markdown

@wiliyam wiliyam commented Apr 1, 2026

Summary

Fixes #20 and #21

Issue #20 — init stub files

agentspec init generated an agent.yaml referencing $file:prompts/system.md but never created the file, breaking the quick-start flow at the generate step.

Changes:

  • After writing agent.yaml, init now creates prompts/system.md with a sensible default system prompt
  • If --eval was selected, also creates eval/datasets/qa.jsonl stub
  • Skips creation if the file already exists (safe to re-run)

Issue #21 — rename apiVersion

The manifest apiVersion: agentspec.io/v1 signalled a stable API but the schema is still evolving.

Changes:

  • Renamed to agentspec.io/v1alpha1 across all source, test, example, and demo files (39 files)
  • Added backward-compat migration v1ToV1Alpha1 so existing manifests using agentspec.io/v1 are silently upgraded rather than failing validation

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.

agentspec init must create stub files it references

1 participant