@delma/fylo 1.1.1 → 1.1.2

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.
@@ -1,3 +1,3 @@
1
- Follow the shared workspace instructions in `../instructions.md` and shared context in `../memory.md`.
1
+ Follow the shared workspace instructions in `../../INSTRUCTIONS.md`, shared context in `../../MEMORY.md`, and shared release process in `../../RELEASE.md`.
2
2
 
3
3
  If a repo-local instruction file adds stricter rules, follow the repo-local rule.
@@ -1,49 +1,10 @@
1
1
  ---
2
- description: "Create a release branch, publish to npm via CI, then merge to main"
2
+ description: "Follow the shared workspace release process"
3
3
  agent: "agent"
4
4
  tools: [runInTerminal]
5
5
  ---
6
- Create a release branch, publish to npm via CI, then merge to main.
6
+ Follow the shared workspace release process in [../../../RELEASE.md](../../../RELEASE.md).
7
7
 
8
- 1. Run `bun test` and stop if any tests fail.
8
+ Use the repo's actual default branch. Do not assume it is `main`.
9
9
 
10
- 2. Determine the new version automatically based on unreleased commits:
11
- `git log $(git describe --tags --abbrev=0 2>/dev/null || git rev-list --max-parents=0 HEAD)..HEAD --oneline`
12
-
13
- Apply these rules to select the bump type:
14
- - **major** — any commit with a `!` breaking-change marker (e.g. `feat!:`, `fix!:`) or a `BREAKING CHANGE` footer.
15
- - **minor** — one or more `feat:` commits and no breaking changes.
16
- - **patch** — only `fix:`, `chore:`, `docs:`, `refactor:`, `test:`, or `perf:` commits.
17
-
18
- Compute the new version by incrementing the corresponding part of the current `"version"` in [package.json](package.json) and resetting lower parts to zero. Show the chosen version and the reasoning to the user before proceeding.
19
-
20
- 3. Update `"version"` in [package.json](package.json) to the new version.
21
-
22
- 4. Fetch the latest main and create a release branch from it:
23
- ```
24
- git fetch origin main
25
- git checkout -b release/<version> origin/main
26
- ```
27
-
28
- 5. Stage all changes and commit:
29
- `git add -A && git commit -m "chore: release v<version>"`
30
-
31
- 6. Push the branch:
32
- `git push -u origin release/<version>`
33
-
34
- 7. Tell the user that the `publish` workflow will now run on GitHub Actions:
35
- - It verifies the branch name matches `package.json` version.
36
- - It runs tests, publishes to npm, creates a git tag, and opens a GitHub release.
37
- - The NPM_TOKEN secret must be set in repo Settings → Secrets → Actions.
38
-
39
- 8. Once the workflow passes (user confirms), create a PR and merge it to main:
40
- ```
41
- gh pr create --title "chore: release v<version>" --body "Release v<version>" --base main --head release/<version>
42
- gh pr merge --merge --delete-branch
43
- ```
44
-
45
- 9. Switch back to main and pull:
46
- ```
47
- git checkout main
48
- git pull
49
- ```
10
+ If repo-local workflows impose stricter checks or branch requirements, follow the repo-local workflow and then update the shared release guide later if that rule becomes the new standard.
package/AGENTS.md CHANGED
@@ -1,3 +1,3 @@
1
- Follow the shared workspace instructions in [../instructions.md](../instructions.md) and shared context in [../memory.md](../memory.md).
1
+ Follow the shared workspace instructions in [../INSTRUCTIONS.md](../INSTRUCTIONS.md), shared context in [../MEMORY.md](../MEMORY.md), and shared release process in [../RELEASE.md](../RELEASE.md).
2
2
 
3
3
  Repo-local rules may add to or override the shared files when explicitly stated.
package/CLAUDE.md CHANGED
@@ -1,3 +1,3 @@
1
- Follow the shared workspace instructions in [../instructions.md](../instructions.md) and shared context in [../memory.md](../memory.md).
1
+ Follow the shared workspace instructions in [../INSTRUCTIONS.md](../INSTRUCTIONS.md), shared context in [../MEMORY.md](../MEMORY.md), and shared release process in [../RELEASE.md](../RELEASE.md).
2
2
 
3
3
  Repo-local rules may add to or override the shared files when explicitly stated.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delma/fylo",
3
- "version": "1.1.1",
3
+ "version": "1.1.2",
4
4
  "main": "./dist/index.js",
5
5
  "types": "./dist/types/index.d.ts",
6
6
  "bin": {
@@ -1,19 +0,0 @@
1
- ---
2
- description: "Create a GitHub issue for a bug or feature request"
3
- argument-hint: "Describe the bug or feature request"
4
- agent: "agent"
5
- tools: [runInTerminal]
6
- ---
7
- Create a GitHub issue. The user's description is provided as the argument.
8
-
9
- Determine whether the description sounds like a bug or a feature request, then create the issue with `gh issue create` using the following structure:
10
-
11
- **For a bug:**
12
- - Title: "fix: <short description>"
13
- - Body sections: **Describe the bug**, **Steps to reproduce**, **Expected behaviour**, **Actual behaviour**, **Possible cause** (reference relevant lines in `src/index.ts` if applicable), **Environment** (Bun version, TypeScript version, AWS/S3 endpoint details).
14
-
15
- **For a feature request:**
16
- - Title: "feat: <short description>"
17
- - Body sections: **Problem**, **Proposed solution**, **Alternatives considered**, **Affected API** (list any methods in `src/types/fylo.d.ts` or `src/types/query.d.ts` that would change).
18
-
19
- Apply the appropriate label (`bug` or `enhancement`) via `--label`. Print the issue URL when done.
@@ -1,18 +0,0 @@
1
- ---
2
- description: "Create a pull request for the current branch into main"
3
- agent: "agent"
4
- tools: [runInTerminal]
5
- ---
6
- Create a pull request for the current branch into `main`.
7
-
8
- 1. Run `git status` and stop if there are uncommitted changes — ask the user to commit or stash them first.
9
- 2. Run `git log main..HEAD --oneline` to list commits on this branch.
10
- 3. Run `git diff main...HEAD` to understand all changes.
11
- 4. Push the branch to origin if it has no upstream: `git push -u origin HEAD`.
12
- 5. Create the PR with `gh pr create` using:
13
- - A concise title (≤ 70 chars) derived from the branch name and commits.
14
- - A body with three sections:
15
- - **Summary** — bullet list of what changed and why.
16
- - **Test plan** — checklist of how to verify the changes (reference `bun test` where relevant).
17
- - **Breaking changes** — any changes to public API in [src/types/fylo.d.ts](src/types/fylo.d.ts) or [src/types/query.d.ts](src/types/query.d.ts); write "None" if there are none.
18
- 6. Print the PR URL.
@@ -1,19 +0,0 @@
1
- ---
2
- description: "Review a pull request by number or URL"
3
- argument-hint: "PR number or URL (e.g. 42)"
4
- agent: "agent"
5
- tools: [runInTerminal]
6
- ---
7
- Review the pull request given as an argument (PR number or URL).
8
-
9
- 1. Fetch the PR details: `gh pr view <arg> --json title,body,headRefName,baseRefName,files`
10
- 2. Fetch the diff: `gh pr diff <arg>`
11
- 3. Review the changes with focus on:
12
- - **Correctness** — logic errors, edge cases missed in query parsing ([src/core/parser.ts](src/core/parser.ts)), S3 operations ([src/adapters/s3.ts](src/adapters/s3.ts)), or directory/index management ([src/core/directory.ts](src/core/directory.ts)).
13
- - **Type safety** — use of `any` instead of `unknown`, missing type guards, incorrect use of types in [src/types/](src/types/).
14
- - **Tests** — whether new behaviour is covered in [tests/](tests/); flag any missing cases across document, collection, or schema tests.
15
- - **Public API** — unintended changes to [src/types/fylo.d.ts](src/types/fylo.d.ts) or [src/types/query.d.ts](src/types/query.d.ts).
16
- - **CI** — whether the workflow files in [.github/workflows/](.github/workflows/) are still valid for the change.
17
- 4. Post the review as inline comments using `gh pr review <arg> --comment --body "<feedback>"`.
18
- Group feedback by file. Prefix each point with **[suggestion]**, **[issue]**, or **[nit]**.
19
- 5. Summarise the overall verdict: Approve / Request changes / Comment only.
@@ -1,14 +0,0 @@
1
- ---
2
- description: "Rebase the current branch onto the latest main from origin"
3
- agent: "agent"
4
- tools: [runInTerminal]
5
- ---
6
- Safely bring the current branch up to date with the latest `main` from origin.
7
-
8
- 1. Confirm the current branch with `git branch --show-current`. If already on `main`, just run `git pull` and stop.
9
- 2. Stash any uncommitted changes with `git stash push -m "sync-main auto-stash"` and note whether anything was stashed.
10
- 3. Fetch the latest: `git fetch origin main`.
11
- 4. Rebase the current branch onto `origin/main`: `git rebase origin/main`.
12
- 5. If the rebase has conflicts, list the conflicting files and stop — ask the user to resolve them, then run `git rebase --continue`.
13
- 6. If a stash was created in step 2, restore it with `git stash pop`.
14
- 7. Report: commits rebased, files changed, any stash restored.