@schuttdev/kon 0.2.6 → 0.2.8
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/index.js +18 -18
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -321,7 +321,7 @@ function createHttpClient(serverUrl, sessionToken) {
|
|
|
321
321
|
}
|
|
322
322
|
|
|
323
323
|
// ../cli/src/version.ts
|
|
324
|
-
var VERSION = "0.2.
|
|
324
|
+
var VERSION = "0.2.8";
|
|
325
325
|
|
|
326
326
|
// ../cli/src/connect.ts
|
|
327
327
|
async function connect(serverName) {
|
|
@@ -412,12 +412,12 @@ import { readFile as readFile2, writeFile as writeFile2, mkdir as mkdir2 } from
|
|
|
412
412
|
import "path";
|
|
413
413
|
var SKILL_MD = `---
|
|
414
414
|
name: gigai
|
|
415
|
-
description: Access tools on the user's machine via
|
|
415
|
+
description: Access tools on the user's machine via kon (gigai client)
|
|
416
416
|
---
|
|
417
417
|
|
|
418
418
|
# gigai
|
|
419
419
|
|
|
420
|
-
You have access to tools running on the user's local machine through the gigai CLI.
|
|
420
|
+
You have access to tools running on the user's local machine through kon, the gigai client CLI. It proxies commands over HTTPS to a server on the user's machine.
|
|
421
421
|
|
|
422
422
|
## Setup (run once per conversation)
|
|
423
423
|
|
|
@@ -425,51 +425,51 @@ You have access to tools running on the user's local machine through the gigai C
|
|
|
425
425
|
npm install -g @schuttdev/kon 2>/dev/null
|
|
426
426
|
mkdir -p ~/.gigai
|
|
427
427
|
cp /mnt/skills/user/gigai/config.json ~/.gigai/config.json
|
|
428
|
-
|
|
428
|
+
kon connect
|
|
429
429
|
\`\`\`
|
|
430
430
|
|
|
431
|
-
If \`
|
|
431
|
+
If \`kon connect\` succeeds, you are ready to use tools. If it fails, tell the user.
|
|
432
432
|
|
|
433
433
|
## Usage
|
|
434
434
|
|
|
435
435
|
### List available tools
|
|
436
436
|
\`\`\`bash
|
|
437
|
-
|
|
437
|
+
kon list
|
|
438
438
|
\`\`\`
|
|
439
439
|
|
|
440
440
|
### Run a tool
|
|
441
441
|
\`\`\`bash
|
|
442
|
-
|
|
442
|
+
kon <tool-name> [args...]
|
|
443
443
|
\`\`\`
|
|
444
444
|
|
|
445
445
|
Examples:
|
|
446
446
|
\`\`\`bash
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
447
|
+
kon shell date
|
|
448
|
+
kon fs list Documents
|
|
449
|
+
kon shell whoami
|
|
450
450
|
\`\`\`
|
|
451
451
|
|
|
452
452
|
### Get help for a tool
|
|
453
453
|
\`\`\`bash
|
|
454
|
-
|
|
454
|
+
kon help <tool-name>
|
|
455
455
|
\`\`\`
|
|
456
456
|
|
|
457
457
|
### Switch server (if multiple are configured)
|
|
458
458
|
\`\`\`bash
|
|
459
|
-
|
|
459
|
+
kon connect <server-name>
|
|
460
460
|
\`\`\`
|
|
461
461
|
|
|
462
462
|
### File transfer
|
|
463
463
|
\`\`\`bash
|
|
464
|
-
|
|
465
|
-
|
|
464
|
+
kon upload <file>
|
|
465
|
+
kon download <id> <dest>
|
|
466
466
|
\`\`\`
|
|
467
467
|
|
|
468
468
|
## Important
|
|
469
469
|
|
|
470
470
|
- Always run the setup block before first use in a new conversation
|
|
471
471
|
- All commands execute on the **user's machine**, not in this sandbox
|
|
472
|
-
- If you get auth errors, run \`
|
|
472
|
+
- If you get auth errors, run \`kon connect\` to refresh the session
|
|
473
473
|
- Tools are scoped to what the user has configured \u2014 if a tool is missing, tell the user
|
|
474
474
|
`;
|
|
475
475
|
async function hasExistingSkill() {
|
|
@@ -884,14 +884,14 @@ function runCitty() {
|
|
|
884
884
|
const versionCommand = defineCommand({
|
|
885
885
|
meta: { name: "version", description: "Show version" },
|
|
886
886
|
run() {
|
|
887
|
-
console.log(`
|
|
887
|
+
console.log(`kon v${VERSION}`);
|
|
888
888
|
}
|
|
889
889
|
});
|
|
890
890
|
const main = defineCommand({
|
|
891
891
|
meta: {
|
|
892
|
-
name: "
|
|
892
|
+
name: "kon",
|
|
893
893
|
version: VERSION,
|
|
894
|
-
description: "
|
|
894
|
+
description: "kon \u2014 gigai client for Claude"
|
|
895
895
|
},
|
|
896
896
|
subCommands: {
|
|
897
897
|
pair: pairCommand,
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schuttdev/kon",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.8",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Lightweight gigai client for Claude code execution",
|
|
6
6
|
"bin": {
|
|
7
|
-
"
|
|
7
|
+
"kon": "dist/index.js"
|
|
8
8
|
},
|
|
9
9
|
"exports": {
|
|
10
10
|
".": "./dist/index.js"
|