@rizom/brain 0.1.1-alpha.11 → 0.1.1-alpha.12
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/brain.js +29 -1
- package/package.json +1 -1
package/dist/brain.js
CHANGED
|
@@ -29625,7 +29625,7 @@ footer.bg-footer button:not(.bg-theme-toggle) { color: var(--palette-black); }
|
|
|
29625
29625
|
footer.bg-footer button:not(.bg-theme-toggle):hover { color: var(--palette-neon-green); }
|
|
29626
29626
|
footer.bg-footer .bg-theme-toggle { background-color: transparent; border: 1px solid var(--palette-gray-700); color: var(--palette-gray-400); }
|
|
29627
29627
|
footer.bg-footer .bg-theme-toggle:hover { background-color: transparent; border-color: var(--palette-neon-green); color: var(--palette-neon-green); }
|
|
29628
|
-
`;var Ns0=zs0;import{readFileSync as Ba2}from"fs";import{join as xa2}from"path";import{execSync as ca2}from"child_process";import{parseArgs as dp2}from"util";var op2={model:{type:"string"},domain:{type:"string"},"content-repo":{type:"string"},backend:{type:"string"},"push-to":{type:"string"},"ai-api-key":{type:"string"},"no-interactive":{type:"boolean"},preview:{type:"boolean"},deploy:{type:"boolean"},all:{type:"boolean"},only:{type:"string"},"dry-run":{type:"boolean"},remote:{type:"string"},token:{type:"string"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}};function eu(A,f){let Q=A[f];return typeof Q==="string"?Q:void 0}function xj(A,f){let Q=A[f];return typeof Q==="boolean"?Q:void 0}function Es0(A){let{values:f,positionals:Q}=dp2({args:A,options:op2,allowPositionals:!0,strict:!1});if(f.help)return{command:"help",args:[],flags:{help:!0}};if(f.version)return{command:"version",args:[],flags:{version:!0}};return{command:Q[0]??"help",args:Q.slice(1),flags:{model:eu(f,"model"),domain:eu(f,"domain"),"content-repo":eu(f,"content-repo"),backend:eu(f,"backend"),"push-to":eu(f,"push-to"),"ai-api-key":eu(f,"ai-api-key"),"no-interactive":xj(f,"no-interactive"),preview:xj(f,"preview"),deploy:xj(f,"deploy"),all:xj(f,"all"),only:eu(f,"only"),"dry-run":xj(f,"dry-run"),remote:eu(f,"remote"),token:eu(f,"token")}}}import{mkdirSync as no2}from"fs";import{join as So2}from"path";import{spawn as yo2,execSync as po2}from"child_process";var Ys={name:"@rizom/brain",version:"0.1.1-alpha.
|
|
29628
|
+
`;var Ns0=zs0;import{readFileSync as Ba2}from"fs";import{join as xa2}from"path";import{execSync as ca2}from"child_process";import{parseArgs as dp2}from"util";var op2={model:{type:"string"},domain:{type:"string"},"content-repo":{type:"string"},backend:{type:"string"},"push-to":{type:"string"},"ai-api-key":{type:"string"},"no-interactive":{type:"boolean"},preview:{type:"boolean"},deploy:{type:"boolean"},all:{type:"boolean"},only:{type:"string"},"dry-run":{type:"boolean"},remote:{type:"string"},token:{type:"string"},help:{type:"boolean",short:"h"},version:{type:"boolean",short:"v"}};function eu(A,f){let Q=A[f];return typeof Q==="string"?Q:void 0}function xj(A,f){let Q=A[f];return typeof Q==="boolean"?Q:void 0}function Es0(A){let{values:f,positionals:Q}=dp2({args:A,options:op2,allowPositionals:!0,strict:!1});if(f.help)return{command:"help",args:[],flags:{help:!0}};if(f.version)return{command:"version",args:[],flags:{version:!0}};return{command:Q[0]??"help",args:Q.slice(1),flags:{model:eu(f,"model"),domain:eu(f,"domain"),"content-repo":eu(f,"content-repo"),backend:eu(f,"backend"),"push-to":eu(f,"push-to"),"ai-api-key":eu(f,"ai-api-key"),"no-interactive":xj(f,"no-interactive"),preview:xj(f,"preview"),deploy:xj(f,"deploy"),all:xj(f,"all"),only:eu(f,"only"),"dry-run":xj(f,"dry-run"),remote:eu(f,"remote"),token:eu(f,"token")}}}import{mkdirSync as no2}from"fs";import{join as So2}from"path";import{spawn as yo2,execSync as po2}from"child_process";var Ys={name:"@rizom/brain",version:"0.1.1-alpha.12",description:"Brain runtime + CLI \u2014 scaffold, run, and manage AI brain instances",type:"module",bin:{brain:"./dist/brain.js"},exports:{"./cli":"./dist/brain.js","./site":{types:"./dist/site.d.ts",import:"./dist/site.js"},"./themes":{types:"./dist/themes.d.ts",import:"./dist/themes.js"}},files:["dist"],scripts:{build:"bun scripts/build.ts",prepublishOnly:"bun scripts/build.ts",typecheck:"tsc --noEmit",test:"bun test",lint:"eslint . --ext .ts"},dependencies:{"@clack/prompts":"^0.11.0","@modelcontextprotocol/sdk":"^1.24.0","@tailwindcss/postcss":"^4.1.13","@tailwindcss/typography":"^0.5.19",postcss:"^8.5.6",preact:"^10.27.2","preact-render-to-string":"^6.3.1",tailwindcss:"^4.1.11"},optionalDependencies:{"@libsql/client":"^0.15.7","@tailwindcss/oxide":"^4.1.4","better-sqlite3":"^11.8.1",lightningcss:"^1.29.2","react-devtools-core":"^6.1.1",sharp:"^0.34.5"},devDependencies:{"@brains/app":"workspace:*","@brains/eslint-config":"workspace:*","@brains/mcp-service":"workspace:*","@brains/plugins":"workspace:*","@brains/ranger":"workspace:*","@brains/relay":"workspace:*","@brains/rover":"workspace:*","@brains/site-composition":"workspace:*","@brains/site-default":"workspace:*","@brains/site-personal":"workspace:*","@brains/site-professional":"workspace:*","@brains/site-rizom":"workspace:*","@brains/site-yeehaa":"workspace:*","@brains/theme-brutalist":"workspace:*","@brains/theme-default":"workspace:*","@brains/theme-rizom":"workspace:*","@brains/typescript-config":"workspace:*","@brains/utils":"workspace:*","@types/bun":"latest",typescript:"^5.3.3"},publishConfig:{access:"public"},repository:{type:"git",url:"https://github.com/rizom-ai/brains.git",directory:"packages/brain-cli"},license:"Apache-2.0",author:"Yeehaa <yeehaa@rizom.ai> (https://rizom.ai)",homepage:"https://github.com/rizom-ai/brains/tree/main/packages/brain-cli#readme",bugs:"https://github.com/rizom-ai/brains/issues",engines:{bun:">=1.3.3"},keywords:["brain","ai","cli","mcp","agent","personal-ai","knowledge-management"]};import{mkdirSync as _s0,writeFileSync as KGA,chmodSync as HGA,existsSync as Vs0,readFileSync as Ms0}from"fs";import{basename as UGA,dirname as Os0,join as S8,resolve as Fr2}from"path";cj();import{existsSync as Ls0,readFileSync as fr2}from"fs";import{dirname as Qr2,join as Cs0}from"path";var Ks={rover:`# This env file uses @env-spec - see https://varlock.dev/env-spec for more info
|
|
29629
29629
|
#
|
|
29630
29630
|
# @defaultRequired=false @defaultSensitive=false
|
|
29631
29631
|
# ----------
|
|
@@ -30224,6 +30224,19 @@ ${f}
|
|
|
30224
30224
|
});
|
|
30225
30225
|
NODE
|
|
30226
30226
|
|
|
30227
|
+
- name: Configure SSH client
|
|
30228
|
+
run: |
|
|
30229
|
+
mkdir -p ~/.ssh
|
|
30230
|
+
cat > ~/.ssh/config <<'EOF'
|
|
30231
|
+
Host *
|
|
30232
|
+
IdentityFile ~/.ssh/id_ed25519
|
|
30233
|
+
IdentitiesOnly yes
|
|
30234
|
+
BatchMode yes
|
|
30235
|
+
StrictHostKeyChecking no
|
|
30236
|
+
UserKnownHostsFile /dev/null
|
|
30237
|
+
EOF
|
|
30238
|
+
chmod 600 ~/.ssh/config
|
|
30239
|
+
|
|
30227
30240
|
- name: Write .kamal/secrets
|
|
30228
30241
|
run: |
|
|
30229
30242
|
mkdir -p .kamal
|
|
@@ -30482,6 +30495,21 @@ ${f}
|
|
|
30482
30495
|
- name: Validate SSH key
|
|
30483
30496
|
run: ssh-keygen -y -f ~/.ssh/id_ed25519 >/dev/null
|
|
30484
30497
|
|
|
30498
|
+
- name: Wait for SSH access
|
|
30499
|
+
env:
|
|
30500
|
+
SERVER_IP: \${{ steps.provision.outputs.server_ip }}
|
|
30501
|
+
run: |
|
|
30502
|
+
SSH_USER="$(ruby -e 'require "yaml"; config = YAML.load_file("config/deploy.yml") || {}; puts(config.dig("ssh", "user") || "root")')"
|
|
30503
|
+
for attempt in $(seq 1 18); do
|
|
30504
|
+
if ssh "$SSH_USER@$SERVER_IP" true >/dev/null 2>&1; then
|
|
30505
|
+
exit 0
|
|
30506
|
+
fi
|
|
30507
|
+
echo "SSH not ready yet (attempt $attempt/18); retrying in 5s..."
|
|
30508
|
+
sleep 5
|
|
30509
|
+
done
|
|
30510
|
+
echo "SSH never became ready for $SSH_USER@$SERVER_IP" >&2
|
|
30511
|
+
exit 1
|
|
30512
|
+
|
|
30485
30513
|
- name: Deploy
|
|
30486
30514
|
env:
|
|
30487
30515
|
SERVER_IP: \${{ steps.provision.outputs.server_ip }}
|