replicas-engine 0.1.1594 → 0.1.1595
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/src/{asp-host-KCNGALBN.js → asp-host-XCRQ55EU.js} +5 -5
- package/dist/src/{chunk-RTDVSARZ.js → chunk-22CA5MW6.js} +1 -1
- package/dist/src/{chunk-6HSAC7PU.js → chunk-23K2QGXR.js} +109 -104
- package/dist/src/{chunk-CSPVFDA4.js → chunk-2QZMXRTE.js} +2 -2
- package/dist/src/{chunk-UG3DYBHV.js → chunk-CJZDAY66.js} +6 -6
- package/dist/src/{chunk-Q6FTWF2W.js → chunk-TWNPD345.js} +2 -2
- package/dist/src/{chunk-3BJ5OLQV.js → chunk-UDQ2CG7N.js} +1 -1
- package/dist/src/{chunk-P6Y4UVCA.js → chunk-WJS7QOY3.js} +2 -2
- package/dist/src/{chunk-VEWADIPX.js → chunk-ZOEKFIAP.js} +3 -3
- package/dist/src/command-protection-hook.js +4 -4
- package/dist/src/headless-agent.js +4 -4
- package/dist/src/index.js +8 -8
- package/dist/src/post-tool-pr-hook.js +2 -2
- package/dist/src/subagent-mcp.js +1 -1
- package/package.json +1 -1
|
@@ -8,12 +8,12 @@ import {
|
|
|
8
8
|
listCodexModelsForDetails,
|
|
9
9
|
restartCodexAspHost,
|
|
10
10
|
restartCodexAspHostIfRunning
|
|
11
|
-
} from "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
11
|
+
} from "./chunk-CJZDAY66.js";
|
|
12
|
+
import "./chunk-2QZMXRTE.js";
|
|
13
|
+
import "./chunk-ZOEKFIAP.js";
|
|
14
|
+
import "./chunk-UDQ2CG7N.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-23K2QGXR.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -1116,17 +1116,17 @@ var require_luxon = __commonJS({
|
|
|
1116
1116
|
constructor(dt, intl, opts) {
|
|
1117
1117
|
this.opts = opts;
|
|
1118
1118
|
this.originalZone = void 0;
|
|
1119
|
-
let
|
|
1119
|
+
let z43 = void 0;
|
|
1120
1120
|
if (this.opts.timeZone) {
|
|
1121
1121
|
this.dt = dt;
|
|
1122
1122
|
} else if (dt.zone.type === "fixed") {
|
|
1123
1123
|
const gmtOffset = -1 * (dt.offset / 60);
|
|
1124
1124
|
const offsetZ = gmtOffset >= 0 ? `Etc/GMT+${gmtOffset}` : `Etc/GMT${gmtOffset}`;
|
|
1125
1125
|
if (dt.offset !== 0 && IANAZone.create(offsetZ).valid) {
|
|
1126
|
-
|
|
1126
|
+
z43 = offsetZ;
|
|
1127
1127
|
this.dt = dt;
|
|
1128
1128
|
} else {
|
|
1129
|
-
|
|
1129
|
+
z43 = "UTC";
|
|
1130
1130
|
this.dt = dt.offset === 0 ? dt : dt.setZone("UTC").plus({
|
|
1131
1131
|
minutes: dt.offset
|
|
1132
1132
|
});
|
|
@@ -1136,9 +1136,9 @@ var require_luxon = __commonJS({
|
|
|
1136
1136
|
this.dt = dt;
|
|
1137
1137
|
} else if (dt.zone.type === "iana") {
|
|
1138
1138
|
this.dt = dt;
|
|
1139
|
-
|
|
1139
|
+
z43 = dt.zone.name;
|
|
1140
1140
|
} else {
|
|
1141
|
-
|
|
1141
|
+
z43 = "UTC";
|
|
1142
1142
|
this.dt = dt.setZone("UTC").plus({
|
|
1143
1143
|
minutes: dt.offset
|
|
1144
1144
|
});
|
|
@@ -1147,7 +1147,7 @@ var require_luxon = __commonJS({
|
|
|
1147
1147
|
const intlOpts = {
|
|
1148
1148
|
...this.opts
|
|
1149
1149
|
};
|
|
1150
|
-
intlOpts.timeZone = intlOpts.timeZone ||
|
|
1150
|
+
intlOpts.timeZone = intlOpts.timeZone || z43;
|
|
1151
1151
|
this.dtf = getCachedDTF(intl, intlOpts);
|
|
1152
1152
|
}
|
|
1153
1153
|
format() {
|
|
@@ -20436,7 +20436,7 @@ var VOICE_WAVEFORM = {
|
|
|
20436
20436
|
};
|
|
20437
20437
|
|
|
20438
20438
|
// ../shared/src/e2b.ts
|
|
20439
|
-
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-16-
|
|
20439
|
+
var E2B_TEMPLATE_NAME = "replicas-sandbox-2026-11-16-v10";
|
|
20440
20440
|
|
|
20441
20441
|
// ../shared/src/e2b-retry.ts
|
|
20442
20442
|
var DEFAULT_BACKOFFS_MS = [2e3, 5e3];
|
|
@@ -21921,6 +21921,10 @@ var webAuthRedeemResponseSchema = z36.object({
|
|
|
21921
21921
|
session: z36.object({ access_token: z36.string(), refresh_token: z36.string(), user: z36.object({ id: z36.string(), email: z36.string() }) }).nullable()
|
|
21922
21922
|
});
|
|
21923
21923
|
|
|
21924
|
+
// ../shared/src/routes/themes.ts
|
|
21925
|
+
import { z as z37 } from "zod";
|
|
21926
|
+
var updateThemeRequestSchema = z37.object({ theme: z37.string(), palette: z37.string(), accent: z37.string(), code: z37.string() }).partial();
|
|
21927
|
+
|
|
21924
21928
|
// ../shared/src/routes/client-state.ts
|
|
21925
21929
|
var MAX_CLIENT_STATE_REQUEST_BYTES = 5 * 1024 * 1024;
|
|
21926
21930
|
var MAX_CLIENT_STATE_BYTES_PER_USER = 10 * 1024 * 1024;
|
|
@@ -21943,104 +21947,105 @@ var promptHistoryClientStateKey = orgUserClientStateKey(PROMPT_HISTORY_CLIENT_ST
|
|
|
21943
21947
|
var workspaceSearchOpensClientStateKey = orgUserClientStateKey(WORKSPACE_SEARCH_OPENS_CLIENT_STATE_KEY_PREFIX);
|
|
21944
21948
|
|
|
21945
21949
|
// ../shared/src/routes/workspace-events.ts
|
|
21946
|
-
import { z as
|
|
21950
|
+
import { z as z39 } from "zod";
|
|
21947
21951
|
|
|
21948
21952
|
// ../shared/src/routes/presence.ts
|
|
21949
|
-
import { z as
|
|
21950
|
-
var presenceStatusSchema =
|
|
21951
|
-
var presenceLocationSchema =
|
|
21952
|
-
workspaceId:
|
|
21953
|
+
import { z as z38 } from "zod";
|
|
21954
|
+
var presenceStatusSchema = z38.enum(["online", "typing"]);
|
|
21955
|
+
var presenceLocationSchema = z38.object({
|
|
21956
|
+
workspaceId: z38.string().optional()
|
|
21953
21957
|
});
|
|
21954
|
-
var presenceEntrySchema =
|
|
21955
|
-
userId:
|
|
21958
|
+
var presenceEntrySchema = z38.object({
|
|
21959
|
+
userId: z38.string(),
|
|
21956
21960
|
status: presenceStatusSchema,
|
|
21957
21961
|
location: presenceLocationSchema,
|
|
21958
|
-
ts:
|
|
21962
|
+
ts: z38.string()
|
|
21959
21963
|
});
|
|
21960
|
-
var updatePresenceRequestSchema =
|
|
21964
|
+
var updatePresenceRequestSchema = z38.object({
|
|
21961
21965
|
status: presenceStatusSchema,
|
|
21962
21966
|
location: presenceLocationSchema.optional()
|
|
21963
21967
|
});
|
|
21964
21968
|
|
|
21965
21969
|
// ../shared/src/routes/workspace-events.ts
|
|
21966
|
-
var workspaceTurnCompletionSchema =
|
|
21967
|
-
workspaceName:
|
|
21968
|
-
completedAt:
|
|
21969
|
-
processing:
|
|
21970
|
-
pullRequestFeedback:
|
|
21971
|
-
attention:
|
|
21970
|
+
var workspaceTurnCompletionSchema = z39.object({
|
|
21971
|
+
workspaceName: z39.string(),
|
|
21972
|
+
completedAt: z39.string(),
|
|
21973
|
+
processing: z39.boolean().optional(),
|
|
21974
|
+
pullRequestFeedback: z39.boolean().optional(),
|
|
21975
|
+
attention: z39.object({ reason: z39.enum(CHAT_ATTENTION_REASONS), userId: z39.string() }).optional()
|
|
21972
21976
|
});
|
|
21973
|
-
var workspaceEventSchemaByType =
|
|
21974
|
-
|
|
21975
|
-
type:
|
|
21976
|
-
workspaceId:
|
|
21977
|
-
accessChangedFor:
|
|
21978
|
-
accessChangedForOrg:
|
|
21979
|
-
workspace:
|
|
21980
|
-
name:
|
|
21977
|
+
var workspaceEventSchemaByType = z39.discriminatedUnion("type", [
|
|
21978
|
+
z39.object({
|
|
21979
|
+
type: z39.literal("workspace.changed"),
|
|
21980
|
+
workspaceId: z39.string(),
|
|
21981
|
+
accessChangedFor: z39.string().optional(),
|
|
21982
|
+
accessChangedForOrg: z39.literal(true).optional(),
|
|
21983
|
+
workspace: z39.object({ status: z39.enum(WORKSPACE_STATUSES), last_activity_at: z39.string().nullable() }).optional(),
|
|
21984
|
+
name: z39.string().optional(),
|
|
21981
21985
|
completion: workspaceTurnCompletionSchema.optional(),
|
|
21982
|
-
ts:
|
|
21986
|
+
ts: z39.string()
|
|
21983
21987
|
}),
|
|
21984
|
-
|
|
21985
|
-
type:
|
|
21986
|
-
workspaceId:
|
|
21987
|
-
chatId:
|
|
21988
|
-
ts:
|
|
21988
|
+
z39.object({
|
|
21989
|
+
type: z39.literal("workspace.chat.changed"),
|
|
21990
|
+
workspaceId: z39.string(),
|
|
21991
|
+
chatId: z39.string(),
|
|
21992
|
+
ts: z39.string()
|
|
21989
21993
|
}),
|
|
21990
|
-
|
|
21991
|
-
type:
|
|
21992
|
-
workspaceId:
|
|
21993
|
-
chatId:
|
|
21994
|
-
afterCursor:
|
|
21995
|
-
processing:
|
|
21996
|
-
ts:
|
|
21994
|
+
z39.object({
|
|
21995
|
+
type: z39.literal("workspace.chat.advanced"),
|
|
21996
|
+
workspaceId: z39.string(),
|
|
21997
|
+
chatId: z39.string(),
|
|
21998
|
+
afterCursor: z39.string().optional(),
|
|
21999
|
+
processing: z39.boolean(),
|
|
22000
|
+
ts: z39.string()
|
|
21997
22001
|
}),
|
|
21998
|
-
|
|
21999
|
-
type:
|
|
22000
|
-
workspaceId:
|
|
22001
|
-
ts:
|
|
22002
|
+
z39.object({
|
|
22003
|
+
type: z39.literal("mobile-testing.changed"),
|
|
22004
|
+
workspaceId: z39.string(),
|
|
22005
|
+
ts: z39.string()
|
|
22002
22006
|
}),
|
|
22003
|
-
|
|
22004
|
-
type:
|
|
22005
|
-
workspaceId:
|
|
22006
|
-
ts:
|
|
22007
|
+
z39.object({
|
|
22008
|
+
type: z39.literal("variable-request.changed"),
|
|
22009
|
+
workspaceId: z39.string(),
|
|
22010
|
+
ts: z39.string()
|
|
22007
22011
|
}),
|
|
22008
|
-
|
|
22009
|
-
type:
|
|
22010
|
-
workspaceId:
|
|
22011
|
-
ts:
|
|
22012
|
+
z39.object({
|
|
22013
|
+
type: z39.literal("local-control-request.changed"),
|
|
22014
|
+
workspaceId: z39.string(),
|
|
22015
|
+
ts: z39.string()
|
|
22012
22016
|
}),
|
|
22013
|
-
|
|
22014
|
-
type:
|
|
22015
|
-
prUrl:
|
|
22016
|
-
ts:
|
|
22017
|
+
z39.object({
|
|
22018
|
+
type: z39.literal("pull-request.changed"),
|
|
22019
|
+
prUrl: z39.string(),
|
|
22020
|
+
ts: z39.string()
|
|
22017
22021
|
}),
|
|
22018
|
-
|
|
22019
|
-
type:
|
|
22020
|
-
workspaceId:
|
|
22021
|
-
subagent:
|
|
22022
|
-
ts:
|
|
22022
|
+
z39.object({
|
|
22023
|
+
type: z39.literal("mothership.subagent.changed"),
|
|
22024
|
+
workspaceId: z39.string(),
|
|
22025
|
+
subagent: z39.object({ id: z39.string(), name: z39.string(), prUrl: z39.string().nullable() }),
|
|
22026
|
+
ts: z39.string()
|
|
22023
22027
|
}),
|
|
22024
|
-
|
|
22025
|
-
|
|
22026
|
-
|
|
22027
|
-
type:
|
|
22028
|
-
workspaceId:
|
|
22029
|
-
workspaceName:
|
|
22030
|
-
sharedWithUserId:
|
|
22031
|
-
sharedByName:
|
|
22032
|
-
ts:
|
|
22033
|
-
})
|
|
22028
|
+
z39.object({ type: z39.literal("mothership.board.changed"), workspaceId: z39.string(), ts: z39.string() }),
|
|
22029
|
+
z39.object({ type: z39.literal("needs-you.changed"), workspaceId: z39.string().nullable(), userId: z39.string().optional(), ts: z39.string() }),
|
|
22030
|
+
z39.object({
|
|
22031
|
+
type: z39.literal("workspace.shared"),
|
|
22032
|
+
workspaceId: z39.string(),
|
|
22033
|
+
workspaceName: z39.string(),
|
|
22034
|
+
sharedWithUserId: z39.string(),
|
|
22035
|
+
sharedByName: z39.string(),
|
|
22036
|
+
ts: z39.string()
|
|
22037
|
+
}),
|
|
22038
|
+
z39.object({ type: z39.literal("client-state.changed"), userId: z39.string(), keys: z39.array(z39.string()), ts: z39.string() })
|
|
22034
22039
|
]);
|
|
22035
|
-
var workspaceChangedEventSchema =
|
|
22040
|
+
var workspaceChangedEventSchema = z39.union([
|
|
22036
22041
|
workspaceEventSchemaByType,
|
|
22037
|
-
|
|
22038
|
-
|
|
22042
|
+
z39.object({ type: z39.literal("presence.changed"), userId: z39.string(), entry: presenceEntrySchema.nullable(), ts: z39.string() }),
|
|
22043
|
+
z39.object({ type: z39.literal("presence.changed"), ts: z39.string() })
|
|
22039
22044
|
]);
|
|
22040
22045
|
|
|
22041
22046
|
// ../shared/src/routes/review-messages.ts
|
|
22042
|
-
import { z as
|
|
22043
|
-
var sendPullRequestReviewMessageRequestSchema =
|
|
22047
|
+
import { z as z40 } from "zod";
|
|
22048
|
+
var sendPullRequestReviewMessageRequestSchema = z40.object({
|
|
22044
22049
|
...sendChatMessageRequestSchema.pick({
|
|
22045
22050
|
message: true,
|
|
22046
22051
|
messageId: true,
|
|
@@ -22053,8 +22058,8 @@ var sendPullRequestReviewMessageRequestSchema = z39.object({
|
|
|
22053
22058
|
ultrafastMode: true
|
|
22054
22059
|
}).shape,
|
|
22055
22060
|
/** Starts a new chat instead of continuing the PR's review chat. The provider only applies to a new chat. */
|
|
22056
|
-
newChat:
|
|
22057
|
-
provider:
|
|
22061
|
+
newChat: z40.boolean().optional(),
|
|
22062
|
+
provider: z40.enum(VALID_AGENT_PROVIDERS).optional()
|
|
22058
22063
|
});
|
|
22059
22064
|
|
|
22060
22065
|
// ../shared/src/audit-log.ts
|
|
@@ -22717,40 +22722,40 @@ function isSkillRegistryManifest(value) {
|
|
|
22717
22722
|
}
|
|
22718
22723
|
|
|
22719
22724
|
// ../shared/src/routes/variable-requests.ts
|
|
22720
|
-
import { z as
|
|
22725
|
+
import { z as z41 } from "zod";
|
|
22721
22726
|
var VARIABLE_REQUEST_WAIT = { defaultMs: 10 * 6e4, maxMs: 30 * 6e4, pollMs: 3e3, waiterStaleMs: 15e3 };
|
|
22722
22727
|
var VARIABLE_REQUEST_DESTINATIONS = ["environment", "workspace"];
|
|
22723
|
-
var requestedVariableSchema =
|
|
22724
|
-
key:
|
|
22725
|
-
required:
|
|
22726
|
-
replace:
|
|
22728
|
+
var requestedVariableSchema = z41.object({
|
|
22729
|
+
key: z41.string().regex(VARIABLE_KEY_RE, "must be a valid environment variable name").max(ENVIRONMENT_SETUP_LIMITS.variableKeyChars),
|
|
22730
|
+
required: z41.boolean(),
|
|
22731
|
+
replace: z41.boolean().optional()
|
|
22727
22732
|
});
|
|
22728
|
-
var requestedVariablesSchema =
|
|
22729
|
-
var createVariableRequestSchema =
|
|
22733
|
+
var requestedVariablesSchema = z41.array(requestedVariableSchema).min(1, "must not be empty").max(ENVIRONMENT_SETUP_LIMITS.variables).refine((variables) => new Set(variables.map((variable) => variable.key)).size === variables.length, "must have unique keys");
|
|
22734
|
+
var createVariableRequestSchema = z41.object({
|
|
22730
22735
|
variables: requestedVariablesSchema,
|
|
22731
|
-
reason:
|
|
22732
|
-
wait:
|
|
22736
|
+
reason: z41.string().trim().max(500).nullish().transform((value) => value || null),
|
|
22737
|
+
wait: z41.boolean().default(true)
|
|
22733
22738
|
});
|
|
22734
|
-
var respondVariableRequestSchema =
|
|
22735
|
-
|
|
22736
|
-
action:
|
|
22737
|
-
destination:
|
|
22739
|
+
var respondVariableRequestSchema = z41.discriminatedUnion("action", [
|
|
22740
|
+
z41.object({
|
|
22741
|
+
action: z41.literal("provide"),
|
|
22742
|
+
destination: z41.enum(VARIABLE_REQUEST_DESTINATIONS),
|
|
22738
22743
|
/** Defaults to the workspace's environment, so older clients keep saving there. */
|
|
22739
|
-
environment_ids:
|
|
22740
|
-
overwrite:
|
|
22741
|
-
values:
|
|
22744
|
+
environment_ids: z41.array(z41.string().uuid()).optional(),
|
|
22745
|
+
overwrite: z41.boolean().optional(),
|
|
22746
|
+
values: z41.record(z41.string().regex(VARIABLE_KEY_RE), z41.string())
|
|
22742
22747
|
}),
|
|
22743
|
-
|
|
22748
|
+
z41.object({ action: z41.literal("skip") })
|
|
22744
22749
|
]);
|
|
22745
22750
|
|
|
22746
22751
|
// ../shared/src/routes/local-control-requests.ts
|
|
22747
|
-
import { z as
|
|
22748
|
-
var createLocalControlRequestSchema =
|
|
22749
|
-
reason:
|
|
22750
|
-
wait:
|
|
22752
|
+
import { z as z42 } from "zod";
|
|
22753
|
+
var createLocalControlRequestSchema = z42.object({
|
|
22754
|
+
reason: z42.string().trim().max(500).optional().transform((value) => value || null),
|
|
22755
|
+
wait: z42.boolean().default(true)
|
|
22751
22756
|
});
|
|
22752
|
-
var respondLocalControlRequestSchema =
|
|
22753
|
-
var setLocalControlSchema =
|
|
22757
|
+
var respondLocalControlRequestSchema = z42.object({ action: z42.enum(["allow", "dismiss"]) });
|
|
22758
|
+
var setLocalControlSchema = z42.object({ enabled: z42.boolean() });
|
|
22754
22759
|
|
|
22755
22760
|
export {
|
|
22756
22761
|
ENGINE_SEND_MESSAGE_FAILED_ERROR,
|
|
@@ -4,7 +4,7 @@ const require = __createRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
SUBPROCESS_MAX_BUFFER,
|
|
6
6
|
execFileAsync
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UDQ2CG7N.js";
|
|
8
8
|
import {
|
|
9
9
|
isRecord as isRecord2
|
|
10
10
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -21,7 +21,7 @@ import {
|
|
|
21
21
|
provisionedDeviceSchema,
|
|
22
22
|
readReplicasRuntimeEnv,
|
|
23
23
|
serializePosixEnvFile
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-23K2QGXR.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
resolveDiffBase,
|
|
13
13
|
runGitCommand,
|
|
14
14
|
setAgentCredentialSnapshot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-2QZMXRTE.js";
|
|
16
16
|
import {
|
|
17
17
|
AppServerProcess,
|
|
18
18
|
buildCodexAgentEnv
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-ZOEKFIAP.js";
|
|
20
20
|
import {
|
|
21
21
|
SUBPROCESS_MAX_BUFFER,
|
|
22
22
|
execFileAsync
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-UDQ2CG7N.js";
|
|
24
24
|
import {
|
|
25
25
|
isRecord
|
|
26
26
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
shrunkImageSize,
|
|
62
62
|
splitMothershipInstructions,
|
|
63
63
|
withTimeout
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-23K2QGXR.js";
|
|
65
65
|
|
|
66
66
|
// src/managers/codex-token-manager.ts
|
|
67
67
|
import { promises as fs } from "fs";
|
|
@@ -461,7 +461,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
461
461
|
await this.applyCredentialUpdate(++this.credentialGeneration, async () => {
|
|
462
462
|
await this.applyCredentialsResponse(data);
|
|
463
463
|
setAgentCredentialSnapshot("codex", data);
|
|
464
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
464
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XCRQ55EU.js");
|
|
465
465
|
await restartCodexAspHostIfRunning2();
|
|
466
466
|
});
|
|
467
467
|
await this.start(true);
|
|
@@ -483,7 +483,7 @@ var CodexTokenManager = class extends BaseRefreshManager {
|
|
|
483
483
|
const accountChanged = ENGINE_ENV.REPLICAS_AGENT_CREDENTIALS.codex?.credentialId !== data.credentialId;
|
|
484
484
|
await this.applyCredentialsResponse(data);
|
|
485
485
|
if (restartOnChange && (accountChanged || CODEX_AUTH_ENV_KEYS.some((key, index) => process.env[key] !== previousEnv[index]))) {
|
|
486
|
-
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-
|
|
486
|
+
const { restartCodexAspHostIfRunning: restartCodexAspHostIfRunning2 } = await import("./asp-host-XCRQ55EU.js");
|
|
487
487
|
await restartCodexAspHostIfRunning2();
|
|
488
488
|
}
|
|
489
489
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
AspClient
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZOEKFIAP.js";
|
|
7
7
|
import {
|
|
8
8
|
ASTER_BASE_URL,
|
|
9
9
|
ASTER_PROVIDER,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
isRecord,
|
|
16
16
|
readOllamaAuthEnv,
|
|
17
17
|
readOpenAICompatibleAuthEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-23K2QGXR.js";
|
|
19
19
|
|
|
20
20
|
// src/managers/codex-asp/notification-dispatch.ts
|
|
21
21
|
var TURN_STARTED_METHOD = "turn/started";
|
|
@@ -3,7 +3,7 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
HOOK_EXEC_MAX_BUFFER_BYTES
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-23K2QGXR.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getOriginDefaultBranch,
|
|
7
7
|
monolithRequest,
|
|
8
8
|
runGitCommand
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-2QZMXRTE.js";
|
|
10
10
|
import {
|
|
11
11
|
extractCommandProtectionCommandText,
|
|
12
12
|
findCommandProtectionGitLookups,
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
findScoutRepoWriteSignals,
|
|
16
16
|
parseCommandProtectionRequest,
|
|
17
17
|
withE2BRetry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-23K2QGXR.js";
|
|
19
19
|
|
|
20
20
|
// src/services/command-protection-service.ts
|
|
21
21
|
import { readFile, stat } from "fs/promises";
|
|
@@ -3,10 +3,10 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
execFileAsync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-UDQ2CG7N.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-23K2QGXR.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -240,7 +240,7 @@ function getCodexModelProvider(method) {
|
|
|
240
240
|
if (method === "foundry") return "azure";
|
|
241
241
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
242
242
|
}
|
|
243
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
243
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1595";
|
|
244
244
|
var INITIALIZE_METHOD = "initialize";
|
|
245
245
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
246
246
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
evaluateCommandProtection
|
|
6
|
-
} from "./chunk-
|
|
7
|
-
import "./chunk-
|
|
8
|
-
import "./chunk-
|
|
6
|
+
} from "./chunk-WJS7QOY3.js";
|
|
7
|
+
import "./chunk-2QZMXRTE.js";
|
|
8
|
+
import "./chunk-UDQ2CG7N.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-23K2QGXR.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/command-protection-hook.ts
|
|
@@ -14,12 +14,12 @@ import {
|
|
|
14
14
|
recoverCompletedTurn,
|
|
15
15
|
spawnMuseMsp,
|
|
16
16
|
startMuseSession
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TWNPD345.js";
|
|
18
18
|
import {
|
|
19
19
|
AppServerProcess,
|
|
20
20
|
buildCodexAgentEnv
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-ZOEKFIAP.js";
|
|
22
|
+
import "./chunk-UDQ2CG7N.js";
|
|
23
23
|
import {
|
|
24
24
|
AGENT,
|
|
25
25
|
OPENCODE_GO_PROVIDER,
|
|
@@ -29,7 +29,7 @@ import {
|
|
|
29
29
|
headlessAgentUsagePath,
|
|
30
30
|
isRecord,
|
|
31
31
|
withTimeout
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-23K2QGXR.js";
|
|
33
33
|
import "./chunk-VEQXQN22.js";
|
|
34
34
|
|
|
35
35
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
evaluateCommandProtection,
|
|
28
28
|
extractToolCommand,
|
|
29
29
|
reportCommandProtectionBlock
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-WJS7QOY3.js";
|
|
31
31
|
import {
|
|
32
32
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
33
33
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -65,10 +65,10 @@ import {
|
|
|
65
65
|
spawnMuseMsp,
|
|
66
66
|
startMuseSession,
|
|
67
67
|
uuidV7
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-TWNPD345.js";
|
|
69
69
|
import {
|
|
70
70
|
publishedPullRequestUrls
|
|
71
|
-
} from "./chunk-
|
|
71
|
+
} from "./chunk-22CA5MW6.js";
|
|
72
72
|
import {
|
|
73
73
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
74
74
|
AsyncLock,
|
|
@@ -147,7 +147,7 @@ import {
|
|
|
147
147
|
transcriptSecrets,
|
|
148
148
|
upsertCredentialFileLines,
|
|
149
149
|
writeSecureCredentialFile
|
|
150
|
-
} from "./chunk-
|
|
150
|
+
} from "./chunk-CJZDAY66.js";
|
|
151
151
|
import {
|
|
152
152
|
ENGINE_ENV,
|
|
153
153
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -158,16 +158,16 @@ import {
|
|
|
158
158
|
resolveDiffBase,
|
|
159
159
|
setAgentCredentialSnapshot,
|
|
160
160
|
setLinearSessionId
|
|
161
|
-
} from "./chunk-
|
|
161
|
+
} from "./chunk-2QZMXRTE.js";
|
|
162
162
|
import {
|
|
163
163
|
buildCodexAgentEnv,
|
|
164
164
|
getCodexModelProvider
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-ZOEKFIAP.js";
|
|
166
166
|
import {
|
|
167
167
|
SUBPROCESS_MAX_BUFFER,
|
|
168
168
|
execAsync,
|
|
169
169
|
execFileAsync
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-UDQ2CG7N.js";
|
|
171
171
|
import {
|
|
172
172
|
isRecord as isRecord2
|
|
173
173
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -463,7 +463,7 @@ import {
|
|
|
463
463
|
workspaceTokenRequestSchema,
|
|
464
464
|
workspaceTokenResponseSchema,
|
|
465
465
|
wrapInTag
|
|
466
|
-
} from "./chunk-
|
|
466
|
+
} from "./chunk-23K2QGXR.js";
|
|
467
467
|
import {
|
|
468
468
|
cloneMcpConfig,
|
|
469
469
|
ensureCompatibilityImports,
|
|
@@ -3,13 +3,13 @@ import { createRequire as __createRequire } from 'node:module';
|
|
|
3
3
|
const require = __createRequire(import.meta.url);
|
|
4
4
|
import {
|
|
5
5
|
publishedPullRequestUrls
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-22CA5MW6.js";
|
|
7
7
|
import {
|
|
8
8
|
isRecord
|
|
9
9
|
} from "./chunk-UZSNFLDQ.js";
|
|
10
10
|
import {
|
|
11
11
|
shouldRefreshPullRequests
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-23K2QGXR.js";
|
|
13
13
|
import "./chunk-VEQXQN22.js";
|
|
14
14
|
|
|
15
15
|
// src/services/post-tool-pr-notifier.ts
|
package/dist/src/subagent-mcp.js
CHANGED