paragma 0.3.1 → 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/SHA256SUMS CHANGED
@@ -1,6 +1,6 @@
1
- 6579a0c8dc1eb5230c554f8172c15d32df4c40a6abe7456f1de867cda47f9615 pg-darwin-arm64
2
- 6a35f09f8ccab9425e255b46166e57f4d3e10f8334d510ef78167f6054de9ca9 pg-darwin-x64
3
- ecbb038504922ae7b1b0890faeedaf59e150906f1a797b560f792bbcfbd9b311 pg-linux-arm64
4
- 506e76072ccb6bb1917aea6a2fca9a9653062e718040dc0a739c1e1fcbb37c64 pg-linux-x64
5
- a5ed42cc2708f62ea067aadf05eca04035cc32df1849d3d2e89a1bca53b388e6 pg-windows-arm64.exe
6
- e28cc72aea793b6b87063c36eb352882f0147323705ba19052f3910f9c42f5e8 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.1",
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",