@appthen/cli 1.2.11 → 1.2.12
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/bin/main.js +47 -0
- package/dist/index.js +6165 -14980
- package/package.json +8 -1
- package/tests/test-app/.appthen/shadow-space-100001-test-app-e99876b1.json +1197 -741
- package/tests/test-app/.appthen/space-config.json +2 -2
- package/tests/test-app/src/components/MessageCenter.tsx +506 -0
- package/tests/test-app/src/pages/CustomerManagement.tsx +535 -0
- package/tests/test-app/src/pages/CyberpunkDashboard.tsx +348 -0
- package/tests/test-app/src/pages/CyberpunkProductManagement.tsx +637 -0
- package/tests/test-app/src/pages/CyberpunkUserList.tsx +316 -0
- package/tests/test-app/src/pages/DashboardV2.tsx +334 -0
- package/tests/test-app/src/pages/DataReport.tsx +298 -0
- package/tests/test-app/src/pages/DataStatistics.tsx +317 -0
- package/tests/test-app/src/pages/DepartmentManagement.tsx +503 -0
- package/tests/test-app/src/pages/FileExplorer.tsx +441 -0
- package/tests/test-app/src/pages/OrderDetail.tsx +393 -0
- package/tests/test-app/src/pages/ProductManagement.tsx +521 -0
- package/tests/test-app/src/pages/ProjectTimeline.tsx +395 -0
- package/tests/test-app/src/pages/RoleManagement.tsx +523 -0
- package/tests/test-app/src/pages/StaticCyberpunkDashboard.tsx +462 -0
- package/tests/test-app/src/pages/StaticCyberpunkUserList.tsx +567 -0
- package/tests/test-app/src/pages/StudentWeaknessList.tsx +547 -0
- package/tests/test-app/src/pages/SystemSettings.tsx +422 -0
- package/tests/test-app/src/pages/TaskManagement.tsx +467 -0
- package/tests/test-app/src/pages/TicketManagement.tsx +402 -0
- package/tests/test-app/src/pages/UserProfile.tsx +404 -0
- package/tests/test-app/src/pages/WorkflowDesigner.tsx +434 -0
- package/tests/test-app/src/pages/admin/dashboard.tsx +591 -0
- package/tests/test-app/src/pages/article-list.tsx +222 -0
- package/tests/test-app/src/pages/babyProductRecommendationPage.tsx +168 -0
- package/tests/test-app/src/pages/category-list.tsx +179 -0
- package/tests/test-app/src/pages/comment-list.tsx +194 -0
- package/tests/test-app/src/pages/cyberpunk/cyberpunkCRMPage.tsx +1299 -0
- package/tests/test-app/src/pages/data-analytics.tsx +1872 -0
- package/tests/test-app/src/pages/data-overview.tsx +600 -0
- package/tests/test-app/src/pages/demo-error-page.tsx +119 -0
- package/tests/test-app/src/pages/department-list.tsx +183 -0
- package/tests/test-app/src/pages/goods-list.tsx +233 -0
- package/tests/test-app/src/pages/housekeeping/adminDashboardPage.tsx +880 -0
- package/tests/test-app/src/pages/mobile_terminal/uiHandsOnPractice.tsx +1 -1
- package/tests/test-app/src/pages/notice-list.tsx +217 -0
- package/tests/test-app/src/pages/order-detail.tsx +330 -0
- package/tests/test-app/src/pages/order-list.tsx +195 -0
- package/tests/test-app/src/pages/order-management.tsx +563 -0
- package/tests/test-app/src/pages/page/OrderList.tsx +230 -0
- package/tests/test-app/src/pages/role-list.tsx +184 -0
- package/tests/test-app/src/pages/simple/simplePage.tsx +92 -0
- package/tests/test-app/src/pages/simple-page.tsx +43 -0
- package/tests/test-app/src/pages/test-destructure.tsx +44 -0
- package/tests/test-app/src/pages/test-error-page.tsx +75 -0
- package/tests/test-app/src/pages/test-page-with-errors.tsx +51 -0
- package/tests/test-app/src/pages/test-page.tsx +101 -0
- package/tests/test-app/src/pages/test-render.tsx +52 -0
- package/tests/test-app/src/pages/test-return-type.tsx +41 -0
- package/tests/test-app/src/pages/test-type-assertion.tsx +37 -0
- package/tests/test-app/src/pages/ui/styleSelectorPage.tsx +1554 -0
- package/tests/test-app/src/pages/user-list.tsx +212 -0
- package/tests/test-app/src/pages/wrong-page.tsx +50 -0
- package/tests/test-app/.appthen/shadow-space-unknown-user-test-app-e99876b1.json +0 -1060
package/bin/main.js
CHANGED
|
@@ -721,4 +721,51 @@ program
|
|
|
721
721
|
}
|
|
722
722
|
});
|
|
723
723
|
|
|
724
|
+
/**
|
|
725
|
+
* terminal-agent 命令
|
|
726
|
+
* 启动终端代理,连接到 Workspace Gateway
|
|
727
|
+
* 必需参数:
|
|
728
|
+
* --server: Gateway URL
|
|
729
|
+
* --project-id: 项目ID
|
|
730
|
+
* --token: 认证 Token
|
|
731
|
+
* 可选参数:
|
|
732
|
+
* --workspace-id: 工作区ID(默认等于 project-id,用于支持同一项目的多个工作区)
|
|
733
|
+
* --workspace-name: 工作区名称/别名(用于在 UI 中显示)
|
|
734
|
+
* --workspace-description: 工作区描述
|
|
735
|
+
* --cwd: 工作目录
|
|
736
|
+
* --shell: Shell 路径
|
|
737
|
+
*/
|
|
738
|
+
program
|
|
739
|
+
.command('terminal-agent')
|
|
740
|
+
.description('Start terminal agent for remote workspace connection')
|
|
741
|
+
.requiredOption('--server <url>', 'NestJS Gateway URL (e.g. wss://api.mengti.com)')
|
|
742
|
+
.requiredOption('--project-id <id>', 'Project/Workspace ID')
|
|
743
|
+
.requiredOption('--token <token>', 'Authentication Token')
|
|
744
|
+
.option('--workspace-id <id>', 'Workspace ID (default: project-id, allows multiple workspaces per project)')
|
|
745
|
+
.option('--workspace-name <name>', 'Workspace name/alias for display')
|
|
746
|
+
.option('--workspace-description <description>', 'Workspace description')
|
|
747
|
+
.option('--cwd <path>', 'Working directory')
|
|
748
|
+
.option('--shell <path>', 'Shell path (e.g. /bin/zsh)')
|
|
749
|
+
.action(async function doTerminalAgent(command) {
|
|
750
|
+
const options = command.opts();
|
|
751
|
+
|
|
752
|
+
try {
|
|
753
|
+
const { startTerminalAgent } = require('../dist/index.js');
|
|
754
|
+
await startTerminalAgent({
|
|
755
|
+
server: options.server,
|
|
756
|
+
projectId: options.projectId,
|
|
757
|
+
token: options.token,
|
|
758
|
+
workspaceId: options.workspaceId,
|
|
759
|
+
workspaceName: options.workspaceName,
|
|
760
|
+
workspaceDescription: options.workspaceDescription,
|
|
761
|
+
cwd: options.cwd,
|
|
762
|
+
shell: options.shell
|
|
763
|
+
});
|
|
764
|
+
// 保持进程不退出,由 startTerminalAgent 内部处理
|
|
765
|
+
} catch (error) {
|
|
766
|
+
console.error('❌ 终端代理启动失败:', error.message);
|
|
767
|
+
process.exit(1);
|
|
768
|
+
}
|
|
769
|
+
});
|
|
770
|
+
|
|
724
771
|
program.parse(process.argv);
|