hicreator-agent 0.1.5 → 0.2.1
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 +7 -5
- package/package.json +1 -1
- package/skills/hicreator/SKILL.md +36 -7
- package/skills/hicreator/agents/openai.yaml +2 -2
- package/src/configure.js +11 -5
- package/src/files.js +4 -3
- package/src/mcp-check.js +9 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# hiCreator Agent
|
|
2
2
|
|
|
3
|
-
Connect AI agents to hiCreator creator search, email lookup, and
|
|
3
|
+
Connect AI agents to hiCreator creator search, email lookup, and complete favorite-folder workflows. The installer provides verified one-step setup for Codex, Claude Code, and Cursor. Any client that supports remote Streamable HTTP MCP with a custom `Authorization` header can use the same tools.
|
|
4
4
|
|
|
5
5
|
## Requirements
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ Connect AI agents to hiCreator creator search, email lookup, and favorites. The
|
|
|
14
14
|
npx --yes --prefer-online hicreator-agent@latest setup
|
|
15
15
|
```
|
|
16
16
|
|
|
17
|
-
The installer detects supported clients, shows masked `*` feedback while the API key is entered, validates its format, and verifies the remote MCP connection
|
|
17
|
+
The installer detects supported clients, shows masked `*` feedback while the API key is entered, validates its format, and verifies the remote MCP connection using only protocol initialization and tool discovery. Invalid keys can be entered again, and temporary network or server failures retry the connection check up to three times. Client configuration is written only after verification succeeds.
|
|
18
18
|
|
|
19
19
|
To choose clients explicitly:
|
|
20
20
|
|
|
@@ -22,22 +22,24 @@ 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
39
|
AI search and similar-creator search each cost 0.5 credits per returned creator. Email lookup costs 0.1 credits for each valid creator profile URL. The skill never automatically retries paid tools.
|
|
40
40
|
|
|
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
|
+
|
|
41
43
|
## Local Files
|
|
42
44
|
|
|
43
45
|
- hiCreator state: `~/.hicreator/manifest.json`
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: hicreator
|
|
3
|
-
description: Find Instagram, YouTube, or TikTok creators,
|
|
3
|
+
description: Find Instagram, YouTube, or TikTok creators, look up public contact emails, and manage, share, or export hiCreator favorite folders. Use for creator discovery and hiCreator favorites workflows.
|
|
4
4
|
---
|
|
5
5
|
|
|
6
6
|
# hiCreator
|
|
7
7
|
|
|
8
|
-
Use the hiCreator MCP tools to find and
|
|
8
|
+
Use the hiCreator MCP tools to find creators and manage Workspace favorite folders through natural language.
|
|
9
9
|
|
|
10
10
|
Users can invoke the Skill explicitly or describe the request directly:
|
|
11
11
|
|
|
@@ -16,28 +16,57 @@ 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
|
|
|
29
|
-
1.
|
|
33
|
+
1. Identify whether the request is creator discovery, email lookup, or favorite-folder management. Infer or confirm only information required for that operation.
|
|
30
34
|
2. Convert requested countries or regions to ISO 3166-1 alpha-2 codes before passing `regions` (for example, `US` or `GB`). Never pass country names.
|
|
31
35
|
3. Use `search_creators_ai` for intent-based discovery or `find_similar_creators` for a reference account.
|
|
32
36
|
4. Check returned results against hard constraints and state which constraints the data could not verify.
|
|
33
|
-
5. To save results, call `list_creator_folders`; create the destination
|
|
37
|
+
5. To save results, call `list_creator_folders`; create the destination folder with `create_creator_folder` only when needed; then call `add_creators_to_folder` with stable `platform` and `creator_id` values from search results.
|
|
34
38
|
6. Call `find_creator_email` only when the user explicitly asks for an email and the selected result does not already include one.
|
|
35
39
|
7. Report returned count, verified constraints, favorites result, and any per-item failures.
|
|
36
40
|
|
|
41
|
+
## Favorite Folders
|
|
42
|
+
|
|
43
|
+
- `list_creator_folders` and `list_creators_in_folder` use opaque cursor pagination. Reuse `nextCursor` unchanged and stop when it is `null`. Do not fabricate, edit, or reuse a cursor with a different platform filter.
|
|
44
|
+
- `rename_creator_folder` changes only the folder name. Names are unique within the Workspace.
|
|
45
|
+
- `add_creators_to_folder` and `remove_creators_from_folder` accept at most 100 items per call. Split larger explicit selections into stable batches and report every returned status. Removing a favorite never deletes the creator profile.
|
|
46
|
+
- Use `remove_creator_from_folder` for one creator. A missing membership returns `removed: false` and is not an error.
|
|
47
|
+
- `delete_creator_folder` permanently deletes the folder and all of its favorite memberships. Call it only after the user has explicitly identified the folder and confirmed permanent deletion in the current conversation. Never infer confirmation from a general cleanup request.
|
|
48
|
+
|
|
49
|
+
## Sharing
|
|
50
|
+
|
|
51
|
+
Use `set_creator_folder_sharing` with one of these scopes:
|
|
52
|
+
|
|
53
|
+
- `workspace`: the stable link requires the viewer to sign in as a member of the same Workspace.
|
|
54
|
+
- `public`: anyone with the stable link can view the latest folder contents.
|
|
55
|
+
|
|
56
|
+
The response contains the canonical share URL. Switching from `public` back to `workspace` cancels public access but intentionally keeps the same slug and URL. Do not describe `workspace` as an unshared or link-disabled state.
|
|
57
|
+
|
|
58
|
+
## Excel Export
|
|
59
|
+
|
|
60
|
+
`export_creator_folder` starts the product's existing asynchronous `creator.list.v1` export. It exports all platforms in the selected folder, using exactly one supported saved-date range: `today`, `7_days`, or `30_days`. If the user does not state the range, ask before starting. Do not claim all-time export support.
|
|
61
|
+
|
|
62
|
+
Use the user's IANA time zone when known; otherwise use `UTC` and state that choice. Export only data already stored by hiCreator; never call `find_creator_email` or another paid tool to enrich an export unless the user separately asks. Preserve the product's existing 100,000-row and file-size safeguards. After starting, call `get_creator_folder_export` with the returned job ID. A queued or running job is not a failure; check again without starting a second export. When the job succeeds, return the temporary download URL and file name. When it fails, report the returned error and do not silently create another job.
|
|
63
|
+
|
|
37
64
|
## Billing Safety
|
|
38
65
|
|
|
39
66
|
`search_creators_ai` and `find_similar_creators` each cost 0.5 credits per returned creator. `find_creator_email` costs 0.1 credits for each valid creator profile URL. State the operation and quantity before a paid call. When the user's request already specifies them, proceed without asking the same question again.
|
|
40
67
|
|
|
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.
|
|
69
|
+
|
|
41
70
|
Never automatically retry a paid tool after a timeout, disconnect, or uncertain result. Tell the user the request may have been charged and ask them to inspect API history before deciding whether to retry. Never silently raise `limit`, broaden filters, run a second search, or perform email lookup.
|
|
42
71
|
|
|
43
|
-
|
|
72
|
+
Favorite-folder reads, idempotent add/remove calls, sharing changes, and export status checks may be retried without repeating a paid search. Never retry permanent folder deletion after an uncertain result without listing folders to verify whether it already succeeded. Never create a second export merely because the first is still queued or running.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
interface:
|
|
2
2
|
display_name: "hiCreator"
|
|
3
|
-
short_description: "Find and
|
|
4
|
-
default_prompt: "Use hiCreator to find creators
|
|
3
|
+
short_description: "Find, organize, share, and export creators"
|
|
4
|
+
default_prompt: "Use hiCreator to find creators or manage my favorite folders."
|
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
|
|
package/src/mcp-check.js
CHANGED
|
@@ -5,7 +5,15 @@ const EXPECTED_TOOLS = [
|
|
|
5
5
|
"find_creator_email",
|
|
6
6
|
"create_creator_folder",
|
|
7
7
|
"list_creator_folders",
|
|
8
|
+
"rename_creator_folder",
|
|
9
|
+
"delete_creator_folder",
|
|
10
|
+
"list_creators_in_folder",
|
|
8
11
|
"add_creators_to_folder",
|
|
12
|
+
"remove_creator_from_folder",
|
|
13
|
+
"remove_creators_from_folder",
|
|
14
|
+
"set_creator_folder_sharing",
|
|
15
|
+
"export_creator_folder",
|
|
16
|
+
"get_creator_folder_export",
|
|
9
17
|
];
|
|
10
18
|
|
|
11
19
|
export class McpConnectionError extends Error {
|
|
@@ -97,7 +105,7 @@ export async function verifyMcp(mcpUrl, apiKey, { clientVersion = "unknown" } =
|
|
|
97
105
|
if (!Array.isArray(tools)
|
|
98
106
|
|| EXPECTED_TOOLS.some((tool) => !tools.includes(tool))) {
|
|
99
107
|
throw new McpConnectionError(
|
|
100
|
-
"The hiCreator MCP server did not advertise
|
|
108
|
+
"The hiCreator MCP server did not advertise the complete toolset.",
|
|
101
109
|
{ kind: "protocol" },
|
|
102
110
|
);
|
|
103
111
|
}
|