polywise 0.0.1 → 0.0.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/LICENSE +21 -0
- package/README.md +80 -0
- package/package.json +8 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 MatrixAges
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# Polywise
|
|
2
|
+
|
|
3
|
+
Polywise CLI for starting the local server and calling the backend API.
|
|
4
|
+
|
|
5
|
+
## Install
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g polywise
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
Polywise CLI is designed for progressive discovery: start from the root help, narrow to a command group, inspect a concrete command, then run it.
|
|
14
|
+
|
|
15
|
+
### Root help
|
|
16
|
+
|
|
17
|
+
Use the root help to see the top-level command surface.
|
|
18
|
+
|
|
19
|
+
```bash
|
|
20
|
+
polywise -h
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
This level tells you:
|
|
24
|
+
|
|
25
|
+
- how to start the local server with `start`
|
|
26
|
+
- how to inspect a command schema with `input_schema`
|
|
27
|
+
- which API groups are available, such as `session`, `project`, and `search`
|
|
28
|
+
- which next-level `-h` command to run
|
|
29
|
+
|
|
30
|
+
### Group help
|
|
31
|
+
|
|
32
|
+
Use group help when you already know the domain you want to work in.
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
polywise session -h
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
This level shows:
|
|
39
|
+
|
|
40
|
+
- the available subcommands under `session`
|
|
41
|
+
- a short summary for each subcommand
|
|
42
|
+
- the next level to inspect with `polywise session <command> -h`
|
|
43
|
+
|
|
44
|
+
### Command help
|
|
45
|
+
|
|
46
|
+
Use command help before calling an unfamiliar RPC command.
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
polywise session create -h
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
This level shows:
|
|
53
|
+
|
|
54
|
+
- what the command does
|
|
55
|
+
- the HTTP method and API path behind it
|
|
56
|
+
- the parameter list
|
|
57
|
+
- the matching `polywise input_schema <rpc_path>` command
|
|
58
|
+
- concrete examples you can run directly
|
|
59
|
+
|
|
60
|
+
### Input schema
|
|
61
|
+
|
|
62
|
+
Use `input_schema` when you need the exact input structure for a command.
|
|
63
|
+
|
|
64
|
+
```bash
|
|
65
|
+
polywise input_schema session.create
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
This prints the RPC path, HTTP method, API path, parameter definitions, a CLI command skeleton, and a JSON template.
|
|
69
|
+
|
|
70
|
+
### Run commands
|
|
71
|
+
|
|
72
|
+
After checking help or schema, run the actual command.
|
|
73
|
+
|
|
74
|
+
```bash
|
|
75
|
+
polywise start
|
|
76
|
+
polywise start -d
|
|
77
|
+
polywise session create --title "Daily Review"
|
|
78
|
+
```
|
|
79
|
+
|
|
80
|
+
Docs: https://polywise.io/docs/intro
|
package/package.json
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "polywise",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
|
+
"homepage": "https://polywise.io",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/MatrixAges/polywise.git"
|
|
8
|
+
},
|
|
4
9
|
"type": "module",
|
|
5
10
|
"main": "./dist/index.js",
|
|
6
11
|
"sideEffects": false,
|
|
@@ -17,7 +22,8 @@
|
|
|
17
22
|
"files": [
|
|
18
23
|
"dist",
|
|
19
24
|
"./package.json",
|
|
20
|
-
"./README.md"
|
|
25
|
+
"./README.md",
|
|
26
|
+
"./LICENSE"
|
|
21
27
|
],
|
|
22
28
|
"scripts": {
|
|
23
29
|
"build:standalone": "npm run rebuild && cross-env NODE_ENV=production rslib build && bun ./scripts/copyAppDist.ts",
|