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.
Files changed (2) hide show
  1. package/bin/ts.js +5 -1
  2. 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 r = await api('/api/conversations', { method: 'POST', token, body: { title: conversationScope.conversationTitle(cwd, 'CLI'), scope: 'cloud', workstreamId } });
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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "terminal-smart-cli",
3
- "version": "0.97.64",
3
+ "version": "0.97.65",
4
4
  "description": "Terminal Smart no seu terminal — pergunte, analise logs por pipe e orquestre agentes de IA. Comando: ts",
5
5
  "bin": {
6
6
  "ts": "bin/ts.js"