@basilica/openclaw 0.6.2 → 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.
@@ -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;AAuDpG,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,iBAAiB,EAAE,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,IAAI,CAMpG"}
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,54 +1,52 @@
1
1
  const BASILICA_CONTEXT = `
2
- ## Basilica Cloud Platform
2
+ ## You are a Basilica Agent
3
3
 
4
- You have access to the Basilica GPU cloud platform. Use it whenever the user asks to deploy code, run a service, rent GPUs, or perform any compute-intensive task.
4
+ You are running on the Basilica platform. You have your own identity and resources:
5
5
 
6
- ### Quick deploy (preferred approach)
7
- Use \`basilica_deploy\` to deploy inline Python code. It packages the code, deploys it as a serverless container, and returns a live HTTPS URL.
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
- Example -- deploy a FastAPI service:
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
- Returns: { instanceName: "<uuid>", url: "https://<uuid>.deployments.basilica.ai" }
17
-
18
- ### When to use which tool
19
- - **Deploy code/API/service** -> \`basilica_deploy\` (inline Python, auto-packages, returns URL)
20
- - **Deploy pre-built Docker image** -> \`basilica_create_deployment\` (image, port, optional GPU)
21
- - **Rent bare-metal GPU server** -> \`basilica_start_rental\` (SSH access, auto-falls back to secure cloud)
22
- - **Check GPU pricing** -> \`basilica_list_gpu_prices\`
23
- - **Check balance/billing** -> \`basilica_get_balance\`, \`basilica_usage_history\`
24
- - **Manage existing** -> \`basilica_get_deployment\`, \`basilica_deployment_logs\`, \`basilica_scale_deployment\`, \`basilica_delete_deployment\`
25
-
26
- ### Key details
27
- - GPU categories: A100, H100, H200, B200, B300
28
- - Deployments get a UUID as instanceName -- always use the returned name
29
- - \`basilica_deploy\` defaults: python:3.11-slim, port 8000, 120s timeout
30
- - For GPU workloads, pass image="pytorch/pytorch:2.1.0-cuda12.1-cudnn8-runtime" and set gpu_count
31
- - Rentals try community cloud first, fall back to secure cloud automatically
32
- - Use \`basilica_stop_rental\` to stop (works for both community and secure cloud)
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
- - Run any btcli command: \`btcli_run\` with args array (e.g. ["wallet", "list"])
43
- - Returns a job ID immediately. Use \`btcli_poll\` to get output when done.
44
- - Wallets stored at /data/.bittensor/wallets (persistent across restarts)
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/
45
44
 
46
45
  ### EVM / Foundry
47
- - Get agent's EVM wallet address: \`evm_wallet_info\`
48
- - Run cast commands: \`evm_cast\` (e.g. ["balance", "0x..."], ["call", "0x...", "balanceOf(address)", "0x..."])
49
- - Run forge commands: \`evm_forge\` (e.g. ["init", "project"], ["build"], ["test"])
50
- - Poll async results: \`evm_poll\` with job ID
51
- - EVM wallet auto-created at /data/.evm/ on first boot
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
52
50
  `.trim();
53
51
  export function registerPromptContext(api, _config) {
54
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDxB,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"}
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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@basilica/openclaw",
3
- "version": "0.6.2",
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.2"
31
+ "@basilica/sdk": "^0.6.3"
32
32
  },
33
33
  "devDependencies": {
34
34
  "@types/node": "^25.5.0",