@share-crm/sharedev-cli 0.0.5-rc.2 → 0.0.5-rc.2.test.1
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/sharedev.js +5 -2
- package/package.json +1 -1
package/dist/sharedev.js
CHANGED
|
@@ -15728,6 +15728,7 @@ async function buildCommandHeaders(session) {
|
|
|
15728
15728
|
'X-CLI-Id': 'sharedev-cli',
|
|
15729
15729
|
'X-CLI-Version': version,
|
|
15730
15730
|
'X-Caller-Type': 'cli',
|
|
15731
|
+
'x-fs-business-name': 'sharedev-cli',
|
|
15731
15732
|
'X-Request-Id': (0, node_crypto_1.randomUUID)(),
|
|
15732
15733
|
'Accept-Language': locale ?? 'en-US',
|
|
15733
15734
|
'X-FS-Locale': locale ?? 'en-US'
|
|
@@ -15739,6 +15740,8 @@ async function executeOnce(session, commandKey, args, flags, onTraceId) {
|
|
|
15739
15740
|
headers: await buildCommandHeaders(session),
|
|
15740
15741
|
body: JSON.stringify({
|
|
15741
15742
|
commandKey,
|
|
15743
|
+
// 与 FHH shareCli/execute 保持同一 Agent 渠道标记,供操作中心路由和统计使用。
|
|
15744
|
+
agentChannels: ['share_dev'],
|
|
15742
15745
|
arguments: args ?? {},
|
|
15743
15746
|
...(flags?.length ? { flags } : {})
|
|
15744
15747
|
})
|
|
@@ -51720,8 +51723,8 @@ async function readCliPackageMeta() {
|
|
|
51720
51723
|
? "@share-crm/sharedev-cli".trim()
|
|
51721
51724
|
: '@share-crm/sharedev-cli';
|
|
51722
51725
|
const debugEnabled = true && Boolean(false);
|
|
51723
|
-
const rawVersion = ( true && "0.0.5-rc.2".trim())
|
|
51724
|
-
? "0.0.5-rc.2".trim()
|
|
51726
|
+
const rawVersion = ( true && "0.0.5-rc.2.test.1".trim())
|
|
51727
|
+
? "0.0.5-rc.2.test.1".trim()
|
|
51725
51728
|
: '0.0.0';
|
|
51726
51729
|
const version = rawVersion + (debugEnabled ? '-debug' : '');
|
|
51727
51730
|
return { name, version };
|