mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 00:40:45 +08:00
重构仓库目录为统一的 runtime 分层并清理历史 openclaw 残留。
本次迁移将网关/通道/工具/技能/脚本与协议资源集中到新结构,统一路径常量与脚本转发机制,减少顶层噪音并保证运行与测试行为一致。 Made-with: Cursor
This commit is contained in:
parent
ba3836f00f
commit
4a23b715a2
498 changed files with 2760 additions and 2200 deletions
|
|
@ -122,7 +122,7 @@ async function startBackendProcess() {
|
|||
AIA_DESKTOP_MODE: "1",
|
||||
};
|
||||
|
||||
const args = ["-m", "oclaw.ops", "gateway", "start", "--host", host, "--port", String(port)];
|
||||
const args = ["-m", "oclaw.runtime.operations", "gateway", "start", "--host", host, "--port", String(port)];
|
||||
backendProc = spawn(pythonBin, args, {
|
||||
cwd: APP_ROOT,
|
||||
env,
|
||||
|
|
@ -212,7 +212,7 @@ async function startChannelProcess() {
|
|||
try {
|
||||
const cleanupRes = await runPythonInline(
|
||||
pythonBin,
|
||||
"from oclaw.ops.runtime import cleanup_orphan_service_processes; k=cleanup_orphan_service_processes('channel:wecom'); print('killed=' + ','.join(str(x) for x in k))",
|
||||
"from oclaw.runtime.operations.runtime import cleanup_orphan_service_processes; k=cleanup_orphan_service_processes('channel:wecom'); print('killed=' + ','.join(str(x) for x in k))",
|
||||
{ AIA_DATA_DIR: DATA_ROOT },
|
||||
);
|
||||
if (!cleanupRes.ok) {
|
||||
|
|
@ -230,7 +230,7 @@ async function startChannelProcess() {
|
|||
AIA_DATA_DIR: DATA_ROOT,
|
||||
AIA_DESKTOP_MODE: "1",
|
||||
};
|
||||
const args = ["-m", "oclaw.ops", "channel", "wecom", "start", "--mode", "ws", "--interval", "3.0", "--deliver-outbound"];
|
||||
const args = ["-m", "oclaw.runtime.operations", "channel", "wecom", "start", "--mode", "ws", "--interval", "3.0", "--deliver-outbound"];
|
||||
channelStopping = false;
|
||||
channelProc = spawn(pythonBin, args, {
|
||||
cwd: APP_ROOT,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue