coze_lab 0.1.9 → 0.1.10

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.
Files changed (2) hide show
  1. package/index.js +8 -2
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -4294,12 +4294,18 @@ const AGENT_CONFIG = {
4294
4294
  },
4295
4295
  };
4296
4296
 
4297
- function detectAgent(agent) {
4297
+ function detectAgent(agent, cloud) {
4298
4298
  const cfg = AGENT_CONFIG[agent];
4299
4299
  // Check binary exists
4300
4300
  try {
4301
4301
  execSync(`which ${cfg.binary}`, { stdio: 'pipe' });
4302
4302
  } catch {
4303
+ // 云端 sandbox 里 agent 由 coze-bridge 托管运行,binary 不一定在 PATH。
4304
+ // 配置 hook 不依赖 binary 可执行,所以云端只 warn 不退出。
4305
+ if (cloud) {
4306
+ warn(`${agent} binary 不在 PATH(云端托管,跳过检测)`);
4307
+ return 'cloud';
4308
+ }
4303
4309
  errorBox([
4304
4310
  `ERROR: ${agent} is not installed on this machine`,
4305
4311
  '',
@@ -5197,7 +5203,7 @@ async function main() {
5197
5203
 
5198
5204
  // Step 2: Detect agent binary
5199
5205
  info('Step 2/5: Detecting agent...');
5200
- const version = detectAgent(agent);
5206
+ const version = detectAgent(agent, args.cloud);
5201
5207
  console.log('');
5202
5208
 
5203
5209
  // Step 3: Environment checks
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coze_lab",
3
- "version": "0.1.9",
3
+ "version": "0.1.10",
4
4
  "description": "Configure local AI agents (Claude Code, Codex, OpenClaw) to report traces to CozeLoop",
5
5
  "keywords": [
6
6
  "cozeloop",