@nexusclawhq/cli 0.3.40 → 0.3.42
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/dist/build-info.json +4 -4
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js +102 -0
- package/dist/nexus-cli/src/commands/org/login-web-terminal.test.js.map +1 -1
- package/dist/nexus-cli/src/commands/org/login-web.js +24 -7
- package/dist/nexus-cli/src/commands/org/login-web.js.map +1 -1
- package/dist/nexus-cli/src/commands/workforce/learning-json-output.test.d.ts +1 -0
- package/dist/nexus-cli/src/commands/workforce/learning-json-output.test.js +129 -0
- package/dist/nexus-cli/src/commands/workforce/learning-json-output.test.js.map +1 -0
- package/dist/nexus-cli/src/commands/workforce/learning.js +33 -26
- package/dist/nexus-cli/src/commands/workforce/learning.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-conversation-remote.js +2 -1
- package/dist/nexus-cli/src/services/workforce-conversation-remote.js.map +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.d.ts +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.js +1 -1
- package/dist/nexus-cli/src/services/workforce-test-remote.test.js +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@ exports.workforceLearningCommand = void 0;
|
|
|
4
4
|
const commander_1 = require("commander");
|
|
5
5
|
const shared_1 = require("./shared");
|
|
6
6
|
const workforce_learning_remote_1 = require("../../services/workforce-learning-remote");
|
|
7
|
+
const command_options_1 = require("../../utils/command-options");
|
|
7
8
|
const logger_1 = require("../../utils/logger");
|
|
8
9
|
exports.workforceLearningCommand = new commander_1.Command('learning')
|
|
9
10
|
.description('行为学习回路 A:extract → draft → apply → simulate → publish');
|
|
@@ -12,82 +13,87 @@ exports.workforceLearningCommand.command('extract')
|
|
|
12
13
|
.requiredOption('--execution-id <id>')
|
|
13
14
|
.requiredOption('--target-org <alias>')
|
|
14
15
|
.option('--json')
|
|
15
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.extract', await (0, workforce_learning_remote_1.extractExecutionLearningRemote)({
|
|
16
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.extract', await (0, workforce_learning_remote_1.extractExecutionLearningRemote)({
|
|
16
17
|
targetOrg: options.targetOrg,
|
|
17
18
|
executionId: options.executionId,
|
|
18
|
-
}),
|
|
19
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
19
20
|
exports.workforceLearningCommand.command('pipeline-run')
|
|
20
21
|
.description('增量批处理抽取(runLearningPipeline,推进共享 watermark 游标)')
|
|
21
22
|
.requiredOption('--target-org <alias>')
|
|
22
23
|
.option('--limit <n>', '处理上限 1-5000')
|
|
23
24
|
.option('--json')
|
|
24
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.pipeline-run', await (0, workforce_learning_remote_1.runLearningPipelineRemote)({
|
|
25
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.pipeline-run', await (0, workforce_learning_remote_1.runLearningPipelineRemote)({
|
|
25
26
|
targetOrg: options.targetOrg,
|
|
26
27
|
limit: options.limit ? Number(options.limit) : undefined,
|
|
27
|
-
}),
|
|
28
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
28
29
|
const draftCommand = exports.workforceLearningCommand.command('draft')
|
|
29
30
|
.description('学习草稿操作');
|
|
30
31
|
draftCommand.command('generate')
|
|
31
|
-
.description('为候选生成草稿内容(
|
|
32
|
+
.description('为候选生成草稿内容(llm_patch 类型 + 已接线 reference-draft 类型 workflow/prompt_policy/prompt_template/agent;agent 仅限 improve_existing_employee,autonomy 升降级仍为产品决策暂缓)')
|
|
32
33
|
.requiredOption('--candidate-id <id>')
|
|
33
34
|
.requiredOption('--target-org <alias>')
|
|
34
35
|
.option('--force', '覆盖已生成状态(仅 reasonCode=already_generated_requires_force 时使用)')
|
|
35
36
|
.option('--json')
|
|
36
|
-
.action(async (options) => {
|
|
37
|
+
.action(async (options, command) => {
|
|
38
|
+
const json = (0, command_options_1.isJsonOutputRequested)(options, command);
|
|
37
39
|
const result = await (0, workforce_learning_remote_1.generateLearningDraftContentRemote)({
|
|
38
40
|
targetOrg: options.targetOrg,
|
|
39
41
|
candidateId: options.candidateId,
|
|
40
42
|
force: options.force ? true : undefined,
|
|
41
43
|
});
|
|
42
|
-
if (!
|
|
43
|
-
|
|
44
|
+
if (!json && result.reasonCode) {
|
|
45
|
+
const guidance = result.reasonCode === 'unsupported_type'
|
|
46
|
+
? ';该候选类型当前不可起草(如 agent 的 upgrade/downgrade_autonomy 为产品决策暂缓),请改选 employee_template 或 agent(improve_existing_employee) 等已接线候选'
|
|
47
|
+
: '';
|
|
48
|
+
logger_1.logger.warn(`draft generate 返回 reasonCode=${result.reasonCode}${result.reason ? ` (${result.reason})` : ''}${guidance}`);
|
|
44
49
|
}
|
|
45
|
-
(0, shared_1.emitWorkforceResult)('workforce.learning.draft.generate', result,
|
|
50
|
+
(0, shared_1.emitWorkforceResult)('workforce.learning.draft.generate', result, json);
|
|
46
51
|
});
|
|
47
52
|
exports.workforceLearningCommand.command('apply')
|
|
48
53
|
.description('把草稿应用到候选(applyDraft,幂等状态转换)')
|
|
49
54
|
.requiredOption('--candidate-id <id>')
|
|
50
55
|
.requiredOption('--target-org <alias>')
|
|
51
56
|
.option('--json')
|
|
52
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.apply', await (0, workforce_learning_remote_1.applyDraftRemote)({
|
|
57
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.apply', await (0, workforce_learning_remote_1.applyDraftRemote)({
|
|
53
58
|
targetOrg: options.targetOrg,
|
|
54
59
|
candidateId: options.candidateId,
|
|
55
|
-
}),
|
|
60
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
56
61
|
exports.workforceLearningCommand.command('simulate')
|
|
57
62
|
.description('对候选跑仿真(runSimulation,物化生成测试并运行)')
|
|
58
63
|
.requiredOption('--candidate-id <id>')
|
|
59
64
|
.requiredOption('--target-org <alias>')
|
|
60
65
|
.option('--json')
|
|
61
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.simulate', await (0, workforce_learning_remote_1.runSimulationRemote)({
|
|
66
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.simulate', await (0, workforce_learning_remote_1.runSimulationRemote)({
|
|
62
67
|
targetOrg: options.targetOrg,
|
|
63
68
|
candidateId: options.candidateId,
|
|
64
|
-
}),
|
|
69
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
65
70
|
exports.workforceLearningCommand.command('request-approval')
|
|
66
71
|
.description('为候选请求审批(skippedReason=missing_approval_process 是真实跳过)')
|
|
67
72
|
.requiredOption('--candidate-id <id>')
|
|
68
73
|
.requiredOption('--target-org <alias>')
|
|
69
74
|
.option('--approval-process-id <id>')
|
|
70
75
|
.option('--json')
|
|
71
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.request-approval', await (0, workforce_learning_remote_1.requestApprovalRemote)({
|
|
76
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.request-approval', await (0, workforce_learning_remote_1.requestApprovalRemote)({
|
|
72
77
|
targetOrg: options.targetOrg,
|
|
73
78
|
candidateId: options.candidateId,
|
|
74
79
|
approvalProcessId: options.approvalProcessId,
|
|
75
|
-
}),
|
|
80
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
76
81
|
exports.workforceLearningCommand.command('publish')
|
|
77
82
|
.description('发布候选(过 release-gate → dispatchPublication)')
|
|
78
83
|
.requiredOption('--candidate-id <id>')
|
|
79
84
|
.requiredOption('--target-org <alias>')
|
|
80
85
|
.option('--json')
|
|
81
|
-
.action(async (options) => {
|
|
86
|
+
.action(async (options, command) => {
|
|
87
|
+
const json = (0, command_options_1.isJsonOutputRequested)(options, command);
|
|
82
88
|
const result = await (0, workforce_learning_remote_1.publishLearningRemote)({
|
|
83
89
|
targetOrg: options.targetOrg,
|
|
84
90
|
candidateId: options.candidateId,
|
|
85
91
|
});
|
|
86
|
-
if (!
|
|
92
|
+
if (!json && (!result.publishEligible || !result.wired)) {
|
|
87
93
|
logger_1.logger.warn(`publish 未生效:publishEligible=${result.publishEligible} wired=${result.wired}` +
|
|
88
94
|
`${result.reason ? ` reason=${result.reason}` : ''}`);
|
|
89
95
|
}
|
|
90
|
-
(0, shared_1.emitWorkforceResult)('workforce.learning.publish', result,
|
|
96
|
+
(0, shared_1.emitWorkforceResult)('workforce.learning.publish', result, json);
|
|
91
97
|
});
|
|
92
98
|
exports.workforceLearningCommand.command('rollback')
|
|
93
99
|
.description('回滚已发布产物(rollbackLearningPublication,不重跑闸门)')
|
|
@@ -95,16 +101,17 @@ exports.workforceLearningCommand.command('rollback')
|
|
|
95
101
|
.requiredOption('--reason-code <code>')
|
|
96
102
|
.requiredOption('--target-org <alias>')
|
|
97
103
|
.option('--json')
|
|
98
|
-
.action(async (options) => {
|
|
104
|
+
.action(async (options, command) => {
|
|
105
|
+
const json = (0, command_options_1.isJsonOutputRequested)(options, command);
|
|
99
106
|
const result = await (0, workforce_learning_remote_1.rollbackLearningPublicationRemote)({
|
|
100
107
|
targetOrg: options.targetOrg,
|
|
101
108
|
publicationEventId: options.publicationEventId,
|
|
102
109
|
reasonCode: options.reasonCode,
|
|
103
110
|
});
|
|
104
|
-
if (!
|
|
111
|
+
if (!json && result.wired && result.reasonCode === 'rollback_audit_record_write_failed') {
|
|
105
112
|
logger_1.logger.warn('⚠️ rollback 已执行但审计行写入失败(reasonCode=rollback_audit_record_write_failed),请人工核对,不要盲目重试。');
|
|
106
113
|
}
|
|
107
|
-
(0, shared_1.emitWorkforceResult)('workforce.learning.rollback', result,
|
|
114
|
+
(0, shared_1.emitWorkforceResult)('workforce.learning.rollback', result, json);
|
|
108
115
|
});
|
|
109
116
|
exports.workforceLearningCommand.command('publications')
|
|
110
117
|
.description('列出已发布产物历史(aiWorkforceLearningPublicationEvents)')
|
|
@@ -116,7 +123,7 @@ exports.workforceLearningCommand.command('publications')
|
|
|
116
123
|
.option('--limit <n>')
|
|
117
124
|
.option('--offset <n>')
|
|
118
125
|
.option('--json')
|
|
119
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.publications', await (0, workforce_learning_remote_1.listLearningPublicationsRemote)({
|
|
126
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.publications', await (0, workforce_learning_remote_1.listLearningPublicationsRemote)({
|
|
120
127
|
targetOrg: options.targetOrg,
|
|
121
128
|
targetArtifactType: options.targetArtifactType,
|
|
122
129
|
artifactCandidateId: options.artifactCandidateId,
|
|
@@ -124,23 +131,23 @@ exports.workforceLearningCommand.command('publications')
|
|
|
124
131
|
releaseGateRecordId: options.releaseGateRecordId,
|
|
125
132
|
limit: options.limit ? Number(options.limit) : undefined,
|
|
126
133
|
offset: options.offset ? Number(options.offset) : undefined,
|
|
127
|
-
}),
|
|
134
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
128
135
|
const settingsCommand = exports.workforceLearningCommand.command('settings')
|
|
129
136
|
.description('工作区学习设置(retention / opt-out)');
|
|
130
137
|
settingsCommand.command('get')
|
|
131
138
|
.requiredOption('--target-org <alias>')
|
|
132
139
|
.option('--json')
|
|
133
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.settings.get', await (0, workforce_learning_remote_1.getLearningSettingsRemote)({ targetOrg: options.targetOrg }),
|
|
140
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.settings.get', await (0, workforce_learning_remote_1.getLearningSettingsRemote)({ targetOrg: options.targetOrg }), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
134
141
|
settingsCommand.command('set')
|
|
135
142
|
.requiredOption('--target-org <alias>')
|
|
136
143
|
.option('--retention-days <n>', 'behaviorEventRetentionDays (30-3650)')
|
|
137
144
|
.option('--opt-out <bool>', 'learningOptOut (true|false)')
|
|
138
145
|
.option('--disabled-event-types <types...>', 'learningCaptureDisabledEventTypes(最多 32)')
|
|
139
146
|
.option('--json')
|
|
140
|
-
.action(async (options) => (0, shared_1.emitWorkforceResult)('workforce.learning.settings.set', await (0, workforce_learning_remote_1.updateLearningSettingsRemote)({
|
|
147
|
+
.action(async (options, command) => (0, shared_1.emitWorkforceResult)('workforce.learning.settings.set', await (0, workforce_learning_remote_1.updateLearningSettingsRemote)({
|
|
141
148
|
targetOrg: options.targetOrg,
|
|
142
149
|
behaviorEventRetentionDays: options.retentionDays ? Number(options.retentionDays) : undefined,
|
|
143
150
|
learningOptOut: options.optOut === undefined ? undefined : options.optOut === 'true',
|
|
144
151
|
learningCaptureDisabledEventTypes: options.disabledEventTypes,
|
|
145
|
-
}),
|
|
152
|
+
}), (0, command_options_1.isJsonOutputRequested)(options, command)));
|
|
146
153
|
//# sourceMappingURL=learning.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"learning.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/learning.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAA+C;AAC/C,wFAYkD;AAClD,+CAA4C;AAW/B,QAAA,wBAAwB,GAAG,IAAI,mBAAO,CAAC,UAAU,CAAC;KAC5D,WAAW,CAAC,uDAAuD,CAAC,CAAC;AAExE,gCAAwB,CAAC,OAAO,CAAC,SAAS,CAAC;KACxC,WAAW,CAAC,0CAA0C,CAAC;KACvD,cAAc,CAAC,qBAAqB,CAAC;KACrC,cAAc,CAAC,sBAAsB,CAAC;KACtC,MAAM,CAAC,QAAQ,CAAC;KAChB,MAAM,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE,CAAC,IAAA,4BAAmB,
|
|
1
|
+
{"version":3,"file":"learning.js","sourceRoot":"","sources":["../../../../../src/commands/workforce/learning.ts"],"names":[],"mappings":";;;AAAA,yCAAoC;AAEpC,qCAA+C;AAC/C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C,MAAM,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,KAAK,MAAM;IACpF,iCAAiC,EAAE,OAAO,CAAC,kBAAkB;CAC9D,CAAC,EACF,IAAA,uCAAqB,EAAC,OAAO,EAAE,OAAO,CAAC,CACxC,CAAC,CAAC"}
|
|
@@ -22,6 +22,7 @@ async function readConversation(targetOrg, sessionId) {
|
|
|
22
22
|
const response = await client.get(`/ai-copilot/conversations/${encodeURIComponent(sessionId)}`);
|
|
23
23
|
return unwrap(response, 'conversation read');
|
|
24
24
|
}
|
|
25
|
+
const HISTORY_MESSAGE_WINDOW = 64;
|
|
25
26
|
async function converseWorkforceTaskRemote(options) {
|
|
26
27
|
const client = (0, api_client_1.createApiClient)(options.targetOrg);
|
|
27
28
|
const sessionId = options.sessionId ?? (0, node_crypto_1.randomUUID)();
|
|
@@ -31,7 +32,7 @@ async function converseWorkforceTaskRemote(options) {
|
|
|
31
32
|
if (before && before.conversation.agentId !== options.agentId) {
|
|
32
33
|
throw new Error('CONVERSATION_AGENT_MISMATCH: session belongs to another agent');
|
|
33
34
|
}
|
|
34
|
-
const history = (before?.messages ?? []).slice(-
|
|
35
|
+
const history = (before?.messages ?? []).slice(-HISTORY_MESSAGE_WINDOW).map((message) => ({
|
|
35
36
|
role: message.role === 'assistant' ? 'assistant' : 'user',
|
|
36
37
|
content: message.content,
|
|
37
38
|
}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workforce-conversation-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-conversation-remote.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"workforce-conversation-remote.js","sourceRoot":"","sources":["../../../../src/services/workforce-conversation-remote.ts"],"names":[],"mappings":";;AA8EA,kEA0FC;AAED,wEAKC;AAED,4EAoBC;AArMD,6CAAyC;AAEzC,6CAA+C;AAkC/C,SAAS,MAAM,CAAI,QAAwD,EAAE,SAAiB;IAC5F,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ERSION = "0.3.
|
|
1
|
+
export declare const WORKFORCE_TEST_CLI_VERSION = "0.3.42";
|
|
2
2
|
export declare function assertWorkforceTestCompatibility(compatibilityVersion: string): void;
|
|
3
3
|
export declare const WORKFORCE_TEST_REGRESSION_QUERY = "\nquery AgentTestRegression($agentId: ID!, $suiteRunId: ID!) {\n agentTestRegression(agentId: $agentId, suiteRunId: $suiteRunId) { suiteRunId current baseline deltas }\n}";
|
|
4
4
|
export interface WorkforceTestSuiteMetrics {
|
|
@@ -12,7 +12,7 @@ exports.listTestResultsRemote = listTestResultsRemote;
|
|
|
12
12
|
exports.getTestBaselineRemote = getTestBaselineRemote;
|
|
13
13
|
exports.getTestRegressionRemote = getTestRegressionRemote;
|
|
14
14
|
const api_client_1 = require("./api-client");
|
|
15
|
-
exports.WORKFORCE_TEST_CLI_VERSION = '0.3.
|
|
15
|
+
exports.WORKFORCE_TEST_CLI_VERSION = '0.3.42';
|
|
16
16
|
function parseCompatibilityVersion(version) {
|
|
17
17
|
const match = /^(\d+)\.(\d+)\.(\d+)$/.exec(version.trim());
|
|
18
18
|
if (!match)
|
|
@@ -22,10 +22,10 @@ const workforce_test_remote_1 = require("./workforce-test-remote");
|
|
|
22
22
|
strict_1.default.throws(() => (0, workforce_test_remote_1.assertWorkforceTestCompatibility)('unknown'), /did not publish cliCompatibilityVersion/);
|
|
23
23
|
});
|
|
24
24
|
(0, node_test_1.default)('evaluation preflight blocks a mismatched CLI/Core contract', () => {
|
|
25
|
-
strict_1.default.throws(() => (0, workforce_test_remote_1.assertWorkforceTestCompatibility)('0.4.0'), /CLI 0.3.
|
|
25
|
+
strict_1.default.throws(() => (0, workforce_test_remote_1.assertWorkforceTestCompatibility)('0.4.0'), /CLI 0.3.42, Core requires 0.4.0/);
|
|
26
26
|
});
|
|
27
27
|
(0, node_test_1.default)('evaluation preflight blocks an older CLI than the Core patch contract', () => {
|
|
28
|
-
strict_1.default.throws(() => (0, workforce_test_remote_1.assertWorkforceTestCompatibility)('0.3.
|
|
28
|
+
strict_1.default.throws(() => (0, workforce_test_remote_1.assertWorkforceTestCompatibility)('0.3.43'), /CLI 0.3.42, Core requires 0.3.43/);
|
|
29
29
|
});
|
|
30
30
|
(0, node_test_1.default)('regression query matches the native Core report fields', () => {
|
|
31
31
|
strict_1.default.match(workforce_test_remote_1.WORKFORCE_TEST_REGRESSION_QUERY, /suiteRunId current baseline deltas/);
|