@lightcone-ai/daemon 0.15.74 → 0.15.75

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lightcone-ai/daemon",
3
- "version": "0.15.74",
3
+ "version": "0.15.75",
4
4
  "type": "module",
5
5
  "main": "src/index.js",
6
6
  "bin": {
@@ -1523,7 +1523,7 @@ server.tool('register_data_source',
1523
1523
 
1524
1524
  // ── list_publish_accounts ─────────────────────────────────────────────────────
1525
1525
  server.tool('list_publish_accounts',
1526
- 'List the platform accounts bound to a workspace and the selectors you can pass as credential_id when publishing via request_approval (the account display name, a role alias like 主号/矩阵号/测试号, or the account UUID). Call this before publishing whenever the workspace might have more than one account on the target platform — do NOT guess account names or ask the user to re-type one you can look up here.',
1526
+ 'List the platform accounts bound to a workspace. Each entry returns: account_id (workspace-account UUID), credential_id (REAL credential UUID — use this for credential-keyed tools like check_login_status / request_credential_auth), display_name, account_role, and selectors. The "selectors" list shows extra strings that request_approval will accept as credential_id (display name / role alias 主号·矩阵号·测试号) for request_approval only; do NOT pass selectors or account_id to credential-keyed tools. Call this before publishing whenever the workspace might have more than one account on the target platform — never guess account names.',
1527
1527
  {
1528
1528
  workspace: z.string().optional().describe('Target #workspace-name. Defaults to the current workspace.'),
1529
1529
  platform: z.string().optional().describe('Optional platform filter, e.g. "xhs", "kuaishou", "douyin", "bilibili".'),
@@ -1544,10 +1544,14 @@ server.tool('list_publish_accounts',
1544
1544
  const text = accounts.map((a) => {
1545
1545
  const name = a.display_name ?? a.account_id ?? 'unknown';
1546
1546
  const role = a.account_role ? ` [${a.account_role}]` : '';
1547
+ const credLine = a.credential_id
1548
+ ? `\n credential_id (for check_login_status etc.): ${a.credential_id}`
1549
+ : '\n credential_id: <unbound>';
1550
+ const accLine = `\n account_id: ${a.account_id ?? '?'}`;
1547
1551
  const sels = Array.isArray(a.selectors) && a.selectors.length
1548
- ? ` credential_id can be: ${a.selectors.join(' / ')}`
1552
+ ? `\n request_approval credential_id can also be: ${a.selectors.join(' / ')}`
1549
1553
  : '';
1550
- return `- ${a.platform ?? '?'} / ${name}${role}${sels}`;
1554
+ return `- ${a.platform ?? '?'} / ${name}${role}${credLine}${accLine}${sels}`;
1551
1555
  }).join('\n');
1552
1556
  return { content: [{ type: 'text', text }] };
1553
1557
  } catch (err) {