@livedesk/hub 0.1.18 → 0.1.19
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/package.json
CHANGED
|
@@ -42,7 +42,11 @@ export function createAgentManager({
|
|
|
42
42
|
|
|
43
43
|
async function publicSettings() {
|
|
44
44
|
const current = await settings.get();
|
|
45
|
-
const {
|
|
45
|
+
const {
|
|
46
|
+
codexMaxTurns: _codexMaxTurns,
|
|
47
|
+
provider: _provider,
|
|
48
|
+
...exposedSettings
|
|
49
|
+
} = current;
|
|
46
50
|
const codex = await getCodexStatus();
|
|
47
51
|
const securityStatus = runtime?.getSecurityStatus?.() || {
|
|
48
52
|
isolatedCodexHome: false,
|
|
@@ -55,7 +59,6 @@ export function createAgentManager({
|
|
|
55
59
|
};
|
|
56
60
|
return {
|
|
57
61
|
...exposedSettings,
|
|
58
|
-
provider: AGENT_PROVIDER_CODEX,
|
|
59
62
|
codexInstallation: codex.installed ? 'installed' : 'not-installed',
|
|
60
63
|
codexAuth: codex.authenticated,
|
|
61
64
|
codexStatus: codex.status,
|
|
@@ -3,10 +3,9 @@ import { access, link, mkdir, stat, unlink } from 'node:fs/promises';
|
|
|
3
3
|
import os from 'node:os';
|
|
4
4
|
import path from 'node:path';
|
|
5
5
|
import { spawn } from 'node:child_process';
|
|
6
|
-
import { createRequire } from 'node:module';
|
|
7
|
-
import { AgentProviderError } from './provider-errors.js';
|
|
8
|
-
import {
|
|
9
|
-
import { AGENT_TOOL_NAMES } from './agent-tool-registry.js';
|
|
6
|
+
import { createRequire } from 'node:module';
|
|
7
|
+
import { AgentProviderError } from './provider-errors.js';
|
|
8
|
+
import { AGENT_TOOL_NAMES } from './agent-tool-registry.js';
|
|
10
9
|
import { createAgentPermissionPolicy, hashAgentPermissionPolicy } from './agent-permissions.js';
|
|
11
10
|
|
|
12
11
|
const require = createRequire(import.meta.url);
|
|
@@ -427,11 +426,10 @@ export function createCodexAgentRuntime({
|
|
|
427
426
|
}
|
|
428
427
|
|
|
429
428
|
function publicRun(run) {
|
|
430
|
-
return {
|
|
431
|
-
runId: run.runId,
|
|
432
|
-
status: run.status,
|
|
433
|
-
|
|
434
|
-
instruction: run.instruction,
|
|
429
|
+
return {
|
|
430
|
+
runId: run.runId,
|
|
431
|
+
status: run.status,
|
|
432
|
+
instruction: run.instruction,
|
|
435
433
|
threadId: run.threadId,
|
|
436
434
|
finalResponse: run.finalResponse,
|
|
437
435
|
error: run.error,
|
|
@@ -654,10 +652,9 @@ export function createCodexAgentRuntime({
|
|
|
654
652
|
const permissionPolicy = freezeAgentPermissionPolicy(input.permissionPolicy && typeof input.permissionPolicy === 'object'
|
|
655
653
|
? input.permissionPolicy
|
|
656
654
|
: createAgentPermissionPolicy({ mode: input.permissionMode || 'safe-auto', deviceIds, maxToolCalls: settings.codexMaxToolCalls }));
|
|
657
|
-
const run = {
|
|
658
|
-
runId: crypto.randomUUID(),
|
|
659
|
-
status: 'queued',
|
|
660
|
-
provider: AGENT_PROVIDER_CODEX,
|
|
655
|
+
const run = {
|
|
656
|
+
runId: crypto.randomUUID(),
|
|
657
|
+
status: 'queued',
|
|
661
658
|
instruction,
|
|
662
659
|
deviceIds,
|
|
663
660
|
threadId: '',
|