@flowweave-ai/cli 0.3.0 → 0.5.0

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 CHANGED
@@ -11,7 +11,11 @@ flowweave health --ready
11
11
 
12
12
  配置只保存基础 URL 到 `~/.config/flowweave/config.json`(可由 `FLOWWEAVE_CONFIG_PATH` 覆盖)。登录会话单独保存到同目录的 `auth.json`(可由 `FLOWWEAVE_AUTH_PATH` 覆盖),文件权限为 `0600`,并且只会发送给登录时的同一平台地址。使用 `flowweave auth status` 检查当前身份,使用 `flowweave auth logout` 撤销服务端会话并删除本地文件。默认登录会隐藏密码输入;非交互环境使用 `--password-stdin`,不要把密码写进命令参数、脚本或日志。
13
13
 
14
- 页面域命令包括 `node`、`node-directory`、`capability`、`environment`、`credential`、`flow`、`run`、`schedule`、`model` 和 `agent`。它们分别覆盖节点资产、能力仓库、终端环境、网站认证条目、流程编排、FlowRun、周期调度、大模型配置与 Agent 工作台的常用原子操作。`credential` 管理网站凭据,不等于 `auth` 用户登录。每个命令的 JSON 请求体与在线 OpenAPI 一致;运行 `flowweave <域> --help` 查看映射。
14
+ 页面域命令包括 `node`、`node-directory`、`capability`、`event-trigger`、`environment`、`credential`、`flow`、`run`、`schedule`、`model` 和 `agent`。它们分别覆盖节点资产、能力仓库、运行事件触发器、终端环境、网站认证条目、流程编排、FlowRun、周期调度、大模型配置与 Agent 工作台的常用原子操作。`credential` 管理网站凭据,不等于 `auth` 用户登录。每个命令的 JSON 请求体与在线 OpenAPI 一致;运行 `flowweave <域> --help` 查看映射。
15
+
16
+ 工作区浏览支持按需详情、增量目录、受授权的 Git 历史/提交/Diff 与创建普通文件或目录:使用 `agent workspace-details [--full-index]|workspace-directory|workspace-git-repositories|workspace-git-log|workspace-git-commit|workspace-git-diff|workspace-entry-create` 处理顶层 Agent Workspace;在 FlowRun 节点范围内使用对应的 `run workspace-* <run-id> --attempt <attempt-id>`。`--full-index` 只在用户确实需要完整索引时使用,默认优先按目录读取。Git 操作只接受由工作区 API 返回的 `repository_path`、commit 和文件路径,不能从本地或显示名称猜测。`agent hydration|head` 与 `run hydration|head` 读取会话原生状态;它们不修改 Conversation。
17
+
18
+ 连续自动记录的可移植初始配置使用 `run automatic-config-export <parent-run-id> --data-file ./.tmp/export.json` 和 `run automatic-config-import <parent-run-id> --data-file ./.tmp/import.json`。导出只接受已读取的连续记录 ID;导入会创建记录,先 dry-run 审阅格式版本、起始节点与节点计划。遇到明确的原生完成动作未投影时,才可在读取当前 Attempt 后使用 `run reconcile-runtime-completion <attempt-id> --data '{"expected_state_version": 3}'`;该操作必须携带当前状态版本,不能用来猜测或强制完成运行。
15
19
 
16
20
  常用命令示例:
17
21
 
@@ -21,9 +25,11 @@ flowweave health --ready
21
25
 
22
26
  读取 FlowRun 中的记录使用 `flowweave run node <run-id> --node <node-run-id>`;只有用户明确要求时才能执行 `node-copy` 或 `node-delete`。暂停或恢复 Runtime 前,必须先读取 `run runtime`,将返回的 `generation` 与 session `row_version` 写入 `expected_generation`、`expected_session_row_version` 后传给 `run pause` 或 `run resume`。供应商上游余额/用量使用 `flowweave model usage <provider-id>`,它可能依赖该供应商的有效 API 凭据。
23
27
 
24
- 周期任务使用 `schedule list/templates/occurrences/create/pause/resume/trigger/delete`。先用 `schedule templates` 读取可作为冻结母版的已就绪连续运行记录;创建请求必须使用在线 `FlowRunScheduleWrite` schema:只提交任务名称、母版 `source_flow_run_id` 和五段 `cron_expression`,节点、环境、输入和启动提示词均来自该记录的冻结母版。`schedule occurrences <schedule-id> --page 1 --page-size 10` 按需读取该调度的执行历史及其 FlowRun/NodeRun,而不预加载所有记录。暂停或恢复前从 `schedule list` 读取当前 `row_version`,再传入 `--expected-row-version`。手动触发会新增一次 occurrence,不会改写既有运行;删除生成的 FlowRun 不会删除调度,而有生成记录的调度删除会被平台拒绝。
28
+ 周期任务使用 `schedule list/templates/occurrences/create/pause/resume/trigger/delete`。先用 `schedule templates` 读取可作为冻结母版的已就绪连续运行记录;创建请求必须使用在线 `FlowRunScheduleWrite` schema:只提交任务名称、母版 `source_flow_run_id` 和五段 `cron_expression`,节点、环境、输入和启动提示词均来自该记录的冻结母版。`schedule occurrences <schedule-id> --page 1 --page-size 10` 按需读取该调度的执行历史及其 FlowRun/NodeRun,而不预加载所有记录。暂停或恢复前从 `schedule list` 读取当前 `row_version`,再传入 `--expected-row-version`。手动触发会新增一次 occurrence,不会改写既有运行;删除生成的 FlowRun 不会删除调度,而有生成记录的调度删除会被平台拒绝。环境发布现在会返回 `202`:发布后读取对应 Environment,等待新版本进入 `READY`,不要重复提交同一 Setup Session。
29
+
30
+ 能力命令还支持受治理的 OpenHands Plugin Marketplace:`capability marketplace` 读取服务端固定到完整 commit 的公开目录;使用返回的 `source`、`commit`、`repo_path` 与插件名称调用 `capability marketplace-resolve --data-file ./marketplace-plugin.json`,随后读取 `capability plugin-resolution <resolution-id>`,并以当前 `state_version` 调用 `capability plugin-publish <resolution-id> --data '{"expected_state_version": 1}'`。自定义受信任 Marketplace 可先用 `capability marketplace-preview --data-file ./marketplace.json` 审阅目录。Agent Definition 只能以 UTF-8 `.md`/`.markdown` 的 OpenHands YAML frontmatter + Markdown 正文通过 `capability validate|import --type AGENT_DEFINITION --file <file>` 导入。Hook 使用受控表单参数:`capability validate --type HOOK --file ./hook.md --hook-name <name> --hook-event <event> --hook-mode <PROMPT|SCRIPT>`;可选 `--hook-description` 与工具事件的 `--hook-matcher` 会被编译为 OpenHands 原生 `hook_config`,不能提交任意 Hook JSON。
25
31
 
26
- 能力命令还支持受治理的 OpenHands Plugin Marketplace:`capability marketplace` 读取服务端固定到完整 commit 的公开目录;使用返回的 `source`、`commit`、`repo_path` 与插件名称调用 `capability marketplace-resolve --data-file ./marketplace-plugin.json`,随后读取 `capability plugin-resolution <resolution-id>`,并以当前 `state_version` 调用 `capability plugin-publish <resolution-id> --data '{"expected_state_version": 1}'`。自定义受信任 Marketplace 可先用 `capability marketplace-preview --data-file ./marketplace.json` 审阅目录。Agent Definition 只能以 UTF-8 `.md`/`.markdown` OpenHands YAML frontmatter + Markdown 正文通过 `capability validate|import --type AGENT_DEFINITION --file <file>` 导入;Hook 已下线,新的 `--type HOOK` 导入会被明确拒绝。
32
+ 事件触发器是用户拥有的不可变版本:先 `event-trigger list` `event-trigger get <trigger-key>` 读取,再用 `event-trigger create --data-file ./trigger.json --dry-run` 创建,或用 `event-trigger version <trigger-key> --data-file ./trigger.json --dry-run` 新建版本。请求体必须使用在线 `EventTriggerWrite` schema;`actions[].config` 不得包含 token、password、secret 等明文凭据,Webhook/OAuth 等凭据应通过平台受控引用提供。
27
33
 
28
34
  `api`、`upload`、`ws` 是完整契约入口:任意当前或未来的 REST、multipart、WebSocket 原子接口均可直接调用,不需要等待 CLI 发布。三者都会使用当前 `auth login` 会话;不得用 `--header` 手工传 Cookie。写操作支持 `--dry-run`,并可使用 `-H 'Idempotency-Key: …'` 传入一次性幂等键。对于没有快捷命令的新接口,先运行 `flowweave openapi --paths`,再通过通用命令调用。
29
35
 
package/bin/flowweave.mjs CHANGED
@@ -33,13 +33,14 @@ function usage() {
33
33
  node <list|get|create|update|delete> [ID] [--data JSON|--data-file FILE]
34
34
  node-directory <list|create|delete|delete-many> [ID] [--id ID ...]
35
35
  capability <list|validate|commit|import|marketplace|marketplace-preview|marketplace-resolve|plugin-resolution|plugin-publish> ...
36
+ event-trigger <list|get|create|version> ...
36
37
  environment <list|get|create|update|delete|setup|publish|stop|version-delete> ...
37
38
  credential <list|create|update|delete|delete-many> ...
38
39
  flow <list|get|create|update|validate|delete> ...
39
- run <list|get|start|delete|runtime|replace|pause|resume|cancel|complete|events|node|node-copy|node-delete|workspace-delete|work-directory-delete> ...
40
+ run <list|get|start|delete|runtime|replace|pause|resume|cancel|complete|events|node|node-copy|node-delete|workspace-details|workspace-directory|workspace-git-repositories|workspace-git-log|workspace-git-commit|workspace-git-diff|workspace-entry-create|workspace-delete|work-directory-delete|hydration|head|automatic-config-export|automatic-config-import|reconcile-runtime-completion> ...
40
41
  schedule <list|templates|occurrences|create|pause|resume|trigger|delete> ...
41
42
  model <list|create|update|delete|discover|usage|test|oauth-start|oauth-poll|oauth-status|oauth-revoke> ...
42
- agent <default|workspace|runtime|conversations|conversation|create|send|interrupt|resume|work-directories|work-directory-create|work-directory-delete|file-delete> ...
43
+ agent <default|workspace|runtime|conversations|conversation|create|send|interrupt|resume|work-directories|work-directory-create|work-directory-delete|workspace-details|workspace-directory|workspace-git-repositories|workspace-git-log|workspace-git-commit|workspace-git-diff|workspace-entry-create|file-delete|hydration|head> ...
43
44
 
44
45
  所有写入操作都可加 --dry-run 仅查看最终请求。运行 flowweave <命令> --help 查看该命令说明。`;
45
46
  }
@@ -361,6 +362,27 @@ async function capability(args) {
361
362
  const file = resolve(source);
362
363
  const content = await readFile(file);
363
364
  const body = { capability_type: type, filename: basename(file), content_base64: content.toString('base64') };
365
+ if (type === 'HOOK') {
366
+ const name = option(args, '--hook-name');
367
+ const event = option(args, '--hook-event');
368
+ const mode = option(args, '--hook-mode');
369
+ if (!name || !event || !mode) {
370
+ throw new CliError('HOOK 导入需要 --hook-name、--hook-event 和 --hook-mode');
371
+ }
372
+ if (!['pre_tool_use', 'post_tool_use', 'user_prompt_submit', 'session_start', 'session_end', 'stop'].includes(event)) {
373
+ throw new CliError('--hook-event 必须是 OpenHands 支持的生命周期事件');
374
+ }
375
+ if (!['PROMPT', 'SCRIPT'].includes(mode)) {
376
+ throw new CliError('--hook-mode 必须是 PROMPT 或 SCRIPT');
377
+ }
378
+ Object.assign(body, {
379
+ hook_name: name,
380
+ hook_description: option(args, '--hook-description') || '',
381
+ hook_event: event,
382
+ hook_matcher: option(args, '--hook-matcher') || '*',
383
+ hook_mode: mode,
384
+ });
385
+ }
364
386
  const validated = await request('POST', '/capability-imports/validate', args, { body });
365
387
  if (action === 'validate' || flag(args, '--dry-run')) return validated;
366
388
  return request('POST', '/capability-imports', args, { body: { import_token: validated.import_token } });
@@ -373,6 +395,22 @@ async function capability(args) {
373
395
  throw new CliError('capability 支持 list|validate|commit|import|marketplace|marketplace-preview|marketplace-resolve|plugin-resolution|plugin-publish');
374
396
  }
375
397
 
398
+ async function eventTrigger(args) {
399
+ const [action, key] = positional(args);
400
+ if (action === 'list') {
401
+ if (key) throw new CliError('event-trigger list 不接受 trigger key');
402
+ return request('GET', '/event-triggers', args);
403
+ }
404
+ if (action === 'create') {
405
+ if (key) throw new CliError('event-trigger create 不接受 trigger key;请在请求体提供 trigger_key');
406
+ return request('POST', '/event-triggers', args);
407
+ }
408
+ if (!key) throw new CliError(`event-trigger ${action || ''} 需要 trigger key`);
409
+ if (action === 'get') return request('GET', `/event-triggers/${key}`, args);
410
+ if (action === 'version') return request('POST', `/event-triggers/${key}/versions`, args);
411
+ throw new CliError('event-trigger 支持 list|get|create|version');
412
+ }
413
+
376
414
  async function environment(args) {
377
415
  const [action, id] = positional(args);
378
416
  if (['list', 'get', 'create', 'update', 'delete'].includes(action)) return crud('environment', args);
@@ -415,6 +453,56 @@ async function flow(args) {
415
453
  throw new CliError('flow 支持 list|get|create|update|validate|delete');
416
454
  }
417
455
 
456
+ function workspaceScope(args) {
457
+ const bindingId = option(args, '--binding');
458
+ const workDirectoryId = option(args, '--work-directory');
459
+ return [
460
+ ...(bindingId ? [['binding_id', bindingId]] : []),
461
+ ...(workDirectoryId ? [['work_directory_id', workDirectoryId]] : []),
462
+ ];
463
+ }
464
+
465
+ function workspaceDirectoryQuery(args) {
466
+ const parentPath = option(args, '--parent-path');
467
+ const cursor = option(args, '--cursor');
468
+ const limit = option(args, '--limit');
469
+ const query = workspaceScope(args);
470
+ if (parentPath) query.push(['parent_path', parentPath]);
471
+ if (cursor) query.push(['cursor', cursor]);
472
+ if (limit !== undefined) {
473
+ const value = Number(limit);
474
+ if (!Number.isSafeInteger(value) || value < 1 || value > 250) {
475
+ throw new CliError('workspace-directory 的 --limit 必须为 1 到 250 的整数');
476
+ }
477
+ query.push(['limit', String(value)]);
478
+ }
479
+ return query;
480
+ }
481
+
482
+ function workspaceDetailsQuery(args) {
483
+ return [
484
+ ...workspaceScope(args),
485
+ ...(flag(args, '--full-index') ? [['full_index', 'true']] : []),
486
+ ];
487
+ }
488
+
489
+ function workspaceGitQuery(args, { commit = false, path = false } = {}) {
490
+ const repositoryPath = option(args, '--repository-path');
491
+ if (!repositoryPath) throw new CliError('工作区 Git 操作需要 --repository-path');
492
+ const query = [['repository_path', repositoryPath], ...workspaceScope(args)];
493
+ if (commit) {
494
+ const value = option(args, '--commit');
495
+ if (!value) throw new CliError('工作区 Git 提交操作需要 --commit');
496
+ query.push(['commit', value]);
497
+ }
498
+ if (path) {
499
+ const value = option(args, '--path');
500
+ if (!value) throw new CliError('工作区 Git Diff 操作需要 --path');
501
+ query.push(['path', value]);
502
+ }
503
+ return query;
504
+ }
505
+
418
506
  async function run(args) {
419
507
  const [action, id] = positional(args);
420
508
  if (action === 'list') return request('GET', '/flow-runs', args);
@@ -427,7 +515,17 @@ async function run(args) {
427
515
  });
428
516
  return request('POST', `/flows/${flowId}/runs`, args, { body });
429
517
  }
518
+ if (action === 'reconcile-runtime-completion') {
519
+ if (!id) throw new CliError('run reconcile-runtime-completion 需要 Attempt ID');
520
+ return request('POST', `/node-attempts/${id}/reconcile-runtime-completion`, args, { body: await objectPayload(args) });
521
+ }
430
522
  if (!id) throw new CliError(`run ${action || ''} 需要 FlowRun ID`);
523
+ if (action === 'automatic-config-export') {
524
+ return request('POST', `/flow-runs/${id}/automatic-runs/config-exports`, args, { body: await objectPayload(args) });
525
+ }
526
+ if (action === 'automatic-config-import') {
527
+ return request('POST', `/flow-runs/${id}/automatic-runs/config-imports`, args, { body: await objectPayload(args) });
528
+ }
431
529
  if (action === 'node' || action === 'node-copy' || action === 'node-delete') {
432
530
  const nodeRunId = option(args, '--node');
433
531
  if (!nodeRunId) throw new CliError(`run ${action} 需要 --node <node-run-id>`);
@@ -436,20 +534,48 @@ async function run(args) {
436
534
  if (action === 'node-copy') return request('POST', `${path}/copy`, args, { body: await objectPayload(args) });
437
535
  return request('DELETE', path, args);
438
536
  }
537
+ const attemptId = option(args, '--attempt');
538
+ const workspaceBase = attemptId
539
+ ? `/flow-runs/${id}/node-attempts/${attemptId}/agent-sessions`
540
+ : null;
541
+ if (['workspace-details', 'workspace-directory', 'workspace-git-repositories', 'workspace-git-log', 'workspace-git-commit', 'workspace-git-diff', 'workspace-entry-create'].includes(action)) {
542
+ if (!workspaceBase) throw new CliError(`run ${action} 需要 --attempt <attempt-id>`);
543
+ if (action === 'workspace-details') {
544
+ return request('GET', `${workspaceBase}/workspace`, args, { query: workspaceDetailsQuery(args) });
545
+ }
546
+ if (action === 'workspace-directory') {
547
+ return request('GET', `${workspaceBase}/workspace/directory`, args, { query: workspaceDirectoryQuery(args) });
548
+ }
549
+ if (action === 'workspace-git-repositories') {
550
+ return request('GET', `${workspaceBase}/workspace/git/repositories`, args, { query: workspaceScope(args) });
551
+ }
552
+ if (action === 'workspace-git-log') {
553
+ return request('GET', `${workspaceBase}/workspace/git/log`, args, { query: workspaceGitQuery(args) });
554
+ }
555
+ if (action === 'workspace-git-commit') {
556
+ return request('GET', `${workspaceBase}/workspace/git/commit`, args, { query: workspaceGitQuery(args, { commit: true }) });
557
+ }
558
+ if (action === 'workspace-git-diff') {
559
+ return request('GET', `${workspaceBase}/workspace/git/diff`, args, { query: workspaceGitQuery(args, { commit: true, path: true }) });
560
+ }
561
+ if (action === 'workspace-entry-create') {
562
+ return request('POST', `${workspaceBase}/workspace/entries`, args, { body: await objectPayload(args), query: workspaceScope(args) });
563
+ }
564
+ }
565
+ if (action === 'hydration' || action === 'head') {
566
+ if (!workspaceBase) throw new CliError(`run ${action} 需要 --attempt <attempt-id>`);
567
+ const bindingId = option(args, '--binding');
568
+ if (!bindingId) throw new CliError(`run ${action} 需要 --binding <binding-id>`);
569
+ return request('GET', `${workspaceBase}/${bindingId}/${action}`, args);
570
+ }
439
571
  if (action === 'workspace-delete') {
440
- const attemptId = option(args, '--attempt');
441
572
  const paths = optionValues(args, '--path');
442
573
  if (!attemptId || !paths.length) {
443
574
  throw new CliError('run workspace-delete 需要 FlowRun ID、--attempt 和至少一个 --path');
444
575
  }
445
- const bindingId = option(args, '--binding');
446
- const workDirectoryId = option(args, '--work-directory');
447
576
  return request('DELETE', `/flow-runs/${id}/node-attempts/${attemptId}/agent-sessions/workspace/entries`, args, {
448
577
  body: { paths },
449
- query: [
450
- ...(bindingId ? [['binding_id', bindingId]] : []),
451
- ...(workDirectoryId ? [['work_directory_id', workDirectoryId]] : []),
452
- ],
578
+ query: workspaceScope(args),
453
579
  });
454
580
  }
455
581
  if (action === 'work-directory-delete') {
@@ -474,7 +600,7 @@ async function run(args) {
474
600
  if (action === 'cancel') return request('POST', `/flow-runs/${id}/cancel`, args, { body: {} });
475
601
  if (action === 'complete') return request('POST', `/flow-runs/${id}/complete`, args, { body: {} });
476
602
  if (action === 'events') return request('GET', `/flow-runs/${id}/events`, args);
477
- throw new CliError('run 支持 list|get|start|delete|runtime|replace|pause|resume|cancel|complete|events|node|node-copy|node-delete|workspace-delete|work-directory-delete');
603
+ throw new CliError('run 支持 list|get|start|delete|runtime|replace|pause|resume|cancel|complete|events|node|node-copy|node-delete|workspace-details|workspace-directory|workspace-git-repositories|workspace-git-log|workspace-git-commit|workspace-git-diff|workspace-entry-create|workspace-delete|work-directory-delete|hydration|head|automatic-config-export|automatic-config-import|reconcile-runtime-completion');
478
604
  }
479
605
 
480
606
  async function schedule(args) {
@@ -559,26 +685,43 @@ async function agent(args) {
559
685
  if (!binding) throw new CliError('agent work-directory-delete 需要工作目录 ID');
560
686
  return request('DELETE', `${base}/work-directories/${binding}`, args);
561
687
  }
688
+ if (action === 'workspace-details') {
689
+ return request('GET', `${base}/workspace`, args, { query: workspaceDetailsQuery(args) });
690
+ }
691
+ if (action === 'workspace-directory') {
692
+ return request('GET', `${base}/workspace/directory`, args, { query: workspaceDirectoryQuery(args) });
693
+ }
694
+ if (action === 'workspace-git-repositories') {
695
+ return request('GET', `${base}/workspace/git/repositories`, args, { query: workspaceScope(args) });
696
+ }
697
+ if (action === 'workspace-git-log') {
698
+ return request('GET', `${base}/workspace/git/log`, args, { query: workspaceGitQuery(args) });
699
+ }
700
+ if (action === 'workspace-git-commit') {
701
+ return request('GET', `${base}/workspace/git/commit`, args, { query: workspaceGitQuery(args, { commit: true }) });
702
+ }
703
+ if (action === 'workspace-git-diff') {
704
+ return request('GET', `${base}/workspace/git/diff`, args, { query: workspaceGitQuery(args, { commit: true, path: true }) });
705
+ }
706
+ if (action === 'workspace-entry-create') {
707
+ return request('POST', `${base}/workspace/entries`, args, { body: await objectPayload(args), query: workspaceScope(args) });
708
+ }
562
709
  if (action === 'file-delete') {
563
710
  const paths = optionValues(args, '--path');
564
711
  if (!paths.length) throw new CliError('agent file-delete 至少需要一个 --path <runtime-path>');
565
- const bindingId = option(args, '--binding');
566
- const workDirectoryId = option(args, '--work-directory');
567
712
  return request('DELETE', `${base}/workspace/entries`, args, {
568
713
  body: { paths },
569
- query: [
570
- ...(bindingId ? [['binding_id', bindingId]] : []),
571
- ...(workDirectoryId ? [['work_directory_id', workDirectoryId]] : []),
572
- ],
714
+ query: workspaceScope(args),
573
715
  });
574
716
  }
575
717
  if (action === 'create') return request('POST', `${base}/conversations`, args);
576
718
  if (!binding) throw new CliError(`agent ${action || ''} 需要会话 binding ID`);
577
719
  if (action === 'conversation') return request('GET', `${base}/conversations/${binding}`, args);
720
+ if (action === 'hydration' || action === 'head') return request('GET', `${base}/conversations/${binding}/${action}`, args);
578
721
  if (action === 'send') return request('POST', `${base}/conversations/${binding}/messages`, args);
579
722
  if (action === 'interrupt') return request('POST', `${base}/conversations/${binding}/interrupt`, args, { body: {} });
580
723
  if (action === 'resume') return request('POST', `${base}/conversations/${binding}/resume`, args, { body: {} });
581
- throw new CliError('agent 支持 default|workspace|runtime|conversations|conversation|create|send|interrupt|resume|work-directories|work-directory-create|work-directory-delete|file-delete');
724
+ throw new CliError('agent 支持 default|workspace|runtime|conversations|conversation|create|send|interrupt|resume|work-directories|work-directory-create|work-directory-delete|workspace-details|workspace-directory|workspace-git-repositories|workspace-git-log|workspace-git-commit|workspace-git-diff|workspace-entry-create|file-delete|hydration|head');
582
725
  }
583
726
 
584
727
  async function upload(args) {
@@ -656,6 +799,7 @@ async function main(argv) {
656
799
  else if (command === 'node') result = crud(command, args);
657
800
  else if (command === 'node-directory') result = nodeDirectory(args);
658
801
  else if (command === 'capability') result = capability(args);
802
+ else if (command === 'event-trigger') result = eventTrigger(args);
659
803
  else if (command === 'environment') result = environment(args);
660
804
  else if (command === 'credential') result = credential(args);
661
805
  else if (command === 'flow') result = flow(args);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flowweave-ai/cli",
3
- "version": "0.3.0",
3
+ "version": "0.5.0",
4
4
  "description": "FlowWeave 平台命令行客户端",
5
5
  "type": "module",
6
6
  "bin": {