pair-mode 0.3.3 → 0.4.0
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/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +2 -8
- package/README.md +5 -3
- package/assets/duck-appalled-banner-sprite.png +0 -0
- package/assets/duck-appalled-banner-v2-sprite.png +0 -0
- package/assets/duck-appalled-banner-v2.gif +0 -0
- package/assets/duck-appalled-sprite.png +0 -0
- package/assets/duck-appalled.gif +0 -0
- package/assets/duck-before-main.png +0 -0
- package/assets/duck.png +0 -0
- package/assets/favicon.png +0 -0
- package/dist/claude-code.js +2 -1
- package/dist/cli.js +83 -22
- package/dist/codex.js +353 -248
- package/dist/opencode.js +2 -1
- package/dist/pair-tui.js +5 -1
- package/dist/pi.js +2 -1
- package/package.json +15 -16
package/dist/opencode.js
CHANGED
|
@@ -9162,13 +9162,14 @@ function detect(preference, adapters = {}) {
|
|
|
9162
9162
|
|
|
9163
9163
|
// src/transports/pane/pane.ts
|
|
9164
9164
|
var NAME_BYTES2 = 6;
|
|
9165
|
+
var OWNER_ONLY_FILE = 384;
|
|
9165
9166
|
function splitCommand(value) {
|
|
9166
9167
|
return value.trim().split(/\s+/).filter((part) => part !== "");
|
|
9167
9168
|
}
|
|
9168
9169
|
function tempFile(prefix, suffix, content) {
|
|
9169
9170
|
const name = `${prefix}${randomBytes3(NAME_BYTES2).toString("hex")}${suffix}`;
|
|
9170
9171
|
const path = join8(tmpdir2(), name);
|
|
9171
|
-
writeFileSync5(path, content, "utf-8");
|
|
9172
|
+
writeFileSync5(path, content, { encoding: "utf-8", mode: OWNER_ONLY_FILE, flag: "wx" });
|
|
9172
9173
|
return path;
|
|
9173
9174
|
}
|
|
9174
9175
|
function removeTreeQuietly(path) {
|
package/dist/pair-tui.js
CHANGED
|
@@ -2242,6 +2242,7 @@ function splitInput(chunk) {
|
|
|
2242
2242
|
|
|
2243
2243
|
// src/tui/notes/notes.ts
|
|
2244
2244
|
import { writeFileSync } from "node:fs";
|
|
2245
|
+
var OWNER_ONLY_FILE = 384;
|
|
2245
2246
|
function rangeOf(selection) {
|
|
2246
2247
|
const reversed = selection.anchorRow > selection.headRow || selection.anchorRow === selection.headRow && selection.anchorColumn > selection.headColumn;
|
|
2247
2248
|
if (!reversed) {
|
|
@@ -2312,7 +2313,10 @@ function toQuestions(notes) {
|
|
|
2312
2313
|
}
|
|
2313
2314
|
function writeResult(path, notes) {
|
|
2314
2315
|
try {
|
|
2315
|
-
writeFileSync(path, JSON.stringify({ questions: toQuestions(notes) }, null, 2),
|
|
2316
|
+
writeFileSync(path, JSON.stringify({ questions: toQuestions(notes) }, null, 2), {
|
|
2317
|
+
encoding: "utf-8",
|
|
2318
|
+
mode: OWNER_ONLY_FILE
|
|
2319
|
+
});
|
|
2316
2320
|
} catch {
|
|
2317
2321
|
return;
|
|
2318
2322
|
}
|
package/dist/pi.js
CHANGED
|
@@ -9272,13 +9272,14 @@ function detect(preference, adapters = {}) {
|
|
|
9272
9272
|
|
|
9273
9273
|
// src/transports/pane/pane.ts
|
|
9274
9274
|
var NAME_BYTES2 = 6;
|
|
9275
|
+
var OWNER_ONLY_FILE2 = 384;
|
|
9275
9276
|
function splitCommand(value) {
|
|
9276
9277
|
return value.trim().split(/\s+/).filter((part) => part !== "");
|
|
9277
9278
|
}
|
|
9278
9279
|
function tempFile(prefix, suffix, content) {
|
|
9279
9280
|
const name = `${prefix}${randomBytes3(NAME_BYTES2).toString("hex")}${suffix}`;
|
|
9280
9281
|
const path = join9(tmpdir2(), name);
|
|
9281
|
-
writeFileSync5(path, content, "utf-8");
|
|
9282
|
+
writeFileSync5(path, content, { encoding: "utf-8", mode: OWNER_ONLY_FILE2, flag: "wx" });
|
|
9282
9283
|
return path;
|
|
9283
9284
|
}
|
|
9284
9285
|
function removeTreeQuietly(path) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pair-mode",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.4.0",
|
|
4
4
|
"description": "Annotate a coding agent's proposed edits line by line, in your terminal.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -38,20 +38,6 @@
|
|
|
38
38
|
"README.md"
|
|
39
39
|
],
|
|
40
40
|
"type": "module",
|
|
41
|
-
"scripts": {
|
|
42
|
-
"build": "node scripts/build.mjs",
|
|
43
|
-
"capture": "node scripts/capture-fixtures.mjs",
|
|
44
|
-
"release": "node scripts/release.mjs",
|
|
45
|
-
"test": "vitest run",
|
|
46
|
-
"test:watch": "vitest",
|
|
47
|
-
"typecheck": "tsc --noEmit",
|
|
48
|
-
"prepublishOnly": "pnpm run build",
|
|
49
|
-
"fmt": "oxfmt",
|
|
50
|
-
"fmt:check": "oxfmt --check",
|
|
51
|
-
"lint": "oxlint",
|
|
52
|
-
"lint:fix": "oxlint --fix",
|
|
53
|
-
"syntax": "node scripts/fetch-syntax.mjs"
|
|
54
|
-
},
|
|
55
41
|
"dependencies": {
|
|
56
42
|
"diff": "^9.0.0",
|
|
57
43
|
"shiki": "^4.4.3",
|
|
@@ -67,5 +53,18 @@
|
|
|
67
53
|
},
|
|
68
54
|
"engines": {
|
|
69
55
|
"node": ">=22"
|
|
56
|
+
},
|
|
57
|
+
"scripts": {
|
|
58
|
+
"build": "node scripts/build.mjs",
|
|
59
|
+
"capture": "node scripts/capture-fixtures.mjs",
|
|
60
|
+
"release": "node scripts/release.mjs",
|
|
61
|
+
"test": "vitest run",
|
|
62
|
+
"test:watch": "vitest",
|
|
63
|
+
"typecheck": "tsc --noEmit",
|
|
64
|
+
"fmt": "oxfmt",
|
|
65
|
+
"fmt:check": "oxfmt --check",
|
|
66
|
+
"lint": "oxlint",
|
|
67
|
+
"lint:fix": "oxlint --fix",
|
|
68
|
+
"syntax": "node scripts/fetch-syntax.mjs"
|
|
70
69
|
}
|
|
71
|
-
}
|
|
70
|
+
}
|