@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.
@@ -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 CLI and Skill
1
+ # Install CCNeed
2
2
 
3
3
  English · [中文](INSTALL.zh.md)
4
4
 
5
- The CLI is installed globally; the companion Skill is linked into the selected Agent's current-user directory. Both use the same package version across projects. Website login still requires the user's explicit approval.
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
- > The official npm package is published. Use `@latest` for the current stable version. Some cloud commands still depend on their matching production service APIs.
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
- After checking the official source and asking the user to approve installation, choose the Agent host:
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 codex
15
- # Or: --agent workbuddy, --agent claude, or --agent codex,workbuddy
14
+ npx @validflow/ccneed-cli@latest install --agent claude
15
+ # Or: --agent codex, --agent workbuddy, --agent claude,codex,workbuddy
16
16
  ```
17
17
 
18
- Requires Node.js 22.14+ and npm. The installer places `ccneed` in npm's global command directory, which must be on the Agent's PATH. A local install does not automatically make it available inside a remote sandbox. The installer does not read CCNeed account data, create tasks, or change Agent security settings.
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
- If GitHub downloads require a proxy, set `HTTPS_PROXY` (or `HTTP_PROXY`) in the terminal before installing. The binary downloader honors these variables and `NO_PROXY`, including their lowercase forms; no machine-specific proxy address is built into the package.
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
- `@latest` is npm's current stable release; replace it with an exact version if reproducibility matters. The installer globally installs that exact CLI and Skill version. Selected hosts receive links to the one installed Skill directory:
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
- | Host | Current-user Skill path |
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
- | Codex | `~/.agents/skills/ccneed` |
27
- | WorkBuddy local coding environment | `~/.codebuddy/skills/ccneed` |
28
- | Claude Code | `~/.claude/skills/ccneed` |
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
- These are directory links, not copies: Windows uses junctions; other systems use symlinks. Updating the global package updates already-linked hosts too, even if the update command names only one host. Restart or reload the host afterward; an existing Agent conversation may retain the old Skill in memory.
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
- The package includes the Chinese `SKILL.md` and its four reference files. The release and installer verify the whole Skill checksum, as well as the CLI binary version and checksum. A tag, binary, or directory link alone is not proof of a complete release or successful host loading.
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
- ## Existing files and update failures
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
- - The installer never overwrites a custom Skill or unrelated link at the same path. If an official Skill was locally modified, preserve the customization elsewhere before upgrading.
37
- - Missing links fail explicitly; the installer does not leave behind a copied Skill that will silently go stale. It changes only explicitly selected hosts, not every host in an npm `postinstall` hook.
38
- - Failed network, checksum, or link validation must not be reported as success. A link-stage failure rolls back only links created during that attempt; npm package replacement is not promised to be transactional.
39
- - A changed npm prefix or Node installation may change the global package path. The installer stops on a conflicting old link instead of rewriting an unknown location.
40
- - The installed package's Skill is npm-managed. Store custom instructions under a different Skill name instead of editing the installed one.
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 returned website link and confirmation code to the user.
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
- Verify the CLI version, PATH, and actual Skill loading in the selected host. `restart_required` means the host needs a reload; `auth: not_started` means login has not happened. Never approve website access on the user's behalf, read browser cookies, or print secrets.
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
- By default the CLI uses production at `https://ccneed.ai`; ordinary users do not need `--api-url`. Only authorized developers may use that flag with a staging test account, passing the same origin on every command. Remote HTTP additionally requires `--allow-insecure-http` and exposes credentials over plaintext; never use it for production. The server must independently enforce staging access. See [Contributing](CONTRIBUTING.md).
73
+ ## Build from source
56
74
 
57
- ## Build from source (developers)
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 GOBIN is empty. Record the checked-out revision. This builds the development CLI only: `go install` does not install or update the companion Skill. If linking it manually, keep the source Skill at the same revision. Use npm for coordinated CLI + Skill updates. A source build is not an official npm release.
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
- Official host references: [Codex Skills](https://developers.openai.com/codex/skills) · [WorkBuddy settings](https://www.codebuddy.cn/docs/workbuddy/From-Beginner-to-Expert-Guide/Function-Description/Setting) · [CodeBuddy directories](https://www.codebuddy.cn/docs/cli/codebuddy-dir) · [Claude Code Skills](https://code.claude.com/docs/en/skills). WorkBuddy's non-local Skill import is separate from npm-linked updates; actual WorkBuddy client loading still requires validation.
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>Run research with CCNeed from your own AI agent or terminal.</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&amp;logo=x&amp;logoColor=white&amp;labelColor=15171A" alt="X: CCNeed"></a>
@@ -16,9 +16,18 @@
16
16
  </p>
17
17
  </div>
18
18
 
19
- CCNeed runs long research tasks in the cloud. Its CLI lets you prepare research sources, submit work, follow progress, answer questions, and bring reports back into the agent you already use. The CLI and its companion Skill are installed together.
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
- > Some cloud commands depend on the corresponding CCNeed service APIs being available in production.
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. The installer adds a global `ccneed` command and links the same-version Skill into the selected agent's user directory; it does not modify the current project. Restart your agent after installation.
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` and is **not** installed or updated automatically by `go install`. For a linked CLI + Skill that update together, use the npm method above. See the [installation guide](INSTALL.md) for PATH and source-build details.
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
- Before creating a research conversation, choose a knowledge base. If you need a new one, this command returns a website link to create it:
90
+ For existing data, export it without starting a research conversation:
82
91
 
83
92
  ```bash
84
- ccneed kb create
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
- Start the conversation with your first question and the knowledge-base ID. To bind a file too, upload it first and use the returned file ID:
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 both the CLI and linked Skill. Reload your agent afterward; update notifications never install software without your action.
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.6",
2
+ "version": "0.1.7",
3
3
  "assets": {
4
- "ccneed-0.1.6-linux-amd64": "7f9f2657720f6199793cc9a5c647891ae4946f7f597934bfbf259beb9fd9284a",
5
- "ccneed-0.1.6-linux-arm64": "5caf91d3c22b211275354ca744f3250d8a941cf250b1733deeec33ebe9e00f36",
6
- "ccneed-0.1.6-darwin-amd64": "77e7b8fc5f881194837831b79614ba6fdce40ab181d0fd2fff501bb201fb49ce",
7
- "ccneed-0.1.6-darwin-arm64": "dd3055ea6c7b928b3d73538c1758448f7ae7905cac73e3180def671eaaa3c235",
8
- "ccneed-0.1.6-windows-amd64.exe": "c2705edd83a7d3d4b01748f10d5d01bdac9757213085f869ab83b5947c9c59f9",
9
- "ccneed-0.1.6-windows-arm64.exe": "4c1192b2277933290c287082d52176d01ec8529d71588149452d425c56a424ac"
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": "b72d69b63ee8772ef3a8cbe30c3eaa02cd32702ff9c47a75f656250cbdee4d0f"
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
+ }
@@ -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.6",
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/",