nolo-cli 0.8.0-alpha.2 → 0.8.0-alpha.21
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/README.md +1 -1
- package/_executeModel-42U3VOVZ.js +205 -0
- package/action-TLI3V62L.js +28 -0
- package/addContentAction-57RSIIMR.js +26 -0
- package/addDialogAgentAction-G3VWEA6E.js +68 -0
- package/agentDeleteCommand-5DD2IM3J.js +327 -0
- package/agentEmailCommands-6FACJBU4.js +628 -0
- package/agentListCommands-I6KZYCIG.js +223 -0
- package/agentMachineCommands-VKLIGMZA.js +425 -0
- package/agentPullCommand-O2MTUAFR.js +122 -0
- package/agentRecordCommands-7TZICYDT.js +96 -0
- package/agentRunCommand-L4OM23KV.js +114 -0
- package/agentRunControl-K4VKNEHF.js +57 -0
- package/agentRuntimeLocal-ZYEIPTY4.js +104 -0
- package/agentSlice-BX7GXSNO.js +42 -0
- package/authCommand-EB5JSOX5.js +581 -0
- package/authCommands-XPEHTKSM.js +35 -0
- package/chunk-25LCXTML.js +175 -0
- package/chunk-2ECQG4YX.js +22296 -0
- package/chunk-2FTTDCD4.js +675 -0
- package/chunk-2JCXITPK.js +1078 -0
- package/chunk-3ASDTTEI.js +1774 -0
- package/chunk-3EUW3WEO.js +8 -0
- package/chunk-3LY4F7SV.js +9293 -0
- package/chunk-4CQLVGRV.js +50 -0
- package/chunk-4IJYA27C.js +342 -0
- package/chunk-4O3CARJ4.js +231 -0
- package/chunk-4QEWT7KD.js +933 -0
- package/chunk-4SN6J65J.js +38 -0
- package/chunk-4VNS5WPM.js +42 -0
- package/chunk-4XENYTF5.js +222 -0
- package/chunk-4ZDM73SD.js +34 -0
- package/chunk-5CS33IBL.js +301 -0
- package/chunk-5EFXE3O7.js +138 -0
- package/chunk-5KLGBAAR.js +386 -0
- package/chunk-5MIDPSSK.js +206 -0
- package/chunk-5MMAK75Q.js +15 -0
- package/chunk-63W5N6P3.js +150 -0
- package/chunk-6HYVJV7B.js +102 -0
- package/chunk-6KHNO3SK.js +1948 -0
- package/chunk-6WD3OOJS.js +20 -0
- package/chunk-7DAJ4AI4.js +191 -0
- package/chunk-7GNGZRLZ.js +1939 -0
- package/chunk-7KCUSYT2.js +354 -0
- package/chunk-7U44LYTR.js +238 -0
- package/chunk-AFON4QUU.js +112 -0
- package/chunk-AGFH73SK.js +239 -0
- package/chunk-AL2KDGR2.js +27339 -0
- package/chunk-AS4PVWA4.js +221 -0
- package/chunk-ATNTHIZI.js +13 -0
- package/chunk-AVMKZHBC.js +85 -0
- package/chunk-AZPCASRE.js +36 -0
- package/chunk-BBYVOSU2.js +792 -0
- package/chunk-C3RUNRHT.js +51 -0
- package/chunk-C4FTUXVF.js +146 -0
- package/chunk-CF2WZF4N.js +134 -0
- package/chunk-CF7PE763.js +10 -0
- package/chunk-CKOJQDKR.js +198 -0
- package/chunk-CMKUBIGW.js +1550 -0
- package/chunk-CWMSB67P.js +34 -0
- package/chunk-DCOA4QSN.js +105 -0
- package/chunk-DFFIZ25G.js +30 -0
- package/chunk-DSZUWUYB.js +478 -0
- package/chunk-DWLEOOGR.js +8 -0
- package/chunk-DZ3XJVET.js +231 -0
- package/chunk-EHLHSX7R.js +1433 -0
- package/chunk-ENOG22KJ.js +939 -0
- package/chunk-FSO5B7GH.js +171 -0
- package/chunk-FVYY6MCS.js +1447 -0
- package/chunk-G3SUCT4W.js +8 -0
- package/chunk-GAKEBQD6.js +30 -0
- package/chunk-GBRG75BQ.js +86 -0
- package/chunk-GU3PEVGZ.js +4723 -0
- package/chunk-H33743XH.js +25 -0
- package/chunk-HNMXYYJR.js +12 -0
- package/chunk-HNW7IJSK.js +71 -0
- package/chunk-I42VC5KR.js +15 -0
- package/chunk-I6XMPTMR.js +113 -0
- package/chunk-IDZTNRP2.js +85 -0
- package/chunk-ISNCLGUZ.js +146 -0
- package/chunk-IWX4UW2E.js +548 -0
- package/chunk-JBTJAPUF.js +35 -0
- package/chunk-JEXVIMYZ.js +55 -0
- package/chunk-JRKKFRAV.js +537 -0
- package/chunk-JZPBVBIY.js +94 -0
- package/chunk-KKY4B2Q2.js +21 -0
- package/chunk-KQHGZWSV.js +63 -0
- package/chunk-KUG52IAP.js +8 -0
- package/chunk-KX6YBIHG.js +8 -0
- package/chunk-LCBAMY2M.js +60 -0
- package/chunk-LM6IYQ3F.js +16 -0
- package/chunk-LTRXGFMS.js +83 -0
- package/chunk-M76ECQRD.js +13658 -0
- package/chunk-MRC4Q34M.js +188 -0
- package/chunk-MTU75CZ2.js +91 -0
- package/chunk-N54XAP77.js +19 -0
- package/chunk-O2ZNTTET.js +3272 -0
- package/chunk-O4BU24WZ.js +3212 -0
- package/chunk-OLZBQWZU.js +6 -0
- package/chunk-OOSFSFMA.js +271 -0
- package/chunk-OPZYGHUC.js +89 -0
- package/chunk-OWOHNGCN.js +50 -0
- package/chunk-P3PKED2I.js +962 -0
- package/chunk-QSJ3HFEF.js +8 -0
- package/chunk-RCSJFQPB.js +9036 -0
- package/chunk-RL776AGR.js +190 -0
- package/chunk-ROWQEJRP.js +139 -0
- package/chunk-S7Z2HMCN.js +25 -0
- package/chunk-SDJDLO5W.js +628 -0
- package/chunk-SOTZ6RDN.js +69 -0
- package/chunk-TILFE6LV.js +381 -0
- package/chunk-U4TRT5V4.js +246 -0
- package/chunk-U6VC4MU4.js +8 -0
- package/chunk-UAD2WT54.js +64 -0
- package/chunk-UB6SN4NJ.js +421 -0
- package/chunk-URUUZLPA.js +807 -0
- package/chunk-UTLZINAP.js +3066 -0
- package/chunk-VC6OZXO5.js +298 -0
- package/chunk-VF4K2QE6.js +21 -0
- package/chunk-VHBWHNVT.js +59 -0
- package/chunk-VIDPVFP3.js +20 -0
- package/chunk-VP4WJWKW.js +8882 -0
- package/chunk-VUW5FBDB.js +573 -0
- package/chunk-VVX233PH.js +482 -0
- package/chunk-VX3SXJ3N.js +2052 -0
- package/chunk-W4NVOSFF.js +37 -0
- package/chunk-WWC7I6TA.js +8 -0
- package/chunk-WZSRQNQG.js +2587 -0
- package/chunk-XBUBEFNX.js +34 -0
- package/chunk-XENYHRUE.js +104 -0
- package/chunk-Y5GCAMGP.js +9 -0
- package/chunk-YPRZSPF3.js +148 -0
- package/chunk-Z4NR32XR.js +50 -0
- package/chunk-ZNFJWEN4.js +56 -0
- package/cliExecutor-K3F7DMRO.js +36 -0
- package/clipboardy-BVE3LVEH.js +12001 -0
- package/createAgentAutomationAction-RJF3N2QY.js +866 -0
- package/createDialogAction-DRSPS6CE.js +55 -0
- package/createPageAction-6B2WMNO3.js +172 -0
- package/db-HCJ5PRB5.js +271 -0
- package/dbSlice-Q3TM2FJV.js +60 -0
- package/deleteFile-OW53A6BX.js +41 -0
- package/dialogCommands-4IX4XIZE.js +63 -0
- package/dialogSlice-3M7KX2TX.js +148 -0
- package/docCreateCommands-SIL3NPGT.js +220 -0
- package/docDeleteCommands-7IOMLUS4.js +181 -0
- package/docReadCommands-FNFXUA5L.js +134 -0
- package/docStore-SV7E34D4.js +98 -0
- package/docUpdateCommands-X2HNDVUC.js +318 -0
- package/fetchMessages-KTNM7QAR.js +17 -0
- package/getPricing-3E6UNPKL.js +30 -0
- package/handleSendMessageAction-JYETO5RZ.js +185 -0
- package/index.js +188 -112958
- package/lib-FYYBQIXS.js +19839 -0
- package/localDialogRead-2VRI24F4.js +26 -0
- package/localFirstLog-DHNOY2NA.js +19 -0
- package/localRuntimeAuthority-TEGCOWX4.js +471 -0
- package/localRuntimeDb-LGDF6FQP.js +12 -0
- package/machineCommands-RIO3RP5Q.js +781 -0
- package/machineInfo-M6KB6HZN.js +10 -0
- package/machineWsRunDispatch-W7UYLGB5.js +112 -0
- package/memoryCommands-O4MIPIWQ.js +476 -0
- package/models-4OPOOLFS.js +9 -0
- package/offlineMarxistsAgentCommand-BCPJITJL.js +242 -0
- package/package.json +4 -24
- package/read-GW7ZEI23.js +17 -0
- package/readDocTool-HUFU6OCT.js +16 -0
- package/readlineWorkspace-27JR7WPW.js +5682 -0
- package/removeDialogAgentAction-CXKR4NJI.js +73 -0
- package/runAgentClientLoop-HZFAPJHS.js +293 -0
- package/runtimeDoctorCommands-LRHLPDRC.js +289 -0
- package/setDialogExtraReferencesAction-6RKUSXHX.js +60 -0
- package/setPrimaryDialogAgentAction-T3UTBEFG.js +80 -0
- package/settingSlice-IVKXJXMG.js +199 -0
- package/skillDiscovery-UGSQGX2U.js +16 -0
- package/skillSummaryMarker-42HKSXYY.js +9 -0
- package/slateToRenderMarkdown-Y5IYN73U.js +7 -0
- package/slateUtils-2M7MUTWX.js +19 -0
- package/spaceCommands-E7VOF4LO.js +450 -0
- package/spaceSlice-TSVROA5U.js +149 -0
- package/streamAgentChatTurn-3C5RQZJF.js +4510 -0
- package/tableCommands-O7O2LBEG.js +1286 -0
- package/toolApiClient-QI3YBNWB.js +26 -0
- package/tools-EQDEKR6N.js +87 -0
- package/tuiSummaryLlmCaller-RV3THLZF.js +78 -0
- package/understanding-3CUQQ6SV.js +271 -0
- package/updateCommands-VOSPKXFF.js +31 -0
- package/updateDialogTitleAction-3XV7VWSZ.js +188 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
// packages/core/retryAfterMs.ts
|
|
2
|
+
function normalizeNonNegativeMs(value, fallbackMs) {
|
|
3
|
+
const parsed = Number(value);
|
|
4
|
+
return Number.isFinite(parsed) && parsed >= 0 ? Math.round(parsed) : Math.round(Number(fallbackMs)) || 0;
|
|
5
|
+
}
|
|
6
|
+
function parseRetryAfterHeaderMs(value, nowMs = Date.now()) {
|
|
7
|
+
if (typeof value !== "string" || !value.trim()) return null;
|
|
8
|
+
const trimmed = value.trim();
|
|
9
|
+
const seconds = Number(trimmed);
|
|
10
|
+
if (Number.isFinite(seconds)) {
|
|
11
|
+
if (seconds < 0) return null;
|
|
12
|
+
return Math.round(seconds * 1e3);
|
|
13
|
+
}
|
|
14
|
+
const parsedDateMs = Date.parse(trimmed);
|
|
15
|
+
if (Number.isFinite(parsedDateMs)) {
|
|
16
|
+
return Math.max(0, parsedDateMs - nowMs);
|
|
17
|
+
}
|
|
18
|
+
return null;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// packages/core/gatewayHttpStatus.ts
|
|
22
|
+
function isGatewayHttpStatus(status) {
|
|
23
|
+
return status === 502 || status === 503 || status === 504;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export {
|
|
27
|
+
normalizeNonNegativeMs,
|
|
28
|
+
parseRetryAfterHeaderMs,
|
|
29
|
+
isGatewayHttpStatus
|
|
30
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import {
|
|
2
|
+
asOptionalPositiveFiniteNumber
|
|
3
|
+
} from "./chunk-U6VC4MU4.js";
|
|
4
|
+
|
|
5
|
+
// packages/database/tombstones.ts
|
|
6
|
+
var TOMBSTONE_DETAIL_RETENTION_MS = 90 * 24 * 60 * 60 * 1e3;
|
|
7
|
+
var isRecord = (value) => value !== null && typeof value === "object";
|
|
8
|
+
var readRecord = (value) => isRecord(value) ? value : null;
|
|
9
|
+
var parseTimestamp = (value) => {
|
|
10
|
+
const asNumber = asOptionalPositiveFiniteNumber(value);
|
|
11
|
+
if (asNumber !== void 0) return asNumber;
|
|
12
|
+
if (typeof value === "string" && value.trim()) {
|
|
13
|
+
return asOptionalPositiveFiniteNumber(Date.parse(value)) ?? 0;
|
|
14
|
+
}
|
|
15
|
+
return 0;
|
|
16
|
+
};
|
|
17
|
+
var getRecordTimestamp = (record) => {
|
|
18
|
+
const value = readRecord(record);
|
|
19
|
+
if (!value) return 0;
|
|
20
|
+
const candidates = [
|
|
21
|
+
value.updatedAt,
|
|
22
|
+
value.updated_at,
|
|
23
|
+
value.createdAt,
|
|
24
|
+
value.created,
|
|
25
|
+
isRecord(value.meta) ? value.meta.createdAt : void 0
|
|
26
|
+
];
|
|
27
|
+
for (const candidate of candidates) {
|
|
28
|
+
const timestamp = parseTimestamp(candidate);
|
|
29
|
+
if (timestamp > 0) return timestamp;
|
|
30
|
+
}
|
|
31
|
+
return 0;
|
|
32
|
+
};
|
|
33
|
+
var getTombstoneTimestamp = (record) => {
|
|
34
|
+
const value = readRecord(record);
|
|
35
|
+
if (!value) return 0;
|
|
36
|
+
return parseTimestamp(value.deletedAt) || getRecordTimestamp(value);
|
|
37
|
+
};
|
|
38
|
+
var getRestoreTimestamp = (record) => {
|
|
39
|
+
const value = readRecord(record);
|
|
40
|
+
if (!value) return 0;
|
|
41
|
+
return parseTimestamp(value.restoredAt);
|
|
42
|
+
};
|
|
43
|
+
var isTombstoneRecord = (record) => {
|
|
44
|
+
const value = readRecord(record);
|
|
45
|
+
if (!value) return false;
|
|
46
|
+
const deletedAt = value.deletedAt;
|
|
47
|
+
if (typeof deletedAt === "string") return deletedAt.trim().length > 0;
|
|
48
|
+
return Boolean(deletedAt);
|
|
49
|
+
};
|
|
50
|
+
var isRestoredAfterTombstone = (activeRecord, tombstoneRecord) => {
|
|
51
|
+
if (isTombstoneRecord(activeRecord) || !isTombstoneRecord(tombstoneRecord)) {
|
|
52
|
+
return false;
|
|
53
|
+
}
|
|
54
|
+
const restoreTs = getRestoreTimestamp(activeRecord);
|
|
55
|
+
const tombstoneTs = getTombstoneTimestamp(tombstoneRecord);
|
|
56
|
+
return restoreTs > 0 && tombstoneTs > 0 && restoreTs > tombstoneTs;
|
|
57
|
+
};
|
|
58
|
+
var shouldReplaceWithNextRecord = (nextRecord, currentRecord) => {
|
|
59
|
+
const nextIsTombstone = isTombstoneRecord(nextRecord);
|
|
60
|
+
const currentIsTombstone = isTombstoneRecord(currentRecord);
|
|
61
|
+
if (currentIsTombstone && !nextIsTombstone) {
|
|
62
|
+
return isRestoredAfterTombstone(nextRecord, currentRecord);
|
|
63
|
+
}
|
|
64
|
+
if (nextIsTombstone && !currentIsTombstone) {
|
|
65
|
+
return !isRestoredAfterTombstone(currentRecord, nextRecord);
|
|
66
|
+
}
|
|
67
|
+
const nextTs = nextIsTombstone ? getTombstoneTimestamp(nextRecord) : getRecordTimestamp(nextRecord);
|
|
68
|
+
const currentTs = currentIsTombstone ? getTombstoneTimestamp(currentRecord) : getRecordTimestamp(currentRecord);
|
|
69
|
+
if (nextTs !== currentTs) return nextTs > currentTs;
|
|
70
|
+
return nextIsTombstone && !currentIsTombstone;
|
|
71
|
+
};
|
|
72
|
+
var buildTombstoneRecord = (record, nowIso) => {
|
|
73
|
+
const { restoredAt: _restoredAt, ...baseRecord } = record;
|
|
74
|
+
return {
|
|
75
|
+
...baseRecord,
|
|
76
|
+
deletedAt: nowIso,
|
|
77
|
+
updatedAt: nowIso
|
|
78
|
+
};
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export {
|
|
82
|
+
getRecordTimestamp,
|
|
83
|
+
isTombstoneRecord,
|
|
84
|
+
shouldReplaceWithNextRecord,
|
|
85
|
+
buildTombstoneRecord
|
|
86
|
+
};
|