@3ns/cli 1.0.0
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/README.md +459 -0
- package/SKILL.md +154 -0
- package/dist/apiClient.d.ts +16 -0
- package/dist/apiClient.d.ts.map +1 -0
- package/dist/apiClient.js +115 -0
- package/dist/apiClient.js.map +1 -0
- package/dist/commands/agents.d.ts +3 -0
- package/dist/commands/agents.d.ts.map +1 -0
- package/dist/commands/agents.js +74 -0
- package/dist/commands/agents.js.map +1 -0
- package/dist/commands/auth.d.ts +3 -0
- package/dist/commands/auth.d.ts.map +1 -0
- package/dist/commands/auth.js +66 -0
- package/dist/commands/auth.js.map +1 -0
- package/dist/commands/chats.d.ts +3 -0
- package/dist/commands/chats.d.ts.map +1 -0
- package/dist/commands/chats.js +73 -0
- package/dist/commands/chats.js.map +1 -0
- package/dist/commands/config.d.ts +3 -0
- package/dist/commands/config.d.ts.map +1 -0
- package/dist/commands/config.js +117 -0
- package/dist/commands/config.js.map +1 -0
- package/dist/commands/exportImport.d.ts +3 -0
- package/dist/commands/exportImport.d.ts.map +1 -0
- package/dist/commands/exportImport.js +84 -0
- package/dist/commands/exportImport.js.map +1 -0
- package/dist/commands/files.d.ts +3 -0
- package/dist/commands/files.d.ts.map +1 -0
- package/dist/commands/files.js +110 -0
- package/dist/commands/files.js.map +1 -0
- package/dist/commands/links.d.ts +3 -0
- package/dist/commands/links.d.ts.map +1 -0
- package/dist/commands/links.js +91 -0
- package/dist/commands/links.js.map +1 -0
- package/dist/commands/models.d.ts +3 -0
- package/dist/commands/models.d.ts.map +1 -0
- package/dist/commands/models.js +32 -0
- package/dist/commands/models.js.map +1 -0
- package/dist/commands/openclaw.d.ts +3 -0
- package/dist/commands/openclaw.d.ts.map +1 -0
- package/dist/commands/openclaw.js +63 -0
- package/dist/commands/openclaw.js.map +1 -0
- package/dist/commands/skins.d.ts +3 -0
- package/dist/commands/skins.d.ts.map +1 -0
- package/dist/commands/skins.js +169 -0
- package/dist/commands/skins.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +31 -0
- package/dist/index.js.map +1 -0
- package/package.json +47 -0
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.registerFilesCommands = registerFilesCommands;
|
|
37
|
+
const fs = __importStar(require("fs"));
|
|
38
|
+
const path = __importStar(require("path"));
|
|
39
|
+
const apiClient_1 = require("../apiClient");
|
|
40
|
+
function registerFilesCommands(program) {
|
|
41
|
+
const files = program.command("files").description("Manage uploaded files");
|
|
42
|
+
files
|
|
43
|
+
.command("list")
|
|
44
|
+
.description("List uploaded files")
|
|
45
|
+
.option("--json", "Output as JSON")
|
|
46
|
+
.action(async (opts) => {
|
|
47
|
+
const { data } = await (0, apiClient_1.api)("GET", "/files");
|
|
48
|
+
if (opts.json) {
|
|
49
|
+
(0, apiClient_1.printJson)(data.files);
|
|
50
|
+
}
|
|
51
|
+
else {
|
|
52
|
+
(0, apiClient_1.printTable)(data.files.map((f) => ({
|
|
53
|
+
id: f.id,
|
|
54
|
+
name: f.fileName,
|
|
55
|
+
type: f.fileType,
|
|
56
|
+
size: f.fileSize ? `${(f.fileSize / 1024).toFixed(1)}KB` : "-",
|
|
57
|
+
})), ["id", "name", "type", "size"]);
|
|
58
|
+
}
|
|
59
|
+
});
|
|
60
|
+
files
|
|
61
|
+
.command("upload")
|
|
62
|
+
.description("Upload a file")
|
|
63
|
+
.argument("<local-path>", "Path to the local file")
|
|
64
|
+
.requiredOption("--folder <id>", "Target folder ID")
|
|
65
|
+
.option("--name <name>", "Override file name")
|
|
66
|
+
.option("--type <mime>", "MIME type")
|
|
67
|
+
.action(async (localPath, opts) => {
|
|
68
|
+
const content = fs.readFileSync(localPath);
|
|
69
|
+
const base64Content = content.toString("base64");
|
|
70
|
+
const fileName = opts.name || path.basename(localPath);
|
|
71
|
+
const { data } = await (0, apiClient_1.api)("POST", "/files", {
|
|
72
|
+
folderId: opts.folder,
|
|
73
|
+
fileName,
|
|
74
|
+
fileType: opts.type || "application/octet-stream",
|
|
75
|
+
base64Content,
|
|
76
|
+
});
|
|
77
|
+
console.log(`Uploaded: ${data.fileId}`);
|
|
78
|
+
if (data.downloadUrl)
|
|
79
|
+
console.log(`URL: ${data.downloadUrl}`);
|
|
80
|
+
});
|
|
81
|
+
files
|
|
82
|
+
.command("download")
|
|
83
|
+
.description("Download a file")
|
|
84
|
+
.argument("<file-id>", "File ID")
|
|
85
|
+
.option("-o, --output <path>", "Output path")
|
|
86
|
+
.action(async (fileId, opts) => {
|
|
87
|
+
const { data } = await (0, apiClient_1.api)("GET", `/files/${fileId}`);
|
|
88
|
+
if (!data.file?.downloadUrl) {
|
|
89
|
+
console.error("No download URL available for this file.");
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
console.log(`File: ${data.file.fileName}`);
|
|
93
|
+
console.log(`Download URL: ${data.file.downloadUrl}`);
|
|
94
|
+
if (opts.output) {
|
|
95
|
+
const res = await fetch(data.file.downloadUrl);
|
|
96
|
+
const buffer = Buffer.from(await res.arrayBuffer());
|
|
97
|
+
fs.writeFileSync(opts.output, buffer);
|
|
98
|
+
console.log(`Saved to: ${opts.output}`);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
files
|
|
102
|
+
.command("delete")
|
|
103
|
+
.description("Delete a file")
|
|
104
|
+
.argument("<file-id>", "File ID")
|
|
105
|
+
.action(async (fileId) => {
|
|
106
|
+
await (0, apiClient_1.api)("DELETE", `/files/${fileId}`);
|
|
107
|
+
console.log(`File ${fileId} deleted.`);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
//# sourceMappingURL=files.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"files.js","sourceRoot":"","sources":["../../src/commands/files.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,sDA4EC;AAhFD,uCAAyB;AACzB,2CAA6B;AAC7B,4CAA0D;AAE1D,SAAgB,qBAAqB,CAAC,OAAgB;IACpD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC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BAAiB,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,CAAC;QAEtD,IAAI,IAAI,CAAC,MAAM,EAAE,CAAC;YAChB,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC;YAC/C,MAAM,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC,MAAM,GAAG,CAAC,WAAW,EAAE,CAAC,CAAC;YACpD,EAAE,CAAC,aAAa,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YACtC,OAAO,CAAC,GAAG,CAAC,aAAa,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;QAC1C,CAAC;IACH,CAAC,CAAC,CAAC;IAEL,KAAK;SACF,OAAO,CAAC,QAAQ,CAAC;SACjB,WAAW,CAAC,eAAe,CAAC;SAC5B,QAAQ,CAAC,WAAW,EAAE,SAAS,CAAC;SAChC,MAAM,CAAC,KAAK,EAAE,MAAc,EAAE,EAAE;QAC/B,MAAM,IAAA,eAAG,EAAC,QAAQ,EAAE,UAAU,MAAM,EAAE,CAAC,CAAC;QACxC,OAAO,CAAC,GAAG,CAAC,QAAQ,MAAM,WAAW,CAAC,CAAC;IACzC,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.d.ts","sourceRoot":"","sources":["../../src/commands/links.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAoF5D"}
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerLinksCommands = registerLinksCommands;
|
|
4
|
+
const apiClient_1 = require("../apiClient");
|
|
5
|
+
function registerLinksCommands(program) {
|
|
6
|
+
const links = program.command("links").description("Manage your Linktree-style links");
|
|
7
|
+
links
|
|
8
|
+
.command("list")
|
|
9
|
+
.description("List all links")
|
|
10
|
+
.option("--json", "Output as JSON")
|
|
11
|
+
.action(async (opts) => {
|
|
12
|
+
const { data } = await (0, apiClient_1.api)("GET", "/links");
|
|
13
|
+
if (opts.json) {
|
|
14
|
+
(0, apiClient_1.printJson)(data.links);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
(0, apiClient_1.printTable)(data.links.map((l) => ({
|
|
18
|
+
id: l.id,
|
|
19
|
+
title: l.title || "(no title)",
|
|
20
|
+
url: l.url,
|
|
21
|
+
order: l.order ?? "-",
|
|
22
|
+
})), ["id", "title", "url", "order"]);
|
|
23
|
+
}
|
|
24
|
+
});
|
|
25
|
+
links
|
|
26
|
+
.command("add")
|
|
27
|
+
.description("Add a new link")
|
|
28
|
+
.requiredOption("--url <url>", "Link URL")
|
|
29
|
+
.option("--title <title>", "Link title")
|
|
30
|
+
.option("--description <desc>", "Link description")
|
|
31
|
+
.option("--icon <icon>", "Icon URL or emoji")
|
|
32
|
+
.option("--platform <platform>", "Platform key (e.g. instagram, youtube, custom)", "custom")
|
|
33
|
+
.option("--username <username>", "Username for platform links")
|
|
34
|
+
.option("--active <bool>", "Whether link is visible", "true")
|
|
35
|
+
.option("--order <n>", "Display order", parseInt)
|
|
36
|
+
.action(async (opts) => {
|
|
37
|
+
const { data } = await (0, apiClient_1.api)("POST", "/links", {
|
|
38
|
+
url: opts.url,
|
|
39
|
+
title: opts.title,
|
|
40
|
+
description: opts.description,
|
|
41
|
+
icon: opts.icon,
|
|
42
|
+
platform: opts.platform,
|
|
43
|
+
username: opts.username,
|
|
44
|
+
isActive: opts.active !== "false",
|
|
45
|
+
order: opts.order,
|
|
46
|
+
});
|
|
47
|
+
console.log(`Link added: ${data.linkId}`);
|
|
48
|
+
});
|
|
49
|
+
links
|
|
50
|
+
.command("update")
|
|
51
|
+
.description("Update an existing link")
|
|
52
|
+
.argument("<link-id>", "Link ID to update")
|
|
53
|
+
.option("--url <url>", "New URL")
|
|
54
|
+
.option("--title <title>", "New title")
|
|
55
|
+
.option("--description <desc>", "New description")
|
|
56
|
+
.option("--icon <icon>", "New icon")
|
|
57
|
+
.option("--platform <platform>", "Platform key")
|
|
58
|
+
.option("--username <username>", "Username for platform")
|
|
59
|
+
.option("--active <bool>", "Toggle visibility (true/false)")
|
|
60
|
+
.option("--order <n>", "New order", parseInt)
|
|
61
|
+
.action(async (linkId, opts) => {
|
|
62
|
+
const body = {};
|
|
63
|
+
if (opts.url)
|
|
64
|
+
body.url = opts.url;
|
|
65
|
+
if (opts.title)
|
|
66
|
+
body.title = opts.title;
|
|
67
|
+
if (opts.description)
|
|
68
|
+
body.description = opts.description;
|
|
69
|
+
if (opts.icon)
|
|
70
|
+
body.icon = opts.icon;
|
|
71
|
+
if (opts.platform)
|
|
72
|
+
body.platform = opts.platform;
|
|
73
|
+
if (opts.username)
|
|
74
|
+
body.username = opts.username;
|
|
75
|
+
if (opts.active !== undefined)
|
|
76
|
+
body.isActive = opts.active === "true";
|
|
77
|
+
if (opts.order !== undefined)
|
|
78
|
+
body.order = opts.order;
|
|
79
|
+
await (0, apiClient_1.api)("PUT", `/links/${linkId}`, body);
|
|
80
|
+
console.log(`Link ${linkId} updated.`);
|
|
81
|
+
});
|
|
82
|
+
links
|
|
83
|
+
.command("remove")
|
|
84
|
+
.description("Remove a link")
|
|
85
|
+
.argument("<link-id>", "Link ID to remove")
|
|
86
|
+
.action(async (linkId) => {
|
|
87
|
+
await (0, apiClient_1.api)("DELETE", `/links/${linkId}`);
|
|
88
|
+
console.log(`Link ${linkId} removed.`);
|
|
89
|
+
});
|
|
90
|
+
}
|
|
91
|
+
//# sourceMappingURL=links.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"links.js","sourceRoot":"","sources":["../../src/commands/links.ts"],"names":[],"mappings":";;AAGA,sDAoFC;AAtFD,4CAA0D;AAE1D,SAAgB,qBAAqB,CAAC,O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AC;IACzC,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"models.d.ts","sourceRoot":"","sources":["../../src/commands/models.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA4B7D"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerModelsCommands = registerModelsCommands;
|
|
4
|
+
const apiClient_1 = require("../apiClient");
|
|
5
|
+
function registerModelsCommands(program) {
|
|
6
|
+
program
|
|
7
|
+
.command("models")
|
|
8
|
+
.description("List available AI models")
|
|
9
|
+
.option("--json", "Output as JSON")
|
|
10
|
+
.option("--provider <name>", "Filter by provider (google, openai, anthropic, xai)")
|
|
11
|
+
.action(async (opts) => {
|
|
12
|
+
const { data } = await (0, apiClient_1.api)("GET", "/models");
|
|
13
|
+
let models = data.models;
|
|
14
|
+
if (opts.provider) {
|
|
15
|
+
models = models.filter((m) => m.provider === opts.provider.toLowerCase());
|
|
16
|
+
}
|
|
17
|
+
if (opts.json) {
|
|
18
|
+
(0, apiClient_1.printJson)(models);
|
|
19
|
+
}
|
|
20
|
+
else {
|
|
21
|
+
console.log(`Default model: ${data.default}\n`);
|
|
22
|
+
(0, apiClient_1.printTable)(models.map((m) => ({
|
|
23
|
+
name: m.name,
|
|
24
|
+
label: m.label,
|
|
25
|
+
provider: m.provider,
|
|
26
|
+
context: m.context >= 1000000 ? `${(m.context / 1000000).toFixed(1)}M` : `${(m.context / 1000).toFixed(0)}K`,
|
|
27
|
+
})), ["name", "label", "provider", "context"]);
|
|
28
|
+
console.log(`\n${models.length} models available. Use with: 3ns chats send --model MODEL_NAME --folder ID "message"`);
|
|
29
|
+
}
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
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AAO,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,OAAO,GAAG,IAAI,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GAAG;aAC7G,CAAC,CAAC,EACH,CAAC,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,SAAS,CAAC,CACzC,CAAC;YACF,OAAO,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC,MAAM,sFAAsF,CAAC,CAAC;QACxH,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"openclaw.d.ts","sourceRoot":"","sources":["../../src/commands/openclaw.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAGpC,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CAuD/D"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.registerOpenclawCommands = registerOpenclawCommands;
|
|
4
|
+
const apiClient_1 = require("../apiClient");
|
|
5
|
+
function registerOpenclawCommands(program) {
|
|
6
|
+
const openclaw = program.command("openclaw").description("Setup prompt and platform utilities");
|
|
7
|
+
openclaw
|
|
8
|
+
.command("setup-prompt")
|
|
9
|
+
.description("Get your personalised setup prompt for AI assistants")
|
|
10
|
+
.option("--raw", "Output only the prompt text (no wrapper)")
|
|
11
|
+
.action(async (opts) => {
|
|
12
|
+
const { data } = await (0, apiClient_1.api)("GET", "/setup-prompt");
|
|
13
|
+
if (opts.raw) {
|
|
14
|
+
console.log(data.prompt);
|
|
15
|
+
}
|
|
16
|
+
else {
|
|
17
|
+
console.log(`Agent: ${data.agentName}`);
|
|
18
|
+
console.log(`Website: ${data.websiteUrl}`);
|
|
19
|
+
console.log(`Key prefix: ${data.keyPrefix}`);
|
|
20
|
+
console.log(`\n${"=".repeat(60)}\n`);
|
|
21
|
+
console.log(data.prompt);
|
|
22
|
+
}
|
|
23
|
+
});
|
|
24
|
+
openclaw
|
|
25
|
+
.command("users")
|
|
26
|
+
.description("List CRM users (admin key required)")
|
|
27
|
+
.option("--stage <stage>", "Filter by lifecycle stage")
|
|
28
|
+
.option("--limit <n>", "Max results", "50")
|
|
29
|
+
.option("--json", "Output as JSON")
|
|
30
|
+
.action(async (opts) => {
|
|
31
|
+
let endpoint = `/users?limit=${opts.limit}`;
|
|
32
|
+
if (opts.stage)
|
|
33
|
+
endpoint += `&stage=${opts.stage}`;
|
|
34
|
+
const { data } = await (0, apiClient_1.api)("GET", endpoint);
|
|
35
|
+
if (opts.json) {
|
|
36
|
+
(0, apiClient_1.printJson)(data.users);
|
|
37
|
+
}
|
|
38
|
+
else {
|
|
39
|
+
console.log(`Users: ${data.count}`);
|
|
40
|
+
for (const u of data.users) {
|
|
41
|
+
console.log(` ${u.id} | ${u.email || "-"} | ${u.stage || "-"}`);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
openclaw
|
|
46
|
+
.command("report")
|
|
47
|
+
.description("Get daily CRM report (admin key required)")
|
|
48
|
+
.option("--date <YYYY-MM-DD>", "Specific date")
|
|
49
|
+
.option("--range <days>", "Number of days")
|
|
50
|
+
.action(async (opts) => {
|
|
51
|
+
let endpoint = "/report/daily";
|
|
52
|
+
const params = [];
|
|
53
|
+
if (opts.date)
|
|
54
|
+
params.push(`date=${opts.date}`);
|
|
55
|
+
if (opts.range)
|
|
56
|
+
params.push(`range=${opts.range}`);
|
|
57
|
+
if (params.length)
|
|
58
|
+
endpoint += `?${params.join("&")}`;
|
|
59
|
+
const { data } = await (0, apiClient_1.api)("GET", endpoint);
|
|
60
|
+
(0, apiClient_1.printJson)(data);
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
//# sourceMappingURL=openclaw.js.map
|
|
@@ -0,0 +1 @@
|
|
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I,CAAC,KAAK,EAAE,CAAC,CAAC;QACnD,IAAI,MAAM,CAAC,MAAM;YAAE,QAAQ,IAAI,IAAI,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC;QAEtD,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,eAAG,EAAC,KAAK,EAAE,QAAQ,CAAC,CAAC;QAC5C,IAAA,qBAAS,EAAC,IAAI,CAAC,CAAC;IAClB,CAAC,CAAC,CAAC;AACP,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skins.d.ts","sourceRoot":"","sources":["../../src/commands/skins.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CA0H5D"}
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
+
var ownKeys = function(o) {
|
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
+
var ar = [];
|
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
+
return ar;
|
|
24
|
+
};
|
|
25
|
+
return ownKeys(o);
|
|
26
|
+
};
|
|
27
|
+
return function (mod) {
|
|
28
|
+
if (mod && mod.__esModule) return mod;
|
|
29
|
+
var result = {};
|
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
+
__setModuleDefault(result, mod);
|
|
32
|
+
return result;
|
|
33
|
+
};
|
|
34
|
+
})();
|
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
+
exports.registerSkinsCommands = registerSkinsCommands;
|
|
37
|
+
const apiClient_1 = require("../apiClient");
|
|
38
|
+
const fs = __importStar(require("fs"));
|
|
39
|
+
const path = __importStar(require("path"));
|
|
40
|
+
function registerSkinsCommands(program) {
|
|
41
|
+
const skins = program.command("skins").description("Manage your agent website skin");
|
|
42
|
+
skins
|
|
43
|
+
.command("get")
|
|
44
|
+
.description("View your current skin settings")
|
|
45
|
+
.option("--json", "Output as JSON")
|
|
46
|
+
.action(async (opts) => {
|
|
47
|
+
const { data } = await (0, apiClient_1.api)("GET", "/skins");
|
|
48
|
+
if (opts.json) {
|
|
49
|
+
(0, apiClient_1.printJson)(data.skin);
|
|
50
|
+
}
|
|
51
|
+
else if (data.skin) {
|
|
52
|
+
console.log(`Theme: ${data.skin.themeName || "(default)"}`);
|
|
53
|
+
console.log(`Background: ${data.skin.backgroundColor || "(none)"}`);
|
|
54
|
+
console.log(`Image: ${data.skin.backgroundImage || "(none)"}`);
|
|
55
|
+
console.log(`Video: ${data.skin.videoUrl || "(none)"}`);
|
|
56
|
+
}
|
|
57
|
+
else {
|
|
58
|
+
console.log("No skin configured yet.");
|
|
59
|
+
}
|
|
60
|
+
});
|
|
61
|
+
skins
|
|
62
|
+
.command("update")
|
|
63
|
+
.description("Update skin settings")
|
|
64
|
+
.option("--theme <name>", "Theme name")
|
|
65
|
+
.option("--bg-color <color>", "Background colour (hex)")
|
|
66
|
+
.option("--bg-image <url>", "Background image URL")
|
|
67
|
+
.option("--bg-image-desktop <url>", "Desktop background image URL")
|
|
68
|
+
.option("--video <url>", "Background video URL")
|
|
69
|
+
.option("--font-color <color>", "Font colour")
|
|
70
|
+
.option("--button-color <color>", "Button colour")
|
|
71
|
+
.option("--button-font-color <color>", "Button font colour")
|
|
72
|
+
.option("--hover-color <color>", "On-hover colour")
|
|
73
|
+
.option("--font-family <font>", "Font family")
|
|
74
|
+
.option("--chat-bubble-color <color>", "Agent chat bubble colour")
|
|
75
|
+
.option("--user-bubble-color <color>", "User chat bubble colour")
|
|
76
|
+
.option("--chat-bubble-font <color>", "Agent chat bubble font colour")
|
|
77
|
+
.option("--user-bubble-font <color>", "User chat bubble font colour")
|
|
78
|
+
.option("--button-border <color>", "Button border colour")
|
|
79
|
+
.option("--button-bg <color>", "Button background colour")
|
|
80
|
+
.action(async (opts) => {
|
|
81
|
+
const body = {};
|
|
82
|
+
if (opts.theme)
|
|
83
|
+
body.themeName = opts.theme;
|
|
84
|
+
if (opts.bgColor)
|
|
85
|
+
body.backgroundColor = opts.bgColor;
|
|
86
|
+
if (opts.bgImage)
|
|
87
|
+
body.backgroundImage = opts.bgImage;
|
|
88
|
+
if (opts.bgImageDesktop)
|
|
89
|
+
body.backgroundImageDesktop = opts.bgImageDesktop;
|
|
90
|
+
if (opts.video)
|
|
91
|
+
body.videoUrl = opts.video;
|
|
92
|
+
if (opts.fontColor)
|
|
93
|
+
body.fontColor = opts.fontColor;
|
|
94
|
+
if (opts.buttonColor)
|
|
95
|
+
body.buttonColor = opts.buttonColor;
|
|
96
|
+
if (opts.buttonFontColor)
|
|
97
|
+
body.buttonFontColor = opts.buttonFontColor;
|
|
98
|
+
if (opts.hoverColor)
|
|
99
|
+
body.onHoverColor = opts.hoverColor;
|
|
100
|
+
if (opts.fontFamily)
|
|
101
|
+
body.fontFmaily = opts.fontFamily; // matches frontend typo
|
|
102
|
+
if (opts.chatBubbleColor)
|
|
103
|
+
body.chatBubbleColor = opts.chatBubbleColor;
|
|
104
|
+
if (opts.userBubbleColor)
|
|
105
|
+
body.userChatBubbleColor = opts.userBubbleColor;
|
|
106
|
+
if (opts.chatBubbleFont)
|
|
107
|
+
body.chatBubbleFontColor = opts.chatBubbleFont;
|
|
108
|
+
if (opts.userBubbleFont)
|
|
109
|
+
body.userChatBubbleFontColor = opts.userBubbleFont;
|
|
110
|
+
if (opts.buttonBorder)
|
|
111
|
+
body.buttonBorderColor = opts.buttonBorder;
|
|
112
|
+
if (opts.buttonBg)
|
|
113
|
+
body.buttonBackgroundColor = opts.buttonBg;
|
|
114
|
+
if (Object.keys(body).length === 0) {
|
|
115
|
+
console.error("Provide at least one option to update.");
|
|
116
|
+
return;
|
|
117
|
+
}
|
|
118
|
+
await (0, apiClient_1.api)("PUT", "/skins", body);
|
|
119
|
+
console.log("Skin updated.");
|
|
120
|
+
});
|
|
121
|
+
skins
|
|
122
|
+
.command("upload-bg <filePath>")
|
|
123
|
+
.description("Upload a background image for your skin")
|
|
124
|
+
.option("--target <target>", "Which background to set: 'both' or 'desktop'", "both")
|
|
125
|
+
.action(async (filePath, opts) => {
|
|
126
|
+
const resolved = path.resolve(filePath);
|
|
127
|
+
if (!fs.existsSync(resolved)) {
|
|
128
|
+
console.error(`File not found: ${resolved}`);
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
const ext = path.extname(resolved).toLowerCase();
|
|
132
|
+
const mimeMap = {
|
|
133
|
+
".jpg": "image/jpeg", ".jpeg": "image/jpeg",
|
|
134
|
+
".png": "image/png", ".gif": "image/gif",
|
|
135
|
+
".webp": "image/webp",
|
|
136
|
+
};
|
|
137
|
+
if (!mimeMap[ext]) {
|
|
138
|
+
console.error(`Unsupported image format: ${ext}. Use jpg, png, gif, or webp.`);
|
|
139
|
+
return;
|
|
140
|
+
}
|
|
141
|
+
const base64Content = fs.readFileSync(resolved).toString("base64");
|
|
142
|
+
const { data } = await (0, apiClient_1.api)("POST", "/skins/upload", {
|
|
143
|
+
base64Content,
|
|
144
|
+
fileName: path.basename(resolved),
|
|
145
|
+
contentType: mimeMap[ext],
|
|
146
|
+
target: opts.target === "desktop" ? "desktop" : undefined,
|
|
147
|
+
});
|
|
148
|
+
console.log(`Background uploaded: ${data.imageUrl}`);
|
|
149
|
+
console.log(`Updated fields: ${data.updatedFields?.join(", ")}`);
|
|
150
|
+
});
|
|
151
|
+
skins
|
|
152
|
+
.command("presets")
|
|
153
|
+
.description("Browse clonable skin presets")
|
|
154
|
+
.option("--json", "Output as JSON")
|
|
155
|
+
.action(async (opts) => {
|
|
156
|
+
const { data } = await (0, apiClient_1.api)("GET", "/skins/presets");
|
|
157
|
+
if (opts.json) {
|
|
158
|
+
(0, apiClient_1.printJson)(data.presets);
|
|
159
|
+
}
|
|
160
|
+
else {
|
|
161
|
+
(0, apiClient_1.printTable)(data.presets.map((p) => ({
|
|
162
|
+
id: p.id,
|
|
163
|
+
theme: p.themeName || "(unnamed)",
|
|
164
|
+
bg: p.backgroundColor || "-",
|
|
165
|
+
})), ["id", "theme", "bg"]);
|
|
166
|
+
}
|
|
167
|
+
});
|
|
168
|
+
}
|
|
169
|
+
//# sourceMappingURL=skins.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skins.js","sourceRoot":"","sources":["../../src/commands/skins.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,sDA0HC;AA9HD,4CAA0D;AAC1D,uCAAyB;AACzB,2CAA6B;AAE7B,SAAgB,qBAAqB,CAAC,OAAgB;IACpD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,WAAW,CAAC,gCAAgC,CAAC,CAAC;IAErF,KAAK;SACF,OAAO,CAAC,KAAK,CAAC;SACd,WA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ClB,WAAW,CAAC,8BAA8B,CAAC;SAC3C,MAAM,CAAC,QAAQ,EAAE,gBAAgB,CAAC;SAClC,MAAM,CAAC,KAAK,EAAE,IAAwB,EAAE,EAAE;QACzC,MAAM,EAAE,IAAI,EAAE,GAAG,MAAM,IAAA,eAAG,EAAC,KAAK,EAAE,gBAAgB,CAAC,CAAC;QACpD,IAAI,IAAI,CAAC,IAAI,EAAE,CAAC;YACd,IAAA,qBAAS,EAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC1B,CAAC;aAAM,CAAC;YACN,IAAA,sBAAU,EACR,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAM,EAAE,EAAE,CAAC,CAAC;gBAC5B,EAAE,EAAE,CAAC,CAAC,EAAE;gBACR,KAAK,EAAE,CAAC,CAAC,SAAS,IAAI,WAAW;gBACjC,EAAE,EAAE,CAAC,CAAC,eAAe,IAAI,GAAG;aAC7B,CAAC,CAAC,EACH,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CACtB,CAAC;QACJ,CAAC;IACH,CAAC,CAAC,CAAC;AACP,CAAC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
const commander_1 = require("commander");
|
|
5
|
+
const auth_1 = require("./commands/auth");
|
|
6
|
+
const links_1 = require("./commands/links");
|
|
7
|
+
const config_1 = require("./commands/config");
|
|
8
|
+
const agents_1 = require("./commands/agents");
|
|
9
|
+
const chats_1 = require("./commands/chats");
|
|
10
|
+
const files_1 = require("./commands/files");
|
|
11
|
+
const skins_1 = require("./commands/skins");
|
|
12
|
+
const exportImport_1 = require("./commands/exportImport");
|
|
13
|
+
const openclaw_1 = require("./commands/openclaw");
|
|
14
|
+
const models_1 = require("./commands/models");
|
|
15
|
+
const program = new commander_1.Command();
|
|
16
|
+
program
|
|
17
|
+
.name("3ns")
|
|
18
|
+
.description("Control your 3NS agent domain from the command line")
|
|
19
|
+
.version("1.0.0");
|
|
20
|
+
(0, auth_1.registerAuthCommands)(program);
|
|
21
|
+
(0, links_1.registerLinksCommands)(program);
|
|
22
|
+
(0, config_1.registerConfigCommands)(program);
|
|
23
|
+
(0, agents_1.registerAgentsCommands)(program);
|
|
24
|
+
(0, chats_1.registerChatsCommands)(program);
|
|
25
|
+
(0, files_1.registerFilesCommands)(program);
|
|
26
|
+
(0, skins_1.registerSkinsCommands)(program);
|
|
27
|
+
(0, exportImport_1.registerExportImportCommands)(program);
|
|
28
|
+
(0, openclaw_1.registerOpenclawCommands)(program);
|
|
29
|
+
(0, models_1.registerModelsCommands)(program);
|
|
30
|
+
program.parse();
|
|
31
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAEA,yCAAoC;AACpC,0CAAuD;AACvD,4CAAyD;AACzD,8CAA2D;AAC3D,8CAA2D;AAC3D,4CAAyD;AACzD,4CAAyD;AACzD,4CAAyD;AACzD,0DAAuE;AACvE,kDAA+D;AAC/D,8CAA2D;AAE3D,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,KAAK,CAAC;KACX,WAAW,CAAC,qDAAqD,CAAC;KAClE,OAAO,CAAC,OAAO,CAAC,CAAC;AAEpB,IAAA,2BAAoB,EAAC,OAAO,CAAC,CAAC;AAC9B,IAAA,6BAAqB,EAAC,OAAO,CAAC,CAAC;AAC/B,IAAA,+BAAsB,EAAC,OAAO,CAAC,CAAC;AAChC,IAAA,+BAAsB,EAAC,OAAO,CAAC,CAAC;AAChC,IAAA,6BAAqB,EAAC,OAAO,CAAC,CAAC;AAC/B,IAAA,6BAAqB,EAAC,OAAO,CAAC,CAAC;AAC/B,IAAA,6BAAqB,EAAC,OAAO,CAAC,CAAC;AAC/B,IAAA,2CAA4B,EAAC,OAAO,CAAC,CAAC;AACtC,IAAA,mCAAwB,EAAC,OAAO,CAAC,CAAC;AAClC,IAAA,+BAAsB,EAAC,OAAO,CAAC,CAAC;AAEhC,OAAO,CAAC,KAAK,EAAE,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@3ns/cli",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "Control your 3NS agent domain from the command line",
|
|
5
|
+
"main": "dist/index.js",
|
|
6
|
+
"bin": {
|
|
7
|
+
"3ns": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"build": "tsc",
|
|
11
|
+
"dev": "tsc --watch",
|
|
12
|
+
"start": "node dist/index.js",
|
|
13
|
+
"prepublishOnly": "npm run build"
|
|
14
|
+
},
|
|
15
|
+
"keywords": [
|
|
16
|
+
"3ns",
|
|
17
|
+
"agent",
|
|
18
|
+
"domain",
|
|
19
|
+
"cli",
|
|
20
|
+
"openclaw",
|
|
21
|
+
"a2a",
|
|
22
|
+
"lobehub"
|
|
23
|
+
],
|
|
24
|
+
"author": "3NS Domains <hello@3ns.domains>",
|
|
25
|
+
"license": "MIT",
|
|
26
|
+
"repository": {
|
|
27
|
+
"type": "git",
|
|
28
|
+
"url": "https://github.com/AshleyTuring/3ns-cli.git"
|
|
29
|
+
},
|
|
30
|
+
"homepage": "https://3ns.domains",
|
|
31
|
+
"engines": {
|
|
32
|
+
"node": ">=18"
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"dist",
|
|
36
|
+
"SKILL.md",
|
|
37
|
+
"README.md"
|
|
38
|
+
],
|
|
39
|
+
"dependencies": {
|
|
40
|
+
"commander": "^13.1.0",
|
|
41
|
+
"node-fetch": "^3.3.2"
|
|
42
|
+
},
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^22.0.0",
|
|
45
|
+
"typescript": "^5.7.0"
|
|
46
|
+
}
|
|
47
|
+
}
|