@schuttdev/gigai 0.2.3 → 0.2.5

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/dist/index.js +18 -5
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -246,7 +246,7 @@ function createHttpClient(serverUrl, sessionToken) {
246
246
  }
247
247
 
248
248
  // src/version.ts
249
- var VERSION = "0.2.2";
249
+ var VERSION = "0.2.5";
250
250
 
251
251
  // src/connect.ts
252
252
  async function connect(serverName) {
@@ -397,6 +397,14 @@ gigai download <id> <dest>
397
397
  - If you get auth errors, run \`gigai connect\` to refresh the session
398
398
  - Tools are scoped to what the user has configured \u2014 if a tool is missing, tell the user
399
399
  `;
400
+ async function hasExistingSkill() {
401
+ try {
402
+ await readFile2("/mnt/skills/user/gigai/config.json", "utf8");
403
+ return true;
404
+ } catch {
405
+ return false;
406
+ }
407
+ }
400
408
  async function generateSkillZip(serverName, serverUrl, token) {
401
409
  let skillConfig = { servers: {} };
402
410
  try {
@@ -524,12 +532,17 @@ async function pair(code, serverUrl) {
524
532
  orgUuid
525
533
  });
526
534
  await addServer(res.serverName, serverUrl, res.encryptedToken);
527
- console.log(`Paired with "${res.serverName}" successfully!
528
- `);
535
+ console.log(`Paired with "${res.serverName}" successfully!`);
536
+ const existing = await hasExistingSkill();
529
537
  const zip = await generateSkillZip(res.serverName, serverUrl, res.encryptedToken);
530
538
  const outPath = await writeSkillZip(zip);
531
- console.log(`Skill zip written to: ${outPath}`);
532
- console.log("Upload this file as a skill in Claude Desktop (Settings \u2192 Customize \u2192 Upload Skill).");
539
+ console.log(`
540
+ Skill zip written to: ${outPath}`);
541
+ if (existing) {
542
+ console.log("Skill file updated. Download and re-upload to Claude.");
543
+ } else {
544
+ console.log("Upload this file as a skill in Claude (Settings \u2192 Customize \u2192 Upload Skill).");
545
+ }
533
546
  }
534
547
 
535
548
  // src/discover.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@schuttdev/gigai",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "type": "module",
5
5
  "bin": {
6
6
  "gigai": "dist/index.js"