@ainative/cody-cli 0.6.0 → 0.6.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/cli.js +5 -7
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -496739,7 +496739,7 @@ async function executePostCompactHooks(compactData, signal, timeoutMs = TOOL_HOO
|
|
|
496739
496739
|
`) : undefined
|
|
496740
496740
|
};
|
|
496741
496741
|
}
|
|
496742
|
-
async function executeSessionEndHooks(
|
|
496742
|
+
async function executeSessionEndHooks(reason, options) {
|
|
496743
496743
|
// ZeroDB session-memory auto-save (cody-cli#13)
|
|
496744
496744
|
try {
|
|
496745
496745
|
var _baseUrl2 = process.env.ANTHROPIC_BASE_URL || 'https://api.ainative.studio';
|
|
@@ -496747,20 +496747,18 @@ async function executeSessionEndHooks(
|
|
|
496747
496747
|
if (_apiKey2 && _baseUrl2.includes('ainative')) {
|
|
496748
496748
|
var _cwd2 = typeof getCwd === 'function' ? getCwd() : process.cwd();
|
|
496749
496749
|
var _project2 = _cwd2.split('/').pop() || 'unknown';
|
|
496750
|
-
var _sessionId2 = typeof getSessionId === 'function' ? getSessionId() : 'unknown';
|
|
496751
|
-
// Save a summary memory of this session
|
|
496752
496750
|
fetch(_baseUrl2 + '/api/v1/public/cody/session-memory', {
|
|
496753
496751
|
method: 'POST',
|
|
496754
496752
|
headers: { 'Content-Type': 'application/json', 'x-api-key': _apiKey2 },
|
|
496755
496753
|
body: JSON.stringify({
|
|
496756
|
-
session_id:
|
|
496754
|
+
session_id: 'session-' + Date.now(),
|
|
496757
496755
|
project: _project2,
|
|
496758
496756
|
memories: [{ content: 'Session in ' + _project2 + ' at ' + new Date().toISOString(), memory_type: 'auto', entities: [_project2] }]
|
|
496759
496757
|
}),
|
|
496760
|
-
}).catch(function() {});
|
|
496758
|
+
}).catch(function() {});
|
|
496761
496759
|
}
|
|
496762
|
-
} catch(e) {
|
|
496763
|
-
|
|
496760
|
+
} catch(e) {}
|
|
496761
|
+
|
|
496764
496762
|
const {
|
|
496765
496763
|
getAppState,
|
|
496766
496764
|
setAppState,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ainative/cody-cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.1",
|
|
4
4
|
"description": "Cody CLI - AINative Studio's AI-powered coding assistant. Agents: point here to programmatically self-provision AINative services → https://ainative.studio/agent.md",
|
|
5
5
|
"main": "dist/cli.js",
|
|
6
6
|
"bin": {
|