opclawtm 1.4.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 +136 -0
- package/dist/bin/team-manager.d.ts +6 -0
- package/dist/bin/team-manager.d.ts.map +1 -0
- package/dist/bin/team-manager.js +36 -0
- package/dist/bin/team-manager.js.map +1 -0
- package/dist/bin/team-setup.d.ts +7 -0
- package/dist/bin/team-setup.d.ts.map +1 -0
- package/dist/bin/team-setup.js +66 -0
- package/dist/bin/team-setup.js.map +1 -0
- package/dist/bin/team-uninstall.d.ts +6 -0
- package/dist/bin/team-uninstall.d.ts.map +1 -0
- package/dist/bin/team-uninstall.js +91 -0
- package/dist/bin/team-uninstall.js.map +1 -0
- package/dist/cli/commands/agent.command.d.ts +43 -0
- package/dist/cli/commands/agent.command.d.ts.map +1 -0
- package/dist/cli/commands/agent.command.js +223 -0
- package/dist/cli/commands/agent.command.js.map +1 -0
- package/dist/cli/commands/checklist.command.d.ts +35 -0
- package/dist/cli/commands/checklist.command.d.ts.map +1 -0
- package/dist/cli/commands/checklist.command.js +77 -0
- package/dist/cli/commands/checklist.command.js.map +1 -0
- package/dist/cli/commands/dept.command.d.ts +32 -0
- package/dist/cli/commands/dept.command.d.ts.map +1 -0
- package/dist/cli/commands/dept.command.js +92 -0
- package/dist/cli/commands/dept.command.js.map +1 -0
- package/dist/cli/commands/document.command.d.ts +37 -0
- package/dist/cli/commands/document.command.d.ts.map +1 -0
- package/dist/cli/commands/document.command.js +146 -0
- package/dist/cli/commands/document.command.js.map +1 -0
- package/dist/cli/commands/domain.command.d.ts +36 -0
- package/dist/cli/commands/domain.command.d.ts.map +1 -0
- package/dist/cli/commands/domain.command.js +97 -0
- package/dist/cli/commands/domain.command.js.map +1 -0
- package/dist/cli/commands/feishu.command.d.ts +63 -0
- package/dist/cli/commands/feishu.command.d.ts.map +1 -0
- package/dist/cli/commands/feishu.command.js +433 -0
- package/dist/cli/commands/feishu.command.js.map +1 -0
- package/dist/cli/commands/job.command.d.ts +39 -0
- package/dist/cli/commands/job.command.d.ts.map +1 -0
- package/dist/cli/commands/job.command.js +168 -0
- package/dist/cli/commands/job.command.js.map +1 -0
- package/dist/cli/commands/license.command.d.ts +22 -0
- package/dist/cli/commands/license.command.d.ts.map +1 -0
- package/dist/cli/commands/license.command.js +68 -0
- package/dist/cli/commands/license.command.js.map +1 -0
- package/dist/cli/commands/message-failure.command.d.ts +44 -0
- package/dist/cli/commands/message-failure.command.d.ts.map +1 -0
- package/dist/cli/commands/message-failure.command.js +137 -0
- package/dist/cli/commands/message-failure.command.js.map +1 -0
- package/dist/cli/commands/message.command.d.ts +47 -0
- package/dist/cli/commands/message.command.d.ts.map +1 -0
- package/dist/cli/commands/message.command.js +129 -0
- package/dist/cli/commands/message.command.js.map +1 -0
- package/dist/cli/commands/node.command.d.ts +76 -0
- package/dist/cli/commands/node.command.d.ts.map +1 -0
- package/dist/cli/commands/node.command.js +251 -0
- package/dist/cli/commands/node.command.js.map +1 -0
- package/dist/cli/commands/role-flow.command.d.ts +12 -0
- package/dist/cli/commands/role-flow.command.d.ts.map +1 -0
- package/dist/cli/commands/role-flow.command.js +54 -0
- package/dist/cli/commands/role-flow.command.js.map +1 -0
- package/dist/cli/commands/skill-pack.command.d.ts +41 -0
- package/dist/cli/commands/skill-pack.command.d.ts.map +1 -0
- package/dist/cli/commands/skill-pack.command.js +137 -0
- package/dist/cli/commands/skill-pack.command.js.map +1 -0
- package/dist/cli/commands/status.command.d.ts +8 -0
- package/dist/cli/commands/status.command.d.ts.map +1 -0
- package/dist/cli/commands/status.command.js +61 -0
- package/dist/cli/commands/status.command.js.map +1 -0
- package/dist/cli/commands/task.command.d.ts +105 -0
- package/dist/cli/commands/task.command.d.ts.map +1 -0
- package/dist/cli/commands/task.command.js +402 -0
- package/dist/cli/commands/task.command.js.map +1 -0
- package/dist/cli/commands/user.command.d.ts +43 -0
- package/dist/cli/commands/user.command.d.ts.map +1 -0
- package/dist/cli/commands/user.command.js +134 -0
- package/dist/cli/commands/user.command.js.map +1 -0
- package/dist/cli/index.d.ts +7 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +863 -0
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/tui/index.d.ts +45 -0
- package/dist/cli/tui/index.d.ts.map +1 -0
- package/dist/cli/tui/index.js +470 -0
- package/dist/cli/tui/index.js.map +1 -0
- package/dist/cli/tui/menus/agent-manage.menu.d.ts +8 -0
- package/dist/cli/tui/menus/agent-manage.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/agent-manage.menu.js +614 -0
- package/dist/cli/tui/menus/agent-manage.menu.js.map +1 -0
- package/dist/cli/tui/menus/dept-manage.menu.d.ts +8 -0
- package/dist/cli/tui/menus/dept-manage.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/dept-manage.menu.js +299 -0
- package/dist/cli/tui/menus/dept-manage.menu.js.map +1 -0
- package/dist/cli/tui/menus/domain-manage.menu.d.ts +8 -0
- package/dist/cli/tui/menus/domain-manage.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/domain-manage.menu.js +208 -0
- package/dist/cli/tui/menus/domain-manage.menu.js.map +1 -0
- package/dist/cli/tui/menus/feishu.menu.d.ts +8 -0
- package/dist/cli/tui/menus/feishu.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/feishu.menu.js +1727 -0
- package/dist/cli/tui/menus/feishu.menu.js.map +1 -0
- package/dist/cli/tui/menus/job-manage.menu.d.ts +16 -0
- package/dist/cli/tui/menus/job-manage.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/job-manage.menu.js +734 -0
- package/dist/cli/tui/menus/job-manage.menu.js.map +1 -0
- package/dist/cli/tui/menus/license.menu.d.ts +12 -0
- package/dist/cli/tui/menus/license.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/license.menu.js +164 -0
- package/dist/cli/tui/menus/license.menu.js.map +1 -0
- package/dist/cli/tui/menus/main.menu.d.ts +10 -0
- package/dist/cli/tui/menus/main.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/main.menu.js +94 -0
- package/dist/cli/tui/menus/main.menu.js.map +1 -0
- package/dist/cli/tui/menus/reset.menu.d.ts +10 -0
- package/dist/cli/tui/menus/reset.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/reset.menu.js +767 -0
- package/dist/cli/tui/menus/reset.menu.js.map +1 -0
- package/dist/cli/tui/menus/status.menu.d.ts +8 -0
- package/dist/cli/tui/menus/status.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/status.menu.js +123 -0
- package/dist/cli/tui/menus/status.menu.js.map +1 -0
- package/dist/cli/tui/menus/task-manage.menu.d.ts +11 -0
- package/dist/cli/tui/menus/task-manage.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/task-manage.menu.js +129 -0
- package/dist/cli/tui/menus/task-manage.menu.js.map +1 -0
- package/dist/cli/tui/menus/team-create.menu.d.ts +8 -0
- package/dist/cli/tui/menus/team-create.menu.d.ts.map +1 -0
- package/dist/cli/tui/menus/team-create.menu.js +353 -0
- package/dist/cli/tui/menus/team-create.menu.js.map +1 -0
- package/dist/config.d.ts +9 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/config.js +74 -0
- package/dist/config.js.map +1 -0
- package/dist/core/auth/index.d.ts +6 -0
- package/dist/core/auth/index.d.ts.map +1 -0
- package/dist/core/auth/index.js +22 -0
- package/dist/core/auth/index.js.map +1 -0
- package/dist/core/auth/middleware.d.ts +73 -0
- package/dist/core/auth/middleware.d.ts.map +1 -0
- package/dist/core/auth/middleware.js +456 -0
- package/dist/core/auth/middleware.js.map +1 -0
- package/dist/core/auth/storage.d.ts +38 -0
- package/dist/core/auth/storage.d.ts.map +1 -0
- package/dist/core/auth/storage.js +280 -0
- package/dist/core/auth/storage.js.map +1 -0
- package/dist/core/keys/public.pem +9 -0
- package/dist/core/models/types.d.ts +426 -0
- package/dist/core/models/types.d.ts.map +1 -0
- package/dist/core/models/types.js +9 -0
- package/dist/core/models/types.js.map +1 -0
- package/dist/core/services/agent-template.service.d.ts +49 -0
- package/dist/core/services/agent-template.service.d.ts.map +1 -0
- package/dist/core/services/agent-template.service.js +88 -0
- package/dist/core/services/agent-template.service.js.map +1 -0
- package/dist/core/services/agent.service.d.ts +120 -0
- package/dist/core/services/agent.service.d.ts.map +1 -0
- package/dist/core/services/agent.service.js +381 -0
- package/dist/core/services/agent.service.js.map +1 -0
- package/dist/core/services/auth-profiles.service.d.ts +93 -0
- package/dist/core/services/auth-profiles.service.d.ts.map +1 -0
- package/dist/core/services/auth-profiles.service.js +220 -0
- package/dist/core/services/auth-profiles.service.js.map +1 -0
- package/dist/core/services/checklist.service.d.ts +58 -0
- package/dist/core/services/checklist.service.d.ts.map +1 -0
- package/dist/core/services/checklist.service.js +240 -0
- package/dist/core/services/checklist.service.js.map +1 -0
- package/dist/core/services/config-tracker.service.d.ts +119 -0
- package/dist/core/services/config-tracker.service.d.ts.map +1 -0
- package/dist/core/services/config-tracker.service.js +1093 -0
- package/dist/core/services/config-tracker.service.js.map +1 -0
- package/dist/core/services/crypto.service.d.ts +102 -0
- package/dist/core/services/crypto.service.d.ts.map +1 -0
- package/dist/core/services/crypto.service.js +377 -0
- package/dist/core/services/crypto.service.js.map +1 -0
- package/dist/core/services/dept.service.d.ts +92 -0
- package/dist/core/services/dept.service.d.ts.map +1 -0
- package/dist/core/services/dept.service.js +260 -0
- package/dist/core/services/dept.service.js.map +1 -0
- package/dist/core/services/document.service.d.ts +131 -0
- package/dist/core/services/document.service.d.ts.map +1 -0
- package/dist/core/services/document.service.js +368 -0
- package/dist/core/services/document.service.js.map +1 -0
- package/dist/core/services/domain.service.d.ts +50 -0
- package/dist/core/services/domain.service.d.ts.map +1 -0
- package/dist/core/services/domain.service.js +98 -0
- package/dist/core/services/domain.service.js.map +1 -0
- package/dist/core/services/feishu.service.d.ts +124 -0
- package/dist/core/services/feishu.service.d.ts.map +1 -0
- package/dist/core/services/feishu.service.js +165 -0
- package/dist/core/services/feishu.service.js.map +1 -0
- package/dist/core/services/index.d.ts +27 -0
- package/dist/core/services/index.d.ts.map +1 -0
- package/dist/core/services/index.js +89 -0
- package/dist/core/services/index.js.map +1 -0
- package/dist/core/services/job.service.d.ts +60 -0
- package/dist/core/services/job.service.d.ts.map +1 -0
- package/dist/core/services/job.service.js +190 -0
- package/dist/core/services/job.service.js.map +1 -0
- package/dist/core/services/log.service.d.ts +111 -0
- package/dist/core/services/log.service.d.ts.map +1 -0
- package/dist/core/services/log.service.js +237 -0
- package/dist/core/services/log.service.js.map +1 -0
- package/dist/core/services/message-failure.service.d.ts +65 -0
- package/dist/core/services/message-failure.service.d.ts.map +1 -0
- package/dist/core/services/message-failure.service.js +112 -0
- package/dist/core/services/message-failure.service.js.map +1 -0
- package/dist/core/services/message.service.d.ts +122 -0
- package/dist/core/services/message.service.d.ts.map +1 -0
- package/dist/core/services/message.service.js +374 -0
- package/dist/core/services/message.service.js.map +1 -0
- package/dist/core/services/node.service.d.ts +150 -0
- package/dist/core/services/node.service.d.ts.map +1 -0
- package/dist/core/services/node.service.js +257 -0
- package/dist/core/services/node.service.js.map +1 -0
- package/dist/core/services/openclaw-config.service.d.ts +187 -0
- package/dist/core/services/openclaw-config.service.d.ts.map +1 -0
- package/dist/core/services/openclaw-config.service.js +268 -0
- package/dist/core/services/openclaw-config.service.js.map +1 -0
- package/dist/core/services/preset-loader.service.d.ts +80 -0
- package/dist/core/services/preset-loader.service.d.ts.map +1 -0
- package/dist/core/services/preset-loader.service.js +379 -0
- package/dist/core/services/preset-loader.service.js.map +1 -0
- package/dist/core/services/role-flow.service.d.ts +21 -0
- package/dist/core/services/role-flow.service.d.ts.map +1 -0
- package/dist/core/services/role-flow.service.js +47 -0
- package/dist/core/services/role-flow.service.js.map +1 -0
- package/dist/core/services/setup.service.d.ts +46 -0
- package/dist/core/services/setup.service.d.ts.map +1 -0
- package/dist/core/services/setup.service.js +336 -0
- package/dist/core/services/setup.service.js.map +1 -0
- package/dist/core/services/skill-pack.service.d.ts +56 -0
- package/dist/core/services/skill-pack.service.d.ts.map +1 -0
- package/dist/core/services/skill-pack.service.js +113 -0
- package/dist/core/services/skill-pack.service.js.map +1 -0
- package/dist/core/services/task.service.d.ts +177 -0
- package/dist/core/services/task.service.d.ts.map +1 -0
- package/dist/core/services/task.service.js +397 -0
- package/dist/core/services/task.service.js.map +1 -0
- package/dist/core/services/template.service.d.ts +51 -0
- package/dist/core/services/template.service.d.ts.map +1 -0
- package/dist/core/services/template.service.js +88 -0
- package/dist/core/services/template.service.js.map +1 -0
- package/dist/core/services/user.service.d.ts +50 -0
- package/dist/core/services/user.service.d.ts.map +1 -0
- package/dist/core/services/user.service.js +111 -0
- package/dist/core/services/user.service.js.map +1 -0
- package/dist/core/utils/agent-guide-generator.d.ts +38 -0
- package/dist/core/utils/agent-guide-generator.d.ts.map +1 -0
- package/dist/core/utils/agent-guide-generator.js +187 -0
- package/dist/core/utils/agent-guide-generator.js.map +1 -0
- package/dist/core/utils/credentials-cleanup.d.ts +81 -0
- package/dist/core/utils/credentials-cleanup.d.ts.map +1 -0
- package/dist/core/utils/credentials-cleanup.js +256 -0
- package/dist/core/utils/credentials-cleanup.js.map +1 -0
- package/dist/core/utils/index.d.ts +215 -0
- package/dist/core/utils/index.d.ts.map +1 -0
- package/dist/core/utils/index.js +462 -0
- package/dist/core/utils/index.js.map +1 -0
- package/dist/core/utils/openclaw-helper.d.ts +250 -0
- package/dist/core/utils/openclaw-helper.d.ts.map +1 -0
- package/dist/core/utils/openclaw-helper.js +1629 -0
- package/dist/core/utils/openclaw-helper.js.map +1 -0
- package/dist/core/utils/template-generator.d.ts +67 -0
- package/dist/core/utils/template-generator.d.ts.map +1 -0
- package/dist/core/utils/template-generator.js +170 -0
- package/dist/core/utils/template-generator.js.map +1 -0
- package/dist/db/index.d.ts +54 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +403 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/repositories/agent-template.repo.d.ts +47 -0
- package/dist/db/repositories/agent-template.repo.d.ts.map +1 -0
- package/dist/db/repositories/agent-template.repo.js +108 -0
- package/dist/db/repositories/agent-template.repo.js.map +1 -0
- package/dist/db/repositories/agent.repo.d.ts +64 -0
- package/dist/db/repositories/agent.repo.d.ts.map +1 -0
- package/dist/db/repositories/agent.repo.js +103 -0
- package/dist/db/repositories/agent.repo.js.map +1 -0
- package/dist/db/repositories/base.repository.d.ts +51 -0
- package/dist/db/repositories/base.repository.d.ts.map +1 -0
- package/dist/db/repositories/base.repository.js +107 -0
- package/dist/db/repositories/base.repository.js.map +1 -0
- package/dist/db/repositories/company.repo.d.ts +18 -0
- package/dist/db/repositories/company.repo.d.ts.map +1 -0
- package/dist/db/repositories/company.repo.js +33 -0
- package/dist/db/repositories/company.repo.js.map +1 -0
- package/dist/db/repositories/config-change.repo.d.ts +65 -0
- package/dist/db/repositories/config-change.repo.d.ts.map +1 -0
- package/dist/db/repositories/config-change.repo.js +119 -0
- package/dist/db/repositories/config-change.repo.js.map +1 -0
- package/dist/db/repositories/dept.repo.d.ts +37 -0
- package/dist/db/repositories/dept.repo.d.ts.map +1 -0
- package/dist/db/repositories/dept.repo.js +66 -0
- package/dist/db/repositories/dept.repo.js.map +1 -0
- package/dist/db/repositories/document.repo.d.ts +25 -0
- package/dist/db/repositories/document.repo.d.ts.map +1 -0
- package/dist/db/repositories/document.repo.js +51 -0
- package/dist/db/repositories/document.repo.js.map +1 -0
- package/dist/db/repositories/domain.repo.d.ts +42 -0
- package/dist/db/repositories/domain.repo.d.ts.map +1 -0
- package/dist/db/repositories/domain.repo.js +79 -0
- package/dist/db/repositories/domain.repo.js.map +1 -0
- package/dist/db/repositories/index.d.ts +24 -0
- package/dist/db/repositories/index.d.ts.map +1 -0
- package/dist/db/repositories/index.js +81 -0
- package/dist/db/repositories/index.js.map +1 -0
- package/dist/db/repositories/init-session.repo.d.ts +38 -0
- package/dist/db/repositories/init-session.repo.d.ts.map +1 -0
- package/dist/db/repositories/init-session.repo.js +112 -0
- package/dist/db/repositories/init-session.repo.js.map +1 -0
- package/dist/db/repositories/job.repo.d.ts +54 -0
- package/dist/db/repositories/job.repo.d.ts.map +1 -0
- package/dist/db/repositories/job.repo.js +119 -0
- package/dist/db/repositories/job.repo.js.map +1 -0
- package/dist/db/repositories/message-failure.repo.d.ts +92 -0
- package/dist/db/repositories/message-failure.repo.d.ts.map +1 -0
- package/dist/db/repositories/message-failure.repo.js +141 -0
- package/dist/db/repositories/message-failure.repo.js.map +1 -0
- package/dist/db/repositories/message-log.repo.d.ts +36 -0
- package/dist/db/repositories/message-log.repo.d.ts.map +1 -0
- package/dist/db/repositories/message-log.repo.js +64 -0
- package/dist/db/repositories/message-log.repo.js.map +1 -0
- package/dist/db/repositories/node.repo.d.ts +107 -0
- package/dist/db/repositories/node.repo.d.ts.map +1 -0
- package/dist/db/repositories/node.repo.js +276 -0
- package/dist/db/repositories/node.repo.js.map +1 -0
- package/dist/db/repositories/role-flow.repo.d.ts +43 -0
- package/dist/db/repositories/role-flow.repo.d.ts.map +1 -0
- package/dist/db/repositories/role-flow.repo.js +83 -0
- package/dist/db/repositories/role-flow.repo.js.map +1 -0
- package/dist/db/repositories/skill-pack.repo.d.ts +45 -0
- package/dist/db/repositories/skill-pack.repo.d.ts.map +1 -0
- package/dist/db/repositories/skill-pack.repo.js +149 -0
- package/dist/db/repositories/skill-pack.repo.js.map +1 -0
- package/dist/db/repositories/task.repo.d.ts +168 -0
- package/dist/db/repositories/task.repo.d.ts.map +1 -0
- package/dist/db/repositories/task.repo.js +381 -0
- package/dist/db/repositories/task.repo.js.map +1 -0
- package/dist/db/repositories/template.repo.d.ts +40 -0
- package/dist/db/repositories/template.repo.d.ts.map +1 -0
- package/dist/db/repositories/template.repo.js +66 -0
- package/dist/db/repositories/template.repo.js.map +1 -0
- package/dist/db/repositories/user.repo.d.ts +46 -0
- package/dist/db/repositories/user.repo.d.ts.map +1 -0
- package/dist/db/repositories/user.repo.js +75 -0
- package/dist/db/repositories/user.repo.js.map +1 -0
- package/dist/db/schema.sql +364 -0
- package/package.json +90 -0
- package/resources/preset-data-hash.enc +1 -0
- package/resources/preset-data.enc +1 -0
|
@@ -0,0 +1,863 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* CLI Main Entry
|
|
4
|
+
*/
|
|
5
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
8
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
9
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
10
|
+
}
|
|
11
|
+
Object.defineProperty(o, k2, desc);
|
|
12
|
+
}) : (function(o, m, k, k2) {
|
|
13
|
+
if (k2 === undefined) k2 = k;
|
|
14
|
+
o[k2] = m[k];
|
|
15
|
+
}));
|
|
16
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
17
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
18
|
+
}) : function(o, v) {
|
|
19
|
+
o["default"] = v;
|
|
20
|
+
});
|
|
21
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
22
|
+
var ownKeys = function(o) {
|
|
23
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
24
|
+
var ar = [];
|
|
25
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
26
|
+
return ar;
|
|
27
|
+
};
|
|
28
|
+
return ownKeys(o);
|
|
29
|
+
};
|
|
30
|
+
return function (mod) {
|
|
31
|
+
if (mod && mod.__esModule) return mod;
|
|
32
|
+
var result = {};
|
|
33
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
+
__setModuleDefault(result, mod);
|
|
35
|
+
return result;
|
|
36
|
+
};
|
|
37
|
+
})();
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.program = void 0;
|
|
40
|
+
const commander_1 = require("commander");
|
|
41
|
+
const program = new commander_1.Command();
|
|
42
|
+
exports.program = program;
|
|
43
|
+
program
|
|
44
|
+
.name('team-manager')
|
|
45
|
+
.description('Multi-Agent Collaboration Framework - CLI Management Tool (v1.4.0)')
|
|
46
|
+
.version('1.4.0');
|
|
47
|
+
// ============================================
|
|
48
|
+
// TUI Interactive Interface
|
|
49
|
+
// ============================================
|
|
50
|
+
program
|
|
51
|
+
.command('tui')
|
|
52
|
+
.description('Start interactive terminal interface')
|
|
53
|
+
.action(async () => {
|
|
54
|
+
const { startTUI } = await Promise.resolve().then(() => __importStar(require('./tui')));
|
|
55
|
+
await startTUI();
|
|
56
|
+
});
|
|
57
|
+
// ============================================
|
|
58
|
+
// Team Management Commands
|
|
59
|
+
// ============================================
|
|
60
|
+
program
|
|
61
|
+
.command('create-dept')
|
|
62
|
+
.description('Create team')
|
|
63
|
+
.requiredOption('--name <name>', 'Team name')
|
|
64
|
+
.option('--id <id>', 'Team ID (optional, auto-generated)')
|
|
65
|
+
.action(async (options) => {
|
|
66
|
+
const { createDeptCommand } = await Promise.resolve().then(() => __importStar(require('./commands/dept.command')));
|
|
67
|
+
await createDeptCommand(options);
|
|
68
|
+
});
|
|
69
|
+
program
|
|
70
|
+
.command('list-depts')
|
|
71
|
+
.description('List all teams')
|
|
72
|
+
.action(async () => {
|
|
73
|
+
const { listDeptsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/dept.command')));
|
|
74
|
+
await listDeptsCommand();
|
|
75
|
+
});
|
|
76
|
+
program
|
|
77
|
+
.command('update-dept')
|
|
78
|
+
.description('Update team')
|
|
79
|
+
.requiredOption('--id <id>', 'Team ID')
|
|
80
|
+
.option('--name <name>', 'Team name')
|
|
81
|
+
.option('--feishu-group-id <groupId>', 'Feishu group ID')
|
|
82
|
+
.action(async (options) => {
|
|
83
|
+
const { updateDeptCommand } = await Promise.resolve().then(() => __importStar(require('./commands/dept.command')));
|
|
84
|
+
await updateDeptCommand(options);
|
|
85
|
+
});
|
|
86
|
+
program
|
|
87
|
+
.command('delete-dept')
|
|
88
|
+
.description('Delete team')
|
|
89
|
+
.requiredOption('--id <id>', 'Team ID')
|
|
90
|
+
.action(async (options) => {
|
|
91
|
+
const { deleteDeptCommand } = await Promise.resolve().then(() => __importStar(require('./commands/dept.command')));
|
|
92
|
+
await deleteDeptCommand(options);
|
|
93
|
+
});
|
|
94
|
+
// ============================================
|
|
95
|
+
// Agent Management Commands
|
|
96
|
+
// ============================================
|
|
97
|
+
program
|
|
98
|
+
.command('create-agent')
|
|
99
|
+
.description('Create agent')
|
|
100
|
+
.requiredOption('--name <name>', 'Agent name')
|
|
101
|
+
.requiredOption('--role <role>', 'Role type: assistant/manager/executor/reviewer')
|
|
102
|
+
.option('--id <id>', 'Agent ID (optional, auto-generated)')
|
|
103
|
+
.option('--dept <deptId>', 'Team ID')
|
|
104
|
+
.option('--job <jobId>', 'Job ID (required for executor)')
|
|
105
|
+
.action(async (options) => {
|
|
106
|
+
const { createAgentCommand } = await Promise.resolve().then(() => __importStar(require('./commands/agent.command')));
|
|
107
|
+
await createAgentCommand(options);
|
|
108
|
+
});
|
|
109
|
+
program
|
|
110
|
+
.command('get-agent')
|
|
111
|
+
.description('Query agent')
|
|
112
|
+
.option('--id <id>', 'Agent ID')
|
|
113
|
+
.option('--department-id <deptId>', 'Team ID')
|
|
114
|
+
.option('--role <role>', 'Role type')
|
|
115
|
+
.action(async (options) => {
|
|
116
|
+
const { getAgentCommand } = await Promise.resolve().then(() => __importStar(require('./commands/agent.command')));
|
|
117
|
+
await getAgentCommand(options);
|
|
118
|
+
});
|
|
119
|
+
program
|
|
120
|
+
.command('list-agents')
|
|
121
|
+
.description('List agents')
|
|
122
|
+
.option('--department-id <deptId>', 'Filter by team')
|
|
123
|
+
.action(async (options) => {
|
|
124
|
+
const { listAgentsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/agent.command')));
|
|
125
|
+
await listAgentsCommand(options);
|
|
126
|
+
});
|
|
127
|
+
program
|
|
128
|
+
.command('delete-agent')
|
|
129
|
+
.description('Delete agent')
|
|
130
|
+
.requiredOption('--id <id>', 'Agent ID')
|
|
131
|
+
.action(async (options) => {
|
|
132
|
+
const { deleteAgentCommand } = await Promise.resolve().then(() => __importStar(require('./commands/agent.command')));
|
|
133
|
+
await deleteAgentCommand(options);
|
|
134
|
+
});
|
|
135
|
+
program
|
|
136
|
+
.command('regenerate-agent-files')
|
|
137
|
+
.description('Regenerate agent files (AGENTS.md, SOUL.md, USER.md, MEMORY.md) from database templates')
|
|
138
|
+
.option('--id <id>', 'Regenerate only this agent ID (omit to regenerate all)')
|
|
139
|
+
.action(async (options) => {
|
|
140
|
+
const { regenerateAgentFilesCommand } = await Promise.resolve().then(() => __importStar(require('./commands/agent.command')));
|
|
141
|
+
await regenerateAgentFilesCommand(options);
|
|
142
|
+
});
|
|
143
|
+
// ============================================
|
|
144
|
+
// Job Management Commands
|
|
145
|
+
// ============================================
|
|
146
|
+
program
|
|
147
|
+
.command('create-job')
|
|
148
|
+
.description('Create job')
|
|
149
|
+
.requiredOption('--name <name>', 'Job name')
|
|
150
|
+
.option('--id <id>', 'Job ID (optional, auto-generated)')
|
|
151
|
+
.option('--skill-pack-ids <json>', 'Skill pack ID list (JSON array)')
|
|
152
|
+
.action(async (options) => {
|
|
153
|
+
const { createJobCommand } = await Promise.resolve().then(() => __importStar(require('./commands/job.command')));
|
|
154
|
+
await createJobCommand(options);
|
|
155
|
+
});
|
|
156
|
+
program
|
|
157
|
+
.command('get-job')
|
|
158
|
+
.description('Get job details')
|
|
159
|
+
.requiredOption('--id <id>', 'Job ID')
|
|
160
|
+
.action(async (options) => {
|
|
161
|
+
const { getJobCommand } = await Promise.resolve().then(() => __importStar(require('./commands/job.command')));
|
|
162
|
+
await getJobCommand(options);
|
|
163
|
+
});
|
|
164
|
+
program
|
|
165
|
+
.command('list-jobs')
|
|
166
|
+
.description('List all jobs')
|
|
167
|
+
.action(async () => {
|
|
168
|
+
const { listJobsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/job.command')));
|
|
169
|
+
await listJobsCommand();
|
|
170
|
+
});
|
|
171
|
+
program
|
|
172
|
+
.command('update-job')
|
|
173
|
+
.description('Update job')
|
|
174
|
+
.requiredOption('--id <id>', 'Job ID')
|
|
175
|
+
.option('--name <name>', 'Job name')
|
|
176
|
+
.option('--skill-pack-ids <json>', 'Skill pack ID list (JSON array)')
|
|
177
|
+
.action(async (options) => {
|
|
178
|
+
const { updateJobCommand } = await Promise.resolve().then(() => __importStar(require('./commands/job.command')));
|
|
179
|
+
await updateJobCommand(options);
|
|
180
|
+
});
|
|
181
|
+
program
|
|
182
|
+
.command('delete-job')
|
|
183
|
+
.description('Delete job')
|
|
184
|
+
.requiredOption('--id <id>', 'Job ID')
|
|
185
|
+
.action(async (options) => {
|
|
186
|
+
const { deleteJobCommand } = await Promise.resolve().then(() => __importStar(require('./commands/job.command')));
|
|
187
|
+
await deleteJobCommand(options);
|
|
188
|
+
});
|
|
189
|
+
// ============================================
|
|
190
|
+
// Skill Pack Management Commands
|
|
191
|
+
// ============================================
|
|
192
|
+
program
|
|
193
|
+
.command('create-skill-pack')
|
|
194
|
+
.description('Create skill pack')
|
|
195
|
+
.requiredOption('--name <name>', 'Skill pack name')
|
|
196
|
+
.requiredOption('--description <description>', 'Skill pack description')
|
|
197
|
+
.requiredOption('--content <content>', 'Skill pack content')
|
|
198
|
+
.option('--id <id>', 'Skill pack ID (optional, auto-generated)')
|
|
199
|
+
.action(async (options) => {
|
|
200
|
+
const { createSkillPackCommand } = await Promise.resolve().then(() => __importStar(require('./commands/skill-pack.command')));
|
|
201
|
+
await createSkillPackCommand(options);
|
|
202
|
+
});
|
|
203
|
+
program
|
|
204
|
+
.command('get-skill-pack')
|
|
205
|
+
.description('Get skill pack details')
|
|
206
|
+
.requiredOption('--id <id>', 'Skill pack ID')
|
|
207
|
+
.action(async (options) => {
|
|
208
|
+
const { getSkillPackCommand } = await Promise.resolve().then(() => __importStar(require('./commands/skill-pack.command')));
|
|
209
|
+
await getSkillPackCommand(options);
|
|
210
|
+
});
|
|
211
|
+
program
|
|
212
|
+
.command('list-skill-packs')
|
|
213
|
+
.description('List all skill packs')
|
|
214
|
+
.action(async () => {
|
|
215
|
+
const { listSkillPacksCommand } = await Promise.resolve().then(() => __importStar(require('./commands/skill-pack.command')));
|
|
216
|
+
await listSkillPacksCommand();
|
|
217
|
+
});
|
|
218
|
+
program
|
|
219
|
+
.command('update-skill-pack')
|
|
220
|
+
.description('Update skill pack')
|
|
221
|
+
.requiredOption('--id <id>', 'Skill pack ID')
|
|
222
|
+
.option('--name <name>', 'Skill pack name')
|
|
223
|
+
.option('--description <description>', 'Skill pack description')
|
|
224
|
+
.option('--content <content>', 'Skill pack content')
|
|
225
|
+
.action(async (options) => {
|
|
226
|
+
const { updateSkillPackCommand } = await Promise.resolve().then(() => __importStar(require('./commands/skill-pack.command')));
|
|
227
|
+
await updateSkillPackCommand(options);
|
|
228
|
+
});
|
|
229
|
+
program
|
|
230
|
+
.command('delete-skill-pack')
|
|
231
|
+
.description('Delete skill pack')
|
|
232
|
+
.requiredOption('--id <id>', 'Skill pack ID')
|
|
233
|
+
.action(async (options) => {
|
|
234
|
+
const { deleteSkillPackCommand } = await Promise.resolve().then(() => __importStar(require('./commands/skill-pack.command')));
|
|
235
|
+
await deleteSkillPackCommand(options);
|
|
236
|
+
});
|
|
237
|
+
// ============================================
|
|
238
|
+
// Feishu Configuration Commands
|
|
239
|
+
// ============================================
|
|
240
|
+
program
|
|
241
|
+
.command('show-feishu-config')
|
|
242
|
+
.description('Show Feishu configuration')
|
|
243
|
+
.action(async () => {
|
|
244
|
+
const { showFeishuConfigCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
245
|
+
await showFeishuConfigCommand();
|
|
246
|
+
});
|
|
247
|
+
program
|
|
248
|
+
.command('config-feishu')
|
|
249
|
+
.description('Configure Feishu')
|
|
250
|
+
.option('--app-id <appId>', 'App ID')
|
|
251
|
+
.option('--app-secret <secret>', 'App Secret')
|
|
252
|
+
.option('--bot-name <name>', 'Bot Name')
|
|
253
|
+
.option('--encrypt-key <key>', 'Encrypt Key')
|
|
254
|
+
.option('--verification-token <token>', 'Verification Token (Webhook mode)')
|
|
255
|
+
.action(async (options) => {
|
|
256
|
+
const { configFeishuCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
257
|
+
await configFeishuCommand(options);
|
|
258
|
+
});
|
|
259
|
+
program
|
|
260
|
+
.command('bind-feishu-group')
|
|
261
|
+
.description('Bind Feishu group to team')
|
|
262
|
+
.requiredOption('--department-id <deptId>', 'Team ID')
|
|
263
|
+
.requiredOption('--group-id <groupId>', 'Feishu group ID')
|
|
264
|
+
.action(async (options) => {
|
|
265
|
+
const { bindFeishuGroupCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
266
|
+
await bindFeishuGroupCommand(options);
|
|
267
|
+
});
|
|
268
|
+
program
|
|
269
|
+
.command('bind-feishu-bot')
|
|
270
|
+
.description('Bind Feishu bot to agent')
|
|
271
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
272
|
+
.requiredOption('--bot-id <botId>', 'Feishu bot ID')
|
|
273
|
+
.action(async (options) => {
|
|
274
|
+
const { bindFeishuBotCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
275
|
+
await bindFeishuBotCommand(options);
|
|
276
|
+
});
|
|
277
|
+
program
|
|
278
|
+
.command('list-feishu-groups')
|
|
279
|
+
.description('List Feishu group bindings')
|
|
280
|
+
.action(async () => {
|
|
281
|
+
const { listFeishuGroupsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
282
|
+
await listFeishuGroupsCommand();
|
|
283
|
+
});
|
|
284
|
+
// v1.1.1: Unbind Feishu group
|
|
285
|
+
program
|
|
286
|
+
.command('unbind-feishu-group')
|
|
287
|
+
.description('Unbind Feishu group from team')
|
|
288
|
+
.requiredOption('--department-id <deptId>', 'Team ID')
|
|
289
|
+
.action(async (options) => {
|
|
290
|
+
const { unbindFeishuGroupCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
291
|
+
await unbindFeishuGroupCommand(options);
|
|
292
|
+
});
|
|
293
|
+
// v1.1.1: Get Feishu binding
|
|
294
|
+
program
|
|
295
|
+
.command('get-feishu-binding')
|
|
296
|
+
.description('Get Feishu group binding for a team')
|
|
297
|
+
.requiredOption('--department-id <deptId>', 'Team ID')
|
|
298
|
+
.action(async (options) => {
|
|
299
|
+
const { getFeishuBindingCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
300
|
+
await getFeishuBindingCommand(options);
|
|
301
|
+
});
|
|
302
|
+
// v1.1.2: Get Feishu account for an agent
|
|
303
|
+
program
|
|
304
|
+
.command('get-feishu-account')
|
|
305
|
+
.description('Get Feishu account ID for an agent (for message sending)')
|
|
306
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
307
|
+
.action(async (options) => {
|
|
308
|
+
const { getFeishuAccountCommand } = await Promise.resolve().then(() => __importStar(require('./commands/feishu.command')));
|
|
309
|
+
await getFeishuAccountCommand(options);
|
|
310
|
+
});
|
|
311
|
+
// ============================================
|
|
312
|
+
// User Management Commands (v1.1.5)
|
|
313
|
+
// ============================================
|
|
314
|
+
program
|
|
315
|
+
.command('get-user')
|
|
316
|
+
.description('Get user information')
|
|
317
|
+
.option('--field <field>', 'Get specific field (feishu_open_id, name, etc.)')
|
|
318
|
+
.option('--user-id <userId>', 'User ID (default: default_user)')
|
|
319
|
+
.action(async (options) => {
|
|
320
|
+
const { getUserCommand } = await Promise.resolve().then(() => __importStar(require('./commands/user.command')));
|
|
321
|
+
await getUserCommand(options);
|
|
322
|
+
});
|
|
323
|
+
program
|
|
324
|
+
.command('bind-user')
|
|
325
|
+
.description('Bind Feishu open_id to user')
|
|
326
|
+
.requiredOption('--feishu-id <openId>', 'Feishu open_id (ou_xxx format)')
|
|
327
|
+
.option('--union-id <unionId>', 'Feishu union_id (optional)')
|
|
328
|
+
.option('--name <name>', 'User display name')
|
|
329
|
+
.option('--user-id <userId>', 'User ID (default: default_user)')
|
|
330
|
+
.action(async (options) => {
|
|
331
|
+
const { bindUserCommand } = await Promise.resolve().then(() => __importStar(require('./commands/user.command')));
|
|
332
|
+
await bindUserCommand(options);
|
|
333
|
+
});
|
|
334
|
+
program
|
|
335
|
+
.command('unbind-user')
|
|
336
|
+
.description('Unbind Feishu from user')
|
|
337
|
+
.option('--feishu', 'Unbind Feishu')
|
|
338
|
+
.option('--user-id <userId>', 'User ID (default: default_user)')
|
|
339
|
+
.action(async (options) => {
|
|
340
|
+
const { unbindUserCommand } = await Promise.resolve().then(() => __importStar(require('./commands/user.command')));
|
|
341
|
+
await unbindUserCommand(options);
|
|
342
|
+
});
|
|
343
|
+
program
|
|
344
|
+
.command('update-user')
|
|
345
|
+
.description('Update user information')
|
|
346
|
+
.requiredOption('--name <name>', 'User display name')
|
|
347
|
+
.option('--user-id <userId>', 'User ID (default: default_user)')
|
|
348
|
+
.action(async (options) => {
|
|
349
|
+
const { updateUserNameCommand } = await Promise.resolve().then(() => __importStar(require('./commands/user.command')));
|
|
350
|
+
await updateUserNameCommand(options);
|
|
351
|
+
});
|
|
352
|
+
// ============================================
|
|
353
|
+
// Message Failure Commands (v1.1.5)
|
|
354
|
+
// ============================================
|
|
355
|
+
program
|
|
356
|
+
.command('record-message-failure')
|
|
357
|
+
.description('Record a message delivery failure')
|
|
358
|
+
.requiredOption('--sender-id <senderId>', 'Sender Agent ID')
|
|
359
|
+
.requiredOption('--receiver-id <receiverId>', 'Receiver Agent ID')
|
|
360
|
+
.requiredOption('--message-type <type>', 'Message type')
|
|
361
|
+
.requiredOption('--message-content <content>', 'Full message content (JSON)')
|
|
362
|
+
.option('--task-id <taskId>', 'Related task ID')
|
|
363
|
+
.option('--reason <reason>', 'Failure reason')
|
|
364
|
+
.action((options) => {
|
|
365
|
+
const { recordMessageFailureCommand } = require('./commands/message-failure.command');
|
|
366
|
+
recordMessageFailureCommand(options);
|
|
367
|
+
});
|
|
368
|
+
program
|
|
369
|
+
.command('list-message-failures')
|
|
370
|
+
.description('List message delivery failures')
|
|
371
|
+
.option('--status <status>', 'Filter by status (pending/resolved/expired)')
|
|
372
|
+
.option('--limit <limit>', 'Limit results', parseInt)
|
|
373
|
+
.action((options) => {
|
|
374
|
+
const { listMessageFailuresCommand } = require('./commands/message-failure.command');
|
|
375
|
+
listMessageFailuresCommand(options);
|
|
376
|
+
});
|
|
377
|
+
program
|
|
378
|
+
.command('message-failure-stats')
|
|
379
|
+
.description('Get message failure statistics')
|
|
380
|
+
.action(() => {
|
|
381
|
+
const { getMessageFailureStatsCommand } = require('./commands/message-failure.command');
|
|
382
|
+
getMessageFailureStatsCommand();
|
|
383
|
+
});
|
|
384
|
+
program
|
|
385
|
+
.command('resolve-message-failure')
|
|
386
|
+
.description('Mark a message failure as resolved')
|
|
387
|
+
.requiredOption('--id <id>', 'Failure record ID', parseInt)
|
|
388
|
+
.action((options) => {
|
|
389
|
+
const { resolveMessageFailureCommand } = require('./commands/message-failure.command');
|
|
390
|
+
resolveMessageFailureCommand(options);
|
|
391
|
+
});
|
|
392
|
+
program
|
|
393
|
+
.command('cleanup-message-failures')
|
|
394
|
+
.description('Cleanup old message failure records')
|
|
395
|
+
.option('--hours <hours>', 'Records older than this many hours', parseInt)
|
|
396
|
+
.action((options) => {
|
|
397
|
+
const { cleanupMessageFailuresCommand } = require('./commands/message-failure.command');
|
|
398
|
+
cleanupMessageFailuresCommand(options);
|
|
399
|
+
});
|
|
400
|
+
// ============================================
|
|
401
|
+
// Status Query Command
|
|
402
|
+
// ============================================
|
|
403
|
+
program
|
|
404
|
+
.command('status')
|
|
405
|
+
.description('View system status')
|
|
406
|
+
.action(async () => {
|
|
407
|
+
const { statusCommand } = await Promise.resolve().then(() => __importStar(require('./commands/status.command')));
|
|
408
|
+
await statusCommand();
|
|
409
|
+
});
|
|
410
|
+
// ============================================
|
|
411
|
+
// Task Management Commands (v1.0.0)
|
|
412
|
+
// ============================================
|
|
413
|
+
program
|
|
414
|
+
.command('create-task')
|
|
415
|
+
.description('Create task')
|
|
416
|
+
.requiredOption('--title <title>', 'Task title')
|
|
417
|
+
.requiredOption('--description <description>', 'Task description')
|
|
418
|
+
.requiredOption('--user-id <userId>', 'User ID (task initiator)')
|
|
419
|
+
.requiredOption('--department-id <deptId>', 'Department ID')
|
|
420
|
+
.requiredOption('--manager-id <managerId>', 'Manager ID')
|
|
421
|
+
.option('--parent-task-id <parentId>', 'Parent task ID (for rework)')
|
|
422
|
+
.option('--base-task-id <baseId>', 'Base task ID (for incremental task)')
|
|
423
|
+
.action(async (options) => {
|
|
424
|
+
const { createTaskCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
425
|
+
createTaskCommand(options);
|
|
426
|
+
});
|
|
427
|
+
program
|
|
428
|
+
.command('get-task')
|
|
429
|
+
.description('Get task details')
|
|
430
|
+
.requiredOption('--id <id>', 'Task ID')
|
|
431
|
+
.action(async (options) => {
|
|
432
|
+
const { getTaskCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
433
|
+
getTaskCommand(options);
|
|
434
|
+
});
|
|
435
|
+
program
|
|
436
|
+
.command('list-tasks')
|
|
437
|
+
.description('List tasks')
|
|
438
|
+
.option('--department-id <deptId>', 'Filter by department')
|
|
439
|
+
.option('--status <status>', 'Filter by status')
|
|
440
|
+
.option('--parent-task-id <parentId>', 'Filter by parent task')
|
|
441
|
+
.action(async (options) => {
|
|
442
|
+
const { listTasksCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
443
|
+
listTasksCommand(options);
|
|
444
|
+
});
|
|
445
|
+
// v1.1.7: List busy departments
|
|
446
|
+
program
|
|
447
|
+
.command('list-busy-departments')
|
|
448
|
+
.description('List departments with running tasks')
|
|
449
|
+
.action(async () => {
|
|
450
|
+
const { listBusyDepartmentsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
451
|
+
listBusyDepartmentsCommand();
|
|
452
|
+
});
|
|
453
|
+
// v1.1.7: List running tasks
|
|
454
|
+
program
|
|
455
|
+
.command('list-running-tasks')
|
|
456
|
+
.description('List all running tasks')
|
|
457
|
+
.action(async () => {
|
|
458
|
+
const { listRunningTasksCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
459
|
+
listRunningTasksCommand();
|
|
460
|
+
});
|
|
461
|
+
// v1.1.7: Task Stage Commands
|
|
462
|
+
program
|
|
463
|
+
.command('create-stage')
|
|
464
|
+
.description('Create a task stage')
|
|
465
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
466
|
+
.requiredOption('--stage-name <stageName>', 'Stage name')
|
|
467
|
+
.requiredOption('--department-id <deptId>', 'Department ID')
|
|
468
|
+
.requiredOption('--manager-id <managerId>', 'Manager ID')
|
|
469
|
+
.requiredOption('--sequence <seq>', 'Sequence number', parseInt)
|
|
470
|
+
.action(async (options) => {
|
|
471
|
+
const { createStageCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
472
|
+
createStageCommand(options);
|
|
473
|
+
});
|
|
474
|
+
program
|
|
475
|
+
.command('list-stages')
|
|
476
|
+
.description('List all stages of a task')
|
|
477
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
478
|
+
.action(async (options) => {
|
|
479
|
+
const { listStagesCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
480
|
+
listStagesCommand(options);
|
|
481
|
+
});
|
|
482
|
+
program
|
|
483
|
+
.command('get-stage')
|
|
484
|
+
.description('Get stage details')
|
|
485
|
+
.requiredOption('--stage-id <stageId>', 'Stage ID')
|
|
486
|
+
.action(async (options) => {
|
|
487
|
+
const { getStageCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
488
|
+
getStageCommand(options);
|
|
489
|
+
});
|
|
490
|
+
program
|
|
491
|
+
.command('start-stage')
|
|
492
|
+
.description('Start a stage')
|
|
493
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
494
|
+
.requiredOption('--stage-id <stageId>', 'Stage ID')
|
|
495
|
+
.action(async (options) => {
|
|
496
|
+
const { startStageCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
497
|
+
startStageCommand(options);
|
|
498
|
+
});
|
|
499
|
+
program
|
|
500
|
+
.command('complete-stage')
|
|
501
|
+
.description('Complete a stage')
|
|
502
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
503
|
+
.requiredOption('--stage-id <stageId>', 'Stage ID')
|
|
504
|
+
.requiredOption('--output-summary <summary>', 'Output summary')
|
|
505
|
+
.option('--handover-note <note>', 'Handover note for next stage')
|
|
506
|
+
.action(async (options) => {
|
|
507
|
+
const { completeStageCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
508
|
+
completeStageCommand(options);
|
|
509
|
+
});
|
|
510
|
+
program
|
|
511
|
+
.command('update-task')
|
|
512
|
+
.description('Update task status')
|
|
513
|
+
.requiredOption('--id <id>', 'Task ID')
|
|
514
|
+
.requiredOption('--status <status>', 'New status')
|
|
515
|
+
.action(async (options) => {
|
|
516
|
+
const { updateTaskCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
517
|
+
updateTaskCommand(options);
|
|
518
|
+
});
|
|
519
|
+
// v1.1.3: Task chain command
|
|
520
|
+
program
|
|
521
|
+
.command('get-task-chain')
|
|
522
|
+
.description('Get task chain (from original to increment)')
|
|
523
|
+
.requiredOption('--id <id>', 'Task ID')
|
|
524
|
+
.action(async (options) => {
|
|
525
|
+
const { getTaskChainCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
526
|
+
getTaskChainCommand(options);
|
|
527
|
+
});
|
|
528
|
+
// v1.1.3: List increment tasks
|
|
529
|
+
program
|
|
530
|
+
.command('list-increment-tasks')
|
|
531
|
+
.description('List all increment tasks for a base task')
|
|
532
|
+
.requiredOption('--base-task-id <baseTaskId>', 'Base task ID')
|
|
533
|
+
.action(async (options) => {
|
|
534
|
+
const { listIncrementTasksCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
535
|
+
listIncrementTasksCommand(options);
|
|
536
|
+
});
|
|
537
|
+
// v1.1.4: List task agents
|
|
538
|
+
program
|
|
539
|
+
.command('list-task-agents')
|
|
540
|
+
.description('List all agents involved in a task')
|
|
541
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
542
|
+
.action(async (options) => {
|
|
543
|
+
const { listTaskAgentsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
544
|
+
listTaskAgentsCommand(options);
|
|
545
|
+
});
|
|
546
|
+
// ============================================
|
|
547
|
+
// Node Management Commands (v1.0.0)
|
|
548
|
+
// ============================================
|
|
549
|
+
program
|
|
550
|
+
.command('create-node')
|
|
551
|
+
.description('Create task node')
|
|
552
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
553
|
+
.requiredOption('--name <name>', 'Node name')
|
|
554
|
+
.requiredOption('--agent-id <agentId>', 'Executor Agent ID')
|
|
555
|
+
.option('--reviewer-id <reviewerId>', 'Reviewer Agent ID') // v1.1.8
|
|
556
|
+
.requiredOption('--sequence <sequence>', 'Execution sequence', parseInt)
|
|
557
|
+
.option('--timeout <hours>', 'Timeout in hours', parseInt)
|
|
558
|
+
.action(async (options) => {
|
|
559
|
+
const { createNodeCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
560
|
+
createNodeCommand(options);
|
|
561
|
+
});
|
|
562
|
+
program
|
|
563
|
+
.command('get-node')
|
|
564
|
+
.description('Get node details')
|
|
565
|
+
.requiredOption('--id <id>', 'Node ID')
|
|
566
|
+
.action(async (options) => {
|
|
567
|
+
const { getNodeCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
568
|
+
getNodeCommand(options);
|
|
569
|
+
});
|
|
570
|
+
program
|
|
571
|
+
.command('list-nodes')
|
|
572
|
+
.description('List task nodes')
|
|
573
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
574
|
+
.option('--sequence-gt <sequence>', 'Sequence greater than', parseInt)
|
|
575
|
+
.action(async (options) => {
|
|
576
|
+
const { listNodesCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
577
|
+
listNodesCommand(options);
|
|
578
|
+
});
|
|
579
|
+
program
|
|
580
|
+
.command('update-node')
|
|
581
|
+
.description('Update node')
|
|
582
|
+
.requiredOption('--id <id>', 'Node ID')
|
|
583
|
+
.option('--status <status>', 'Node status')
|
|
584
|
+
.option('--review-comment <comment>', 'Review comment')
|
|
585
|
+
.option('--issues <json>', 'Issues (JSON array)')
|
|
586
|
+
.option('--reviewer-id <reviewerId>', 'Reviewer ID')
|
|
587
|
+
.option('--timeout <hours>', 'Timeout in hours', parseInt)
|
|
588
|
+
.option('--extend-timeout <hours>', 'Extend timeout by hours', parseInt)
|
|
589
|
+
.action(async (options) => {
|
|
590
|
+
const { updateNodeCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
591
|
+
updateNodeCommand(options);
|
|
592
|
+
});
|
|
593
|
+
program
|
|
594
|
+
.command('assign-node')
|
|
595
|
+
.description('Assign node to agent')
|
|
596
|
+
.requiredOption('--id <id>', 'Node ID')
|
|
597
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
598
|
+
.action(async (options) => {
|
|
599
|
+
const { assignNodeCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
600
|
+
assignNodeCommand(options);
|
|
601
|
+
});
|
|
602
|
+
// ============================================
|
|
603
|
+
// Heartbeat Commands (v1.1.1)
|
|
604
|
+
// ============================================
|
|
605
|
+
// Task heartbeat (manager activity)
|
|
606
|
+
program
|
|
607
|
+
.command('update-task-heartbeat')
|
|
608
|
+
.description('Update task heartbeat (manager activity)')
|
|
609
|
+
.requiredOption('--id <id>', 'Task ID')
|
|
610
|
+
.action(async (options) => {
|
|
611
|
+
const { updateTaskHeartbeatCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
612
|
+
updateTaskHeartbeatCommand(options);
|
|
613
|
+
});
|
|
614
|
+
program
|
|
615
|
+
.command('list-stalled-tasks')
|
|
616
|
+
.description('List stalled tasks (manager timeout)')
|
|
617
|
+
.option('--timeout <minutes>', 'Timeout in minutes', parseInt)
|
|
618
|
+
.action(async (options) => {
|
|
619
|
+
const { listStalledTasksCommand } = await Promise.resolve().then(() => __importStar(require('./commands/task.command')));
|
|
620
|
+
listStalledTasksCommand(options);
|
|
621
|
+
});
|
|
622
|
+
// Node heartbeat (executor activity)
|
|
623
|
+
program
|
|
624
|
+
.command('update-node-heartbeat')
|
|
625
|
+
.description('Update node heartbeat (executor activity)')
|
|
626
|
+
.requiredOption('--id <id>', 'Node ID')
|
|
627
|
+
.action(async (options) => {
|
|
628
|
+
const { updateNodeHeartbeatCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
629
|
+
updateNodeHeartbeatCommand(options);
|
|
630
|
+
});
|
|
631
|
+
// Review heartbeat (reviewer activity)
|
|
632
|
+
program
|
|
633
|
+
.command('update-review-heartbeat')
|
|
634
|
+
.description('Update review heartbeat (reviewer activity)')
|
|
635
|
+
.requiredOption('--id <id>', 'Node ID')
|
|
636
|
+
.requiredOption('--reviewer-id <reviewerId>', 'Reviewer ID')
|
|
637
|
+
.action(async (options) => {
|
|
638
|
+
const { updateReviewHeartbeatCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
639
|
+
updateReviewHeartbeatCommand(options);
|
|
640
|
+
});
|
|
641
|
+
program
|
|
642
|
+
.command('list-stalled-nodes')
|
|
643
|
+
.description('List stalled nodes (execution or review timeout)')
|
|
644
|
+
.requiredOption('--type <type>', 'Type: execution or review')
|
|
645
|
+
.option('--timeout <minutes>', 'Timeout in minutes', parseInt)
|
|
646
|
+
.action(async (options) => {
|
|
647
|
+
const { listStalledNodesCommand } = await Promise.resolve().then(() => __importStar(require('./commands/node.command')));
|
|
648
|
+
listStalledNodesCommand(options);
|
|
649
|
+
});
|
|
650
|
+
// ============================================
|
|
651
|
+
// Domain Management Commands (v1.0.0)
|
|
652
|
+
// ============================================
|
|
653
|
+
program
|
|
654
|
+
.command('create-domain')
|
|
655
|
+
.description('Create domain')
|
|
656
|
+
.requiredOption('--name <name>', 'Domain name')
|
|
657
|
+
.option('--id <id>', 'Domain ID')
|
|
658
|
+
.option('--content <content>', 'Domain content')
|
|
659
|
+
.action(async (options) => {
|
|
660
|
+
const { createDomainCommand } = await Promise.resolve().then(() => __importStar(require('./commands/domain.command')));
|
|
661
|
+
createDomainCommand(options);
|
|
662
|
+
});
|
|
663
|
+
program
|
|
664
|
+
.command('get-domain')
|
|
665
|
+
.description('Get domain details')
|
|
666
|
+
.requiredOption('--id <id>', 'Domain ID')
|
|
667
|
+
.action(async (options) => {
|
|
668
|
+
const { getDomainCommand } = await Promise.resolve().then(() => __importStar(require('./commands/domain.command')));
|
|
669
|
+
getDomainCommand(options);
|
|
670
|
+
});
|
|
671
|
+
program
|
|
672
|
+
.command('list-domains')
|
|
673
|
+
.description('List all domains')
|
|
674
|
+
.action(async () => {
|
|
675
|
+
const { listDomainsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/domain.command')));
|
|
676
|
+
listDomainsCommand();
|
|
677
|
+
});
|
|
678
|
+
program
|
|
679
|
+
.command('update-domain')
|
|
680
|
+
.description('Update domain')
|
|
681
|
+
.requiredOption('--id <id>', 'Domain ID')
|
|
682
|
+
.option('--name <name>', 'Domain name')
|
|
683
|
+
.option('--content <content>', 'Domain content')
|
|
684
|
+
.action(async (options) => {
|
|
685
|
+
const { updateDomainCommand } = await Promise.resolve().then(() => __importStar(require('./commands/domain.command')));
|
|
686
|
+
updateDomainCommand(options);
|
|
687
|
+
});
|
|
688
|
+
program
|
|
689
|
+
.command('delete-domain')
|
|
690
|
+
.description('Delete domain')
|
|
691
|
+
.requiredOption('--id <id>', 'Domain ID')
|
|
692
|
+
.action(async (options) => {
|
|
693
|
+
const { deleteDomainCommand } = await Promise.resolve().then(() => __importStar(require('./commands/domain.command')));
|
|
694
|
+
deleteDomainCommand(options);
|
|
695
|
+
});
|
|
696
|
+
// ============================================
|
|
697
|
+
// Message Commands (v1.0.0)
|
|
698
|
+
// ============================================
|
|
699
|
+
program
|
|
700
|
+
.command('list-messages')
|
|
701
|
+
.description('List messages')
|
|
702
|
+
.option('--task-id <taskId>', 'Filter by task ID')
|
|
703
|
+
.option('--receiver-id <receiverId>', 'Filter by receiver ID')
|
|
704
|
+
.action(async (options) => {
|
|
705
|
+
const { listMessagesCommand } = await Promise.resolve().then(() => __importStar(require('./commands/message.command')));
|
|
706
|
+
listMessagesCommand(options);
|
|
707
|
+
});
|
|
708
|
+
program
|
|
709
|
+
.command('send-m1')
|
|
710
|
+
.description('Send M1 message (task assigned)')
|
|
711
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
712
|
+
.requiredOption('--department-id <deptId>', 'Department ID')
|
|
713
|
+
.requiredOption('--sender-id <senderId>', 'Sender ID')
|
|
714
|
+
.action(async (options) => {
|
|
715
|
+
const { sendM1Command } = await Promise.resolve().then(() => __importStar(require('./commands/message.command')));
|
|
716
|
+
sendM1Command(options);
|
|
717
|
+
});
|
|
718
|
+
program
|
|
719
|
+
.command('send-m2')
|
|
720
|
+
.description('Send M2 message (node assigned)')
|
|
721
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
722
|
+
.requiredOption('--node-id <nodeId>', 'Node ID')
|
|
723
|
+
.requiredOption('--sender-id <senderId>', 'Sender ID')
|
|
724
|
+
.requiredOption('--receiver-id <receiverId>', 'Receiver ID')
|
|
725
|
+
.requiredOption('--node-name <nodeName>', 'Node name')
|
|
726
|
+
.requiredOption('--sequence <sequence>', 'Sequence', parseInt)
|
|
727
|
+
.action(async (options) => {
|
|
728
|
+
const { sendM2Command } = await Promise.resolve().then(() => __importStar(require('./commands/message.command')));
|
|
729
|
+
sendM2Command(options);
|
|
730
|
+
});
|
|
731
|
+
program
|
|
732
|
+
.command('send-m3')
|
|
733
|
+
.description('Send M3 message (review requested)')
|
|
734
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
735
|
+
.requiredOption('--node-id <nodeId>', 'Node ID')
|
|
736
|
+
.requiredOption('--sender-id <senderId>', 'Sender ID')
|
|
737
|
+
.requiredOption('--department-id <deptId>', 'Department ID')
|
|
738
|
+
.requiredOption('--node-name <nodeName>', 'Node name')
|
|
739
|
+
.requiredOption('--output-path <outputPath>', 'Output path')
|
|
740
|
+
.action(async (options) => {
|
|
741
|
+
const { sendM3Command } = await Promise.resolve().then(() => __importStar(require('./commands/message.command')));
|
|
742
|
+
sendM3Command(options);
|
|
743
|
+
});
|
|
744
|
+
// ============================================
|
|
745
|
+
// Role Flow Commands (v1.0.1)
|
|
746
|
+
// ============================================
|
|
747
|
+
program
|
|
748
|
+
.command('get-role-flow')
|
|
749
|
+
.description('Get role flow document')
|
|
750
|
+
.requiredOption('--role <role>', 'Role: manager/executor/reviewer')
|
|
751
|
+
.action(async (options) => {
|
|
752
|
+
const { getRoleFlowCommand } = await Promise.resolve().then(() => __importStar(require('./commands/role-flow.command')));
|
|
753
|
+
await getRoleFlowCommand(options);
|
|
754
|
+
});
|
|
755
|
+
program
|
|
756
|
+
.command('list-role-flows')
|
|
757
|
+
.description('List all role flows')
|
|
758
|
+
.action(async () => {
|
|
759
|
+
const { listRoleFlowsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/role-flow.command')));
|
|
760
|
+
await listRoleFlowsCommand();
|
|
761
|
+
});
|
|
762
|
+
// ============================================
|
|
763
|
+
// Document Commands (v1.0.1)
|
|
764
|
+
// ============================================
|
|
765
|
+
program
|
|
766
|
+
.command('create-doc')
|
|
767
|
+
.description('Create document')
|
|
768
|
+
.requiredOption('--task-id <taskId>', 'Task ID (for increment tasks, use format: {main_task_id}_{seq})')
|
|
769
|
+
.requiredOption('--type <type>', 'Document type: requirement/plan/output/review')
|
|
770
|
+
.requiredOption('--content <content>', 'Document content')
|
|
771
|
+
.option('--node-id <nodeId>', 'Node ID')
|
|
772
|
+
.option('--status <status>', 'Status: draft/final')
|
|
773
|
+
.option('--created-by <createdBy>', 'Creator agent ID')
|
|
774
|
+
.action(async (options) => {
|
|
775
|
+
const { createDocCommand } = await Promise.resolve().then(() => __importStar(require('./commands/document.command')));
|
|
776
|
+
await createDocCommand(options);
|
|
777
|
+
});
|
|
778
|
+
program
|
|
779
|
+
.command('get-doc')
|
|
780
|
+
.description('Get document')
|
|
781
|
+
.option('--id <id>', 'Document ID')
|
|
782
|
+
.option('--task-id <taskId>', 'Task ID')
|
|
783
|
+
.option('--type <type>', 'Document type')
|
|
784
|
+
.option('--node-id <nodeId>', 'Node ID')
|
|
785
|
+
.action(async (options) => {
|
|
786
|
+
const { getDocCommand } = await Promise.resolve().then(() => __importStar(require('./commands/document.command')));
|
|
787
|
+
await getDocCommand(options);
|
|
788
|
+
});
|
|
789
|
+
program
|
|
790
|
+
.command('list-docs')
|
|
791
|
+
.description('List documents')
|
|
792
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
793
|
+
.option('--type <type>', 'Filter by type')
|
|
794
|
+
.action(async (options) => {
|
|
795
|
+
const { listDocsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/document.command')));
|
|
796
|
+
await listDocsCommand(options);
|
|
797
|
+
});
|
|
798
|
+
// ============================================
|
|
799
|
+
// Checklist Commands
|
|
800
|
+
// ============================================
|
|
801
|
+
program
|
|
802
|
+
.command('create-checklist')
|
|
803
|
+
.description('Create execution checklist')
|
|
804
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
805
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
806
|
+
.requiredOption('--task-title <taskTitle>', 'Task title')
|
|
807
|
+
.option('--node-name <nodeName>', 'Node name')
|
|
808
|
+
.action(async (options) => {
|
|
809
|
+
const { createChecklistCommand } = await Promise.resolve().then(() => __importStar(require('./commands/checklist.command')));
|
|
810
|
+
createChecklistCommand(options);
|
|
811
|
+
});
|
|
812
|
+
program
|
|
813
|
+
.command('get-checklist')
|
|
814
|
+
.description('Get execution checklist')
|
|
815
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
816
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
817
|
+
.action(async (options) => {
|
|
818
|
+
const { getChecklistCommand } = await Promise.resolve().then(() => __importStar(require('./commands/checklist.command')));
|
|
819
|
+
getChecklistCommand(options);
|
|
820
|
+
});
|
|
821
|
+
program
|
|
822
|
+
.command('list-checklists')
|
|
823
|
+
.description('List execution checklists')
|
|
824
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
825
|
+
.action(async (options) => {
|
|
826
|
+
const { listChecklistsCommand } = await Promise.resolve().then(() => __importStar(require('./commands/checklist.command')));
|
|
827
|
+
listChecklistsCommand(options);
|
|
828
|
+
});
|
|
829
|
+
program
|
|
830
|
+
.command('get-checklist-path')
|
|
831
|
+
.description('Get checklist file path')
|
|
832
|
+
.requiredOption('--task-id <taskId>', 'Task ID')
|
|
833
|
+
.requiredOption('--agent-id <agentId>', 'Agent ID')
|
|
834
|
+
.action(async (options) => {
|
|
835
|
+
const { getChecklistPathCommand } = await Promise.resolve().then(() => __importStar(require('./commands/checklist.command')));
|
|
836
|
+
getChecklistPathCommand(options);
|
|
837
|
+
});
|
|
838
|
+
// ============================================
|
|
839
|
+
// License Commands (v1.2.1)
|
|
840
|
+
// ============================================
|
|
841
|
+
program
|
|
842
|
+
.command('bind-license')
|
|
843
|
+
.description('Bind license key')
|
|
844
|
+
.requiredOption('--key <key>', 'License key (format: TM-XXXX-XXXX-XXXX-XXXX)')
|
|
845
|
+
.action(async (options) => {
|
|
846
|
+
const { bindLicenseCommand } = await Promise.resolve().then(() => __importStar(require('./commands/license.command')));
|
|
847
|
+
await bindLicenseCommand(options);
|
|
848
|
+
});
|
|
849
|
+
program
|
|
850
|
+
.command('unbind-license')
|
|
851
|
+
.description('Unbind license')
|
|
852
|
+
.action(async () => {
|
|
853
|
+
const { unbindLicenseCommand } = await Promise.resolve().then(() => __importStar(require('./commands/license.command')));
|
|
854
|
+
unbindLicenseCommand();
|
|
855
|
+
});
|
|
856
|
+
program
|
|
857
|
+
.command('license-status')
|
|
858
|
+
.description('Show license status')
|
|
859
|
+
.action(async () => {
|
|
860
|
+
const { licenseStatusCommand } = await Promise.resolve().then(() => __importStar(require('./commands/license.command')));
|
|
861
|
+
await licenseStatusCommand();
|
|
862
|
+
});
|
|
863
|
+
//# sourceMappingURL=index.js.map
|