@validflow/ccneed-cli 0.1.6 → 0.1.7
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/.agents/plugins/marketplace.json +12 -0
- package/.claude-plugin/marketplace.json +13 -0
- package/.claude-plugin/plugin.json +11 -0
- package/.codebuddy-plugin/marketplace.json +13 -0
- package/.codebuddy-plugin/plugin.json +11 -0
- package/.codex-plugin/plugin.json +11 -0
- package/INSTALL.md +45 -31
- package/README.md +24 -10
- package/checksums.json +8 -8
- package/hooks/acquisition.mjs +9 -0
- package/hooks/claude.json +27 -0
- package/hooks/codex.json +27 -0
- package/hooks/workbuddy.json +27 -0
- package/package.json +7 -1
- package/scripts/npm/plugin.mjs +441 -0
- package/scripts/npm/setup.mjs +61 -11
- package/scripts/npm/skills.mjs +47 -1
- package/skills/ccneed/SKILL.md +6 -3
- package/skills/ccneed/references/acquisition.md +71 -0
- package/skills/ccneed/references/resources.md +11 -2
- package/skills/ccneed/scripts/acquisition.mjs +351 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccneed",
|
|
3
|
+
"interface": { "displayName": "CCNeed" },
|
|
4
|
+
"plugins": [
|
|
5
|
+
{
|
|
6
|
+
"name": "ccneed",
|
|
7
|
+
"source": { "source": "local", "path": "./" },
|
|
8
|
+
"policy": { "installation": "AVAILABLE", "authentication": "ON_INSTALL" },
|
|
9
|
+
"category": "Productivity"
|
|
10
|
+
}
|
|
11
|
+
]
|
|
12
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccneed",
|
|
3
|
+
"description": "CCNeed data collection and cloud research integration.",
|
|
4
|
+
"owner": { "name": "CCNeed" },
|
|
5
|
+
"plugins": [
|
|
6
|
+
{
|
|
7
|
+
"name": "ccneed",
|
|
8
|
+
"description": "Collect data for your agent or request CCNeed cloud research.",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"version": "0.1.7"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccneed",
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "Collect CCNeed data with reviewed plans, or run cloud research and retrieve reports.",
|
|
5
|
+
"author": { "name": "CCNeed" },
|
|
6
|
+
"homepage": "https://ccneed.ai",
|
|
7
|
+
"repository": "https://github.com/validflow/ccneed-cli",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"skills": "./skills",
|
|
10
|
+
"hooks": "./hooks/claude.json"
|
|
11
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccneed",
|
|
3
|
+
"description": "CCNeed data collection and cloud research integration.",
|
|
4
|
+
"owner": { "name": "CCNeed" },
|
|
5
|
+
"plugins": [
|
|
6
|
+
{
|
|
7
|
+
"name": "ccneed",
|
|
8
|
+
"description": "Collect data for your agent or request CCNeed cloud research.",
|
|
9
|
+
"source": "./",
|
|
10
|
+
"version": "0.1.7"
|
|
11
|
+
}
|
|
12
|
+
]
|
|
13
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccneed",
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "Collect CCNeed data with reviewed plans, or run cloud research and retrieve reports.",
|
|
5
|
+
"author": { "name": "CCNeed" },
|
|
6
|
+
"homepage": "https://ccneed.ai",
|
|
7
|
+
"repository": "https://github.com/validflow/ccneed-cli",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"skills": "./skills",
|
|
10
|
+
"hooks": "./hooks/workbuddy.json"
|
|
11
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "ccneed",
|
|
3
|
+
"version": "0.1.7",
|
|
4
|
+
"description": "Collect CCNeed data with reviewed plans, or run cloud research and retrieve reports.",
|
|
5
|
+
"author": { "name": "CCNeed" },
|
|
6
|
+
"homepage": "https://ccneed.ai",
|
|
7
|
+
"repository": "https://github.com/validflow/ccneed-cli",
|
|
8
|
+
"license": "MIT",
|
|
9
|
+
"skills": "./skills",
|
|
10
|
+
"hooks": "./hooks/codex.json"
|
|
11
|
+
}
|
package/INSTALL.md
CHANGED
|
@@ -1,43 +1,61 @@
|
|
|
1
|
-
# Install CCNeed
|
|
1
|
+
# Install CCNeed
|
|
2
2
|
|
|
3
3
|
English · [中文](INSTALL.zh.md)
|
|
4
4
|
|
|
5
|
-
The CLI
|
|
5
|
+
The global CLI runs commands. A native plugin supplies the shared Skill and collection hooks to Claude Code, Codex or WorkBuddy desktop; each host manages its plugin cache and lifecycle.
|
|
6
6
|
|
|
7
|
-
>
|
|
7
|
+
> Release preparation: this branch targets 0.1.7. Merging this version change into `main` starts the existing gated release workflow. Native plugins, `kb plan`, `kb start` and `kb export` require that release and deployment of matching Club APIs. Until publication is verified, the current `@latest` does not include these changes.
|
|
8
8
|
|
|
9
9
|
## Install or update
|
|
10
10
|
|
|
11
|
-
|
|
11
|
+
Requires Node.js 22.14+, npm and the selected host. After reviewing the official source and obtaining permission to install:
|
|
12
12
|
|
|
13
13
|
```bash
|
|
14
|
-
npx @validflow/ccneed-cli@latest install --agent
|
|
15
|
-
# Or: --agent
|
|
14
|
+
npx @validflow/ccneed-cli@latest install --agent claude
|
|
15
|
+
# Or: --agent codex, --agent workbuddy, --agent claude,codex,workbuddy
|
|
16
16
|
```
|
|
17
17
|
|
|
18
|
-
|
|
18
|
+
The installer installs the exact global CLI version and coordinates native registration only for named hosts. Include every host you want to update. It does not start login or cloud tasks. Keep npm's global command directory on the Agent's PATH; local installation does not install commands inside a remote sandbox.
|
|
19
19
|
|
|
20
|
-
|
|
20
|
+
| Host | Native registration | Additional approval configuration |
|
|
21
|
+
| --- | --- | --- |
|
|
22
|
+
| Claude Code | Claude marketplace/plugin commands; verified user-scope version and enabled state | Plugin PreToolUse requests native `ask` |
|
|
23
|
+
| Codex | Codex marketplace/plugin commands; verified installed version and enabled state | `~/.codex/rules/ccneed.rules` prompts for paid prefixes |
|
|
24
|
+
| WorkBuddy desktop | Complete the native marketplace/plugin steps returned by the installer | `~/.workbuddy/settings.json`: compatible ask rules and `sandbox.commandSafety.ask` |
|
|
21
25
|
|
|
22
|
-
|
|
26
|
+
The package provides a local marketplace named `ccneed`; the plugin is `ccneed@ccneed`. Native managers load the bundled Skill and hooks without a second global Skill or user-level hook registration. Native caches can contain copies: rerun this installer rather than assuming `npm install -g` refreshes every host.
|
|
23
27
|
|
|
24
|
-
|
|
28
|
+
Check `plugins[]` in the JSON result. `installed` means the native manager reported the requested version enabled; hooks still require trust and a running session may need reloading. `action_required` or `failed` means integration is incomplete. WorkBuddy desktop currently has no verified public CLI registration command, so it remains pending until native desktop installation is completed. CodeBuddy CLI registration does not establish WorkBuddy desktop integration.
|
|
29
|
+
|
|
30
|
+
Restart the host, review/trust hooks and confirm the Skill loads. Installation trust is separate from permission to start each collection. Use native plugin controls for enable, disable and removal. Removing a plugin does not uninstall the global CLI or automatically remove extra Codex/WB permission rules. Retain those conservative rules until deliberately removing the corresponding CCNeed entries; preserve unrelated rules.
|
|
31
|
+
|
|
32
|
+
If downloads require a proxy, set `HTTPS_PROXY` or `HTTP_PROXY`; the downloader also honors `NO_PROXY` and lowercase forms. Use an exact version instead of `@latest` for reproducibility. RC releases use `@next`.
|
|
33
|
+
|
|
34
|
+
## Collection confirmation
|
|
35
|
+
|
|
36
|
+
1. The Agent prepares a plan; CCNeed validates it and compares estimated credits with balance.
|
|
37
|
+
2. The plugin displays the research requirement, each platform's entity/other keywords, total platform quota, credits and balance. Internal T1/T2/T3 allocation stays out of the user summary.
|
|
38
|
+
3. Starting that exact plan requires native tool permission. Changed or expired plans must be prepared and displayed again. Conversation HITL approvals use the same protections.
|
|
39
|
+
|
|
40
|
+
| Host | Supported collection mode |
|
|
25
41
|
| --- | --- |
|
|
26
|
-
|
|
|
27
|
-
|
|
|
28
|
-
|
|
|
42
|
+
| Claude Code | Interactive default/acceptEdits, manual approvals |
|
|
43
|
+
| Codex | `on-request`, `approvals_reviewer = "user"`, hooks/rules enabled |
|
|
44
|
+
| WorkBuddy desktop | Default permission, native Bash, **allow once** |
|
|
29
45
|
|
|
30
|
-
|
|
46
|
+
Codex PreToolUse cannot return `ask`; native command rules supply confirmation. WorkBuddy's current PowerShell sandbox wrapper does not reliably match paid prefixes, so paid PowerShell calls are blocked. Use Bash, including Git Bash on Windows. Session-wide approval suppresses later confirmations for that prefix; open a fresh session to restore them. Known bypass/never/automatic-review modes are rejected.
|
|
31
47
|
|
|
32
|
-
|
|
48
|
+
Use a standalone `ccneed kb start ...`, without script wrappers, composite commands or redirects. Codex plan/answer paths must be absolute because hooks do not receive an overridden command working directory. Disabling hooks, rules or manual approvals invalidates this supported configuration.
|
|
33
49
|
|
|
34
|
-
|
|
50
|
+
For acceptance, prepare a plan and verify its display; deny the native start prompt and confirm no collection starts, then approve a fresh attempt. Repeat for conversation HITL. Unit tests and files on disk do not establish desktop UI acceptance.
|
|
35
51
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
52
|
+
## Existing files and failures
|
|
53
|
+
|
|
54
|
+
The installer preserves unrelated settings and custom Skills. It migrates only recognized installer-owned legacy Skill links/hooks; unknown or edited files require manual resolution. A modified npm-managed Skill blocks replacement until its customization is preserved elsewhere. Keep custom instructions under another Skill name.
|
|
55
|
+
|
|
56
|
+
Native failures are reported per host after CLI installation, never as overall success. Fix the reported cause and retry. npm replacement and native managers are not one transaction. Conflicting same-name marketplaces are not redirected. Ordinary npm `postinstall` does not modify host configuration.
|
|
57
|
+
|
|
58
|
+
Non-default `CODEX_HOME` or `CLAUDE_CONFIG_DIR` is reported as requiring manual profile setup; the installer does not register plugins or write approval rules into a different profile. Use the default profile for coordinated installation, or configure and verify the native plugin and its permission rules together in your chosen profile.
|
|
41
59
|
|
|
42
60
|
## Verify and authorize
|
|
43
61
|
|
|
@@ -45,18 +63,16 @@ The package includes the Chinese `SKILL.md` and its four reference files. The re
|
|
|
45
63
|
ccneed version --no-update-check
|
|
46
64
|
ccneed --help
|
|
47
65
|
ccneed auth login
|
|
48
|
-
# Show the
|
|
66
|
+
# Show the website link and confirmation code; the user approves in the browser.
|
|
49
67
|
ccneed auth login --complete --timeout 60s
|
|
50
68
|
ccneed auth status --verify
|
|
51
69
|
```
|
|
52
70
|
|
|
53
|
-
|
|
71
|
+
`auth: not_started` means login has not happened. Never approve website access for the user, read browser cookies or print secrets. Commands default to production `https://ccneed.ai`; only authorized developers use `--api-url` with isolated staging accounts. See [Contributing](CONTRIBUTING.md).
|
|
54
72
|
|
|
55
|
-
|
|
73
|
+
## Build from source
|
|
56
74
|
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
In a new, clean directory with Git and Go 1.25+:
|
|
75
|
+
With Git and Go 1.25+:
|
|
60
76
|
|
|
61
77
|
```bash
|
|
62
78
|
git clone https://github.com/validflow/ccneed-cli.git
|
|
@@ -64,8 +80,6 @@ cd ccneed-cli
|
|
|
64
80
|
go install ./cmd/ccneed
|
|
65
81
|
```
|
|
66
82
|
|
|
67
|
-
Put `go env GOBIN` on PATH, or GOPATH's `bin` when
|
|
68
|
-
|
|
69
|
-
You can inspect installer help locally with `node scripts/npm/run.mjs install --help`.
|
|
83
|
+
Put `go env GOBIN` on PATH, or GOPATH's `bin` when empty. This builds the development command only; it does not register native plugins. Record the revision and keep plugin source at that revision. Offline installer help: `node scripts/npm/run.mjs install --help`.
|
|
70
84
|
|
|
71
|
-
|
|
85
|
+
References: [Claude plugins](https://code.claude.com/docs/en/plugins-reference), [Codex plugin hooks](https://learn.chatgpt.com/docs/hooks#plugin-bundled-hooks), [Codex rules](https://learn.chatgpt.com/docs/agent-configuration/rules), [WorkBuddy permissions](https://www.workbuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Permission-Modes). Protocol checks used Claude Code 2.1.193, Codex 0.165.0 and WorkBuddy desktop 5.3.8; host updates still require acceptance testing.
|
package/README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div align="center">
|
|
2
2
|
<img src="https://raw.githubusercontent.com/validflow/ccneed-cli/main/assets/ccneed-logo.png" alt="CCNeed mascot holding a magnifying glass" width="280">
|
|
3
|
-
<h1>CCNeed CLI</h1>
|
|
4
|
-
<p>
|
|
3
|
+
<h1>CCNeed CLI + Agent Plugins</h1>
|
|
4
|
+
<p>Collect data or run cloud research from Claude Code, Codex, or WorkBuddy.</p>
|
|
5
5
|
<p><a href="README.zh.md">中文</a> | <a href="README.md">English</a></p>
|
|
6
6
|
<p>
|
|
7
7
|
<a href="https://x.com/CCNeed_ai"><img src="https://img.shields.io/badge/X-CCNeed-333840?style=flat&logo=x&logoColor=white&labelColor=15171A" alt="X: CCNeed"></a>
|
|
@@ -16,9 +16,18 @@
|
|
|
16
16
|
</p>
|
|
17
17
|
</div>
|
|
18
18
|
|
|
19
|
-
CCNeed
|
|
19
|
+
CCNeed combines a global CLI with native Agent plugins for Claude Code, Codex and WorkBuddy. Collect and export data for your own Agent to analyze, or let CCNeed's cloud Agent analyze your knowledge base and return a report. The plugins bundle the shared Skill and collection hooks; each host manages their loading and lifecycle.
|
|
20
20
|
|
|
21
|
-
>
|
|
21
|
+
> Release preparation: this branch targets 0.1.7. Merging this version change into `main` starts the existing gated release workflow. The new `kb plan`, `kb start`, `kb export` and native plugin require that release and deployment of the matching Club APIs. Until publication is verified, the current `@latest` does not include these changes. Keep the CLI, Skill and hooks on the same package version.
|
|
22
|
+
|
|
23
|
+
## What's new in 0.1.7
|
|
24
|
+
|
|
25
|
+
- **Native Agent plugins:** one shared Skill and Hook core, packaged for CC/CX/WB. The unified installer coordinates CLI and selected plugin versions; CC/CX use native registration, while WorkBuddy desktop requires the native installation step described in [Installation](INSTALL.md).
|
|
26
|
+
- **Reviewed collection:** the Agent prepares a plan with `kb plan`; CCNeed validates it, fits quotas to the available balance, and displays the research requirement, platform keywords, quotas and credits. `kb start` requires native execution approval. Unspecified counts default to 300 items across all platforms.
|
|
27
|
+
- **Data for your own Agent:** `kb export --format csv|json` exports knowledge-base data without starting a cloud analysis conversation. Default filenames include the KB ID, name and export time to distinguish exports.
|
|
28
|
+
- **Cloud conversation continuity:** collection HITL requests support plan display, approval, feedback and rejection. Plan changes must be revalidated before approval; the cloud Agent can then continue its analysis and produce a report.
|
|
29
|
+
|
|
30
|
+
See the [0.1.7 changelog](CHANGELOG.md#017) for release details and service prerequisites.
|
|
22
31
|
|
|
23
32
|
## Install
|
|
24
33
|
|
|
@@ -28,7 +37,7 @@ Node.js 22.14+ and npm are required. Choose your agent: `codex`, `workbuddy` (lo
|
|
|
28
37
|
npx @validflow/ccneed-cli@latest install --agent codex
|
|
29
38
|
```
|
|
30
39
|
|
|
31
|
-
Replace `codex` with your agent, or use `--agent codex,workbuddy` for both.
|
|
40
|
+
Replace `codex` with your agent, or use `--agent codex,workbuddy` for both. In the new release above, the installer updates the global CLI and registers its same-version native plugin with Claude Code or Codex. WorkBuddy desktop requires the native plugin installation step shown in the result. The plugin bundles the shared Skill and collection hooks; it does not add a second global Skill. Restart your agent, review/trust the hooks, and keep manual approval enabled. See [installation](INSTALL.md) for requirements and per-host results.
|
|
32
41
|
|
|
33
42
|
```bash
|
|
34
43
|
ccneed --help
|
|
@@ -45,7 +54,7 @@ go install ./cmd/ccneed
|
|
|
45
54
|
ccneed --help
|
|
46
55
|
```
|
|
47
56
|
|
|
48
|
-
This builds the development CLI only. The source Skill lives in `skills/ccneed`
|
|
57
|
+
This builds the development CLI only. The source Skill lives in `skills/ccneed`; `go install` does not register a plugin. Use the npm installer for coordinated CLI and native plugin updates. See the [installation guide](INSTALL.md) for PATH and source-build details.
|
|
49
58
|
|
|
50
59
|
### Ask your agent to install it
|
|
51
60
|
|
|
@@ -78,13 +87,16 @@ Use my CCNeed knowledge base to research iPhone 18 discussions and bring me a PD
|
|
|
78
87
|
Ask me before making any choice that needs my confirmation.
|
|
79
88
|
```
|
|
80
89
|
|
|
81
|
-
|
|
90
|
+
For existing data, export it without starting a research conversation:
|
|
82
91
|
|
|
83
92
|
```bash
|
|
84
|
-
ccneed kb
|
|
93
|
+
ccneed kb export --kb-id KB_ID --format csv
|
|
94
|
+
ccneed kb export --kb-id KB_ID --format json
|
|
85
95
|
```
|
|
86
96
|
|
|
87
|
-
|
|
97
|
+
For new data, your agent prepares a plan with `kb plan`, displays the research requirement, keywords, platform quotas and credit estimate, then requests native permission before `kb start`. See [collection instructions](skills/ccneed/references/acquisition.md). The legacy `kb create` website entry remains available.
|
|
98
|
+
|
|
99
|
+
For cloud analysis, start a conversation with your first question and the knowledge-base ID. To bind a file too, upload it first and use the returned file ID:
|
|
88
100
|
|
|
89
101
|
```bash
|
|
90
102
|
ccneed files upload ./research-brief.pdf
|
|
@@ -102,6 +114,8 @@ The [Agent Skill](skills/ccneed/SKILL.md) covers the remaining commands, includi
|
|
|
102
114
|
| 🚀 Start research | `ccneed run "Your question" --kb-id KB_ID` |
|
|
103
115
|
| 📚 Explore knowledge bases | `ccneed kb list` |
|
|
104
116
|
| 📊 Check a knowledge base's data mix | `ccneed kb stats --kb-id KB_ID` |
|
|
117
|
+
| Export data for your own agent | `ccneed kb export --kb-id KB_ID --format csv` |
|
|
118
|
+
| Prepare a collection plan | `ccneed kb plan --plan-file ./plan.json --output ./prepared.json` |
|
|
105
119
|
| ➕ Create a knowledge base in the browser | `ccneed kb create` |
|
|
106
120
|
| 📎 List or upload your own files | `ccneed files list` / `ccneed files upload ./research-brief.pdf` |
|
|
107
121
|
| 🗂️ View or add conversation resources | `ccneed threads resources` / `ccneed threads append` |
|
|
@@ -114,7 +128,7 @@ Knowledge-base and file bindings can be added, but not removed. Use `ccneed <com
|
|
|
114
128
|
|
|
115
129
|
## Update and contribute
|
|
116
130
|
|
|
117
|
-
Run the same `npx @validflow/ccneed-cli@latest install --agent ...` command to update
|
|
131
|
+
Run the same `npx @validflow/ccneed-cli@latest install --agent ...` command to update the CLI and every host you name. Check each host's plugin result and complete any pending native installation or trust steps. Confirm that the required release and Club APIs are available before using collection commands. Reload your agent afterward; update notifications never install software without your action.
|
|
118
132
|
|
|
119
133
|
Found a problem? [Open an issue](https://github.com/validflow/ccneed-cli/issues) with your OS, CLI version, and a redacted error message. Never post credentials or private files.
|
|
120
134
|
|
package/checksums.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.1.
|
|
2
|
+
"version": "0.1.7",
|
|
3
3
|
"assets": {
|
|
4
|
-
"ccneed-0.1.
|
|
5
|
-
"ccneed-0.1.
|
|
6
|
-
"ccneed-0.1.
|
|
7
|
-
"ccneed-0.1.
|
|
8
|
-
"ccneed-0.1.
|
|
9
|
-
"ccneed-0.1.
|
|
4
|
+
"ccneed-0.1.7-linux-amd64": "54d2d0ce9b90c9ae431f3eefb625c7b2cbff2e7cc0a902d1e1fbcf4d939578a0",
|
|
5
|
+
"ccneed-0.1.7-linux-arm64": "d69f9c488bc9cece5c34678cea6c3b0e96e9a2e8f2f4c90a3541d6ea47880938",
|
|
6
|
+
"ccneed-0.1.7-darwin-amd64": "baed8eb0e42bffe64369c191f2c4da2ac00640dbd6857b98b157037d2f0dfa74",
|
|
7
|
+
"ccneed-0.1.7-darwin-arm64": "99cb85ed85722511dad5afe078745317740b6d68bb48dd9319b4491f44f6bcb8",
|
|
8
|
+
"ccneed-0.1.7-windows-amd64.exe": "6d35a6ae80aa17775c2cd082736aaf5641b28f60d41d5d30d6484c7445b94cc9",
|
|
9
|
+
"ccneed-0.1.7-windows-arm64.exe": "8ac740a21fa7b5f2db7c7c7ef924257fd59cd6ca8e9a7377981b09a9924e5388"
|
|
10
10
|
},
|
|
11
|
-
"skill_sha256": "
|
|
11
|
+
"skill_sha256": "c380117d7640ad55f9a682cb22bea45a503c1a29ad5ce1abdbba29207b103de8"
|
|
12
12
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { pathToFileURL } from 'node:url';
|
|
2
|
+
import { runHookFromStdin } from '../skills/ccneed/scripts/acquisition.mjs';
|
|
3
|
+
|
|
4
|
+
export { renderPlan, handleHook } from '../skills/ccneed/scripts/acquisition.mjs';
|
|
5
|
+
|
|
6
|
+
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
7
|
+
const hostIndex = process.argv.indexOf('--host');
|
|
8
|
+
await runHookFromStdin(hostIndex < 0 ? '' : process.argv[hostIndex + 1]);
|
|
9
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/acquisition.mjs\" --host claude", "timeout": 10 }
|
|
7
|
+
]
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"PreToolUse": [
|
|
11
|
+
{
|
|
12
|
+
"matcher": "Bash|PowerShell",
|
|
13
|
+
"hooks": [
|
|
14
|
+
{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/acquisition.mjs\" --host claude", "timeout": 10 }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"PostToolUse": [
|
|
19
|
+
{
|
|
20
|
+
"matcher": "Bash|PowerShell",
|
|
21
|
+
"hooks": [
|
|
22
|
+
{ "type": "command", "command": "node \"${CLAUDE_PLUGIN_ROOT}/hooks/acquisition.mjs\" --host claude", "timeout": 10 }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
package/hooks/codex.json
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{ "type": "command", "command": "node \"${PLUGIN_ROOT}/hooks/acquisition.mjs\" --host codex", "commandWindows": "node \"${env:PLUGIN_ROOT}/hooks/acquisition.mjs\" --host codex", "timeout": 10 }
|
|
7
|
+
]
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"PreToolUse": [
|
|
11
|
+
{
|
|
12
|
+
"matcher": "Bash|exec_command",
|
|
13
|
+
"hooks": [
|
|
14
|
+
{ "type": "command", "command": "node \"${PLUGIN_ROOT}/hooks/acquisition.mjs\" --host codex", "commandWindows": "node \"${env:PLUGIN_ROOT}/hooks/acquisition.mjs\" --host codex", "timeout": 10 }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"PostToolUse": [
|
|
19
|
+
{
|
|
20
|
+
"matcher": "Bash|exec_command",
|
|
21
|
+
"hooks": [
|
|
22
|
+
{ "type": "command", "command": "node \"${PLUGIN_ROOT}/hooks/acquisition.mjs\" --host codex", "commandWindows": "node \"${env:PLUGIN_ROOT}/hooks/acquisition.mjs\" --host codex", "timeout": 10 }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"hooks": {
|
|
3
|
+
"SessionStart": [
|
|
4
|
+
{
|
|
5
|
+
"hooks": [
|
|
6
|
+
{ "type": "command", "command": "node \"${CODEBUDDY_PLUGIN_ROOT}/hooks/acquisition.mjs\" --host workbuddy", "timeout": 10 }
|
|
7
|
+
]
|
|
8
|
+
}
|
|
9
|
+
],
|
|
10
|
+
"PreToolUse": [
|
|
11
|
+
{
|
|
12
|
+
"matcher": "Bash|PowerShell",
|
|
13
|
+
"hooks": [
|
|
14
|
+
{ "type": "command", "command": "node \"${CODEBUDDY_PLUGIN_ROOT}/hooks/acquisition.mjs\" --host workbuddy", "timeout": 10 }
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
"PostToolUse": [
|
|
19
|
+
{
|
|
20
|
+
"matcher": "Bash|PowerShell",
|
|
21
|
+
"hooks": [
|
|
22
|
+
{ "type": "command", "command": "node \"${CODEBUDDY_PLUGIN_ROOT}/hooks/acquisition.mjs\" --host workbuddy", "timeout": 10 }
|
|
23
|
+
]
|
|
24
|
+
}
|
|
25
|
+
]
|
|
26
|
+
}
|
|
27
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@validflow/ccneed-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "CCNeed cloud agent command-line integration",
|
|
6
6
|
"license": "MIT",
|
|
@@ -23,6 +23,12 @@
|
|
|
23
23
|
"scripts/npm/run.mjs",
|
|
24
24
|
"scripts/npm/setup.mjs",
|
|
25
25
|
"scripts/npm/skills.mjs",
|
|
26
|
+
"scripts/npm/plugin.mjs",
|
|
27
|
+
"hooks/",
|
|
28
|
+
".claude-plugin/",
|
|
29
|
+
".codex-plugin/",
|
|
30
|
+
".codebuddy-plugin/",
|
|
31
|
+
".agents/plugins/",
|
|
26
32
|
"checksums.json",
|
|
27
33
|
"skills/",
|
|
28
34
|
"assets/",
|