hicreator-agent 0.2.0 → 0.2.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/README.md +4 -4
- package/package.json +1 -1
- package/skills/hicreator/SKILL.md +7 -3
- package/src/configure.js +11 -5
- package/src/files.js +4 -3
package/README.md
CHANGED
|
@@ -22,21 +22,21 @@ To choose clients explicitly:
|
|
|
22
22
|
npx --yes --prefer-online hicreator-agent@latest setup --clients codex,claude,cursor
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
The API key is stored only in the selected clients' local configuration files.
|
|
25
|
+
The API key is stored only in the selected clients' local configuration files. On macOS/Linux the installer applies owner-only file permissions; on Windows files inherit the user profile’s access controls. It never includes the key in command arguments or output.
|
|
26
26
|
|
|
27
27
|
## Updates
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
For installer-managed Skills, an optional update runs once at the start of each hiCreator workflow when Node.js/npm are available:
|
|
30
30
|
|
|
31
31
|
```bash
|
|
32
32
|
npx --yes --prefer-online hicreator-agent@latest prepare --json
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
`prepare` compares the bundled version and checksum, repairs missing or modified files, and atomically replaces older skill files. MCP business logic runs remotely and updates immediately when hiCreator deploys it.
|
|
35
|
+
`prepare` compares the bundled version and checksum, repairs missing or modified files, and atomically replaces older skill files. Manual installations and clients without command execution or npm use their installed Skill directly. A failed update does not block MCP usage. On native Windows, use `npx.cmd`; keep WSL installations separate from native Windows clients. MCP business logic runs remotely and updates immediately when hiCreator deploys it.
|
|
36
36
|
|
|
37
37
|
## Billing
|
|
38
38
|
|
|
39
|
-
AI search and similar-creator search each cost 0.5 credits per returned creator. Email lookup costs 0.
|
|
39
|
+
AI search and similar-creator search each cost 0.5 credits per returned creator. Email lookup costs 0.2 credits for each valid creator profile URL, including when no public email is found. The skill never automatically retries paid tools.
|
|
40
40
|
|
|
41
41
|
Favorite-folder tools support creation, cursor pagination, rename, permanent deletion, member listing, single or batch removal, Workspace/public sharing with a stable link, and asynchronous Excel export for today, the last 7 days, or the last 30 days. Excel exports reuse hiCreator's existing 100,000-row and file-size safeguards.
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -16,13 +16,17 @@ Find 20 US pet product reviewers on TikTok with at least 100K followers
|
|
|
16
16
|
|
|
17
17
|
## Start
|
|
18
18
|
|
|
19
|
-
|
|
19
|
+
Use the hiCreator MCP tools already loaded by the current client. If they are missing, follow this client's official MCP setup or reload instructions; do not treat installing this Skill as proof that MCP is connected.
|
|
20
|
+
|
|
21
|
+
Skill updates are optional. Only when the current client's Skill is managed by `hicreator-agent` (its target is recorded in `~/.hicreator/manifest.json`) and Node.js 20+ with npm are available in that same environment, run once before the first tool call:
|
|
20
22
|
|
|
21
23
|
```bash
|
|
22
24
|
npx --yes --prefer-online hicreator-agent@latest prepare --json
|
|
23
25
|
```
|
|
24
26
|
|
|
25
|
-
|
|
27
|
+
On native Windows PowerShell/CMD, use `npx.cmd`; on macOS or WSL, use `npx`. Keep Windows and WSL client installations separate. If `updated: true`, reread the `SKILL.md` for the current client in the returned `targets` before continuing. For manual installations, unavailable command execution, missing Node/npm or a failed update, continue with the installed Skill without retrying the update during this workflow. Do not run `setup` merely to enable updates.
|
|
28
|
+
|
|
29
|
+
Never request the API key through chat, put it in command arguments, or expose it when reading configuration. Credential entry belongs in the client's credential UI or the user's own local interactive terminal.
|
|
26
30
|
|
|
27
31
|
## Workflow
|
|
28
32
|
|
|
@@ -59,7 +63,7 @@ Use the user's IANA time zone when known; otherwise use `UTC` and state that cho
|
|
|
59
63
|
|
|
60
64
|
## Billing Safety
|
|
61
65
|
|
|
62
|
-
`search_creators_ai` and `find_similar_creators` each cost 0.5 credits per returned creator. `find_creator_email` costs 0.
|
|
66
|
+
`search_creators_ai` and `find_similar_creators` each cost 0.5 credits per returned creator. `find_creator_email` costs 0.2 credits for each valid creator profile URL, including when no public email is found. State the operation and quantity before a paid call. When the user's request already specifies them, proceed without asking the same question again.
|
|
63
67
|
|
|
64
68
|
Mention billing only before a paid call or when the user asks about it. Do not describe favorite-folder operations as free or volunteer that they do not consume credits.
|
|
65
69
|
|
package/src/configure.js
CHANGED
|
@@ -87,13 +87,18 @@ export async function configureClients({ home, clients, apiKey, mcpUrl }) {
|
|
|
87
87
|
}
|
|
88
88
|
|
|
89
89
|
async function executableExists(command, pathValue = process.env.PATH ?? "") {
|
|
90
|
+
const names = process.platform === "win32"
|
|
91
|
+
? [command, ...[".exe", ".cmd", ".bat"].map((extension) => `${command}${extension}`)]
|
|
92
|
+
: [command];
|
|
90
93
|
for (const directory of pathValue.split(delimiter)) {
|
|
91
94
|
if (!directory) continue;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
95
|
+
for (const name of names) {
|
|
96
|
+
try {
|
|
97
|
+
await access(join(directory, name), fsConstants.X_OK);
|
|
98
|
+
return true;
|
|
99
|
+
} catch {
|
|
100
|
+
// Continue through PATH entries and native Windows command shims.
|
|
101
|
+
}
|
|
97
102
|
}
|
|
98
103
|
}
|
|
99
104
|
return false;
|
|
@@ -111,6 +116,7 @@ export function parseClients(value) {
|
|
|
111
116
|
if (value === "all") return [...SUPPORTED_CLIENTS];
|
|
112
117
|
const clients = [...new Set(value.split(",").map((item) => item.trim())
|
|
113
118
|
.filter(Boolean))];
|
|
119
|
+
if (clients.length === 0) throw new Error("Select at least one client.");
|
|
114
120
|
const unsupported = clients.filter((client) =>
|
|
115
121
|
!SUPPORTED_CLIENTS.includes(client));
|
|
116
122
|
if (unsupported.length > 0) {
|
package/src/files.js
CHANGED
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
mkdir,
|
|
4
4
|
readFile,
|
|
5
5
|
rename,
|
|
6
|
+
stat,
|
|
6
7
|
writeFile,
|
|
7
8
|
} from "node:fs/promises";
|
|
8
9
|
import { basename, dirname, join } from "node:path";
|
|
@@ -10,10 +11,9 @@ import { randomUUID } from "node:crypto";
|
|
|
10
11
|
|
|
11
12
|
export async function pathExists(path) {
|
|
12
13
|
try {
|
|
13
|
-
await
|
|
14
|
+
await stat(path);
|
|
14
15
|
return true;
|
|
15
16
|
} catch (error) {
|
|
16
|
-
if (error?.code === "EISDIR") return true;
|
|
17
17
|
if (error?.code === "ENOENT") return false;
|
|
18
18
|
throw error;
|
|
19
19
|
}
|
|
@@ -24,7 +24,8 @@ export async function readJson(path, fallback) {
|
|
|
24
24
|
return JSON.parse(await readFile(path, "utf8"));
|
|
25
25
|
} catch (error) {
|
|
26
26
|
if (error?.code === "ENOENT") return fallback;
|
|
27
|
-
|
|
27
|
+
// JSON parse errors can include parts of the file, including credentials.
|
|
28
|
+
throw new Error(`Cannot read JSON config at ${path}. Check its format and permissions.`);
|
|
28
29
|
}
|
|
29
30
|
}
|
|
30
31
|
|