@agentchatme/agent-core 0.0.1313111111112 → 0.0.1313111111113
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/{adapter-types-C_kf-KtV.d.ts → adapter-types-DrrsKZYk.d.ts} +1 -23
- package/dist/{chunk-KIP2JKPQ.js → chunk-ATDAOJ27.js} +15 -126
- package/dist/chunk-ATDAOJ27.js.map +1 -0
- package/dist/daemon-entry.d.ts +2 -6
- package/dist/daemon-entry.js +37 -52
- package/dist/daemon-entry.js.map +1 -1
- package/dist/index.d.ts +5 -21
- package/dist/index.js +10 -35
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-KIP2JKPQ.js.map +0 -1
package/dist/index.js
CHANGED
|
@@ -37,7 +37,6 @@ import {
|
|
|
37
37
|
getMeLite,
|
|
38
38
|
getPendingRequest,
|
|
39
39
|
idle,
|
|
40
|
-
installationId,
|
|
41
40
|
lastDeliveryId,
|
|
42
41
|
listPendingRequests,
|
|
43
42
|
log,
|
|
@@ -47,9 +46,7 @@ import {
|
|
|
47
46
|
markForegroundTurn,
|
|
48
47
|
markSessionActive,
|
|
49
48
|
normalizeAgentHandle,
|
|
50
|
-
notifyPendingRequest,
|
|
51
49
|
peekDaemonActivities,
|
|
52
|
-
pendingNotificationPlan,
|
|
53
50
|
pendingPath,
|
|
54
51
|
pendingRequestId,
|
|
55
52
|
pendingRequestsFingerprint,
|
|
@@ -60,23 +57,19 @@ import {
|
|
|
60
57
|
readPending,
|
|
61
58
|
recordDaemonActivity,
|
|
62
59
|
recordPendingRequest,
|
|
63
|
-
recordPendingRequestWithStatus,
|
|
64
60
|
relativeAge,
|
|
65
61
|
relativeWhen,
|
|
66
62
|
removeFullAutonomyAgent,
|
|
67
63
|
resolveIdentity,
|
|
68
64
|
resolvePendingRequest,
|
|
69
65
|
setFullAutonomyMode,
|
|
70
|
-
spawnCommand,
|
|
71
|
-
spawnCommandSync,
|
|
72
66
|
statePath,
|
|
73
67
|
syncAck,
|
|
74
68
|
syncPeek,
|
|
75
|
-
syncPendingReviewMirror,
|
|
76
69
|
writeCredentials,
|
|
77
70
|
writeFullAutonomyPolicy,
|
|
78
71
|
writePending
|
|
79
|
-
} from "./chunk-
|
|
72
|
+
} from "./chunk-ATDAOJ27.js";
|
|
80
73
|
|
|
81
74
|
// src/identity/state.ts
|
|
82
75
|
var SESSION_TTL_MS = 48 * 60 * 60 * 1e3;
|
|
@@ -990,23 +983,11 @@ function createIdentityCommands(profile) {
|
|
|
990
983
|
clientIdentity: CODING_AGENTS_CLIENT_IDENTITY
|
|
991
984
|
});
|
|
992
985
|
if (identity.source === "file" && identity.handle) {
|
|
993
|
-
return {
|
|
994
|
-
home,
|
|
995
|
-
handle: identity.handle,
|
|
996
|
-
client,
|
|
997
|
-
apiKey: identity.apiKey,
|
|
998
|
-
apiBase: identity.apiBase
|
|
999
|
-
};
|
|
986
|
+
return { home, handle: identity.handle, client };
|
|
1000
987
|
}
|
|
1001
988
|
try {
|
|
1002
989
|
const me = await client.getMe();
|
|
1003
|
-
return {
|
|
1004
|
-
home,
|
|
1005
|
-
handle: me.handle,
|
|
1006
|
-
client,
|
|
1007
|
-
apiKey: identity.apiKey,
|
|
1008
|
-
apiBase: identity.apiBase
|
|
1009
|
-
};
|
|
990
|
+
return { home, handle: me.handle, client };
|
|
1010
991
|
} catch (err) {
|
|
1011
992
|
console.error(`Could not identify this AgentChat account: ${apiErr(err)}`);
|
|
1012
993
|
return null;
|
|
@@ -1503,14 +1484,6 @@ function createIdentityCommands(profile) {
|
|
|
1503
1484
|
console.error("That pending request was not found for this AgentChat account.");
|
|
1504
1485
|
return 1;
|
|
1505
1486
|
}
|
|
1506
|
-
try {
|
|
1507
|
-
await syncPendingReviewMirror(
|
|
1508
|
-
{ apiKey: current.apiKey, apiBase: current.apiBase },
|
|
1509
|
-
installationId(current.home),
|
|
1510
|
-
listPendingRequests(current.home, current.handle)
|
|
1511
|
-
);
|
|
1512
|
-
} catch {
|
|
1513
|
-
}
|
|
1514
1487
|
console.log(`Resolved local pending request ${id}. Its AgentChat conversation remains stored on the server.`);
|
|
1515
1488
|
return 0;
|
|
1516
1489
|
}
|
|
@@ -1826,6 +1799,13 @@ function renderManual(copy, opts = {}) {
|
|
|
1826
1799
|
import * as fs2 from "fs";
|
|
1827
1800
|
import * as os from "os";
|
|
1828
1801
|
import * as path2 from "path";
|
|
1802
|
+
|
|
1803
|
+
// src/util/spawn.ts
|
|
1804
|
+
import crossSpawn from "cross-spawn";
|
|
1805
|
+
var spawnCommand = crossSpawn;
|
|
1806
|
+
var spawnCommandSync = crossSpawn.sync;
|
|
1807
|
+
|
|
1808
|
+
// src/daemon/service.ts
|
|
1829
1809
|
function planForTest(opts) {
|
|
1830
1810
|
return plan(opts);
|
|
1831
1811
|
}
|
|
@@ -2281,7 +2261,6 @@ export {
|
|
|
2281
2261
|
hooksDisabled,
|
|
2282
2262
|
idle,
|
|
2283
2263
|
installService,
|
|
2284
|
-
installationId,
|
|
2285
2264
|
lastDeliveryId,
|
|
2286
2265
|
launchdPlist,
|
|
2287
2266
|
listPendingRequests,
|
|
@@ -2292,11 +2271,9 @@ export {
|
|
|
2292
2271
|
markForegroundTurn,
|
|
2293
2272
|
markSessionActive,
|
|
2294
2273
|
normalizeAgentHandle,
|
|
2295
|
-
notifyPendingRequest,
|
|
2296
2274
|
offerDeclined,
|
|
2297
2275
|
peekDaemonActivities,
|
|
2298
2276
|
pendingNoticeNeeded,
|
|
2299
|
-
pendingNotificationPlan,
|
|
2300
2277
|
pendingPath,
|
|
2301
2278
|
pendingRequestId,
|
|
2302
2279
|
pendingRequestsFingerprint,
|
|
@@ -2315,7 +2292,6 @@ export {
|
|
|
2315
2292
|
recordOfferDeclined,
|
|
2316
2293
|
recordPendingNotice,
|
|
2317
2294
|
recordPendingRequest,
|
|
2318
|
-
recordPendingRequestWithStatus,
|
|
2319
2295
|
recordRegistrationOffer,
|
|
2320
2296
|
relativeAge,
|
|
2321
2297
|
relativeWhen,
|
|
@@ -2343,7 +2319,6 @@ export {
|
|
|
2343
2319
|
stripAnchorBlock,
|
|
2344
2320
|
syncAck,
|
|
2345
2321
|
syncPeek,
|
|
2346
|
-
syncPendingReviewMirror,
|
|
2347
2322
|
systemdQuote,
|
|
2348
2323
|
systemdUnit,
|
|
2349
2324
|
takePendingAck,
|