@integrity-labs/agt-cli 0.28.1006 → 0.28.1008
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/bin/agt.js +6 -5
- package/dist/bin/agt.js.map +1 -1
- package/dist/{chunk-O6R6HS2Z.js → chunk-7IA22OU6.js} +73 -8
- package/dist/chunk-7IA22OU6.js.map +1 -0
- package/dist/chunk-EL5MWGGH.js +160 -0
- package/dist/chunk-EL5MWGGH.js.map +1 -0
- package/dist/{chunk-XWMUQR65.js → chunk-KGVYZBS2.js} +1 -1
- package/dist/{chunk-XWMUQR65.js.map → chunk-KGVYZBS2.js.map} +1 -1
- package/dist/{chunk-Z5UDL4AB.js → chunk-VBQU3ATJ.js} +40 -8
- package/dist/chunk-VBQU3ATJ.js.map +1 -0
- package/dist/{claude-code-updater-45MB2AXE.js → claude-code-updater-NEJCTT7S.js} +7 -3
- package/dist/claude-code-updater-NEJCTT7S.js.map +1 -0
- package/dist/{claude-pair-runtime-AW4N6NEE.js → claude-pair-runtime-5JVOLSQY.js} +19 -4
- package/dist/claude-pair-runtime-5JVOLSQY.js.map +1 -0
- package/dist/lib/manager-worker.js +170 -155
- package/dist/lib/manager-worker.js.map +1 -1
- package/dist/{persistent-session-K4DLZ7KF.js → persistent-session-MMXQ3V3H.js} +6 -3
- package/dist/{responsiveness-probe-DXPEIUH6.js → responsiveness-probe-UE5I7ZXI.js} +4 -3
- package/dist/{responsiveness-probe-DXPEIUH6.js.map → responsiveness-probe-UE5I7ZXI.js.map} +1 -1
- package/dist/{session-auth-dead-4SE5Q7MU.js → session-auth-dead-YAYE7YGZ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-O6R6HS2Z.js.map +0 -1
- package/dist/chunk-Z5UDL4AB.js.map +0 -1
- package/dist/claude-code-updater-45MB2AXE.js.map +0 -1
- package/dist/claude-pair-runtime-AW4N6NEE.js.map +0 -1
- /package/dist/{persistent-session-K4DLZ7KF.js.map → persistent-session-MMXQ3V3H.js.map} +0 -0
- /package/dist/{session-auth-dead-4SE5Q7MU.js.map → session-auth-dead-YAYE7YGZ.js.map} +0 -0
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
parseEnvFileEntries,
|
|
16
16
|
parseEnvIntegrations,
|
|
17
17
|
shellQuote
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-7IA22OU6.js";
|
|
19
19
|
import {
|
|
20
20
|
BIND_FAILURE_QUARANTINE_THRESHOLD,
|
|
21
21
|
INTEGRATIONS_SECTION_END,
|
|
@@ -75,7 +75,7 @@ import {
|
|
|
75
75
|
sessionTranscriptDir,
|
|
76
76
|
worseConnectivityOutcome,
|
|
77
77
|
wrapScheduledTaskPrompt
|
|
78
|
-
} from "./chunk-
|
|
78
|
+
} from "./chunk-KGVYZBS2.js";
|
|
79
79
|
import {
|
|
80
80
|
classifyUnanswerablePane,
|
|
81
81
|
summarizeUnanswerablePane
|
|
@@ -83,6 +83,11 @@ import {
|
|
|
83
83
|
import {
|
|
84
84
|
parsePsRows
|
|
85
85
|
} from "./chunk-XWVM4KPK.js";
|
|
86
|
+
import {
|
|
87
|
+
claudeJsonPathFor,
|
|
88
|
+
effectiveClaudeJsonPath,
|
|
89
|
+
inspectClaudeConfig
|
|
90
|
+
} from "./chunk-EL5MWGGH.js";
|
|
86
91
|
|
|
87
92
|
// ../../packages/core/dist/provisioning/mcp-config-guards.js
|
|
88
93
|
import { chmodSync, existsSync, readFileSync, renameSync, writeFileSync, unlinkSync } from "fs";
|
|
@@ -2166,10 +2171,24 @@ function resolveBrokerAgentId(codeName, fallback) {
|
|
|
2166
2171
|
return void 0;
|
|
2167
2172
|
}
|
|
2168
2173
|
function ensureWorkspaceTrusted(projectDir) {
|
|
2169
|
-
const configPath =
|
|
2174
|
+
const configPath = effectiveClaudeJsonPath();
|
|
2170
2175
|
try {
|
|
2171
2176
|
let config = {};
|
|
2172
|
-
|
|
2177
|
+
const inConfigDir = claudeJsonPathFor();
|
|
2178
|
+
if (configPath !== inConfigDir) {
|
|
2179
|
+
const dirState = inspectClaudeConfig(inConfigDir);
|
|
2180
|
+
if (dirState === "unreadable" || dirState === "symlink") {
|
|
2181
|
+
process.stderr.write(`[workspace-trust] [config-dir-unusable] state=${dirState} path=${inConfigDir} \u2014 writing the trust flag to ${configPath}, which is what agents on this host read
|
|
2182
|
+
`);
|
|
2183
|
+
}
|
|
2184
|
+
}
|
|
2185
|
+
const state = inspectClaudeConfig(configPath);
|
|
2186
|
+
if (state === "symlink") {
|
|
2187
|
+
process.stderr.write(`[workspace-trust] [refused-symlink] project=${projectDir} path=${configPath}
|
|
2188
|
+
`);
|
|
2189
|
+
return;
|
|
2190
|
+
}
|
|
2191
|
+
if (state !== "missing") {
|
|
2173
2192
|
const raw = readFileSync4(configPath, "utf-8");
|
|
2174
2193
|
if (raw.trim()) {
|
|
2175
2194
|
config = JSON.parse(raw);
|
|
@@ -2182,9 +2201,22 @@ function ensureWorkspaceTrusted(projectDir) {
|
|
|
2182
2201
|
entry["hasTrustDialogAccepted"] = true;
|
|
2183
2202
|
projects[projectDir] = entry;
|
|
2184
2203
|
config["projects"] = projects;
|
|
2204
|
+
mkdirSync3(dirname3(configPath), { recursive: true });
|
|
2185
2205
|
const tmpPath = `${configPath}.agt-${process.pid}.tmp`;
|
|
2186
|
-
|
|
2187
|
-
|
|
2206
|
+
try {
|
|
2207
|
+
writeFileSync4(tmpPath, `${JSON.stringify(config, null, 2)}
|
|
2208
|
+
`, {
|
|
2209
|
+
mode: 384,
|
|
2210
|
+
flag: "wx"
|
|
2211
|
+
});
|
|
2212
|
+
} catch (err) {
|
|
2213
|
+
if (err.code === "EEXIST") {
|
|
2214
|
+
process.stderr.write(`[workspace-trust] [refused-temp-exists] project=${projectDir} path=${tmpPath} \u2014 something is already at the manager's temp path; refusing to write through it
|
|
2215
|
+
`);
|
|
2216
|
+
return;
|
|
2217
|
+
}
|
|
2218
|
+
throw err;
|
|
2219
|
+
}
|
|
2188
2220
|
renameSync4(tmpPath, configPath);
|
|
2189
2221
|
process.stderr.write(`[workspace-trust] [accepted] project=${projectDir}
|
|
2190
2222
|
`);
|
|
@@ -6974,7 +7006,7 @@ function exchangeFailureKind(err) {
|
|
|
6974
7006
|
}
|
|
6975
7007
|
|
|
6976
7008
|
// src/lib/api-client.ts
|
|
6977
|
-
var agtCliVersion = true ? "0.28.
|
|
7009
|
+
var agtCliVersion = true ? "0.28.1008" : "dev";
|
|
6978
7010
|
var lastConfigHash = null;
|
|
6979
7011
|
function setConfigHash(hash) {
|
|
6980
7012
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -11755,4 +11787,4 @@ export {
|
|
|
11755
11787
|
managerInstallSystemUnitCommand,
|
|
11756
11788
|
managerUninstallSystemUnitCommand
|
|
11757
11789
|
};
|
|
11758
|
-
//# sourceMappingURL=chunk-
|
|
11790
|
+
//# sourceMappingURL=chunk-VBQU3ATJ.js.map
|