@varman96/paper 1.0.5 → 1.0.7
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/dist/paper.js +26 -26
- package/package.json +60 -47
package/dist/paper.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{spawn as B}from"node:child_process";import{createHash as Z}from"node:crypto";import{realpathSync as V}from"node:fs";import{lstat as q,mkdir as P,readFile as K,rename as
|
|
2
|
+
import{spawn as B}from"node:child_process";import{createHash as Z}from"node:crypto";import{realpathSync as V,statSync as X}from"node:fs";import{lstat as q,mkdir as P,readFile as K,rename as Y,stat as F,writeFile as M}from"node:fs/promises";import{homedir as R,platform as O}from"node:os";import{basename as k,dirname as m,extname as J,join as a,resolve as y}from"node:path";import{fileURLToPath as Q}from"node:url";var I=[["1. Scope",[["what-failing","What is failing?"],["still-working","What is still working?"],["failure-breadth","How broad is the failure?"],["deterministic","Is it deterministic?"]]],["2. Delta",[["changed-recently","What changed recently?"],["did-not-change","What did not change?"],["git-runtime-environment-differences","Relevant git/runtime/environment differences"]]],["3. Failure Boundary",[["expected-at-boundary","Expected behavior at the boundary"],["observed-at-boundary","Observed behavior at the boundary"],["input-payload","Exact input/payload entering the boundary"],["output-error","Exact output/error leaving the boundary"]]],["4. Execution Path",[["origin","Origin"],["intermediate-components","Intermediate components"],["first-confirmed-divergence","First confirmed divergence"],["runtime-environment-hops","Runtime/environment at relevant hops"]]],["5. Evidence",[["exit-code","Exit code"],["stderr-stack-trace","stderr / stack trace"],["status-codes","Status codes"],["commands","Commands"],["changed-files","Changed files"],["git-diff-stat","git diff/stat"],["runtime-versions","Runtime versions"],["other-receipts","Other deterministic receipts"]]],["6. Falsified Hypotheses",[["hypothesis","Hypothesis"],["test-check","Test/check performed"],["result","Result"],["why-ruled-out","Why it is ruled out"]]],["7. Current Working Hypothesis",[["working-hypothesis","Hypothesis"],["supporting-evidence","Evidence supporting it"],["opposing-evidence","Evidence against it"]]],["8. Next Test",[["smallest-action","Smallest action to isolate or test next"]]]],Se=I.flatMap(([,e])=>e);function T(e={}){let t=I.flatMap(([n,r])=>{let s=r.flatMap(([o,i])=>{let c=String(e[o]??"").trim();return c?[`### ${i}
|
|
3
3
|
|
|
4
4
|
${c}`]:[]});return s.length?[`## ${n}
|
|
5
5
|
|
|
@@ -9,7 +9,7 @@ ${s.join(`
|
|
|
9
9
|
|
|
10
10
|
${t.join(`
|
|
11
11
|
|
|
12
|
-
`)}`:""}`}var
|
|
12
|
+
`)}`:""}`}var $={name:"@varman96/paper",version:"1.0.7",description:"Paper captures command failures in a structured Incident Report for coding-agent investigation.",main:"dist/paper.js",bin:{paper:"./dist/paper.js"},files:["dist/paper.js","README.md","LICENSE"],directories:{test:"test"},scripts:{"alpha:issue":"node scripts/issue-alpha-access.js","alpha:revoke":"node scripts/revoke-alpha-access.js","fail:test":"node scripts/fail-test.js",paper:"node scripts/paper.js","paper:dev":"node scripts/paper.js","build:cli":"node scripts/build-cli.js",prepack:"npm run build:cli","deploy:production":"wrangler deploy --env production",test:"node test/run-tests.js","test:fast":"node test/run-tests.js --fast","test:browser":"node test/run-tests.js --browser","test:alpha-browser":"node test/alpha-access.browser.js"},repository:{type:"git",url:"git+https://github.com/varman96/paper.git"},keywords:["debugging","cli","developer-tools","coding-agents","ai-coding","incident-report","terminal","error-logs","claude-code","cursor","codex"],author:"",license:"SEE LICENSE IN LICENSE",type:"module",bugs:{url:"https://github.com/varman96/paper/issues"},homepage:"https://paper-ai.paperhq.workers.dev/",devDependencies:{"@biomejs/biome":"2.5.14",esbuild:"^0.28.1",wrangler:"^4.132.0"}};var ee=`Paper captures a failed command and writes a local Incident Report.
|
|
13
13
|
|
|
14
14
|
Usage: paper run <command>
|
|
15
15
|
|
|
@@ -22,43 +22,43 @@ Report: .paper/incident_report.md
|
|
|
22
22
|
paper shelf Move the active Incident Report out of the workspace
|
|
23
23
|
|
|
24
24
|
--help Show this help
|
|
25
|
-
--version Show the version`,
|
|
26
|
-
`),d=class extends Error{constructor(t,n,r,s){super(n),this.name="PaperCliError",this.causeLabel=t,this.state=r,this.directive=s}};function
|
|
25
|
+
--version Show the version`,x=["<!-- paper:start -->","## Paper Incident Workflow","","When `.paper/incident_report.md` exists, read it before investigating.","","Treat the Incident Report as the current evidence anchor, not as infallible truth. Use it to establish the known failure boundary, then inspect the repository, runtime, tests, configuration, and other source-of-truth evidence as needed.","","Diagnose the issue using this trace:","","### 1. Establish the Failing Invariant","","Identify the exact boundary contract that was violated.","","State:","","Invariant Expected:","The concrete behavior or state that should have held.","","Invariant Observed:","The concrete behavior or state actually observed.","","Use precise system evidence where available:","- exit codes","- status codes","- errno","- ports","- file paths","- symbols","- stack frames","- environment values","- process state","- exact command output","","Do not replace concrete evidence with vague summaries.","","### 2. State Elimination","","Shrink the search space by explicitly ruling out competing explanations using verified evidence.","","For each relevant factor, state whether it is:","- confirmed working","- confirmed failing","- still unverified","","Examples:","- config parsed successfully","- network route reachable","- dependency present or missing","- process listening or not listening","- expected environment variable present or absent","","Do not mark a hypothesis ruled out without evidence.","","Do not repeat theories already ruled out by the Incident Report unless new evidence justifies reopening them.","","### 3. Single-Point Attribution","","Narrow the diagnosis to the smallest confirmed fault boundary.","","State:","","Fault Location:","The exact file, line, symbol, process, dependency, configuration value, environment delta, or runtime boundary responsible.","","Mechanism:","The concrete way that fault caused the observed invariant violation.","","Do not invent a root cause if the evidence only supports a narrower failure boundary.","","If the mechanism is not yet verified, label it as unverified and continue investigating.","","Newer source-of-truth evidence overrides stale or incorrect Incident Report content.","","### 4. Proposed Action Packet \u2014 Zero Execution","","Once the failure is sufficiently explained, STOP before remediation.","","Do not:","- modify files","- start or stop services","- change configuration","- install dependencies","- run a fix","- apply a patch","- mutate the environment","","unless the user explicitly asked for remediation.","","Report:","","What I found:","A concise diagnosis grounded in the Incident Report and verified evidence gathered afterward.","","Proposed fix:","The smallest intervention that addresses the confirmed mechanism.","","Diff preview:","Describe the expected code/config change if applicable. Do not apply it.","","Verification test:","Name the smallest test or command that would verify the proposed fix.","","Clearly distinguish:","- evidence already present in the Incident Report","- findings established during investigation","- hypotheses that remain unverified","","Once the current failure is sufficiently explained, stop widening the investigation unless new evidence connects another issue to the same failure.","","Important behavior:","- The agent may inspect the repo/runtime normally.","- The Incident Report is not the only source of truth.","- The agent must not hallucinate missing telemetry.","- The agent must not convert an unverified hypothesis into a confirmed diagnosis.","- The agent must not execute remediation unless explicitly asked.","- The diagnostic trace is investigative structure, not verbose prose. Keep each section concise and evidence-based.","<!-- paper:end -->"].join(`
|
|
26
|
+
`),d=class extends Error{constructor(t,n,r,s){super(n),this.name="PaperCliError",this.causeLabel=t,this.state=r,this.directive=s}};function A(e){return e instanceof d?[e.causeLabel,e.message,"",e.state,"",e.directive].join(`
|
|
27
27
|
`):["PAPER OPERATION FAILED",e?.message||"Paper encountered an unclassified local operation failure.","","Paper stopped before the requested operation completed.","","Resolve the reported local error and run Paper again."].join(`
|
|
28
|
-
`)}function
|
|
28
|
+
`)}function te({modulePath:e=Q(import.meta.url),invokedPath:t=process.argv[1],resolvePath:n=V.native}={}){if(!t)return{isCli:!1,startupFailure:!1};try{return{isCli:n(y(e))===n(y(t)),startupFailure:!1}}catch{let r=k(e).toLowerCase(),s=k(t).toLowerCase();return{isCli:!1,startupFailure:r===s}}}async function ne(e){try{let t=await F(e);return t.isDirectory()||t.isFile()}catch{return!1}}async function E(e=process.cwd()){let t=y(e);for(;;){if(await ne(a(t,".git")))return t;let n=m(t);if(n===t)return y(e);t=n}}async function b(e,t){try{let n=await F(e);return t==="directory"?n.isDirectory():t==="file"?n.isFile():!0}catch{return!1}}async function v(e){try{if((await q(e)).isSymbolicLink())throw new Error(`Refusing to write through a symbolic link: ${e}`)}catch(t){if(t.code!=="ENOENT")throw t}}async function re(e){let t=[],n=["AGENTS.md","CLAUDE.md","GEMINI.md",a(".github","copilot-instructions.md"),".cursorrules",a(".cursor","rules.md"),a(".cursor","instructions.md")];for(let r of n)await b(a(e,r),"file")&&t.push(a(e,r));return await b(a(e,".cursor","rules"),"directory")&&t.push(a(e,".cursor","rules","paper.mdc")),t.length?t:[a(e,"AGENTS.md")]}function ie(e){let t=/<!-- paper:start -->[\s\S]*?<!-- paper:end -->/g;if(e.match(t)?.length){let r=0,s=e.replace(t,()=>r++===0?x:"");return{next:s,changed:s!==e}}return{next:e?`${e}${e.endsWith(`
|
|
29
29
|
`)?`
|
|
30
30
|
`:`
|
|
31
31
|
|
|
32
|
-
`}${
|
|
33
|
-
`:`${
|
|
34
|
-
`,changed:!0}}async function
|
|
32
|
+
`}${x}
|
|
33
|
+
`:`${x}
|
|
34
|
+
`,changed:!0}}async function se(e=process.cwd()){let t=await E(e),n=await re(t),r=[],s=[];for(let o of n){await v(o),await v(m(o)),await v(m(m(o)));let i="";try{i=await K(o,"utf8")}catch(f){if(f.code!=="ENOENT")throw f}let{next:c,changed:p}=ie(i);p&&(await P(m(o),{recursive:!0}),await M(o,c,"utf8"),r.push(o),i||s.push(o))}return{repoRoot:t,targetPaths:n,changedPaths:r,created:s.length>0,changed:r.length>0}}async function oe(e,t){let n=a(e,".paper","incident_report.md");return await v(a(e,".paper")),await v(n),await P(m(n),{recursive:!0}),await M(n,t,"utf8"),n}function ae(e=process.env,t=O()){return t==="win32"?e.LOCALAPPDATA||a(R(),"AppData","Local","Paper"):a(e.XDG_DATA_HOME||a(R(),".local","share"),"Paper")}function ce(e,t=process.env,n=O()){let r=Z("sha256").update(y(e)).digest("hex").slice(0,16);return a(ae(t,n),"shelf",r)}function de(e=new Date){return e.toISOString().replace(/[:.]/g,"-")}async function pe(e,t){let n=0;for(;;){let r=a(e,`${t}${n?`-${n}`:""}.md`);if(!await b(r,"file"))return r;n+=1}}async function le(){let e=await E(),t=a(e,".paper","incident_report.md");if(!await b(t,"file"))throw new d("NO ACTIVE INCIDENT","Paper could not find an active Incident Report.","No files were changed.","Run `paper run <command>` to capture a failure first.");let n=ce(e),r=await pe(n,de());try{await P(n,{recursive:!0}),await Y(t,r)}catch(s){throw new d("INCIDENT SHELF FAILED",`Paper could not move the Incident Report out of the workspace${s?.code?` (${s.code})`:"."}`,"The active Incident Report was preserved in the workspace.","Restore access to the Paper shelf location and run `paper shelf` again.")}process.stdout.write(`INCIDENT SHELVED
|
|
35
35
|
Moved the active Incident Report out of the workspace.
|
|
36
36
|
|
|
37
37
|
Stored at:
|
|
38
38
|
${r}
|
|
39
|
-
`)}function H(e,t){return[e,...t].join(" ")}function
|
|
40
|
-
`)}function
|
|
41
|
-
${
|
|
39
|
+
`)}function H(e,t){return[e,...t].join(" ")}function ue(e){if(process.platform!=="win32"||J(e)||/[\\/]/.test(e))return e;let t=(process.env.PATHEXT||".COM;.EXE;.BAT;.CMD").split(";").filter(Boolean),n=(process.env.PATH||"").split(";");for(let r of n)for(let s of t){let o=a(r||".",`${e}${s}`);try{if(X(o).isFile())return`${e}${s}`}catch{}}return e}function he(e,t,n){return new Promise((r,s)=>{let o=!1,i=ue(e),c=process.platform==="win32"&&/\.cmd$/i.test(i),p=B(c?process.env.ComSpec||"cmd.exe":i,c?["/d","/s","/c",i,...t]:t,{cwd:n,windowsHide:!0,stdio:["inherit","pipe","pipe"]}),f="",g="";p.stdout.on("data",u=>{f+=u}),p.stderr.on("data",u=>{g+=u}),p.once("error",u=>{o||(o=!0,s(u))}),p.once("close",(u,w)=>{o||(o=!0,r({code:u,signal:w,stdout:f,stderr:g}))})})}function fe(e,t,n){let r=n.signal?`Process terminated by signal ${n.signal}`:`Process exited with code ${n.code}`;return[`$ ${H(e,t)}`,n.stdout,n.stderr,r].filter(Boolean).join(`
|
|
40
|
+
`)}function me(e,t){let n=`\`${e}\``;return t?.code==="ENOENT"?new d("BINARY MISSING",`${n} was not found in the active PATH.`,"Execution stopped before the target command started.",`Install ${n} or run Paper with a command that exists in this shell.`):t?.code==="EACCES"?new d("PERMISSION DENIED",`Paper could not execute ${n} from this shell.`,"Execution stopped before the target command started.",`Restore execute permission for ${n} or run Paper with an executable command.`):new d("TARGET START FAILED",`Paper could not start ${n}${t?.message?`: ${t.message}`:"."}`,"Execution stopped before the target command started.",`Run ${n} directly in this shell to verify that it can start, then run Paper again.`)}function ge(e,t,n){return new d("REPORT WRITE FAILED",`Paper could not persist the Incident Report at \`${t}\`${e?.code?` (${e.code})`:"."}`,n?"The target command finished, but the report was not persisted.":"Paper stopped before the target command started.","Restore write access to the report location and run Paper again.")}function we(e){return new d("AGENT RULES WRITE FAILED",`Paper could not update the repository instruction file${e?.code?` (${e.code})`:"."}`,"Execution stopped before the target command started.","Restore write access to the repository instruction file and run Paper again.")}async function ve(e,t){let n=await E();try{await se()}catch(i){throw we(i)}let r;try{r=await he(e,t,n)}catch(i){throw me(e,i)}let s=a(n,".paper","incident_report.md");r.stdout&&process.stdout.write(r.stdout),r.stderr&&process.stderr.write(r.stderr);let o=`\`${H(e,t)}\``;if(r.code!==0||r.signal){let i=Ne(fe(e,t,r));try{await oe(n,i)}catch(p){throw ge(p,s,!0)}let c=r.signal?`signal ${r.signal}`:`code ${r.code}`;process.stderr.write(`COMMAND FAILED
|
|
41
|
+
${o} exited with ${c}.
|
|
42
42
|
|
|
43
43
|
Paper captured the failure and persisted the Incident Report at \`${s}\`.
|
|
44
|
-
`)}}var
|
|
44
|
+
`)}}var ye=[/\b(?:error|fatal|exception|panic|failed|failure|traceback|segmentation fault|command not found|exited with code)\b|ERR!/i,/\b(?:HTTP\/\d(?:\.\d)?\s+)?[45]\d{2}\b/i,/\b(?:exit(?:ed| status| code)?|status code)\s*[:=]?\s*[1-9]\d*/i],be=/HTTP\/\d(?:\.\d)?\s+[1-5]\d{2}\b|\bstatus(?: code)?\s*[:=]?\s*[1-5]\d{2}\b/i,xe=/\b(?:exited with code|exit(?: status| code)?|status code)\s*[:=]?\s*[1-9]\d*/i,W=/^\s*(?:at\s+.+|File\s+["'].+["'],\s*line\s+\d+|[\w.]+\.[\w$]+\([^)]*:\d+(?::\d+)?\))/i,_=/^\s*(?:[$>]|(?:curl|wget|git|docker|kubectl|wrangler|npm|npx|node|python(?:\d+)?|pytest|cargo|go|dotnet|java|bun|deno|yarn|pnpm)\b)/i,Pe=/\b(?:node(?:\.js)?|npm|npx|pnpm|yarn|bun|deno|python(?:\d+)?|pytest|ruby|java|dotnet|cargo|rustc|go version|windows|linux|darwin|macos|runtime|version)\b/i,Ee=/(?:[A-Za-z]:[\\/][^\s,;()[\]{}]+|(?:\.{0,2}[\\/])?[A-Za-z0-9_.-]+(?:[\\/][A-Za-z0-9_.-]+)+\.[A-Za-z0-9_.-]+)/g,N=/^\s*(?:\+\s*)?(?:CategoryInfo|FullyQualifiedErrorId)\b/i,S=/^\s*At line:\d+ char:\d+\s*$/i,C=/^\s*(?:\+\s*)?~+\s*$/,D=/^\s*\+\s*npm(?:\.cmd)?\b/i,Ie=/^\s*\+\s*curl(?:\.exe)?\b/i,Te=/^\s*\|\s*(?:node|npm|npx)\b/i,j=/^\s*(?:npm(?:\.cmd)?|curl(?:\.exe)?)\s*:\s+/i,$e=/^\s*[a-z]:\/\//i;function Re(e=""){let t=String(e??""),n=t.replace(/\r\n?/g,`
|
|
45
45
|
`).split(`
|
|
46
|
-
`);if(!(n.some(i=>
|
|
47
|
-
`)}function h(e){return[...new Set(e.map(t=>t.trim()).filter(Boolean))]}function
|
|
46
|
+
`);if(!(n.some(i=>N.test(i))&&n.some(i=>j.test(i))))return t;let s=[],o=!1;for(let i of n){if(N.test(i)){o=!0;continue}if(o){if(!i.trim()){o=!1,s.push(i);continue}if(S.test(i)||C.test(i)||D.test(i))continue;if(W.test(i)||_.test(i))o=!1;else continue}if(S.test(i)||C.test(i)||D.test(i)||Te.test(i))continue;if(Ie.test(i)){let p=i.replace(/^\s*\+\s*/,"");s.at(-1)!==p&&s.push(p);continue}if($e.test(i))continue;let c=i.replace(j,"");s.at(-1)!==c&&s.push(c)}return s.join(`
|
|
47
|
+
`)}function h(e){return[...new Set(e.map(t=>t.trim()).filter(Boolean))]}function ke(e){return h([...e.matchAll(Ee)].map(([t])=>t.replace(/[.:]+$/,"")).filter(t=>!/^HTTP\/\d(?:\.\d)?$/i.test(t)&&!/^[a-z]:\/\//i.test(t)))}function Ae(e=""){let t=Re(e),r=t.replace(/\r\n?/g,`
|
|
48
48
|
`).split(`
|
|
49
|
-
`).filter(
|
|
50
|
-
`),
|
|
51
|
-
`),z=
|
|
49
|
+
`).filter(l=>l.trim()),s=h(r.filter(l=>ye.some(G=>G.test(l)))),o=h(r.filter(l=>W.test(l))),i=h(r.filter(l=>_.test(l))),c=h(r.filter(l=>Pe.test(l))),p=h(r.filter(l=>be.test(l))),f=h(r.filter(l=>xe.test(l))),g=ke(t),u=h([...s,...o]).join(`
|
|
50
|
+
`),w=i.join(`
|
|
51
|
+
`),z=g.length?`${g.join(`
|
|
52
52
|
`)}
|
|
53
53
|
|
|
54
54
|
${t}`:t;return{"what-failing":s.join(`
|
|
55
55
|
`),"observed-at-boundary":s.join(`
|
|
56
|
-
`),"input-payload":
|
|
57
|
-
`),"exit-code":
|
|
58
|
-
`),"stderr-stack-trace":
|
|
59
|
-
`),commands:
|
|
60
|
-
`),"other-receipts":z}}function
|
|
61
|
-
`),process.exitCode=1;else if(L.isCli)try{let e=process.argv.slice(2);if(e[0]==="--help")process.stdout.write(`${
|
|
62
|
-
`);else if(e[0]==="--version")process.stdout.write(`${
|
|
63
|
-
`);else if(e[0]==="shelf"&&e.length===1)await
|
|
64
|
-
`),process.exitCode=1}export{
|
|
56
|
+
`),"input-payload":w,"output-error":u,origin:w,"first-confirmed-divergence":s[0]||o[0]||"","runtime-environment-hops":c.join(`
|
|
57
|
+
`),"exit-code":f.join(`
|
|
58
|
+
`),"stderr-stack-trace":u,"status-codes":p.join(`
|
|
59
|
+
`),commands:w,"runtime-versions":c.join(`
|
|
60
|
+
`),"other-receipts":z}}function Ne(e=""){return T(Ae(e))}var L=te();if(L.startupFailure)process.stderr.write(`${A(new d("CLI ENTRYPOINT MISMATCH","Paper loaded, but the executable path could not be resolved to the active CLI entrypoint.","No target command was started.","Reinstall or relink Paper and run the command again."))}
|
|
61
|
+
`),process.exitCode=1;else if(L.isCli)try{let e=process.argv.slice(2);if(e[0]==="--help")process.stdout.write(`${ee}
|
|
62
|
+
`);else if(e[0]==="--version")process.stdout.write(`${$.version}
|
|
63
|
+
`);else if(e[0]==="shelf"&&e.length===1)await le();else if(e.length){if(e[0]!=="run")throw new d("INVALID COMMAND","Paper expected `run` before the target command.","No target command was started.","Use `paper run <command>`.");if(e.length===1)throw new d("NO COMMAND","Paper needs a command to capture.","No target command was started.","Use `paper run <command>`. ");await ve(e[1],e.slice(2))}else throw new d("NO COMMAND","Paper needs a command to capture.","No target command was started.","Use `paper run <command>`.")}catch(e){process.stderr.write(`${A(e)}
|
|
64
|
+
`),process.exitCode=1}export{x as MANAGED_AGENT_RULES_BLOCK,d as PaperCliError,Ne as buildTerminalPacket,re as detectAgentInstructionPaths,se as ensureManagedAgentRules,Ae as extractTerminalPacket,E as findRepoRoot,A as formatPaperCliError,Re as normalizeTerminalOutput,te as resolveCliEntrypoint,ce as shelfPathForRepo,oe as writeIncidentReport};
|
package/package.json
CHANGED
|
@@ -1,47 +1,60 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@varman96/paper",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "Paper captures command failures in a structured Incident Report for coding-agent investigation.",
|
|
5
|
-
"main": "dist/paper.js",
|
|
6
|
-
"bin": {
|
|
7
|
-
"paper": "./dist/paper.js"
|
|
8
|
-
},
|
|
9
|
-
"files": [
|
|
10
|
-
"dist/paper.js",
|
|
11
|
-
"README.md",
|
|
12
|
-
"LICENSE"
|
|
13
|
-
],
|
|
14
|
-
"directories": {
|
|
15
|
-
"test": "test"
|
|
16
|
-
},
|
|
17
|
-
"scripts": {
|
|
18
|
-
"alpha:issue": "node scripts/issue-alpha-access.js",
|
|
19
|
-
"alpha:revoke": "node scripts/revoke-alpha-access.js",
|
|
20
|
-
"fail:test": "node scripts/fail-test.js",
|
|
21
|
-
"paper": "node scripts/paper.js",
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
"test
|
|
27
|
-
"test:
|
|
28
|
-
"test:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
"
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"
|
|
44
|
-
"
|
|
45
|
-
"
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@varman96/paper",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"description": "Paper captures command failures in a structured Incident Report for coding-agent investigation.",
|
|
5
|
+
"main": "dist/paper.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"paper": "./dist/paper.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist/paper.js",
|
|
11
|
+
"README.md",
|
|
12
|
+
"LICENSE"
|
|
13
|
+
],
|
|
14
|
+
"directories": {
|
|
15
|
+
"test": "test"
|
|
16
|
+
},
|
|
17
|
+
"scripts": {
|
|
18
|
+
"alpha:issue": "node scripts/issue-alpha-access.js",
|
|
19
|
+
"alpha:revoke": "node scripts/revoke-alpha-access.js",
|
|
20
|
+
"fail:test": "node scripts/fail-test.js",
|
|
21
|
+
"paper": "node scripts/paper.js",
|
|
22
|
+
"paper:dev": "node scripts/paper.js",
|
|
23
|
+
"build:cli": "node scripts/build-cli.js",
|
|
24
|
+
"prepack": "npm run build:cli",
|
|
25
|
+
"deploy:production": "wrangler deploy --env production",
|
|
26
|
+
"test": "node test/run-tests.js",
|
|
27
|
+
"test:fast": "node test/run-tests.js --fast",
|
|
28
|
+
"test:browser": "node test/run-tests.js --browser",
|
|
29
|
+
"test:alpha-browser": "node test/alpha-access.browser.js"
|
|
30
|
+
},
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/varman96/paper.git"
|
|
34
|
+
},
|
|
35
|
+
"keywords": [
|
|
36
|
+
"debugging",
|
|
37
|
+
"cli",
|
|
38
|
+
"developer-tools",
|
|
39
|
+
"coding-agents",
|
|
40
|
+
"ai-coding",
|
|
41
|
+
"incident-report",
|
|
42
|
+
"terminal",
|
|
43
|
+
"error-logs",
|
|
44
|
+
"claude-code",
|
|
45
|
+
"cursor",
|
|
46
|
+
"codex"
|
|
47
|
+
],
|
|
48
|
+
"author": "",
|
|
49
|
+
"license": "SEE LICENSE IN LICENSE",
|
|
50
|
+
"type": "module",
|
|
51
|
+
"bugs": {
|
|
52
|
+
"url": "https://github.com/varman96/paper/issues"
|
|
53
|
+
},
|
|
54
|
+
"homepage": "https://paper-ai.paperhq.workers.dev/",
|
|
55
|
+
"devDependencies": {
|
|
56
|
+
"@biomejs/biome": "2.5.14",
|
|
57
|
+
"esbuild": "^0.28.1",
|
|
58
|
+
"wrangler": "^4.132.0"
|
|
59
|
+
}
|
|
60
|
+
}
|