paragma 0.3.0 → 0.3.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.
package/README.md CHANGED
@@ -142,6 +142,7 @@ pg write --decision "..." --why "..." --alternatives "..."
142
142
  pg write --error "<error line>" --cause "..." --fix "..."
143
143
  pg write payments/provider --file notes.md # a note; long text from a file or stdin (-)
144
144
  pg finish --done 1 "what changed, what is next" # tick off steps, leave the handoff
145
+ pg steps # the steps with their numbers (--drop 4, --edit 4 "text")
145
146
  pg ripple # what a change reaches: callers left as they were, tests to run
146
147
  pg tree # the code: files and symbols, with the notes about them marked
147
148
  pg ls # projects, or the notes of one; also pg mv, pg rm, pg doctor
@@ -166,7 +167,7 @@ pg run -- npm publish --token '$NPM_PUBLISH_TOKEN'
166
167
  pg git
167
168
  ```
168
169
 
169
- Opens a small screen: sign in to GitHub (with the GitHub CLI or the sign-in git already has, else in the browser with a code), then choose where the memory goes: a new private repository (`paragma-memory`), or one you have, in a `Paragma/` folder on its own branch or on its main branch. Choosing a public repository asks first. The `.env` files go only if you say so, and never to a public repository.
170
+ Opens a small screen: sign in to GitHub (with the GitHub CLI or the sign-in git already has, else in the browser with a code), then choose where the memory goes: a new private repository (`paragma-memory`, of your account or of one of its organizations), or one you have, in a `Paragma/` folder on its own branch or on its main branch. Choosing a public repository asks first. The `.env` files go only if you say so, and never to a public repository.
170
171
 
171
172
  From then on every change goes there by itself, a few seconds after it is made, in the background: the agent never waits for it. What other computers sent comes in the same way. On a new computer, `pg git` finds the memory in your repositories (your own and your organizations') and restores it, joined with whatever is already there. The indexes and the short-lived state in `.pg/` never go; they are rebuilt.
172
173
 
package/SHA256SUMS CHANGED
@@ -1,6 +1,6 @@
1
- 5fb0e7851a5b463d64c949ae9e940927eb86dd35c5466bbb4a73af20d471a140 pg-darwin-arm64
2
- d20bf0257481faa4385235bc53fc5669a1945de8342adf0b34ce1fc0c1c06a6f pg-darwin-x64
3
- a73eb5cca079271642fdbaa4c90594ed5857cc0a05a650b7b1b568007b451042 pg-linux-arm64
4
- 950eecf79c46163635bec0436efa551c242380b8ae23939c7f09362ced4c431f pg-linux-x64
5
- 2a523e3622166699e657e0f0597265569325a634e65ca28ccb00cc427300bd5e pg-windows-arm64.exe
6
- 8682f8501c0d8d9098daa6574d979c7392201028ccc0c48293c15a52a0dc8bfd pg-windows-x64.exe
1
+ a134291669ba5227ce6255d9306e57435976d614b91d49dbb0a59ea90fc5c1e6 pg-darwin-arm64
2
+ 8f675646da031ca721beb9ab9093b85f5726e8019d764df15dd15701979669a4 pg-darwin-x64
3
+ fee8a1f377609ef234a07645cb0717c839c00f6b9444f21bc38abc3d801dca79 pg-linux-arm64
4
+ 2ca49924a6d2cf676b7761d4071745edd246c4bba7f3f9e36c8497ececa0ace5 pg-linux-x64
5
+ 41466ebb5a6b003ffc4b1c51ac33e6295ae50a9da16be618ce3075f3704a036e pg-windows-arm64.exe
6
+ 04d11a528fed464ea4d8667571e914173578578532332604a4f5f2b80b3570b3 pg-windows-x64.exe
package/install.js CHANGED
@@ -145,15 +145,18 @@ function shims(exe) {
145
145
  "#!/usr/bin/env pwsh",
146
146
  `# ${MARK}`,
147
147
  "$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent",
148
+ "# --done 1,3 is an array here: passed on as 1,3 (as PowerShell passes it",
149
+ "# to a program it runs itself), not as \"1 3\"",
150
+ "$a=@(foreach ($x in $args) { if ($x -is [array]) { $x -join ',' } else { $x } })",
148
151
  `if (-not (Test-Path "$basedir/${slash(exe)}")) {`,
149
152
  " # the binary is gone (an update): Node's launcher downloads it again",
150
- ` & node "$basedir/${slash(launcher)}" $args`,
153
+ ` & node "$basedir/${slash(launcher)}" @a`,
151
154
  " exit $LASTEXITCODE",
152
155
  "}",
153
156
  "if ($MyInvocation.ExpectingInput) {",
154
- ` $input | & "$basedir/${slash(exe)}" $args`,
157
+ ` $input | & "$basedir/${slash(exe)}" @a`,
155
158
  "} else {",
156
- ` & "$basedir/${slash(exe)}" $args`,
159
+ ` & "$basedir/${slash(exe)}" @a`,
157
160
  "}",
158
161
  "exit $LASTEXITCODE",
159
162
  "",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "paragma",
3
- "version": "0.3.0",
3
+ "version": "0.3.2",
4
4
  "description": "Project memory for AI coding agents: rules, decisions, past errors with their fixes, and handoffs between conversations, found by hybrid search.",
5
5
  "keywords": [
6
6
  "ai",