@basilica/openclaw 0.6.1 → 0.6.3
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 +37 -32
- package/dist/hooks/prompt-context.js.map +1 -1
- package/dist/tools/evm.d.ts +3 -0
- package/dist/tools/evm.d.ts.map +1 -0
- package/dist/tools/evm.js +120 -0
- package/dist/tools/evm.js.map +1 -0
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +2 -0
- package/dist/tools/index.js.map +1 -1
- 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;AAqDpG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAMpG"}
|
|
@@ -1,47 +1,52 @@
|
|
|
1
1
|
const BASILICA_CONTEXT = `
|
|
2
|
-
## Basilica
|
|
2
|
+
## You are a Basilica Agent
|
|
3
3
|
|
|
4
|
-
You
|
|
4
|
+
You are running on the Basilica platform. You have your own identity and resources:
|
|
5
5
|
|
|
6
|
-
###
|
|
7
|
-
|
|
6
|
+
### Your Wallets
|
|
7
|
+
- **Bittensor wallet**: You have a TAO wallet named "agent" at /data/.bittensor/wallets/. To check it, call \`btcli_run\` with args ["wallet", "list"]. To see your balance, use ["wallet", "balance", "--all"]. You can stake, transfer, and manage your TAO.
|
|
8
|
+
- **EVM wallet**: You have an Ethereum-compatible wallet. Call \`evm_wallet_info\` to see your address. Use \`evm_cast\` to interact with any EVM chain (check balances, call contracts, send transactions).
|
|
8
9
|
|
|
9
|
-
|
|
10
|
+
When the user asks about "your wallet", "your balance", "your address", or "do you have a wallet" -- the answer is YES. Use the tools to look up the details.
|
|
11
|
+
|
|
12
|
+
### Your Compute Platform
|
|
13
|
+
You can deploy code and rent GPUs on the Basilica cloud:
|
|
14
|
+
|
|
15
|
+
**Quick deploy** (preferred): Use \`basilica_deploy\` to deploy inline Python code as a serverless container. Returns a live HTTPS URL.
|
|
10
16
|
\`\`\`
|
|
11
17
|
basilica_deploy({
|
|
12
18
|
source: "from fastapi import FastAPI\\nimport uvicorn\\n\\napp = FastAPI()\\n\\n@app.get('/')\\ndef root():\\n return {'status': 'running'}\\n\\nuvicorn.run(app, host='0.0.0.0', port=8000)",
|
|
13
19
|
pip_packages: ["fastapi", "uvicorn"]
|
|
14
20
|
})
|
|
15
21
|
\`\`\`
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
23
|
-
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
-
|
|
29
|
-
-
|
|
30
|
-
-
|
|
31
|
-
-
|
|
32
|
-
-
|
|
33
|
-
|
|
34
|
-
### Bittensor Ecosystem Data
|
|
35
|
-
- **Subnet data, metagraph, staking, validators** -> \`taostats_*\` tools (requires TAOSTATS_API_KEY)
|
|
36
|
-
- **TAO price and history** -> \`taostats_tao_price\`, \`taostats_tao_price_history\`, \`taostats_tao_price_ohlc\`
|
|
37
|
-
- **Subnet design knowledge base** -> \`chi_index\` (call first), \`chi_knowledge\`, \`chi_search\`
|
|
38
|
-
- **AI event predictions** -> \`numinous_*\` tools (requires NUMINOUS_API_KEY)
|
|
39
|
-
- **Market forecasting, volatility, options** -> \`synthdata_*\` tools (requires SYNTHDATA_API_KEY)
|
|
22
|
+
|
|
23
|
+
**Tool selection**:
|
|
24
|
+
- Deploy code/API/service -> \`basilica_deploy\`
|
|
25
|
+
- Deploy Docker image -> \`basilica_create_deployment\`
|
|
26
|
+
- Rent GPU server (SSH) -> \`basilica_start_rental\` (auto-falls back to secure cloud)
|
|
27
|
+
- GPU pricing -> \`basilica_list_gpu_prices\`
|
|
28
|
+
- Balance/billing -> \`basilica_get_balance\`, \`basilica_usage_history\`
|
|
29
|
+
- Manage deployments -> \`basilica_get_deployment\`, \`basilica_deployment_logs\`, \`basilica_scale_deployment\`, \`basilica_delete_deployment\`
|
|
30
|
+
|
|
31
|
+
**Key details**: GPU categories: A100, H100, H200, B200, B300. Deployments get a UUID instanceName. \`basilica_deploy\` defaults: python:3.11-slim, port 8000.
|
|
32
|
+
|
|
33
|
+
### Bittensor Ecosystem
|
|
34
|
+
- Subnet data, metagraph, staking -> \`taostats_*\` tools
|
|
35
|
+
- TAO price -> \`taostats_tao_price\`
|
|
36
|
+
- Subnet design knowledge -> \`chi_index\` (call first), \`chi_knowledge\`, \`chi_search\`
|
|
37
|
+
- AI predictions -> \`numinous_*\` tools
|
|
38
|
+
- Market forecasting -> \`synthdata_*\` tools
|
|
40
39
|
|
|
41
40
|
### Bittensor CLI
|
|
42
|
-
-
|
|
43
|
-
-
|
|
44
|
-
-
|
|
41
|
+
- \`btcli_run\` with args array, e.g. ["subnet", "list"], ["stake", "show", "--netuid", "39"]
|
|
42
|
+
- \`btcli_poll\` to get results of long-running commands
|
|
43
|
+
- Your wallet name is "agent", stored at /data/.bittensor/wallets/
|
|
44
|
+
|
|
45
|
+
### EVM / Foundry
|
|
46
|
+
- \`evm_wallet_info\` -- your EVM address
|
|
47
|
+
- \`evm_cast\` -- any cast command: ["balance", "0x..."], ["chain-id", "--rpc-url", "https://eth.llamarpc.com"]
|
|
48
|
+
- \`evm_forge\` -- compile/test Solidity: ["init", "project"], ["build"], ["test"]
|
|
49
|
+
- \`evm_poll\` -- poll async job results
|
|
45
50
|
`.trim();
|
|
46
51
|
export function registerPromptContext(api, _config) {
|
|
47
52
|
api.on("before_prompt_build", (_event) => {
|
|
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiDxB,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":"evm.d.ts","sourceRoot":"","sources":["../../src/tools/evm.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAuD/D,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAkE7D"}
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import { spawn } from "node:child_process";
|
|
2
|
+
import { readFileSync } from "node:fs";
|
|
3
|
+
import { randomUUID } from "node:crypto";
|
|
4
|
+
const EVM_WALLET_DIR = process.env.EVM_WALLET_DIR ?? "/data/.evm";
|
|
5
|
+
const EVM_WALLET_FILE = `${EVM_WALLET_DIR}/agent.json`;
|
|
6
|
+
const TIMEOUT_MS = 120_000;
|
|
7
|
+
const jobs = new Map();
|
|
8
|
+
function runCmd(bin, args) {
|
|
9
|
+
const id = randomUUID();
|
|
10
|
+
const cmdStr = `${bin} ${args.join(" ")}`;
|
|
11
|
+
const job = {
|
|
12
|
+
id, command: cmdStr, status: "running",
|
|
13
|
+
stdout: "", stderr: "", exitCode: null,
|
|
14
|
+
startedAt: new Date().toISOString(), completedAt: null,
|
|
15
|
+
};
|
|
16
|
+
jobs.set(id, job);
|
|
17
|
+
const done = new Promise((resolve) => {
|
|
18
|
+
const proc = spawn(bin, args, {
|
|
19
|
+
env: { ...process.env, FOUNDRY_KEYSTORE_DIR: EVM_WALLET_DIR },
|
|
20
|
+
timeout: TIMEOUT_MS,
|
|
21
|
+
stdio: ["pipe", "pipe", "pipe"],
|
|
22
|
+
});
|
|
23
|
+
proc.stdin.end();
|
|
24
|
+
proc.stdout.on("data", (c) => { job.stdout += c.toString(); });
|
|
25
|
+
proc.stderr.on("data", (c) => { job.stderr += c.toString(); });
|
|
26
|
+
proc.on("close", (code) => { job.exitCode = code; job.status = code === 0 ? "completed" : "failed"; job.completedAt = new Date().toISOString(); resolve(); });
|
|
27
|
+
proc.on("error", (err) => { job.stderr += `\nProcess error: ${err.message}`; job.status = "failed"; job.completedAt = new Date().toISOString(); resolve(); });
|
|
28
|
+
setTimeout(() => { if (job.status === "running") {
|
|
29
|
+
proc.kill("SIGTERM");
|
|
30
|
+
job.status = "timeout";
|
|
31
|
+
job.completedAt = new Date().toISOString();
|
|
32
|
+
resolve();
|
|
33
|
+
} }, TIMEOUT_MS);
|
|
34
|
+
});
|
|
35
|
+
return { job, done };
|
|
36
|
+
}
|
|
37
|
+
function loadWallet() {
|
|
38
|
+
try {
|
|
39
|
+
const data = JSON.parse(readFileSync(EVM_WALLET_FILE, "utf-8"));
|
|
40
|
+
return Array.isArray(data) ? data[0] : data;
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return null;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
export function registerEvmTools(api) {
|
|
47
|
+
api.registerTool((_ctx) => ({
|
|
48
|
+
name: "evm_wallet_info",
|
|
49
|
+
label: "EVM Wallet Info",
|
|
50
|
+
description: "Get the agent's EVM wallet address and keystore path.",
|
|
51
|
+
parameters: { type: "object", properties: {} },
|
|
52
|
+
async execute() {
|
|
53
|
+
const wallet = loadWallet();
|
|
54
|
+
if (!wallet)
|
|
55
|
+
return { content: "No EVM wallet found.", metadata: { error: true } };
|
|
56
|
+
return { content: JSON.stringify({ address: wallet.address, keystore: EVM_WALLET_FILE }, null, 2) };
|
|
57
|
+
},
|
|
58
|
+
}));
|
|
59
|
+
api.registerTool((_ctx) => ({
|
|
60
|
+
name: "evm_cast",
|
|
61
|
+
label: "Run cast",
|
|
62
|
+
description: "Run a Foundry `cast` command. Examples: ['balance', '0x...'], ['call', '0x...', 'balanceOf(address)', '0x...']. Returns job ID for async ops.",
|
|
63
|
+
parameters: {
|
|
64
|
+
type: "object",
|
|
65
|
+
properties: { args: { type: "array", items: { type: "string" }, description: "cast command arguments" } },
|
|
66
|
+
required: ["args"],
|
|
67
|
+
},
|
|
68
|
+
async execute(_id, params) {
|
|
69
|
+
try {
|
|
70
|
+
const { job, done } = runCmd("cast", params.args);
|
|
71
|
+
const race = await Promise.race([done.then(() => "done"), new Promise((r) => setTimeout(() => r("pending"), 5000))]);
|
|
72
|
+
if (race === "done")
|
|
73
|
+
return { content: JSON.stringify({ job_id: job.id, status: job.status, exit_code: job.exitCode, stdout: job.stdout, stderr: job.stderr }, null, 2) };
|
|
74
|
+
return { content: JSON.stringify({ job_id: job.id, status: "running", message: "Use evm_poll to check." }, null, 2) };
|
|
75
|
+
}
|
|
76
|
+
catch (err) {
|
|
77
|
+
return { content: `cast error: ${err instanceof Error ? err.message : String(err)}`, metadata: { error: true } };
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
}));
|
|
81
|
+
api.registerTool((_ctx) => ({
|
|
82
|
+
name: "evm_forge",
|
|
83
|
+
label: "Run forge",
|
|
84
|
+
description: "Run a Foundry `forge` command. Examples: ['init', 'my-project'], ['build'], ['test']. Returns job ID for async ops.",
|
|
85
|
+
parameters: {
|
|
86
|
+
type: "object",
|
|
87
|
+
properties: { args: { type: "array", items: { type: "string" }, description: "forge command arguments" } },
|
|
88
|
+
required: ["args"],
|
|
89
|
+
},
|
|
90
|
+
async execute(_id, params) {
|
|
91
|
+
try {
|
|
92
|
+
const { job, done } = runCmd("forge", params.args);
|
|
93
|
+
const race = await Promise.race([done.then(() => "done"), new Promise((r) => setTimeout(() => r("pending"), 5000))]);
|
|
94
|
+
if (race === "done")
|
|
95
|
+
return { content: JSON.stringify({ job_id: job.id, status: job.status, exit_code: job.exitCode, stdout: job.stdout, stderr: job.stderr }, null, 2) };
|
|
96
|
+
return { content: JSON.stringify({ job_id: job.id, status: "running", message: "Use evm_poll to check." }, null, 2) };
|
|
97
|
+
}
|
|
98
|
+
catch (err) {
|
|
99
|
+
return { content: `forge error: ${err instanceof Error ? err.message : String(err)}`, metadata: { error: true } };
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
}));
|
|
103
|
+
api.registerTool((_ctx) => ({
|
|
104
|
+
name: "evm_poll",
|
|
105
|
+
label: "Poll EVM Job",
|
|
106
|
+
description: "Check status of a running cast/forge command by job ID.",
|
|
107
|
+
parameters: {
|
|
108
|
+
type: "object",
|
|
109
|
+
properties: { job_id: { type: "string", description: "Job ID" } },
|
|
110
|
+
required: ["job_id"],
|
|
111
|
+
},
|
|
112
|
+
async execute(_id, params) {
|
|
113
|
+
const job = jobs.get(params.job_id);
|
|
114
|
+
if (!job)
|
|
115
|
+
return { content: `Job ${params.job_id} not found.`, metadata: { error: true } };
|
|
116
|
+
return { content: JSON.stringify({ job_id: job.id, status: job.status, command: job.command, exit_code: job.exitCode, stdout: job.stdout, stderr: job.stderr }, null, 2) };
|
|
117
|
+
},
|
|
118
|
+
}));
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=evm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ev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,IAAa,EAAE,EAAE,CAAC;YACpG,OAAO,EAAE,OAAO,EAAE,IAAI,CAAC,SAAS,CAAC,EAAE,MAAM,EAAE,GAAG,CAAC,EAAE,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,GAAG,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC;QAC7K,CAAC;KACF,CAAC,CAAC,CAAC;AACN,CAAC"}
|
|
@@ -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;AAe/D,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,iBAAiB,GAAG,IAAI,CAclE"}
|
package/dist/tools/index.js
CHANGED
|
@@ -10,6 +10,7 @@ import { registerChiTools } from "./chi.js";
|
|
|
10
10
|
import { registerNuminousTools } from "./numinous.js";
|
|
11
11
|
import { registerSynthDataTools } from "./synthdata.js";
|
|
12
12
|
import { registerBtcliTools } from "./btcli.js";
|
|
13
|
+
import { registerEvmTools } from "./evm.js";
|
|
13
14
|
export function registerBasilicaTools(api) {
|
|
14
15
|
registerRentalTools(api);
|
|
15
16
|
registerDeploymentTools(api);
|
|
@@ -23,5 +24,6 @@ export function registerBasilicaTools(api) {
|
|
|
23
24
|
registerNuminousTools(api);
|
|
24
25
|
registerSynthDataTools(api);
|
|
25
26
|
registerBtcliTools(api);
|
|
27
|
+
registerEvmTools(api);
|
|
26
28
|
}
|
|
27
29
|
//# 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,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
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,EAAE,wBAAwB,EAAE,MAAM,mBAAmB,CAAC;AAC7D,OAAO,EAAE,oBAAoB,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,iBAAiB,EAAE,MAAM,WAAW,CAAC;AAC9C,OAAO,EAAE,kBAAkB,EAAE,MAAM,aAAa,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAC5C,OAAO,EAAE,qBAAqB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,MAAM,gBAAgB,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAE5C,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;AACxB,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basilica/openclaw",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.3",
|
|
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.6.
|
|
31
|
+
"@basilica/sdk": "^0.6.3"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^25.5.0",
|