replicas-engine 0.1.1677 → 0.1.1679
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-LBXIPZ5Q.js → asp-host-6IT56R2M.js} +5 -5
- package/dist/src/{chunk-OTZZFUHK.js → chunk-C476JE6L.js} +2 -2
- package/dist/src/{chunk-LGTK3MTL.js → chunk-DMNYJKJR.js} +2 -2
- package/dist/src/{chunk-GRKULNCY.js → chunk-FYTRGIYC.js} +63 -46
- package/dist/src/{chunk-PWGB7XYF.js → chunk-GQJWKHVW.js} +6 -6
- package/dist/src/{chunk-XZQWZSQR.js → chunk-K6R4D5QX.js} +3 -3
- package/dist/src/{chunk-O7XPO6NN.js → chunk-OGTF4ZV7.js} +2 -2
- package/dist/src/{chunk-SMVAFF4W.js → chunk-SYKDCGXG.js} +1 -1
- package/dist/src/{chunk-PIVA4SOH.js → chunk-WMOVCL5T.js} +1 -1
- 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-GQJWKHVW.js";
|
|
12
|
+
import "./chunk-DMNYJKJR.js";
|
|
13
|
+
import "./chunk-K6R4D5QX.js";
|
|
14
|
+
import "./chunk-SYKDCGXG.js";
|
|
15
15
|
import "./chunk-UZSNFLDQ.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-FYTRGIYC.js";
|
|
17
17
|
import "./chunk-VEQXQN22.js";
|
|
18
18
|
export {
|
|
19
19
|
CODEX_ULTRAFAST_SERVICE_TIER,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ENGINE_ENV,
|
|
6
6
|
monolithRequest,
|
|
7
7
|
runGitCommand
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DMNYJKJR.js";
|
|
9
9
|
import {
|
|
10
10
|
COMMAND_PROTECTION_MAX_MESSAGE_FILE_BYTES,
|
|
11
11
|
COMMAND_PROTECTION_REPO_GIT_ARGS,
|
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
parseCommandProtectionRequest,
|
|
19
19
|
toCommandProtectionRepoState,
|
|
20
20
|
withRetry
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FYTRGIYC.js";
|
|
22
22
|
|
|
23
23
|
// src/services/command-protection-service.ts
|
|
24
24
|
import { readFile, stat } from "fs/promises";
|
|
@@ -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-SYKDCGXG.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-FYTRGIYC.js";
|
|
25
25
|
|
|
26
26
|
// src/runtime-env-loader.ts
|
|
27
27
|
import { readFileSync } from "fs";
|
|
@@ -2063,7 +2063,7 @@ var require_luxon = __commonJS({
|
|
|
2063
2063
|
} else if (typeof settings !== "object") {
|
|
2064
2064
|
throw new InvalidArgumentError("Week settings must be an object");
|
|
2065
2065
|
} else {
|
|
2066
|
-
if (!integerBetween(settings.firstDay, 1, 7) || !integerBetween(settings.minimalDays, 1, 7) || !Array.isArray(settings.weekend) || settings.weekend.some((
|
|
2066
|
+
if (!integerBetween(settings.firstDay, 1, 7) || !integerBetween(settings.minimalDays, 1, 7) || !Array.isArray(settings.weekend) || settings.weekend.some((v2) => !integerBetween(v2, 1, 7))) {
|
|
2067
2067
|
throw new InvalidArgumentError("Invalid week settings");
|
|
2068
2068
|
}
|
|
2069
2069
|
return {
|
|
@@ -2200,9 +2200,9 @@ var require_luxon = __commonJS({
|
|
|
2200
2200
|
const normalized = {};
|
|
2201
2201
|
for (const u in obj) {
|
|
2202
2202
|
if (hasOwnProperty(obj, u)) {
|
|
2203
|
-
const
|
|
2204
|
-
if (
|
|
2205
|
-
normalized[normalizer(u)] = asNumber(
|
|
2203
|
+
const v2 = obj[u];
|
|
2204
|
+
if (v2 === void 0 || v2 === null) continue;
|
|
2205
|
+
normalized[normalizer(u)] = asNumber(v2);
|
|
2206
2206
|
}
|
|
2207
2207
|
}
|
|
2208
2208
|
return normalized;
|
|
@@ -5576,8 +5576,8 @@ var require_luxon = __commonJS({
|
|
|
5576
5576
|
}
|
|
5577
5577
|
let foundFirst = false;
|
|
5578
5578
|
for (const u of units) {
|
|
5579
|
-
const
|
|
5580
|
-
if (!isUndefined(
|
|
5579
|
+
const v2 = normalized[u];
|
|
5580
|
+
if (!isUndefined(v2)) {
|
|
5581
5581
|
foundFirst = true;
|
|
5582
5582
|
} else if (foundFirst) {
|
|
5583
5583
|
normalized[u] = defaultValues[u];
|
|
@@ -8873,12 +8873,12 @@ var require_CronExpressionParser = __commonJS({
|
|
|
8873
8873
|
if (_CronExpressionParser.#isValidConstraintChar(constraints2, result)) {
|
|
8874
8874
|
stack.push(result);
|
|
8875
8875
|
} else {
|
|
8876
|
-
const
|
|
8877
|
-
const isValid =
|
|
8876
|
+
const v2 = parseInt(result.toString(), 10);
|
|
8877
|
+
const isValid = v2 >= constraints2.min && v2 <= constraints2.max;
|
|
8878
8878
|
if (!isValid) {
|
|
8879
8879
|
throw new Error(`Constraint error, got value ${result} expected range ${constraints2.min}-${constraints2.max}`);
|
|
8880
8880
|
}
|
|
8881
|
-
stack.push(field === CronUnit.DayOfWeek ?
|
|
8881
|
+
stack.push(field === CronUnit.DayOfWeek ? v2 % 7 : result);
|
|
8882
8882
|
}
|
|
8883
8883
|
}
|
|
8884
8884
|
}
|
|
@@ -9035,10 +9035,10 @@ var require_CronFileParser = __commonJS({
|
|
|
9035
9035
|
if (k2 === void 0) k2 = k;
|
|
9036
9036
|
o[k2] = m[k];
|
|
9037
9037
|
}));
|
|
9038
|
-
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o,
|
|
9039
|
-
Object.defineProperty(o, "default", { enumerable: true, value:
|
|
9040
|
-
}) : function(o,
|
|
9041
|
-
o["default"] =
|
|
9038
|
+
var __setModuleDefault = exports && exports.__setModuleDefault || (Object.create ? (function(o, v2) {
|
|
9039
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v2 });
|
|
9040
|
+
}) : function(o, v2) {
|
|
9041
|
+
o["default"] = v2;
|
|
9042
9042
|
});
|
|
9043
9043
|
var __importStar = exports && exports.__importStar || /* @__PURE__ */ (function() {
|
|
9044
9044
|
var ownKeys = function(o) {
|
|
@@ -9668,6 +9668,7 @@ var managerEmojiAvatarSchema = z4.object({
|
|
|
9668
9668
|
background: avatarColorSchema
|
|
9669
9669
|
});
|
|
9670
9670
|
var managerChosenAvatarSchema = z4.discriminatedUnion("kind", [managerPresetAvatarSchema, managerEmojiAvatarSchema]);
|
|
9671
|
+
var managerAvatarSchema = z4.union([managerChosenAvatarSchema, z4.object({ kind: z4.literal("image"), url: z4.string() })]);
|
|
9671
9672
|
var setUpManagerTextingRequestSchema = z4.object({ line: z4.string().optional() });
|
|
9672
9673
|
var linearRuleFields = linearIssueFiltersSchema.extend({ team_id: z4.string().min(1) }).strict();
|
|
9673
9674
|
var withLabelIds = (value) => {
|
|
@@ -12305,6 +12306,7 @@ var WORKSPACE_PAUSED_COPY = {
|
|
|
12305
12306
|
line: "This workspace was paused because your organization reached its usage limit for this period. An admin can raise or remove it in billing settings."
|
|
12306
12307
|
}
|
|
12307
12308
|
};
|
|
12309
|
+
var WORKSPACE_KINDS = ["standard", "manager", "mothership", "scout"];
|
|
12308
12310
|
var MANAGER_KINDS = ["manager", "mothership"];
|
|
12309
12311
|
var CREATABLE_WORKSPACE_KINDS = ["standard", ...MANAGER_KINDS];
|
|
12310
12312
|
var createWorkspaceCanvasUploadRequestSchema = z17.object({
|
|
@@ -13547,6 +13549,12 @@ var issueRelationTypeSchema = z24.enum(ISSUE_RELATION_TYPES);
|
|
|
13547
13549
|
var issuePullRequestStateSchema = z24.enum(ISSUE_PULL_REQUEST_STATES);
|
|
13548
13550
|
var ISSUE_STATUS_LABELS = { backlog: "Backlog", todo: "Todo", in_progress: "In Progress", review: "Review", approved: "Approved", done: "Done", canceled: "Canceled", duplicate: "Duplicate" };
|
|
13549
13551
|
var ISSUE_PRIORITY_LABELS = { none: "No priority", urgent: "Urgent", high: "High", medium: "Medium", low: "Low" };
|
|
13552
|
+
var unknownValues = null;
|
|
13553
|
+
var knownOrRaw = (known) => z24.union([known, z24.custom((value) => {
|
|
13554
|
+
if (typeof value !== "string") return false;
|
|
13555
|
+
unknownValues?.push(value);
|
|
13556
|
+
return true;
|
|
13557
|
+
})]);
|
|
13550
13558
|
var issueActorSchema = z24.object({
|
|
13551
13559
|
type: z24.enum(ISSUE_ACTOR_TYPES),
|
|
13552
13560
|
id: z24.string().toLowerCase().uuid()
|
|
@@ -13561,8 +13569,8 @@ var issueSchema = z24.object({
|
|
|
13561
13569
|
identifier: z24.string(),
|
|
13562
13570
|
title: z24.string(),
|
|
13563
13571
|
description: z24.string(),
|
|
13564
|
-
status: issueStatusSchema,
|
|
13565
|
-
priority: issuePrioritySchema,
|
|
13572
|
+
status: knownOrRaw(issueStatusSchema),
|
|
13573
|
+
priority: knownOrRaw(issuePrioritySchema),
|
|
13566
13574
|
parent_id: z24.string().uuid().nullable(),
|
|
13567
13575
|
manager_id: z24.string().uuid().nullable(),
|
|
13568
13576
|
creator: issueActorSchema,
|
|
@@ -13593,7 +13601,7 @@ var issuePullRequestSchema = z24.object({
|
|
|
13593
13601
|
url: z24.string(),
|
|
13594
13602
|
pull_request_id: z24.string().uuid().nullable(),
|
|
13595
13603
|
title: z24.string().nullable(),
|
|
13596
|
-
state: issuePullRequestStateSchema,
|
|
13604
|
+
state: knownOrRaw(issuePullRequestStateSchema),
|
|
13597
13605
|
approved: z24.boolean(),
|
|
13598
13606
|
created_at: timestamp,
|
|
13599
13607
|
updated_at: timestamp
|
|
@@ -13608,36 +13616,12 @@ var issueCommentSchema = z24.object({
|
|
|
13608
13616
|
});
|
|
13609
13617
|
var change = (value) => z24.object({ from: value, to: value });
|
|
13610
13618
|
var nullableId = z24.string().uuid().nullable();
|
|
13611
|
-
var ISSUE_EVENT_TYPES = [
|
|
13612
|
-
"created",
|
|
13613
|
-
"title_changed",
|
|
13614
|
-
"description_changed",
|
|
13615
|
-
"status_changed",
|
|
13616
|
-
"priority_changed",
|
|
13617
|
-
"parent_changed",
|
|
13618
|
-
"manager_changed",
|
|
13619
|
-
"sort_order_changed",
|
|
13620
|
-
"assignee_added",
|
|
13621
|
-
"assignee_removed",
|
|
13622
|
-
"subscriber_added",
|
|
13623
|
-
"subscriber_removed",
|
|
13624
|
-
"relation_added",
|
|
13625
|
-
"relation_removed",
|
|
13626
|
-
"pr_linked",
|
|
13627
|
-
"pr_unlinked",
|
|
13628
|
-
"pr_state_changed",
|
|
13629
|
-
"comment_added",
|
|
13630
|
-
"comment_edited",
|
|
13631
|
-
"comment_deleted",
|
|
13632
|
-
"archived",
|
|
13633
|
-
"restored"
|
|
13634
|
-
];
|
|
13635
13619
|
var issueEventDataSchemas = {
|
|
13636
13620
|
created: z24.object({ issue: issueSchema }),
|
|
13637
13621
|
title_changed: change(z24.string()),
|
|
13638
13622
|
description_changed: change(z24.string()),
|
|
13639
|
-
status_changed: change(issueStatusSchema).extend({ completed_at: nullableTimestamp, canceled_at: nullableTimestamp, reason: z24.string().optional() }),
|
|
13640
|
-
priority_changed: change(issuePrioritySchema),
|
|
13623
|
+
status_changed: change(knownOrRaw(issueStatusSchema)).extend({ completed_at: nullableTimestamp, canceled_at: nullableTimestamp, reason: z24.string().optional() }),
|
|
13624
|
+
priority_changed: change(knownOrRaw(issuePrioritySchema)),
|
|
13641
13625
|
parent_changed: change(nullableId),
|
|
13642
13626
|
manager_changed: change(nullableId),
|
|
13643
13627
|
sort_order_changed: change(z24.number()),
|
|
@@ -13650,7 +13634,7 @@ var issueEventDataSchemas = {
|
|
|
13650
13634
|
relation_removed: z24.object({ relation: issueRelationSchema }),
|
|
13651
13635
|
pr_linked: z24.object({ pull_request: issuePullRequestSchema }),
|
|
13652
13636
|
pr_unlinked: z24.object({ pull_request: issuePullRequestSchema }),
|
|
13653
|
-
pr_state_changed: z24.object({ pull_request: issuePullRequestSchema, from: issuePullRequestStateSchema }),
|
|
13637
|
+
pr_state_changed: z24.object({ pull_request: issuePullRequestSchema, from: knownOrRaw(issuePullRequestStateSchema) }),
|
|
13654
13638
|
comment_added: z24.object({ comment: issueCommentSchema }),
|
|
13655
13639
|
comment_edited: z24.object({ comment: issueCommentSchema, from: z24.string() }),
|
|
13656
13640
|
comment_deleted: z24.object({ comment: issueCommentSchema }),
|
|
@@ -13670,8 +13654,10 @@ var issueEventBase = z24.object({
|
|
|
13670
13654
|
client_mutation_id: z24.string().nullable(),
|
|
13671
13655
|
created_at: timestamp
|
|
13672
13656
|
});
|
|
13673
|
-
var
|
|
13674
|
-
var
|
|
13657
|
+
var v = (type) => issueEventBase.extend({ type: z24.literal(type), data: issueEventDataSchemas[type] });
|
|
13658
|
+
var issueEventVariants = { created: v("created"), title_changed: v("title_changed"), description_changed: v("description_changed"), status_changed: v("status_changed"), priority_changed: v("priority_changed"), parent_changed: v("parent_changed"), manager_changed: v("manager_changed"), sort_order_changed: v("sort_order_changed"), assignee_added: v("assignee_added"), assignee_removed: v("assignee_removed"), subscriber_added: v("subscriber_added"), subscriber_removed: v("subscriber_removed"), relation_added: v("relation_added"), relation_removed: v("relation_removed"), pr_linked: v("pr_linked"), pr_unlinked: v("pr_unlinked"), pr_state_changed: v("pr_state_changed"), comment_added: v("comment_added"), comment_edited: v("comment_edited"), comment_deleted: v("comment_deleted"), archived: v("archived"), restored: v("restored") };
|
|
13659
|
+
var { created, ...laterVariants } = issueEventVariants;
|
|
13660
|
+
var issueEventSchema = z24.discriminatedUnion("type", [created, ...Object.values(laterVariants)]);
|
|
13675
13661
|
var clientMutationId = z24.string().min(1).max(128).optional();
|
|
13676
13662
|
var title = z24.string().trim().min(1).max(500);
|
|
13677
13663
|
var description = z24.string().max(1e5);
|
|
@@ -13751,10 +13737,41 @@ var issueDetailResponseSchema = z24.object({
|
|
|
13751
13737
|
sub_issues: z24.array(issueSchema)
|
|
13752
13738
|
});
|
|
13753
13739
|
var listIssuesResponseSchema = z24.object({ issues: z24.array(issueSchema), next_cursor: z24.number().nullable() });
|
|
13740
|
+
var issueDirectoryUserSchema = z24.object({
|
|
13741
|
+
id: z24.string(),
|
|
13742
|
+
display_name: z24.string(),
|
|
13743
|
+
avatar_url: z24.string().nullable()
|
|
13744
|
+
});
|
|
13745
|
+
var issueDirectoryWorkspaceSchema = z24.object({
|
|
13746
|
+
id: z24.string(),
|
|
13747
|
+
name: z24.string(),
|
|
13748
|
+
kind: z24.enum(WORKSPACE_KINDS),
|
|
13749
|
+
status: z24.enum(WORKSPACE_STATUSES),
|
|
13750
|
+
avatar: managerAvatarSchema.nullable(),
|
|
13751
|
+
manager_id: z24.string().nullable()
|
|
13752
|
+
});
|
|
13753
|
+
var issuesBootstrapResponseSchema = z24.object({
|
|
13754
|
+
sync_id: z24.number().int(),
|
|
13755
|
+
issue_key: z24.string(),
|
|
13756
|
+
users: z24.array(issueDirectoryUserSchema),
|
|
13757
|
+
workspaces: z24.array(issueDirectoryWorkspaceSchema),
|
|
13758
|
+
issues: z24.array(issueSchema),
|
|
13759
|
+
subscribers: z24.array(issueSubscriberSchema),
|
|
13760
|
+
relations: z24.array(issueRelationSchema),
|
|
13761
|
+
pull_requests: z24.array(issuePullRequestSchema)
|
|
13762
|
+
});
|
|
13754
13763
|
var issuesDeltaQuerySchema = z24.object({
|
|
13755
13764
|
after: z24.coerce.number().int().min(0).max(Number.MAX_SAFE_INTEGER),
|
|
13756
13765
|
limit: z24.coerce.number().int().min(1).max(1e3).optional()
|
|
13757
13766
|
});
|
|
13767
|
+
var issuesDeltaResponseSchema = z24.object({
|
|
13768
|
+
sync_id: z24.number().int(),
|
|
13769
|
+
issue_key: z24.string(),
|
|
13770
|
+
users: z24.array(issueDirectoryUserSchema),
|
|
13771
|
+
workspaces: z24.array(issueDirectoryWorkspaceSchema),
|
|
13772
|
+
events: z24.array(issueEventSchema),
|
|
13773
|
+
has_more: z24.boolean()
|
|
13774
|
+
});
|
|
13758
13775
|
var issueInboxQuerySchema = z24.object({
|
|
13759
13776
|
limit: z24.coerce.number().int().min(1).max(100).optional(),
|
|
13760
13777
|
before: z24.coerce.number().int().min(1).optional()
|
|
@@ -21580,7 +21597,7 @@ async function withRetry(label, fn, options) {
|
|
|
21580
21597
|
}
|
|
21581
21598
|
|
|
21582
21599
|
// ../shared/src/tensorlake.ts
|
|
21583
|
-
var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-20-
|
|
21600
|
+
var TENSORLAKE_IMAGE_NAME = "replicas-sandbox-2026-11-20-v27";
|
|
21584
21601
|
var TENSORLAKE_DISK_MB = 100 * 1024;
|
|
21585
21602
|
|
|
21586
21603
|
// ../shared/src/egress.ts
|
|
@@ -12,15 +12,15 @@ import {
|
|
|
12
12
|
resolveDiffBase,
|
|
13
13
|
runGitCommand,
|
|
14
14
|
setAgentCredentialSnapshot
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-DMNYJKJR.js";
|
|
16
16
|
import {
|
|
17
17
|
AppServerProcess,
|
|
18
18
|
buildCodexAgentEnv
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-K6R4D5QX.js";
|
|
20
20
|
import {
|
|
21
21
|
SUBPROCESS_MAX_BUFFER,
|
|
22
22
|
execFileAsync
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SYKDCGXG.js";
|
|
24
24
|
import {
|
|
25
25
|
isRecord
|
|
26
26
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
shrunkImageSize,
|
|
62
62
|
splitManagerInstructions,
|
|
63
63
|
withTimeout
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-FYTRGIYC.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-6IT56R2M.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-6IT56R2M.js");
|
|
487
487
|
await restartCodexAspHostIfRunning2();
|
|
488
488
|
}
|
|
489
489
|
setAgentCredentialSnapshot("codex", data);
|
|
@@ -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-SYKDCGXG.js";
|
|
7
7
|
import {
|
|
8
8
|
isVersionBelow
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-FYTRGIYC.js";
|
|
10
10
|
|
|
11
11
|
// src/utils/codex-agent-env.ts
|
|
12
12
|
function buildCodexAgentEnv(source = process.env) {
|
|
@@ -242,7 +242,7 @@ function getCodexModelProvider(method) {
|
|
|
242
242
|
if (method === "foundry") return "azure";
|
|
243
243
|
return method === "ollama" || method === "openai-compatible" ? "replicas_openai_compatible" : "openai";
|
|
244
244
|
}
|
|
245
|
-
var ENGINE_PACKAGE_VERSION = "0.1.
|
|
245
|
+
var ENGINE_PACKAGE_VERSION = "0.1.1679";
|
|
246
246
|
var INITIALIZE_METHOD = "initialize";
|
|
247
247
|
var INITIALIZED_NOTIFICATION = "initialized";
|
|
248
248
|
var ACCOUNT_LOGIN_START_METHOD = "account/login/start";
|
|
@@ -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-K6R4D5QX.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-FYTRGIYC.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-FYTRGIYC.js";
|
|
7
7
|
|
|
8
8
|
// src/utils/exec.ts
|
|
9
9
|
import { exec, execFile } from "child_process";
|
|
@@ -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-C476JE6L.js";
|
|
7
|
+
import "./chunk-DMNYJKJR.js";
|
|
8
|
+
import "./chunk-SYKDCGXG.js";
|
|
9
9
|
import {
|
|
10
10
|
isRecord
|
|
11
11
|
} from "./chunk-UZSNFLDQ.js";
|
|
12
|
-
import "./chunk-
|
|
12
|
+
import "./chunk-FYTRGIYC.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-OGTF4ZV7.js";
|
|
18
18
|
import {
|
|
19
19
|
AppServerProcess,
|
|
20
20
|
buildCodexAgentEnv
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-K6R4D5QX.js";
|
|
22
|
+
import "./chunk-SYKDCGXG.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-FYTRGIYC.js";
|
|
33
33
|
import "./chunk-VEQXQN22.js";
|
|
34
34
|
|
|
35
35
|
// src/headless-agent.ts
|
package/dist/src/index.js
CHANGED
|
@@ -91,7 +91,7 @@ import {
|
|
|
91
91
|
evaluateCommandProtection,
|
|
92
92
|
extractToolCommand,
|
|
93
93
|
reportCommandProtectionBlock
|
|
94
|
-
} from "./chunk-
|
|
94
|
+
} from "./chunk-C476JE6L.js";
|
|
95
95
|
import {
|
|
96
96
|
ACCOUNT_RATE_LIMITS_UPDATED_METHOD,
|
|
97
97
|
AGENT_MESSAGE_DELTA_METHOD,
|
|
@@ -129,10 +129,10 @@ import {
|
|
|
129
129
|
spawnMuseMsp,
|
|
130
130
|
startMuseSession,
|
|
131
131
|
uuidV7
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-OGTF4ZV7.js";
|
|
133
133
|
import {
|
|
134
134
|
publishedPullRequestUrls
|
|
135
|
-
} from "./chunk-
|
|
135
|
+
} from "./chunk-WMOVCL5T.js";
|
|
136
136
|
import {
|
|
137
137
|
ACCOUNT_RATE_LIMITS_READ_METHOD,
|
|
138
138
|
AsyncLock,
|
|
@@ -212,7 +212,7 @@ import {
|
|
|
212
212
|
transcriptSecrets,
|
|
213
213
|
upsertCredentialFileLines,
|
|
214
214
|
writeSecureCredentialFile
|
|
215
|
-
} from "./chunk-
|
|
215
|
+
} from "./chunk-GQJWKHVW.js";
|
|
216
216
|
import {
|
|
217
217
|
ENGINE_ENV,
|
|
218
218
|
UNQUOTED_PATHS_CONFIG,
|
|
@@ -223,17 +223,17 @@ import {
|
|
|
223
223
|
resolveDiffBase,
|
|
224
224
|
setAgentCredentialSnapshot,
|
|
225
225
|
setLinearSessionId
|
|
226
|
-
} from "./chunk-
|
|
226
|
+
} from "./chunk-DMNYJKJR.js";
|
|
227
227
|
import {
|
|
228
228
|
AspRequestTimeoutError,
|
|
229
229
|
buildCodexAgentEnv,
|
|
230
230
|
getCodexModelProvider
|
|
231
|
-
} from "./chunk-
|
|
231
|
+
} from "./chunk-K6R4D5QX.js";
|
|
232
232
|
import {
|
|
233
233
|
SUBPROCESS_MAX_BUFFER,
|
|
234
234
|
execAsync,
|
|
235
235
|
execFileAsync
|
|
236
|
-
} from "./chunk-
|
|
236
|
+
} from "./chunk-SYKDCGXG.js";
|
|
237
237
|
import {
|
|
238
238
|
isRecord as isRecord2
|
|
239
239
|
} from "./chunk-UZSNFLDQ.js";
|
|
@@ -533,7 +533,7 @@ import {
|
|
|
533
533
|
workspaceTokenRequestSchema,
|
|
534
534
|
workspaceTokenResponseSchema,
|
|
535
535
|
wrapInTag
|
|
536
|
-
} from "./chunk-
|
|
536
|
+
} from "./chunk-FYTRGIYC.js";
|
|
537
537
|
import {
|
|
538
538
|
__commonJS,
|
|
539
539
|
__export,
|
|
@@ -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-WMOVCL5T.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-FYTRGIYC.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