@moxt-ai/mobius 0.0.466 → 0.0.467
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/{chunk-7P2QHD5S.js → chunk-KOLL57ZM.js} +19 -7
- package/dist/{chunk-7P2QHD5S.js.map → chunk-KOLL57ZM.js.map} +2 -2
- package/dist/{chunk-CP7CJWBV.js → chunk-X64YZNBY.js} +2 -2
- package/dist/{chunk-CP7CJWBV.js.map → chunk-X64YZNBY.js.map} +1 -1
- package/dist/{cli-6REFJJ5X.js → cli-AYBTKEFI.js} +3 -3
- package/dist/cli.js +2 -2
- package/dist/engine/acp/adapter/codex/agent-connection.d.ts.map +1 -1
- package/dist/engine/acp/adapter/codex/agent-connection.js +1 -0
- package/dist/engine/acp/adapter/codex/agent-connection.js.map +1 -1
- package/dist/engine/acp/agent/agent-definition.d.ts +1 -0
- package/dist/engine/acp/agent/agent-definition.d.ts.map +1 -1
- package/dist/engine/acp/agent/agent-definition.js +8 -1
- package/dist/engine/acp/agent/agent-definition.js.map +1 -1
- package/dist/engine/acp/connection/agent-connection.d.ts +1 -0
- package/dist/engine/acp/connection/agent-connection.d.ts.map +1 -1
- package/dist/engine/acp/harness/codex/agent.d.ts.map +1 -1
- package/dist/engine/acp/harness/codex/agent.js +8 -2
- package/dist/engine/acp/harness/codex/agent.js.map +1 -1
- package/dist/engine/acp/harness/codex/session-update.d.ts +1 -0
- package/dist/engine/acp/harness/codex/session-update.d.ts.map +1 -1
- package/dist/engine/acp/harness/codex/session-update.js.map +1 -1
- package/dist/engine/runtime/run.d.ts.map +1 -1
- package/dist/engine/runtime/run.js +1 -3
- package/dist/engine/runtime/run.js.map +1 -1
- package/dist/engine.js +2 -2
- package/package.json +1 -1
- /package/dist/{cli-6REFJJ5X.js.map → cli-AYBTKEFI.js.map} +0 -0
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
__toESM,
|
|
6
6
|
__using,
|
|
7
7
|
package_default
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-X64YZNBY.js";
|
|
9
9
|
|
|
10
10
|
// ../../node_modules/.pnpm/ignore@7.0.9/node_modules/ignore/index.js
|
|
11
11
|
var require_ignore = __commonJS({
|
|
@@ -80705,6 +80705,7 @@ function promptSuggestionTurn2(meta3) {
|
|
|
80705
80705
|
}
|
|
80706
80706
|
var CodexAcpAgent = class {
|
|
80707
80707
|
#app;
|
|
80708
|
+
#threadOverrides;
|
|
80708
80709
|
#appServer;
|
|
80709
80710
|
terminated;
|
|
80710
80711
|
#closePromise = null;
|
|
@@ -80721,6 +80722,7 @@ var CodexAcpAgent = class {
|
|
|
80721
80722
|
#threadCwd = "";
|
|
80722
80723
|
#sessionAgent;
|
|
80723
80724
|
constructor(options) {
|
|
80725
|
+
this.#threadOverrides = options.sessionEnvironment ? { config: { shell_environment_policy: { set: options.sessionEnvironment } } } : {};
|
|
80724
80726
|
this.#onSessionUpdate = options.onSessionUpdate;
|
|
80725
80727
|
this.#onBackgroundActivity = options.onBackgroundActivity;
|
|
80726
80728
|
this.#onPromptDelegation = options.onPromptDelegation;
|
|
@@ -80790,7 +80792,7 @@ var CodexAcpAgent = class {
|
|
|
80790
80792
|
const created = threadStartResponseSchema.parse(
|
|
80791
80793
|
await this.#appServer.request(
|
|
80792
80794
|
"thread/start",
|
|
80793
|
-
{ cwd: context.params.cwd },
|
|
80795
|
+
{ cwd: context.params.cwd, ...this.#threadOverrides },
|
|
80794
80796
|
AbortSignal.any([context.signal, AbortSignal.timeout(APPROVAL_TIMEOUT_MILLISECONDS3)])
|
|
80795
80797
|
)
|
|
80796
80798
|
);
|
|
@@ -80820,6 +80822,7 @@ var CodexAcpAgent = class {
|
|
|
80820
80822
|
"thread/fork",
|
|
80821
80823
|
{
|
|
80822
80824
|
cwd: context.params.cwd,
|
|
80825
|
+
...this.#threadOverrides,
|
|
80823
80826
|
// Fork keeps the native context; its response only needs the new identity
|
|
80824
80827
|
// and settings. History is read through the separate history boundary.
|
|
80825
80828
|
excludeTurns: true,
|
|
@@ -80949,7 +80952,7 @@ var CodexAcpAgent = class {
|
|
|
80949
80952
|
return threadResumeResponseSchema.parse(
|
|
80950
80953
|
await this.#appServer.request(
|
|
80951
80954
|
"thread/resume",
|
|
80952
|
-
{ cwd, excludeTurns: true, threadId },
|
|
80955
|
+
{ cwd, excludeTurns: true, threadId, ...this.#threadOverrides },
|
|
80953
80956
|
AbortSignal.any([signal, AbortSignal.timeout(APPROVAL_TIMEOUT_MILLISECONDS3)])
|
|
80954
80957
|
)
|
|
80955
80958
|
);
|
|
@@ -81042,6 +81045,7 @@ var CodexAgentConnection = class extends EndpointAgentConnection {
|
|
|
81042
81045
|
command: options.command,
|
|
81043
81046
|
cwd: options.cwd,
|
|
81044
81047
|
environment: options.environment,
|
|
81048
|
+
...options.sessionEnvironment && { sessionEnvironment: options.sessionEnvironment },
|
|
81045
81049
|
onSessionUpdate: options.client.onUpdate,
|
|
81046
81050
|
onBackgroundActivity: (activity) => options.onBackgroundActivity?.(activity),
|
|
81047
81051
|
onPromptDelegation: async (stage) => await options.onPromptDelegation?.(stage),
|
|
@@ -85420,11 +85424,19 @@ var AcpAgentDefinition = class _AcpAgentDefinition {
|
|
|
85420
85424
|
this.#connectionFactory = createConnection;
|
|
85421
85425
|
}
|
|
85422
85426
|
createConnection = (options) => this.#connectionFactory({ ...options, command: this.command, environment: this.environment });
|
|
85423
|
-
withEnvironment = (environment) =>
|
|
85427
|
+
withEnvironment = (environment) => this.#copy(environment, this.#connectionFactory);
|
|
85428
|
+
withSessionEnvironment = (values) => {
|
|
85429
|
+
const sessionEnvironment = Object.freeze({ ...values });
|
|
85430
|
+
return this.#copy(
|
|
85431
|
+
{ ...this.environment, ...sessionEnvironment },
|
|
85432
|
+
(options) => this.#connectionFactory({ ...options, sessionEnvironment })
|
|
85433
|
+
);
|
|
85434
|
+
};
|
|
85435
|
+
#copy = (environment, createConnection) => new _AcpAgentDefinition(
|
|
85424
85436
|
this.id,
|
|
85425
85437
|
this.label,
|
|
85426
85438
|
this.command,
|
|
85427
|
-
|
|
85439
|
+
createConnection,
|
|
85428
85440
|
environment,
|
|
85429
85441
|
this.agentVersion,
|
|
85430
85442
|
this.agentIdentity,
|
|
@@ -105698,7 +105710,7 @@ async function runRuntime(config2, parentSignal, timer = systemTimer, options =
|
|
|
105698
105710
|
const resolveAgent = async (agentId, resolveSignal, sessionId) => {
|
|
105699
105711
|
const catalogAgent = await resolveCatalogAgent(config2, agentId, resolveSignal);
|
|
105700
105712
|
const environment = sessionId === void 0 ? void 0 : config2.sessionEnvironment?.({ sessionId, agentId });
|
|
105701
|
-
const agent2 = environment === void 0 ? catalogAgent : catalogAgent.
|
|
105713
|
+
const agent2 = environment === void 0 ? catalogAgent : catalogAgent.withSessionEnvironment(environment);
|
|
105702
105714
|
return {
|
|
105703
105715
|
agent: agent2,
|
|
105704
105716
|
adapter: adapters.resolve(catalogAgent),
|
|
@@ -106096,4 +106108,4 @@ export {
|
|
|
106096
106108
|
* MIT Licensed
|
|
106097
106109
|
*)
|
|
106098
106110
|
*/
|
|
106099
|
-
//# sourceMappingURL=chunk-
|
|
106111
|
+
//# sourceMappingURL=chunk-KOLL57ZM.js.map
|