insightfulpipe 0.4.1 → 0.5.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/CHANGELOG.md +149 -1
- package/README.md +35 -22
- package/package.json +2 -2
- package/src/cli/commands/skills.js +371 -140
- package/src/cli/errors.js +2 -2
- package/src/cli/program.js +2 -0
- package/src/output.js +66 -20
- package/src/skills/agents.js +5 -3
- package/src/skills/folders.js +129 -0
- package/src/skills/installer.js +41 -32
- package/src/skills/keys.js +21 -0
- package/src/skills/moves.js +87 -0
- package/src/skills/names.js +40 -0
- package/src/skills/paths.js +12 -0
- package/src/skills/private.js +33 -46
- package/src/skills/records.js +16 -5
- package/src/skills/sources.js +62 -34
package/CHANGELOG.md
CHANGED
|
@@ -1,11 +1,159 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.5.0
|
|
4
|
+
|
|
5
|
+
**Every skill on your workspace's Skills page installs from the CLI, Public or Custom.**
|
|
6
|
+
|
|
7
|
+
- `--workspace <id>` alone now picks your workspace's skills: `insightfulpipe skills install <name> --workspace <id>`.
|
|
8
|
+
This is the command the Skills page shows. With neither `--workspace` nor `--private`, commands still use
|
|
9
|
+
insightfulpipe.com, with no key.
|
|
10
|
+
- Workspace skills now include the app's Public skills (keys like `public-12`) next to Custom skills (`custom-34`).
|
|
11
|
+
Install, list, update and remove work the same for both, with the same checks.
|
|
12
|
+
- Output names the type: `type` is `public` or `custom` in every JSON row for a workspace skill, and `search`,
|
|
13
|
+
`info` and `list` show a Type column or line under `--table`. For workspace skills, `search --table` shows
|
|
14
|
+
Skill, Type, Key and Description instead of Skill, Category and Description.
|
|
15
|
+
A Public skill is listed as `public/<name>` and is never called private. In the `list` JSON its `origin` is
|
|
16
|
+
`"workspace"` (a Custom skill keeps `"private"`).
|
|
17
|
+
- A name or key that matches more than one skill is refused, never guessed. The refusal lists a name that works
|
|
18
|
+
for each of them.
|
|
19
|
+
- In `install` and `info`, `private/<key>` and `public/<key>` reach only the skill with that key, when the key is
|
|
20
|
+
of that type. `update` and `remove` take the folder name or `<type>/<folder>` as `list` shows it, or a key; a word
|
|
21
|
+
that looks like a key never acts on a folder holding another key.
|
|
22
|
+
- `update` and `remove` also take a skill folder's absolute path, as the CLI prints it, which reaches that folder
|
|
23
|
+
alone: only a skill folder in the skills directory the command uses (and the `--workspace` it names), compared
|
|
24
|
+
as written after NFC normalization (so either Unicode spelling of a name like `José` matches, as on macOS) and
|
|
25
|
+
without case on Windows, never through a symlink or a `..`. `update` never takes the path of a folder you did
|
|
26
|
+
not install; it says "was not installed by you here, so update never changes it."
|
|
27
|
+
- When a name matches more than one installed skill, `update` and `remove` list a name that works for each one,
|
|
28
|
+
and for a folder no name reaches alone they print the command with its path and the folder options, e.g.
|
|
29
|
+
`For the folder custom-50 (custom-60), run "insightfulpipe skills update <path> --agent codex --force".` (a
|
|
30
|
+
`--force` you gave is kept). For a folder you did not install, `update` says no name reaches it and that update
|
|
31
|
+
never changes it.
|
|
32
|
+
- `install` and `info` name each workspace skill's key, e.g. `private/custom-50 (custom-60)`; `list`, `update` and
|
|
33
|
+
`remove` do so for folders you installed, and only those rows carry `key`. For a folder you did not install,
|
|
34
|
+
`update` and `remove` say "not installed by you here" and `list --table` prints a warning under the table.
|
|
35
|
+
- `info --table` for a workspace skill now starts `name: label (key), workspace N` instead of
|
|
36
|
+
`name (label, key, workspace N)`, and `remove --table` prints `Removed <name> from <path>` instead of
|
|
37
|
+
`Removed <name> (<path>)`.
|
|
38
|
+
- `update --all --private --table` with nothing installed now says "No workspace skills installed here." instead
|
|
39
|
+
of "No private skills installed here.". The `remove` prompt now shows `category/slug` (e.g.
|
|
40
|
+
`google-ads/account-audit`) instead of the bare slug, for insightfulpipe.com skills too.
|
|
41
|
+
- Messages that said "private skill" now say "workspace skill", or name the workspace or the type instead, e.g.
|
|
42
|
+
"Workspace 34 has no files for this skill." (was "The private source has no files for this skill."),
|
|
43
|
+
"It is no longer in workspace 34" (was "It is no longer in the workspace's private skills"),
|
|
44
|
+
"No skill named "x" in workspace 34" (was "No private skill named "x" in this workspace"),
|
|
45
|
+
"matches more than one skill in workspace 34. Use one of: …" (was "matches more than one private skill. Use its
|
|
46
|
+
key: …"), "Could not list the skills of workspace 34" and "Could not download the skill custom-12" (were "the
|
|
47
|
+
private skills of" and "the private skill"), and "the Custom skill custom-12 of workspace 34" (was "the private
|
|
48
|
+
skill custom-12 of workspace 34").
|
|
49
|
+
- The `update` message for a skill renamed in the app prints only an install command that reaches it, by its new
|
|
50
|
+
name when that works, and says to run the same update again afterwards to remove the old folder (was the install
|
|
51
|
+
and then `remove` with the bare folder name). That next update, also when it names the skill's key (which then
|
|
52
|
+
reaches the old copy alone, though the new copy holds the key too), finds the new copy you installed and only then
|
|
53
|
+
prints the `remove`, with the old folder's name as `list` shows it, or its path when no name will reach it alone,
|
|
54
|
+
so a refused install is never followed by a removal. When the folder with the new name holds something else, it
|
|
55
|
+
says what (with its workspace when it is your copy from another workspace, e.g. `public/account-audit (public-7,
|
|
56
|
+
workspace 35)`) and how to install elsewhere with `--dir`. Both messages say "The old folder has local edits." when you
|
|
57
|
+
edited that folder.
|
|
58
|
+
- `update` and `remove` act once on a folder named twice. `remove` moves each folder aside, to
|
|
59
|
+
`.<name>.removing-<hex>`, before deleting it, so a removal that fails leaves that folder as it was (was deleted in
|
|
60
|
+
place, so a failure could leave it half deleted), and still reports what it removed. When every removal fails, the
|
|
61
|
+
JSON error's `message` is "Nothing was removed." with each reason in `failed[].error`, and `--table` prints
|
|
62
|
+
`Failed <label>: <reason>` for each (was `Error: <reason>` for the first). When only the delete after the move
|
|
63
|
+
fails, the skill is removed and its `warning` (`Warning: …` under `--table`) names the folder to delete by hand.
|
|
64
|
+
`--table` also prints `Warning: The install record could not be updated (…)`, which it left out before.
|
|
65
|
+
- On Windows, moving a skill folder (`remove`'s move aside, and the swap `install`, `update` and `--force` make) is
|
|
66
|
+
tried again for up to about 2 s while it is refused with EBUSY, EPERM or EACCES, and deleting a leftover folder is
|
|
67
|
+
retried too. When an EBUSY or EPERM refusal outlasts that, the reason is "<name> could not be moved (EPERM), most
|
|
68
|
+
likely because a program has a file in it open. Close that program and try again.", after `Could not install
|
|
69
|
+
<name>: ` for an install (was the rename's own error, naming the `.installing-` or `.replaced-` folder). A move
|
|
70
|
+
onto a folder that already exists, such as one another run just put there, is not tried again. The install record
|
|
71
|
+
and a downloaded ZIP are moved into place the same way; when that still fails, the reason is "the install record
|
|
72
|
+
could not be moved (EPERM), most likely because a program has it open. Close that program and try again." (the
|
|
73
|
+
ZIP's file name for `download`); a ZIP whose destination is a folder is not tried again and keeps its own error.
|
|
74
|
+
On macOS and Linux a move is tried once and its own error is kept.
|
|
75
|
+
- When the install record or a ZIP cannot be moved into place and its temporary file cannot be deleted either, the
|
|
76
|
+
message keeps why the move failed and adds "<path> could not be removed (…); delete it by hand." (was the
|
|
77
|
+
delete's own error alone). On Windows that delete is tried again too.
|
|
78
|
+
- When another run puts a folder where `install` is putting a skill, the error is "Could not install <name>: <name>
|
|
79
|
+
appeared at <path> while installing; run the command again." (was the rename's own error, naming the
|
|
80
|
+
`.installing-` folder it then deletes). `update` and `--force` keep the rename's error and say where your previous
|
|
81
|
+
copy is kept.
|
|
82
|
+
- When `install` or `update` cannot write or remove the install record, its warning now says what `list` and
|
|
83
|
+
`update` then do (was always "…, so list and update will not trust this private skill."). When an earlier
|
|
84
|
+
record of the same skill is kept, as after a failed `update`: "The install could not be recorded again (…); the
|
|
85
|
+
earlier record of this skill is kept, so list and update still trust it." When an insightfulpipe.com install
|
|
86
|
+
cannot remove the workspace record for its folder: "The earlier workspace record for this folder could not be
|
|
87
|
+
removed (…); list and update do not need it for this insightfulpipe.com skill.", or, when the record folder
|
|
88
|
+
cannot be read, "An earlier workspace record for this folder, if there is one, could not be removed (…); list and
|
|
89
|
+
update do not need one for this insightfulpipe.com skill." Otherwise the 0.4.2 sentence stays. `remove`'s own
|
|
90
|
+
warning when it cannot update the record is unchanged.
|
|
91
|
+
- `list` shows a workspace skill renamed in the app: `renamed to <name>` under `--table`, `renamed_to` in the JSON.
|
|
92
|
+
- Every install command the CLI prints reaches its own skill: by name (unless the name looks like another key), else
|
|
93
|
+
by key, else with `public/` or `private/`.
|
|
94
|
+
- `--private` is the same as `--workspace` and now also sees Public skills, so a name shared with a Public skill
|
|
95
|
+
is refused with the working names. Its JSON keeps `"source": "private"`.
|
|
96
|
+
- The `skills update` command suggested for a skill already installed names its folder as `list` does (e.g.
|
|
97
|
+
`private/weekly-brief`, `google-ads/account-audit`) and keeps `--agent`, `--project` or `--dir`, or names the
|
|
98
|
+
folder's path when no name reaches it alone, with "or add --force to reinstall" as the alternative. A folder
|
|
99
|
+
`list` does not show gets only "Add --force to reinstall."
|
|
100
|
+
- `list`, `update` and `remove` take `--workspace <id>` to act on one workspace's skills.
|
|
101
|
+
- Commands the CLI prints use `--workspace <id>` instead of `--private --workspace <id>` or `--private`.
|
|
102
|
+
- On Windows a path in a printed command is one word that cmd.exe, PowerShell and Git Bash never split or run: in
|
|
103
|
+
double quotes (was bare when plain), which all three read as the path, or in single quotes when it holds `$`, a
|
|
104
|
+
backtick or `!` (was also for `%`), which PowerShell and Git Bash read as the path. cmd.exe keeps single quotes in
|
|
105
|
+
the word, which then names a folder under the current one instead: there `update` and `remove` refuse a path given
|
|
106
|
+
that way, `--dir` points at that other folder, and a rename message's install line installs into it or fails, so
|
|
107
|
+
no printed line reaches the folder the message names and no copy is lost. A path no quoting keeps that way (one
|
|
108
|
+
with `%`, `&`, `^`, a UNC path, or `$` with a space or a quote) gets no command: the message names the folder's
|
|
109
|
+
path and says "no command is printed, since a shell could misread the path", e.g. `run update with that path and
|
|
110
|
+
the same folder options (…)`.
|
|
111
|
+
- A message puts a printed command in double quotes, or in single quotes when the command holds a double quote (was
|
|
112
|
+
always double quotes). On Windows, where a path is mostly in double quotes, that is e.g.
|
|
113
|
+
`Run 'insightfulpipe skills update custom-41 --dir "C:\Users\Jane Doe\skills"', or add --force to reinstall.`
|
|
114
|
+
A command that holds both kinds is printed bare and last on its line, after a colon, so no comma or full stop is
|
|
115
|
+
copied with it, e.g. `Add --force to reinstall, or run: insightfulpipe skills update custom-41 --dir '/tmp/say "hi"'`
|
|
116
|
+
(was `Run "…", or add --force to reinstall.`). A rename message then ends a line with its install command, e.g.
|
|
117
|
+
`Install it again: insightfulpipe skills install … --dir '/tmp/say "hi"'`, and says on the next line to run the
|
|
118
|
+
update again to remove the old folder. On macOS and Linux, only the quoting of a command whose path holds a
|
|
119
|
+
double quote changes.
|
|
120
|
+
- On every platform, a path holding a control character or a bidi control, which the output shows raw (a tab or a
|
|
121
|
+
line break under `--table`) or as an escape, gets no command in the same way.
|
|
122
|
+
- `download --workspace` is refused like `download --private`: use Download in the app.
|
|
123
|
+
- `download --output <folder>` saves `<folder>/<skill>.zip` when the folder (or a link to one) exists, as `cp` does;
|
|
124
|
+
"already exists" and `--force` then apply to that file (was "already exists"; with `--force`, a failed move for a
|
|
125
|
+
folder, and for a link to one the ZIP replaced the link).
|
|
126
|
+
- Messages and help call an insightfulpipe.com skill by that name instead of "public skill" or "the public library".
|
|
127
|
+
- `--help` describes `--workspace` and `--private` as above, and `insightfulpipe --help` shows how to install a
|
|
128
|
+
workspace skill.
|
|
129
|
+
- Markers and install records on disk are unchanged, and JSON output keeps every 0.4.2 field.
|
|
130
|
+
|
|
131
|
+
## 0.4.2
|
|
132
|
+
|
|
133
|
+
- `--table` reads paging the way each platform writes it: a yes/no answer (`has_more`, `has_next`)
|
|
134
|
+
outranks a cursor beside it, so TikTok's last page no longer says "the server has more"; Pinterest's
|
|
135
|
+
`bookmark` and `row_limit_exceeded` and Reddit's `after` say there is more; Google Analytics'
|
|
136
|
+
`rowCount` counts as the total. Paging that says outright the list ends (a yes/no answer or a total)
|
|
137
|
+
leaves no footer; any other paging, such as a row limit with no flag, is still named under the table.
|
|
138
|
+
- Multi-line text from the server keeps its line breaks and tabs under `--table` (Windows line breaks
|
|
139
|
+
become plain ones); every other control character is still shown escaped.
|
|
140
|
+
- The default JSON output (results and errors) writes DEL, the C1 control characters and the bidi
|
|
141
|
+
overrides as `\uXXXX`. It is still valid JSON and parses to exactly the same values.
|
|
142
|
+
- `skills list` and `update` show a marker file path that is not a plain relative path as a placeholder
|
|
143
|
+
(it still counts as a local edit) instead of printing it.
|
|
144
|
+
- The `--dir` in a command the CLI suggests is one shell word that pastes back as the exact folder
|
|
145
|
+
(double quotes on Windows, so cmd.exe reads it too).
|
|
146
|
+
- The install refusal for a folder that holds another skill shows the installed skill's name and version
|
|
147
|
+
only when they are plain; a planted marker can no longer add lines to it.
|
|
148
|
+
- Resolving a skills folder falls back to Node's JavaScript `realpath` when the native one fails, as it
|
|
149
|
+
can on some Windows virtual drives.
|
|
150
|
+
|
|
3
151
|
## 0.4.1
|
|
4
152
|
|
|
5
153
|
- `--table` now works on `query`, `action`, `raw` and `helper` too. Result rows print as columns (one
|
|
6
154
|
per field), a single record as field and value, long values shortened. Footers state a partial
|
|
7
155
|
failure and the server's message, name any other fields beside the rows, say when the server has
|
|
8
|
-
more rows (
|
|
156
|
+
more rows (a count never hides a paging marker), point out partial errors, warnings
|
|
9
157
|
and notes, and name every other `meta` field that is not purely descriptive. Rows with more than 40
|
|
10
158
|
different fields, and `helper --actions` (the body to copy into `-b`), stay JSON with a note. JSON
|
|
11
159
|
stays the default and is unchanged.
|
package/README.md
CHANGED
|
@@ -80,28 +80,41 @@ project with `--project`, or any folder with `--dir`:
|
|
|
80
80
|
| `cursor` | `~/.cursor/skills` | `.agents/skills` |
|
|
81
81
|
| `gemini-cli` | `~/.gemini/skills` | `.agents/skills` |
|
|
82
82
|
|
|
83
|
-
###
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
your API key
|
|
87
|
-
|
|
88
|
-
```bash
|
|
89
|
-
insightfulpipe
|
|
90
|
-
insightfulpipe skills
|
|
91
|
-
insightfulpipe
|
|
92
|
-
insightfulpipe skills install weekly-brief --
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
the
|
|
83
|
+
### Your workspace's skills
|
|
84
|
+
|
|
85
|
+
The app's Skills page lists Public skills (they come with the app) and Custom skills (made in your workspace).
|
|
86
|
+
Both install with your API key and the workspace id the page shows:
|
|
87
|
+
|
|
88
|
+
```bash
|
|
89
|
+
insightfulpipe auth # once: paste your API key (ip_sk_…)
|
|
90
|
+
insightfulpipe skills search --workspace 34 # Public and Custom skills of workspace 34
|
|
91
|
+
insightfulpipe skills install weekly-brief --workspace 34 # by name, or by key (custom-123, public-12)
|
|
92
|
+
insightfulpipe skills install weekly-brief --workspace 34 --agent codex
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
- If a name matches more than one skill, the CLI shows a name that works for each one. It never picks one for you.
|
|
96
|
+
- In `install` and `info`, `private/<key>` and `public/<key>` mean that key, when the key is of that type. `update`
|
|
97
|
+
and `remove` take the folder name or `<type>/<folder>` as `list` shows it, or a key; a word that looks like a key
|
|
98
|
+
never acts on a folder holding another key.
|
|
99
|
+
- `update` and `remove` also take a skill folder's absolute path, which reaches that folder alone. When no name does,
|
|
100
|
+
the CLI prints the command with the path, e.g. `insightfulpipe skills update /home/me/.claude/skills/custom-50`,
|
|
101
|
+
or only the path when a shell could misread it (some Windows paths, or a path with control characters).
|
|
102
|
+
A path reaches only a skill folder in the skills directory the command uses (and the `--workspace` it names),
|
|
103
|
+
never through a symlink, and `update` never takes the path of a folder you did not install.
|
|
104
|
+
- When a skill is renamed in the app, `update` keeps the old folder and prints the install command for the new name.
|
|
105
|
+
Run the same update again after that install, and it prints the command that removes the old folder.
|
|
106
|
+
- `list` and `update` go back to each skill's own source, so they need no flag. Add `--workspace <id>` to act on
|
|
107
|
+
one workspace's skills only.
|
|
108
|
+
- `--private` is the same as `--workspace`. With no `--workspace <id>` next to it, `--private` uses the saved
|
|
109
|
+
workspace in `search`, `info` and `install`, and keeps the skills of every workspace in `list`, `update` and
|
|
110
|
+
`remove`, as in 0.4.2.
|
|
111
|
+
- Public skills are read-only in the app. Your local copy is yours; `update` keeps your edits unless `--force`.
|
|
112
|
+
- Workspace skills go to your personal skills folder by default. `--project` or `--dir` prints a warning to keep
|
|
113
|
+
them out of shared repositories.
|
|
114
|
+
- Only skills you installed are trusted. Each install is recorded under `~/.insightfulpipe/private-skills/`. A
|
|
115
|
+
workspace skill folder that record does not name is listed but never checked or updated. To use it, install it
|
|
116
|
+
again with `--workspace <id> --force`.
|
|
117
|
+
- `download` is for insightfulpipe.com skills. For a workspace skill, use Download in the app.
|
|
105
118
|
|
|
106
119
|
Every file is checked against its sha256 before anything is written, and each installed skill keeps
|
|
107
120
|
a `.insightfulpipe-skill.json` marker. `list`, `update` and `remove` only touch folders that carry it,
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "insightfulpipe",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "InsightfulPipe CLI
|
|
3
|
+
"version": "0.5.0",
|
|
4
|
+
"description": "InsightfulPipe CLI — query your marketing data from the terminal",
|
|
5
5
|
"bin": {
|
|
6
6
|
"insightfulpipe": "bin/cli.js"
|
|
7
7
|
},
|