i-plane 1.1.2 → 2.0.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/README.md +11 -0
- package/dist/chunks/cli-09mmhmq4.js +8 -0
- package/dist/chunks/cli-3n3mxdd7.js +105 -0
- package/dist/chunks/cli-ajj9jddd.js +2 -0
- package/dist/chunks/cli-jq1agk1s.js +6 -0
- package/dist/chunks/cli-q37j0y8m.js +2 -0
- package/dist/chunks/page-content-es7q27cn.js +2 -0
- package/dist/chunks/session-2t143y9g.js +1 -0
- package/dist/chunks/session-config-0fbdavjt.js +1 -0
- package/dist/cli.js +25 -133
- package/docs/api-coverage.md +97 -1
- package/docs/pages.md +178 -0
- package/package.json +16 -7
- package/AGENTS.md +0 -154
- package/CLAUDE.md +0 -1
package/README.md
CHANGED
|
@@ -25,6 +25,8 @@ comments, and `--json` whenever you need structured data. Nothing prompts for in
|
|
|
25
25
|
and group related work in modules that can span multiple cycles.
|
|
26
26
|
- **Triage requests:** collect reports in intake, then accept, reject, snooze
|
|
27
27
|
or mark them as duplicates before committing to the work.
|
|
28
|
+
- **Maintain project knowledge:** read pages, inspect live blocks and edit only
|
|
29
|
+
the section you need, with fingerprints to detect concurrent changes.
|
|
28
30
|
- **Automate:** use concise lists, JSON output and distinct exit codes in
|
|
29
31
|
agent workflows and shell scripts.
|
|
30
32
|
|
|
@@ -74,6 +76,10 @@ i-plane update APP-8 --state started
|
|
|
74
76
|
i-plane done APP-8
|
|
75
77
|
```
|
|
76
78
|
|
|
79
|
+
Workspace search returns up to 10 matches by default. Use `i-plane search "text"
|
|
80
|
+
--limit 100` to raise the bound (maximum 1000); output reports when more matches
|
|
81
|
+
exist. JSON search results contain `rows`, `limit` and `hasMore`.
|
|
82
|
+
|
|
77
83
|
Replace `APP` and `APP-8` with your project and work item references. Add `--json`
|
|
78
84
|
to any command for its structured result. Exit code `2` means an invalid call;
|
|
79
85
|
`1` means an API or connection failure.
|
|
@@ -81,6 +87,11 @@ to any command for its structured result. Exit code `2` means an invalid call;
|
|
|
81
87
|
For supported fields, compatibility details and development checks, see the
|
|
82
88
|
[capability reference](docs/api-coverage.md).
|
|
83
89
|
|
|
90
|
+
Pages prefer the same API key when the for-plane extension is available. On stock
|
|
91
|
+
Plane, the CLI detects the missing endpoint and uses password sign-in. See
|
|
92
|
+
the [page workflow](docs/pages.md) for setup, block edits and delivery semantics.
|
|
93
|
+
`i-plane page --help` carries the same command examples into your terminal.
|
|
94
|
+
|
|
84
95
|
## License
|
|
85
96
|
|
|
86
97
|
MIT
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{Y as c}from"./cli-q37j0y8m.js";import{readFileSync as E}from"node:fs";import{homedir as A}from"node:os";import{join as P}from"node:path";var g=P(A(),".config","plane","credentials"),_=(e,o)=>{let n=new Map,r;try{r=E(e,"utf8")}catch{return n}for(let i of r.split(`
|
|
2
|
+
`)){let t=i.trim();if(t===""||t.startsWith("#"))continue;let l=t.indexOf("=");if(l<=0)continue;let f=t.slice(0,l).trim();if(!o.includes(f))continue;let s=t.slice(l+1).trim();if(s.startsWith('"')&&s.endsWith('"')||s.startsWith("'")&&s.endsWith("'"))s=s.slice(1,-1);n.set(f,s)}return n},u=(e)=>_(e,["PLANE_URL","PLANE_BASE_URL","PLANE_API_KEY","PLANE_WORKSPACE","PLANE_WORKSPACE_SLUG"]),a=(e,o,n,r)=>{if(e!==void 0&&e!=="")return{value:e,origin:"flag"};for(let i of o){let t=process.env[i];if(t!==void 0&&t!=="")return{value:t,origin:"env"}}for(let i of n){let t=r.get(i);if(t!==void 0&&t!=="")return{value:t,origin:"file"}}return},p=(e,o,n)=>{let r=e.replace(/\/+$/,""),i;try{i=new URL(r)}catch{throw new c(`The url is not a valid address: ${r}
|
|
3
|
+
it came from ${o==="file"?n:o}
|
|
4
|
+
expected something like https://plane.example.com`)}if(i.protocol!=="http:"&&i.protocol!=="https:")throw new c(`The url must be http or https, got ${i.protocol} in ${r}`);return r},d=(e,o,n,r)=>new c(`No ${e}. Set it one of three ways, highest wins:
|
|
5
|
+
--${e} <value>
|
|
6
|
+
${o}=<value> in the environment
|
|
7
|
+
${n}=<value> in ${r}`),v=(e)=>{let o=e.configPath??process.env.PLANE_CONFIG??g,n=u(o);return a(e.token,["PLANE_API_KEY","PLANE_TOKEN"],["PLANE_API_KEY"],n)?.value},R=(e,o=!1)=>{let n=e.configPath??process.env.PLANE_CONFIG??g,r=u(n),i=a(e.url,["PLANE_URL","PLANE_BASE_URL"],["PLANE_URL","PLANE_BASE_URL"],r),t=a(e.token,["PLANE_API_KEY","PLANE_TOKEN"],["PLANE_API_KEY"],r),l=a(e.workspace,["PLANE_WORKSPACE","PLANE_WORKSPACE_SLUG"],["PLANE_WORKSPACE","PLANE_WORKSPACE_SLUG"],r);if(i===void 0)throw d("url","PLANE_URL","PLANE_URL",n);if(t===void 0&&!o)throw d("token","PLANE_API_KEY","PLANE_API_KEY",n);if(l===void 0)throw d("workspace","PLANE_WORKSPACE","PLANE_WORKSPACE",n);return{url:{value:p(i.value,i.origin,n),origin:i.origin},token:t??{value:"",origin:"default"},workspace:l,configPath:n}},y=(e)=>e.length<=10?"***":`${e.slice(0,6)}…${e.slice(-4)}`;
|
|
8
|
+
export{_ as a,v as b,R as c,y as d};
|