polywise 0.0.1 → 0.0.3

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 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