ledgit-cli 0.2.0 → 0.2.1

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 (2) hide show
  1. package/dist/index.js +14 -25
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -27912,14 +27912,6 @@ async function syncBokioInbox(cwd) {
27912
27912
  - ${newCount} new inbox items downloaded
27913
27913
  - ${existingCount} already existed
27914
27914
  `);
27915
- if (newCount > 0) {
27916
- const commitMessage = `Sync inbox: ${newCount} items downloaded`;
27917
- const committed = await commitAll(cwd, commitMessage);
27918
- if (committed) {
27919
- console.log(` Committed: "${commitMessage}"
27920
- `);
27921
- }
27922
- }
27923
27915
  }
27924
27916
  function getExtensionFromContentType(contentType) {
27925
27917
  const map = {
@@ -28006,14 +27998,6 @@ async function syncFortnoxInbox2(cwd) {
28006
27998
  - ${result.newCount} new inbox items downloaded
28007
27999
  - ${result.existingCount} already existed
28008
28000
  `);
28009
- if (result.newCount > 0) {
28010
- const commitMessage = `Sync inbox: ${result.newCount} items downloaded from Fortnox`;
28011
- const committed = await commitAll(cwd, commitMessage);
28012
- if (committed) {
28013
- console.log(` Committed: "${commitMessage}"
28014
- `);
28015
- }
28016
- }
28017
28001
  }
28018
28002
 
28019
28003
  // src/commands/company-info.ts
@@ -34118,6 +34102,11 @@ jobs:
34118
34102
 
34119
34103
  - uses: oven-sh/setup-bun@v2
34120
34104
 
34105
+ - name: Configure git
34106
+ run: |
34107
+ git config user.name "ledgit[bot]"
34108
+ git config user.email "bot@ledgit.se"
34109
+
34121
34110
  - name: Sync inbox
34122
34111
  run: npx ledgit-cli sync-inbox
34123
34112
  env:
@@ -34139,23 +34128,23 @@ jobs:
34139
34128
  with:
34140
34129
  anthropic_api_key: \${{ secrets.ANTHROPIC_API_KEY }}
34141
34130
  prompt: |
34142
- New documents synced to inbox/. Read AGENTS.md for instructions.
34131
+ New documents synced to inbox/ (unstaged). Read AGENTS.md for instructions.
34132
+
34133
+ YOU handle all git operations. The inbox files are NOT committed yet.
34143
34134
 
34144
34135
  FIRST: Check for existing open bookkeeping PRs with \\\`gh pr list\\\`.
34145
- If there's an active PR you should continue on, check out that branch and add to it.
34146
- Group related entries (e.g., same vendor, same week) in one PR when it makes sense.
34136
+ - If there's an active PR, checkout that branch and add to it
34137
+ - Otherwise, create a new branch: book/{date}-{description}
34138
+ - Group related entries (same vendor, same week) in one PR when sensible
34147
34139
 
34148
34140
  THEN:
34149
34141
  1. Check each new item in inbox/ (you can read PDFs directly)
34150
34142
  2. Find similar entries in journal-entries/ for reference
34151
34143
  3. Create entries with \\\`npx ledgit-cli create-entry\\\`
34144
+ 4. Stage and commit all changes (inbox files + entries)
34145
+ 5. Push and create/update PR
34152
34146
 
34153
- ALWAYS create or update a PR:
34154
- - If you created entries successfully, PR contains the new entries
34155
- - If anything is unclear, commit the inbox files and ask questions in the PR description
34156
- - The user will answer your questions via PR comments
34157
-
34158
- For new PRs, create branch: book/{date}-{description}
34147
+ If anything is unclear, commit the inbox files anyway and ask questions in the PR description.
34159
34148
  claude_args: |
34160
34149
  --allowedTools "Read,Write,Edit,Bash(npx ledgit-cli:*),Bash(git:*),Bash(gh pr:*),Bash(ls:*),Bash(find:*),Bash(grep:*),Bash(cat:*)"
34161
34150
  track_progress: true
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ledgit-cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "CLI for ledgit bookkeeping repositories",
5
5
  "repository": {
6
6
  "type": "git",