#!/bin/bash # 芯葶正规key注入: 云接口拿token→容器内自写(不经视野) set -e TOKEN=$(docker exec agent-node-xinting python3 -c "import json;print(json.load(open('/opt/data/fmode-identity.json'))['session_token'])") curl -s -X POST "https://server.fmode.cn/api/fmode/voc-skill/install-prompt" \ -H "Content-Type: application/json" \ -d "{\"sessionToken\":\"$TOKEN\",\"channel\":\"fmode-studio\",\"scope\":\"global\"}" \ --max-time 20 > /tmp/xinting-resp.json docker exec -i agent-node-xinting python3 < /tmp/parse-resp.py docker exec agent-node-xinting python3 -c "import json;d=json.load(open('/opt/data/fmode-identity.json'));print('token_len:',len(d.get('newapi_token','')))"