@atlasharness/atlascode 0.1.90 → 0.1.91
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/cli.js +20 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -30197,7 +30197,7 @@ var init_hooksSchema = __esm(() => {
|
|
|
30197
30197
|
});
|
|
30198
30198
|
|
|
30199
30199
|
// src/engine/config/types.ts
|
|
30200
|
-
var SettingsSchema = () => object({
|
|
30200
|
+
var autoCompactWindowSettingSchema, SettingsSchema = () => object({
|
|
30201
30201
|
model: string2().optional(),
|
|
30202
30202
|
modelRoles: record(string2(), any()).optional(),
|
|
30203
30203
|
defaultRole: string2().optional(),
|
|
@@ -30230,6 +30230,10 @@ var SettingsSchema = () => object({
|
|
|
30230
30230
|
search: object({ tavilyApiKey: string2().optional() }).optional(),
|
|
30231
30231
|
tui: object({ fullscreen: boolean2().optional() }).optional(),
|
|
30232
30232
|
idleCompaction: boolean2().optional(),
|
|
30233
|
+
autoCompactWindow: union([
|
|
30234
|
+
autoCompactWindowSettingSchema,
|
|
30235
|
+
record(string2(), autoCompactWindowSettingSchema)
|
|
30236
|
+
]).optional(),
|
|
30233
30237
|
skillOverrides: union([
|
|
30234
30238
|
literal("off"),
|
|
30235
30239
|
literal("user-invocable-only"),
|
|
@@ -30239,6 +30243,12 @@ var SettingsSchema = () => object({
|
|
|
30239
30243
|
var init_types3 = __esm(() => {
|
|
30240
30244
|
init_zod();
|
|
30241
30245
|
init_hooksSchema();
|
|
30246
|
+
autoCompactWindowSettingSchema = discriminatedUnion("kind", [
|
|
30247
|
+
object({ kind: literal("auto") }),
|
|
30248
|
+
object({ kind: literal("off") }),
|
|
30249
|
+
object({ kind: literal("window"), tokens: number2().int().min(1000) }),
|
|
30250
|
+
object({ kind: literal("pct"), pct: number2().min(1).max(100) })
|
|
30251
|
+
]);
|
|
30242
30252
|
});
|
|
30243
30253
|
|
|
30244
30254
|
// src/engine/config/restrictedMode.ts
|
|
@@ -89046,7 +89056,8 @@ async function runHeadless(inputPrompt, options) {
|
|
|
89046
89056
|
});
|
|
89047
89057
|
return resp.message.content.filter((block) => block.type === "text" && typeof block.text === "string").map((block) => block.text).join("");
|
|
89048
89058
|
},
|
|
89049
|
-
countTokens: (msgs) => modelProvider.countTokens("small", undefined, msgs)
|
|
89059
|
+
countTokens: (msgs) => modelProvider.countTokens("small", undefined, msgs),
|
|
89060
|
+
keepRecent: AUTOCOMPACT_KEEP_RECENT
|
|
89050
89061
|
};
|
|
89051
89062
|
const loopDeps = {
|
|
89052
89063
|
...bundle.deps,
|
|
@@ -89054,8 +89065,11 @@ async function runHeadless(inputPrompt, options) {
|
|
|
89054
89065
|
checkPermission,
|
|
89055
89066
|
toolContext: makeCtx()
|
|
89056
89067
|
};
|
|
89068
|
+
const mergedAutoCompact = mergeAutoCompactOverrides(getAutoCompactEnvOverrides(), getInitialSettings().autoCompactWindow, roleModel);
|
|
89057
89069
|
const autoCompact = {
|
|
89058
89070
|
contextWindow: (roleModel ? getProviderContextWindow(roleModel) : undefined) ?? 200000,
|
|
89071
|
+
countTokens: (msgs) => modelProvider.countTokens("small", undefined, msgs),
|
|
89072
|
+
enabled: mergedAutoCompact.autoCompactDisabled ? false : undefined,
|
|
89059
89073
|
compact: (msgs) => compactConversation(msgs, compactDeps)
|
|
89060
89074
|
};
|
|
89061
89075
|
let turnRunning = false;
|
|
@@ -126236,7 +126250,7 @@ var init_internalWrites = __esm(() => {
|
|
|
126236
126250
|
timestamps = new Map;
|
|
126237
126251
|
});
|
|
126238
126252
|
// src/tui/utils/settings/types.ts
|
|
126239
|
-
var isMcpServerCommandEntry = () => ({}), isMcpServerNameEntry = () => ({}), isMcpServerUrlEntry = () => ({}),
|
|
126253
|
+
var isMcpServerCommandEntry = () => ({}), isMcpServerNameEntry = () => ({}), isMcpServerUrlEntry = () => ({}), autoCompactWindowSettingSchema2, SettingsSchema2 = () => object({
|
|
126240
126254
|
model: string2().optional(),
|
|
126241
126255
|
modelRoles: record(string2(), any()).optional(),
|
|
126242
126256
|
defaultRole: string2().optional(),
|
|
@@ -126280,8 +126294,8 @@ var isMcpServerCommandEntry = () => ({}), isMcpServerNameEntry = () => ({}), isM
|
|
|
126280
126294
|
theme: string2().optional(),
|
|
126281
126295
|
tui: object({ fullscreen: boolean2().optional() }).optional(),
|
|
126282
126296
|
autoCompactWindow: union([
|
|
126283
|
-
|
|
126284
|
-
record(string2(),
|
|
126297
|
+
autoCompactWindowSettingSchema2,
|
|
126298
|
+
record(string2(), autoCompactWindowSettingSchema2)
|
|
126285
126299
|
]).optional(),
|
|
126286
126300
|
llmTimeoutMs: number2().int().positive().optional(),
|
|
126287
126301
|
prefersReducedMotion: boolean2().optional(),
|
|
@@ -126326,7 +126340,7 @@ var isMcpServerCommandEntry = () => ({}), isMcpServerNameEntry = () => ({}), isM
|
|
|
126326
126340
|
}).passthrough(), CUSTOMIZATION_SURFACES;
|
|
126327
126341
|
var init_types7 = __esm(() => {
|
|
126328
126342
|
init_zod();
|
|
126329
|
-
|
|
126343
|
+
autoCompactWindowSettingSchema2 = discriminatedUnion("kind", [
|
|
126330
126344
|
object({ kind: literal("auto") }),
|
|
126331
126345
|
object({ kind: literal("off") }),
|
|
126332
126346
|
object({ kind: literal("window"), tokens: number2().int().min(1000) }),
|
package/package.json
CHANGED