@cspeach/cli 1.1.48 → 1.1.49
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/agent/level.js +1 -1
- package/dist/agent/loop.js +7 -6
- package/dist/agent/sap-connection-adapter.js +2 -0
- package/dist/agent/system-prompt.js +2 -2
- package/dist/agent/tool-dispatch.js +13 -1
- package/dist/approvals/op-labels.js +49 -10
- package/dist/approvals/render.js +14 -23
- package/dist/approvals/risk-floor.js +196 -19
- package/dist/approvals/visible-changes.js +35 -0
- package/dist/commands/help.js +1 -1
- package/dist/commands/project.js +301 -0
- package/dist/commands/team-plan.js +16 -6
- package/dist/commands/team.js +295 -68
- package/dist/doctor/checks/zcspeach.js +96 -0
- package/dist/journey/chain.js +489 -61
- package/dist/journey/clean-core.js +61 -36
- package/dist/journey/flow.js +75 -2
- package/dist/journey/people.js +37 -0
- package/dist/journey/rebuild.js +7 -6
- package/dist/journey/run.js +129 -42
- package/dist/journey/trigger.js +16 -10
- package/dist/one-shot.js +1 -1
- package/dist/project-context/render.js +7 -0
- package/dist/projects/clean-core-confirm.js +166 -44
- package/dist/projects/email-template.js +56 -0
- package/dist/projects/extract-cca.js +8 -7
- package/dist/projects/index.js +0 -1
- package/dist/projects/merge-cca.js +0 -19
- package/dist/projects/merge-upgrade.js +2 -2
- package/dist/projects/project-folder.js +2 -1
- package/dist/projects/save-command.js +51 -14
- package/dist/register/decision-rules.js +2 -1
- package/dist/register/export-files.js +18 -0
- package/dist/register/picture.js +3 -3
- package/dist/register/project-transport.js +125 -0
- package/dist/register/records.js +25 -13
- package/dist/register/rules-edit.js +5 -0
- package/dist/register/status-file/progress-chart.js +17 -6
- package/dist/register/status-file/register-map.js +8 -5
- package/dist/register/status-file/register-model.js +55 -36
- package/dist/register/status-file/register-parts.js +97 -82
- package/dist/register/status-file/register-status-file.js +16 -7
- package/dist/register/status-file/report-model.js +293 -205
- package/dist/register/status-file/team-css.js +1 -1
- package/dist/register/status-html.js +11 -4
- package/dist/register/store.js +2 -2
- package/dist/register/workbooks.js +24 -13
- package/dist/renderer/footer-line.js +10 -2
- package/dist/renderer/tool-labels.js +2 -2
- package/dist/repl/builtin-commands.js +1 -1
- package/dist/repl/continue-skill.js +5 -0
- package/dist/repl/level-command.js +6 -15
- package/dist/repl.js +21 -8
- package/dist/router/router-core.js +5 -3
- package/dist/skill-catalog.js +4 -7
- package/dist/tools/_team-work-path.js +53 -0
- package/dist/tools/approval.js +97 -19
- package/dist/tools/filesystem/file-edit.js +8 -1
- package/dist/tools/filesystem/file-write.js +8 -1
- package/dist/tools/local-files.js +31 -0
- package/dist/tools/project/_merge-shared.js +2 -2
- package/dist/tools/project/_team-tool-shared.js +5 -0
- package/dist/tools/project/cca_merge.js +1 -11
- package/dist/tools/project/rules_propose.js +2 -1
- package/dist/tools/project/team_findings.js +81 -28
- package/dist/tools/project/team_lane_move.js +127 -0
- package/dist/tools/project/upgrade_merge_progress.js +8 -4
- package/dist/tools/subagent/schedule_create.js +131 -0
- package/dist/tools/text-elements/tools.js +7 -1
- package/dist/tools/tool-loading.js +1 -1
- package/dist/tools/update-method-intercept.js +18 -1
- package/dist/tools/write-pipeline.js +19 -5
- package/dist/ui/approval-modal.js +6 -3
- package/dist/ui/error-emitter.js +21 -0
- package/dist/ui/footer-line.js +19 -1
- package/dist/ui/header.js +41 -0
- package/dist/ui/ink-classifier-route.js +19 -0
- package/dist/ui/rich-error-box.js +9 -0
- package/dist/ui/sidebar.js +12 -0
- package/dist/ui/status-emitter.js +19 -0
- package/dist/ui/status-line.js +62 -0
- package/dist/ui/status-row.js +38 -0
- package/dist/ui/todo-panel.js +85 -0
- package/dist/ui/widgets/ask-form.js +250 -0
- package/dist/ui/widgets/ask-question-modal.js +178 -0
- package/fiori/zlas-inspection-lr/package.json +26 -0
- package/fiori/zlas-inspection-lr/ui5-local.yaml +45 -0
- package/fiori/zlas-inspection-lr/ui5.yaml +41 -0
- package/fiori/zlas-inspection-lr/webapp/Component.js +12 -0
- package/fiori/zlas-inspection-lr/webapp/i18n/i18n.properties +9 -0
- package/fiori/zlas-inspection-lr/webapp/index.html +35 -0
- package/fiori/zlas-inspection-lr/webapp/manifest.json +145 -0
- package/live-check-2026-10-17-1343.txt +41 -0
- package/package.json +121 -121
- package/test-harness/fe-draft/app.ts +0 -188
- package/test-harness/fe-draft/fe-draft.e2e.test.ts +0 -461
- package/test-harness/fe-draft/manifest-enhancer.unit.test.ts +0 -51
- package/test-harness/fe-draft/routes.ts +0 -224
- package/test-harness/fe-draft/routes.unit.test.ts +0 -45
- package/test-harness/fe-draft/server.ts +0 -225
- package/test-harness/fe-draft/variants.ts +0 -196
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import keychain from '../../auth/keychain.js';
|
|
2
|
+
import { readFile } from 'node:fs/promises';
|
|
3
|
+
import { loadConfig, resolveSapTls } from '../../config/loader.js';
|
|
4
|
+
import { probeGet } from './_http-probe.js';
|
|
5
|
+
import { sapChecksSkipped, standaloneSkip } from './_standalone-skip.js';
|
|
6
|
+
const SAP_SERVICE = 'cspeach-sap';
|
|
7
|
+
export async function checkZcspeach() {
|
|
8
|
+
const cfg = await loadConfig();
|
|
9
|
+
// Standalone mode ONLY — an opted-in paste-mode user has nothing to probe.
|
|
10
|
+
// Everything below (including the no-alias failure) is unchanged.
|
|
11
|
+
if (sapChecksSkipped(cfg))
|
|
12
|
+
return standaloneSkip('zcspeach');
|
|
13
|
+
const systems = Object.entries(cfg.sap);
|
|
14
|
+
if (systems.length === 0) {
|
|
15
|
+
return {
|
|
16
|
+
name: 'zcspeach',
|
|
17
|
+
ok: false,
|
|
18
|
+
message: 'no SAP systems configured',
|
|
19
|
+
hint: 'Run: cspeach config add-sap',
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
const results = [];
|
|
23
|
+
let anyFailed = false;
|
|
24
|
+
for (const [alias, sys] of systems) {
|
|
25
|
+
const protocol = sys.useSsl ? 'https' : 'http';
|
|
26
|
+
const url = `${protocol}://${sys.host}:${sys.port}/sap/bc/zcspeach/discovery`;
|
|
27
|
+
let pwd = null;
|
|
28
|
+
try {
|
|
29
|
+
pwd = await keychain.getPassword(SAP_SERVICE, alias);
|
|
30
|
+
}
|
|
31
|
+
catch {
|
|
32
|
+
// keychain unavailable — fall through, will be skipped below
|
|
33
|
+
}
|
|
34
|
+
if (!pwd) {
|
|
35
|
+
results.push(`${alias}: skipped (no password in keychain)`);
|
|
36
|
+
continue;
|
|
37
|
+
}
|
|
38
|
+
// TLS posture (2026-06-14): verification ON by default; resolveSapTls maps
|
|
39
|
+
// the per-alias config (ca_cert_path / insecure_skip_tls_verify, legacy
|
|
40
|
+
// sslVerify:false fallback). See checks/_http-probe.ts.
|
|
41
|
+
const tls = resolveSapTls(sys);
|
|
42
|
+
let ca;
|
|
43
|
+
if (tls.mode === 'ca-trusted' && tls.caCertPath) {
|
|
44
|
+
try {
|
|
45
|
+
ca = await readFile(tls.caCertPath);
|
|
46
|
+
}
|
|
47
|
+
catch (e) {
|
|
48
|
+
results.push(`${alias}: CA unreadable at ${tls.caCertPath} (${e.message})`);
|
|
49
|
+
anyFailed = true;
|
|
50
|
+
continue;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
const r = await probeGet(url, {
|
|
54
|
+
rejectUnauthorized: tls.mode !== 'insecure',
|
|
55
|
+
ca,
|
|
56
|
+
auth: `${sys.username}:${pwd}`,
|
|
57
|
+
accept: 'application/json',
|
|
58
|
+
timeoutMs: 5000,
|
|
59
|
+
});
|
|
60
|
+
if (r.error) {
|
|
61
|
+
results.push(`${alias}: ${r.error}`);
|
|
62
|
+
anyFailed = true;
|
|
63
|
+
continue;
|
|
64
|
+
}
|
|
65
|
+
if (r.status < 200 || r.status >= 300) {
|
|
66
|
+
results.push(`${alias}: HTTP ${r.status} from /zcspeach/discovery`);
|
|
67
|
+
anyFailed = true;
|
|
68
|
+
continue;
|
|
69
|
+
}
|
|
70
|
+
let body;
|
|
71
|
+
try {
|
|
72
|
+
body = JSON.parse(r.body);
|
|
73
|
+
}
|
|
74
|
+
catch {
|
|
75
|
+
results.push(`${alias}: invalid JSON from /zcspeach/discovery`);
|
|
76
|
+
anyFailed = true;
|
|
77
|
+
continue;
|
|
78
|
+
}
|
|
79
|
+
if (body.status !== 'ok') {
|
|
80
|
+
results.push(`${alias}: discovery returned status=${body.status ?? '<missing>'}`);
|
|
81
|
+
anyFailed = true;
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
const ver = body.data?.version ?? '<missing>';
|
|
85
|
+
const ops = body.data?.operations?.length ?? 0;
|
|
86
|
+
results.push(`${alias}: v${ver}, ${ops} ops`);
|
|
87
|
+
}
|
|
88
|
+
return {
|
|
89
|
+
name: 'zcspeach',
|
|
90
|
+
ok: !anyFailed,
|
|
91
|
+
message: results.join('; '),
|
|
92
|
+
hint: anyFailed
|
|
93
|
+
? 'SICF node /sap/bc/zcspeach must be active; ensure SAP_BASIS supports the framework'
|
|
94
|
+
: undefined,
|
|
95
|
+
};
|
|
96
|
+
}
|