terminal-smart-cli 0.97.64 → 0.97.65
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/ts.js +5 -1
- package/package.json +1 -1
package/bin/ts.js
CHANGED
|
@@ -299,7 +299,11 @@ async function ensureConv(token, kind = 'chat', cwd = process.cwd(), forceNew =
|
|
|
299
299
|
try { await api(`/api/conversations/${scopes[scope]}`, { method: 'PUT', token, body: { workstreamId, onlyIfEmpty: true } }); } catch (_) {}
|
|
300
300
|
return scopes[scope];
|
|
301
301
|
}
|
|
302
|
-
const
|
|
302
|
+
const contextOnly = kind === 'agent';
|
|
303
|
+
const r = await api('/api/conversations', { method: 'POST', token, body: {
|
|
304
|
+
title: conversationScope.conversationTitle(cwd, 'CLI'), scope: 'cloud', workstreamId,
|
|
305
|
+
sourceSurface:'cli', historyVisible:false, purpose:contextOnly ? 'agent-context' : 'chat',
|
|
306
|
+
} });
|
|
303
307
|
scopes[scope] = r.id;
|
|
304
308
|
// convId permanece como ponte de compatibilidade para instalações antigas;
|
|
305
309
|
// toda nova leitura usa convScopes, nunca o id global legado.
|