Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.1/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"fixed": [["@looped/core", "@looped/triggers", "@looped/af"]],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"privatePackages": {
"version": true,
"tag": false
},
"ignore": []
}
33 changes: 33 additions & 0 deletions .github/workflows/version.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
# On pushes to main with pending changesets, open/update a "Version Packages"
# PR that consumes them, bumps versions (package.json + deno.json via
# scripts/sync-versions.ts), and writes changelogs. Merging that PR is the
# cue to cut a GitHub release, which triggers publish-jsr.yml.
name: version

on:
push:
branches: [main]

permissions:
contents: write
pull-requests: write

jobs:
version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v2
with:
deno-version: v2.x
- uses: actions/setup-node@v4
with:
node-version: 22
- run: npm install --no-save @changesets/cli@2.31.0
- uses: changesets/action@v1
with:
version: deno task version
commit: "release: version packages"
title: "release: version packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9 changes: 9 additions & 0 deletions CLAUDE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# Agent Framework

## Versioning

Always use changesets. Any change to `packages/` that users would notice needs a changeset (`deno task changeset`). Versions live in `deno.json` (what JSR publishes) and are synced from the changesets-managed `package.json` stubs by `deno task version` — never bump either by hand. The `version.yml` workflow opens a "Version Packages" PR on main; merging it is the cue to cut a GitHub release, which publishes to JSR.

## Documentation

Always read `skills/writing/looped-docs.md` before writing any documentation or copy. It supersedes default writing style.
2 changes: 2 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
"./packages/cli"
],
"tasks": {
"changeset": "deno run --allow-read --allow-write --allow-env --allow-sys --allow-run=git npm:@changesets/cli@2.31.0",
"version": "deno task changeset version && deno run --allow-read --allow-write scripts/sync-versions.ts",
"test": "deno test --allow-read --allow-write --allow-env --allow-run=bash --allow-net=127.0.0.1,0.0.0.0 packages/",
"check": "deno check packages/",
"ok": "deno fmt --check && deno lint && deno task check && deno task test",
Expand Down
Loading
Loading