odant-work 1.0.110 → 1.0.111
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/$server/$folder/$class/$ai/class.js +2 -0
- package/$server/$folder/$class/ai/system.md +1 -1
- package/$server/$folder/$class/handlers/pages/form/folder/$handler/class.js +1 -2
- package/$server/$folder/$class/handlers/pages/form/system/folder/$handler/class.js +12 -0
- package/$server/$folder/$file/$task/handlers/pages/form/file/$handler/class.js +5 -1
- package/$server/$folder/$file/$task/handlers/pages/form/file/$handler/ui/dock.js +75 -28
- package/$server/$folder/$file/$task/handlers/pages/form/file/$handler/ui/util.js +2 -2
- package/$server/$folder/handlers/readme.md +1 -1
- package/$server/$folder/lib/explorer/explorer.js +5 -2
- package/$server/$folder/lib/folder-browser/readme.md +1 -1
- package/AGENTS.md +1 -1
- package/package.json +1 -1
- package/sources/client.js +29 -10
- package/sources/host/auth-methods.js +1 -0
- package/sources/host/http-server.js +12 -0
- package/sources/host/websocket.js +42 -14
- package/sources/modules/agent/index.js +33 -10
- package/sources/modules/agent/loop.js +112 -35
- package/sources/modules/agent/session.js +6 -1
- package/sources/modules/agent/tools/sandbox.js +7 -7
- package/sources/modules/agent/tools/tool-groups.js +267 -0
- package/sources/modules/sandbox/config.js +1 -0
- package/sources/modules/sandbox/manager.js +50 -3
- package/sources/modules/sandbox/vnc-proxy.js +4 -3
- /package/$server/$folder/$class/$structure/$user/handlers/pages/form/{folder → system/folder}/$handler/class.js +0 -0
|
@@ -64,7 +64,7 @@ export async function computerAccess(req, rawName, ownerOverride) {
|
|
|
64
64
|
throw Object.assign(new Error('чужой компьютер — нужен ADMIN'), { http: 403 });
|
|
65
65
|
const docker = await getDocker();
|
|
66
66
|
let found = await findComputer(docker, owner, name);
|
|
67
|
-
if (!found && DEV_MODE
|
|
67
|
+
if (!found && DEV_MODE)
|
|
68
68
|
found = await findComputer(docker, undefined, name);
|
|
69
69
|
if (!found)
|
|
70
70
|
throw Object.assign(new Error('компьютера «' + name + '» нет — он создастся при первой команде агента'), { http: 404 });
|
|
@@ -176,8 +176,9 @@ export async function handleComputerHttp(req, res, url, readBody) {
|
|
|
176
176
|
return true;
|
|
177
177
|
}
|
|
178
178
|
// пассивный статус компьютера (не запускает!)
|
|
179
|
-
|
|
180
|
-
|
|
179
|
+
const statusMatch = pathname.match(/^\/~computer\/([^/]+)\/status$/);
|
|
180
|
+
if (statusMatch && req.method === 'GET') {
|
|
181
|
+
const name = statusMatch[1];
|
|
181
182
|
try {
|
|
182
183
|
const acc = await computerAccess(req, name, url.searchParams.get('owner') || '');
|
|
183
184
|
const st = await statusOf(acc.docker, acc.id).catch(() => null);
|
|
File without changes
|