@basilica/openclaw 0.6.4 → 0.7.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/hooks/prompt-context.d.ts.map +1 -1
- package/dist/hooks/prompt-context.js +14 -7
- package/dist/hooks/prompt-context.js.map +1 -1
- package/dist/tools/deposits.d.ts +3 -0
- package/dist/tools/deposits.d.ts.map +1 -0
- package/dist/tools/deposits.js +40 -0
- package/dist/tools/deposits.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +4 -0
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/subnet-mining.d.ts +3 -0
- package/dist/tools/subnet-mining.d.ts.map +1 -0
- package/dist/tools/subnet-mining.js +92 -0
- package/dist/tools/subnet-mining.js.map +1 -0
- package/package.json +2 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-context.d.ts","sourceRoot":"","sources":["../../src/hooks/prompt-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAuC,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"prompt-context.d.ts","sourceRoot":"","sources":["../../src/hooks/prompt-context.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAuC,MAAM,uBAAuB,CAAC;AA0FpG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAMpG"}
|
|
@@ -32,19 +32,26 @@ basilica_create_deployment({ image: "ghcr.io/org/miner:latest", port: 8091 })
|
|
|
32
32
|
|
|
33
33
|
### How to Mine on a Bittensor Subnet
|
|
34
34
|
|
|
35
|
-
When the user
|
|
35
|
+
When the user says "mine on subnet X" or "start mining subnet X", execute this workflow immediately:
|
|
36
36
|
|
|
37
|
-
1. **
|
|
37
|
+
1. **Get mining config**: Call \`subnet_mining_config\` with the netuid. If it returns a config, you have everything: docker image, GPU requirements, ports, command.
|
|
38
38
|
|
|
39
|
-
2. **
|
|
39
|
+
2. **If not in registry**: Call \`taostats_subnets_identity\` to get the GitHub URL, then \`github_fetch_readme\` to read the mining instructions. Look for Docker images, hardware requirements, and setup steps. Also try \`github_fetch_file\` for docker-compose.yml or Dockerfile.
|
|
40
40
|
|
|
41
|
-
3. **Check
|
|
41
|
+
3. **Check balance**: \`btcli_run\` ["wallet", "balance", "--all"]. You need TAO for registration.
|
|
42
42
|
|
|
43
|
-
4. **Check
|
|
43
|
+
4. **Check registration cost**: \`btcli_run\` ["subnet", "list"] to see current cost, or \`taostats_subnets_registration_cost\` with the netuid.
|
|
44
44
|
|
|
45
|
-
5. **
|
|
45
|
+
5. **Register**: \`btcli_run\` ["subnet", "register", "--netuid", "<N>", "--wallet.name", "agent", "--wallet.hotkey", "default"]. Poll with \`btcli_poll\`.
|
|
46
46
|
|
|
47
|
-
6. **
|
|
47
|
+
6. **Deploy the miner**: Use the config from step 1:
|
|
48
|
+
- GPU miners: \`basilica_start_rental\` with the right GPU category and container image
|
|
49
|
+
- Serverless/CPU miners: \`basilica_create_deployment\` with the docker image and ports
|
|
50
|
+
- Python-only miners: \`basilica_deploy\` with the source code
|
|
51
|
+
|
|
52
|
+
7. **Monitor**: \`basilica_deployment_logs\` or \`basilica_get_deployment\` for health. \`taostats_metagraph_latest\` with the netuid to verify your UID is active and earning incentive.
|
|
53
|
+
|
|
54
|
+
Use \`subnet_mining_list\` to see all subnets with pre-built configs. The registry covers the most popular subnets.
|
|
48
55
|
|
|
49
56
|
### How to Deploy Sub-Agents or Services
|
|
50
57
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-context.js","sourceRoot":"","sources":["../../src/hooks/prompt-context.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAG
|
|
1
|
+
{"version":3,"file":"prompt-context.js","sourceRoot":"","sources":["../../src/hooks/prompt-context.ts"],"names":[],"mappings":"AAEA,MAAM,gBAAgB,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsFxB,CAAC,IAAI,EAAE,CAAC;AAET,MAAM,UAAU,qBAAqB,CAAC,GAAsB,EAAE,OAAgC;IAC5F,GAAG,CAAC,EAAE,CAAC,qBAAqB,EAAE,CAAC,MAAwB,EAAqB,EAAE;QAC5E,OAAO;YACL,oBAAoB,EAAE,gBAAgB;SACvC,CAAC;IACJ,CAAC,EAAE,EAAE,QAAQ,EAAE,EAAE,EAAE,CAAC,CAAC;AACvB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.d.ts","sourceRoot":"","sources":["../../src/tools/deposits.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAG/D,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAgCjE"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { resolveBasilicaClient, formatToolError } from "./context.js";
|
|
2
|
+
export function registerDepositTools(api) {
|
|
3
|
+
api.registerTool((ctx) => ({
|
|
4
|
+
name: "basilica_get_deposit_address",
|
|
5
|
+
label: "Get Deposit Address",
|
|
6
|
+
description: "Get the blockchain deposit address to fund this agent's Basilica account. Auto-creates the account if it doesn't exist.",
|
|
7
|
+
parameters: { type: "object", properties: {} },
|
|
8
|
+
async execute() {
|
|
9
|
+
try {
|
|
10
|
+
const client = resolveBasilicaClient(ctx);
|
|
11
|
+
const result = await client.billing.getDepositAccount();
|
|
12
|
+
if (!result.exists) {
|
|
13
|
+
const created = await client.billing.createDepositAccount();
|
|
14
|
+
return { content: JSON.stringify(created, null, 2) };
|
|
15
|
+
}
|
|
16
|
+
return { content: JSON.stringify(result, null, 2) };
|
|
17
|
+
}
|
|
18
|
+
catch (err) {
|
|
19
|
+
return formatToolError(err);
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
}));
|
|
23
|
+
api.registerTool((ctx) => ({
|
|
24
|
+
name: "basilica_list_deposits",
|
|
25
|
+
label: "List Deposits",
|
|
26
|
+
description: "List blockchain deposits and their status (pending, finalized, credited).",
|
|
27
|
+
parameters: { type: "object", properties: { limit: { type: "number" }, offset: { type: "number" } } },
|
|
28
|
+
async execute(_id, params) {
|
|
29
|
+
try {
|
|
30
|
+
const client = resolveBasilicaClient(ctx);
|
|
31
|
+
const result = await client.billing.listDeposits(params.limit, params.offset);
|
|
32
|
+
return { content: JSON.stringify(result, null, 2) };
|
|
33
|
+
}
|
|
34
|
+
catch (err) {
|
|
35
|
+
return formatToolError(err);
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
}));
|
|
39
|
+
}
|
|
40
|
+
//# sourceMappingURL=deposits.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deposits.js","sourceRoot":"","sources":["../../src/tools/deposits.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,qBAAqB,EAAE,eAAe,EAAE,MAAM,cAAc,CAAC;AAEtE,MAAM,UAAU,oBAAoB,CAAC,GAAsB;IACzD,GAAG,CAAC,YAAY,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QACzB,IAAI,EAAE,8BAA8B;QACpC,KAAK,EAAE,qBAAqB;QAC5B,WAAW,EAAE,yHAAyH;QACtI,UAAU,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE;QAC9C,KAAK,CAAC,OAAO;YACX,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,qBAAqB,CAAC,GAAG,CAAC,CAAC;gBAC1C,MAAM,MAAM,GAAG,MAAM,MAAM,CAAC,OAAO,CAAC,iBAAiB,EAAE,CAAC;gBACxD,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;oBACnB,MAAM,O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|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAiB/D,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAgBlE"}
|
package/dist/tools/index.js
CHANGED
|
@@ -11,6 +11,8 @@ import { registerNuminousTools } from "./numinous.js";
|
|
|
11
11
|
import { registerSynthDataTools } from "./synthdata.js";
|
|
12
12
|
import { registerBtcliTools } from "./btcli.js";
|
|
13
13
|
import { registerEvmTools } from "./evm.js";
|
|
14
|
+
import { registerSubnetMiningTools } from "./subnet-mining.js";
|
|
15
|
+
import { registerDepositTools } from "./deposits.js";
|
|
14
16
|
export function registerBasilicaTools(api) {
|
|
15
17
|
registerRentalTools(api);
|
|
16
18
|
registerDeploymentTools(api);
|
|
@@ -25,5 +27,7 @@ export function registerBasilicaTools(api) {
|
|
|
25
27
|
registerSynthDataTools(api);
|
|
26
28
|
registerBtcliTools(api);
|
|
27
29
|
registerEvmTools(api);
|
|
30
|
+
registerSubnetMiningTools(api);
|
|
31
|
+
registerDepositTools(api);
|
|
28
32
|
}
|
|
29
33
|
//# sourceMappingURL=index.js.map
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,E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UAAU,CAAC;AAC5C,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAC/D,OAAO,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAErD,MAAM,UAAU,qBAAqB,CAAC,GAAsB;IAC1D,mBAAmB,CAAC,GAAG,CAAC,CAAC;IACzB,uBAAuB,CAAC,GAAG,CAAC,CAAC;IAC7B,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACxB,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtB,wBAAwB,CAAC,GAAG,CAAC,CAAC;IAC9B,oBAAoB,CAAC,GAAG,CAAC,CAAC;IAC1B,iBAAiB,CAAC,GAAG,CAAC,CAAC;IACvB,qBAAqB,CAAC,GAAG,CAAC,CAAC;IAC3B,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtB,qBAAqB,CAAC,GAAG,CAAC,CAAC;IAC3B,sBAAsB,CAAC,GAAG,CAAC,CAAC;IAC5B,kBAAkB,CAAC,GAAG,CAAC,CAAC;IACxB,gBAAgB,CAAC,GAAG,CAAC,CAAC;IACtB,yBAAyB,CAAC,GAAG,CAAC,CAAC;IAC/B,oBAAoB,CAAC,GAAG,CAAC,CAAC;AAC5B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subnet-mining.d.ts","sourceRoot":"","sources":["../../src/tools/subnet-mining.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAK/D,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CA0FtE"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import { SubnetRegistry, fetchGithubReadme, fetchGithubFile } from "@basilica/sdk";
|
|
2
|
+
const registry = new SubnetRegistry();
|
|
3
|
+
export function registerSubnetMiningTools(api) {
|
|
4
|
+
api.registerTool((_ctx) => ({
|
|
5
|
+
name: "subnet_mining_config",
|
|
6
|
+
label: "Subnet Mining Config",
|
|
7
|
+
description: "Get the pre-built mining configuration for a Bittensor subnet: docker image, GPU requirements, ports, command template. " +
|
|
8
|
+
"If the subnet is in the registry, returns everything needed to deploy a miner. " +
|
|
9
|
+
"If not, returns the GitHub URL so you can fetch the README with github_fetch_readme.",
|
|
10
|
+
parameters: {
|
|
11
|
+
type: "object",
|
|
12
|
+
properties: {
|
|
13
|
+
netuid: { type: "number", description: "Subnet network UID" },
|
|
14
|
+
},
|
|
15
|
+
required: ["netuid"],
|
|
16
|
+
},
|
|
17
|
+
async execute(_id, params) {
|
|
18
|
+
const netuid = params.netuid;
|
|
19
|
+
const config = registry.get(netuid);
|
|
20
|
+
if (config) {
|
|
21
|
+
return { content: JSON.stringify(config, null, 2) };
|
|
22
|
+
}
|
|
23
|
+
return {
|
|
24
|
+
content: JSON.stringify({
|
|
25
|
+
netuid,
|
|
26
|
+
found: false,
|
|
27
|
+
message: `Subnet ${netuid} not in the mining registry. Use taostats_subnets_identity to find its GitHub repo, then github_fetch_readme to read the mining instructions.`,
|
|
28
|
+
}, null, 2),
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
}));
|
|
32
|
+
api.registerTool((_ctx) => ({
|
|
33
|
+
name: "subnet_mining_list",
|
|
34
|
+
label: "List Mining Configs",
|
|
35
|
+
description: "List all subnets with pre-built mining configurations in the registry.",
|
|
36
|
+
parameters: { type: "object", properties: {} },
|
|
37
|
+
async execute() {
|
|
38
|
+
const all = registry.list().map((s) => ({
|
|
39
|
+
netuid: s.netuid,
|
|
40
|
+
name: s.name,
|
|
41
|
+
github: s.github,
|
|
42
|
+
gpu: s.miner.gpu?.category ?? "CPU-only",
|
|
43
|
+
image: s.miner.image,
|
|
44
|
+
}));
|
|
45
|
+
return { content: JSON.stringify(all, null, 2) };
|
|
46
|
+
},
|
|
47
|
+
}));
|
|
48
|
+
api.registerTool((_ctx) => ({
|
|
49
|
+
name: "github_fetch_readme",
|
|
50
|
+
label: "Fetch GitHub README",
|
|
51
|
+
description: "Fetch the README.md from a GitHub repository. Use when a subnet isn't in the mining registry and you need to read the mining instructions.",
|
|
52
|
+
parameters: {
|
|
53
|
+
type: "object",
|
|
54
|
+
properties: {
|
|
55
|
+
repo_url: { type: "string", description: "GitHub repo URL (e.g. https://github.com/owner/repo)" },
|
|
56
|
+
},
|
|
57
|
+
required: ["repo_url"],
|
|
58
|
+
},
|
|
59
|
+
async execute(_id, params) {
|
|
60
|
+
try {
|
|
61
|
+
const content = await fetchGithubReadme(params.repo_url);
|
|
62
|
+
return { content };
|
|
63
|
+
}
|
|
64
|
+
catch (err) {
|
|
65
|
+
return { content: `Failed to fetch README: ${err instanceof Error ? err.message : String(err)}`, metadata: { error: true } };
|
|
66
|
+
}
|
|
67
|
+
},
|
|
68
|
+
}));
|
|
69
|
+
api.registerTool((_ctx) => ({
|
|
70
|
+
name: "github_fetch_file",
|
|
71
|
+
label: "Fetch GitHub File",
|
|
72
|
+
description: "Fetch any file from a GitHub repository (e.g. docker-compose.yml, Dockerfile, requirements.txt, setup instructions).",
|
|
73
|
+
parameters: {
|
|
74
|
+
type: "object",
|
|
75
|
+
properties: {
|
|
76
|
+
repo_url: { type: "string", description: "GitHub repo URL" },
|
|
77
|
+
path: { type: "string", description: "File path within repo (e.g. 'docker-compose.yml', 'docs/mining.md')" },
|
|
78
|
+
},
|
|
79
|
+
required: ["repo_url", "path"],
|
|
80
|
+
},
|
|
81
|
+
async execute(_id, params) {
|
|
82
|
+
try {
|
|
83
|
+
const content = await fetchGithubFile(params.repo_url, params.path);
|
|
84
|
+
return { content };
|
|
85
|
+
}
|
|
86
|
+
catch (err) {
|
|
87
|
+
return { content: `Failed to fetch file: ${err instanceof Error ? err.message : String(err)}`, metadata: { error: true } };
|
|
88
|
+
}
|
|
89
|
+
},
|
|
90
|
+
}));
|
|
91
|
+
}
|
|
92
|
+
//# sourceMappingURL=subnet-mining.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"subnet-mining.js","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|
+
"version": "0.7.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Basilica platform tools, hooks, skills, and gateway integration for OpenClaw",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"clean": "rm -rf dist"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@basilica/sdk": "^0.
|
|
31
|
+
"@basilica/sdk": "^0.7.1"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^25.5.0",
|