@inneranimalmedia/agentsam-sdk 2.6.1 → 2.6.2

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.
@@ -1,19 +0,0 @@
1
- /**
2
- * Persist SDK session token locally for repeat inits (user's machine only).
3
- */
4
- import fs from 'fs';
5
- import path from 'path';
6
-
7
- export function saveSdkTokenHint(cwd, token) {
8
- const t = String(token || '').trim();
9
- if (!t || !t.startsWith('sdk_')) return null;
10
- const dir = path.join(path.resolve(cwd), '.agentsam');
11
- fs.mkdirSync(dir, { recursive: true });
12
- const hintPath = path.join(dir, 'credentials.env.example');
13
- const content = `# Agent Sam SDK — add to your shell profile (optional)
14
- export AGENTSAM_SDK_KEY=${t}
15
- export USER_GCP_PROJECT=YOUR_GCP_PROJECT_ID
16
- `;
17
- fs.writeFileSync(hintPath, content, 'utf8');
18
- return hintPath;
19
- }