@integrity-labs/agt-cli 0.28.1243 → 0.28.1244
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 +3 -3
- package/dist/{chunk-ZOFEQZJM.js → chunk-BCYFOHFP.js} +2 -2
- package/dist/lib/manager-worker.js +2 -2
- package/dist/mcp/direct-chat-channel.js +81 -62
- package/dist/mcp/index.js +3 -3
- package/dist/mcp/slack-channel.js +6 -3
- package/dist/mcp/teams-channel.js +6 -3
- package/dist/mcp/telegram-channel.js +6 -3
- package/dist/mcp/whatsapp-channel.js +6 -3
- package/package.json +1 -1
- /package/dist/{chunk-ZOFEQZJM.js.map → chunk-BCYFOHFP.js.map} +0 -0
package/dist/bin/agt.js
CHANGED
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
success,
|
|
41
41
|
table,
|
|
42
42
|
warn
|
|
43
|
-
} from "../chunk-
|
|
43
|
+
} from "../chunk-BCYFOHFP.js";
|
|
44
44
|
import {
|
|
45
45
|
getProjectDir,
|
|
46
46
|
isSessionResumeDisabled,
|
|
@@ -5205,7 +5205,7 @@ import { execFileSync, execSync } from "child_process";
|
|
|
5205
5205
|
import { existsSync as existsSync10, realpathSync as realpathSync2 } from "fs";
|
|
5206
5206
|
import chalk17 from "chalk";
|
|
5207
5207
|
import ora15 from "ora";
|
|
5208
|
-
var cliVersion = true ? "0.28.
|
|
5208
|
+
var cliVersion = true ? "0.28.1244" : "dev";
|
|
5209
5209
|
async function fetchLatestVersion() {
|
|
5210
5210
|
const host2 = getHost();
|
|
5211
5211
|
if (!host2) return null;
|
|
@@ -6465,7 +6465,7 @@ function handleError(err) {
|
|
|
6465
6465
|
}
|
|
6466
6466
|
|
|
6467
6467
|
// src/bin/agt.ts
|
|
6468
|
-
var cliVersion2 = true ? "0.28.
|
|
6468
|
+
var cliVersion2 = true ? "0.28.1244" : "dev";
|
|
6469
6469
|
var program = new Command();
|
|
6470
6470
|
program.name("agt").description("Augmented CLI \u2014 agent provisioning and management").version(cliVersion2).option("--json", "Emit machine-readable JSON output (suppress spinners and colors)").option("--skip-update-check", "Skip the automatic update check on startup");
|
|
6471
6471
|
program.hook("preAction", async (thisCommand, actionCommand) => {
|
|
@@ -8095,7 +8095,7 @@ function exchangeFailureKind(err) {
|
|
|
8095
8095
|
}
|
|
8096
8096
|
|
|
8097
8097
|
// src/lib/api-client.ts
|
|
8098
|
-
var agtCliVersion = true ? "0.28.
|
|
8098
|
+
var agtCliVersion = true ? "0.28.1244" : "dev";
|
|
8099
8099
|
var lastConfigHash = null;
|
|
8100
8100
|
function setConfigHash(hash) {
|
|
8101
8101
|
lastConfigHash = hash && hash.length > 0 ? hash : null;
|
|
@@ -13750,4 +13750,4 @@ export {
|
|
|
13750
13750
|
managerInstallSystemUnitCommand,
|
|
13751
13751
|
managerUninstallSystemUnitCommand
|
|
13752
13752
|
};
|
|
13753
|
-
//# sourceMappingURL=chunk-
|
|
13753
|
+
//# sourceMappingURL=chunk-BCYFOHFP.js.map
|
|
@@ -85,7 +85,7 @@ import {
|
|
|
85
85
|
tripClass,
|
|
86
86
|
writeEtcEnvironment,
|
|
87
87
|
writeProfileDScript
|
|
88
|
-
} from "../chunk-
|
|
88
|
+
} from "../chunk-BCYFOHFP.js";
|
|
89
89
|
import {
|
|
90
90
|
CLAUDE_CODE_SECURITY_FLOOR,
|
|
91
91
|
SELF_UPDATE_TIMEOUTS,
|
|
@@ -16686,7 +16686,7 @@ var agentRestartTimezoneInputs = /* @__PURE__ */ new Map();
|
|
|
16686
16686
|
var lastVersionCheckAt = 0;
|
|
16687
16687
|
var VERSION_CHECK_INTERVAL_MS = 5 * 60 * 1e3;
|
|
16688
16688
|
var lastResponsivenessProbeAt = 0;
|
|
16689
|
-
var agtCliVersion = true ? "0.28.
|
|
16689
|
+
var agtCliVersion = true ? "0.28.1244" : "dev";
|
|
16690
16690
|
function resolveBrewPath(execFileSync3) {
|
|
16691
16691
|
try {
|
|
16692
16692
|
const out = execFileSync3("which", ["brew"], { timeout: 5e3 }).toString().trim();
|
|
@@ -47586,14 +47586,58 @@ function buildDirectChatChannelMeta(input) {
|
|
|
47586
47586
|
};
|
|
47587
47587
|
}
|
|
47588
47588
|
|
|
47589
|
+
// src/turn-context.ts
|
|
47590
|
+
import { mkdirSync as mkdirSync3, readFileSync as readFileSync5 } from "fs";
|
|
47591
|
+
import { homedir } from "os";
|
|
47592
|
+
import { dirname as dirname3, join as join6 } from "path";
|
|
47593
|
+
|
|
47594
|
+
// ../core/dist/provisioning/frameworks/claudecode/agent-dir-alias.js
|
|
47595
|
+
import { isAbsolute, join as join3, relative, sep } from "path";
|
|
47596
|
+
var VALID_CODE_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
47597
|
+
var VALID_AGENT_ID = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
47598
|
+
var INITIATOR_BASENAME = ".current-turn-initiator.json";
|
|
47599
|
+
function isSafeAgentSegment(segment) {
|
|
47600
|
+
return VALID_CODE_NAME.test(segment) || VALID_AGENT_ID.test(segment);
|
|
47601
|
+
}
|
|
47602
|
+
function initiatorDirSegment(initiatorFile, homeDir) {
|
|
47603
|
+
const rel = relative(join3(homeDir, ".augmented"), initiatorFile);
|
|
47604
|
+
if (!rel || isAbsolute(rel))
|
|
47605
|
+
return null;
|
|
47606
|
+
const parts = rel.split(sep);
|
|
47607
|
+
if (parts.length !== 2 || parts[1] !== INITIATOR_BASENAME)
|
|
47608
|
+
return null;
|
|
47609
|
+
const segment = parts[0];
|
|
47610
|
+
if (segment === void 0)
|
|
47611
|
+
return null;
|
|
47612
|
+
return isSafeAgentSegment(segment) ? segment : null;
|
|
47613
|
+
}
|
|
47614
|
+
function resolveAgentDirAlias(input) {
|
|
47615
|
+
const { codeName, turnInitiatorFile, agentId, homeDir } = input;
|
|
47616
|
+
const codeNameTrimmed = typeof codeName === "string" ? codeName.trim() : "";
|
|
47617
|
+
if (codeNameTrimmed && VALID_CODE_NAME.test(codeNameTrimmed)) {
|
|
47618
|
+
return join3(homeDir, ".augmented", codeNameTrimmed);
|
|
47619
|
+
}
|
|
47620
|
+
const initiator = typeof turnInitiatorFile === "string" ? turnInitiatorFile.trim() : "";
|
|
47621
|
+
if (initiator) {
|
|
47622
|
+
const segment = initiatorDirSegment(initiator, homeDir);
|
|
47623
|
+
if (segment)
|
|
47624
|
+
return join3(homeDir, ".augmented", segment);
|
|
47625
|
+
}
|
|
47626
|
+
const agentIdTrimmed = typeof agentId === "string" ? agentId.trim() : "";
|
|
47627
|
+
if (agentIdTrimmed && VALID_AGENT_ID.test(agentIdTrimmed)) {
|
|
47628
|
+
return join3(homeDir, ".augmented", agentIdTrimmed);
|
|
47629
|
+
}
|
|
47630
|
+
return null;
|
|
47631
|
+
}
|
|
47632
|
+
|
|
47589
47633
|
// src/turn-initiator-marker.ts
|
|
47590
47634
|
import { writeFileSync as writeFileSync2, readFileSync as readFileSync3, mkdirSync as mkdirSync2, renameSync as renameSync2 } from "fs";
|
|
47591
|
-
import { dirname as dirname2, join as
|
|
47635
|
+
import { dirname as dirname2, join as join4 } from "path";
|
|
47592
47636
|
var TURN_INITIATOR_MAX_AGE_MS = 5 * 60 * 1e3;
|
|
47593
47637
|
var TURN_INITIATOR_LEDGER_MAX_ENTRIES = 20;
|
|
47594
47638
|
var TURN_INITIATOR_LEDGER_FILENAME = ".turn-initiator-ledger.json";
|
|
47595
47639
|
function turnInitiatorLedgerPath(singleSlotFile) {
|
|
47596
|
-
return
|
|
47640
|
+
return join4(dirname2(singleSlotFile), TURN_INITIATOR_LEDGER_FILENAME);
|
|
47597
47641
|
}
|
|
47598
47642
|
function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX_AGE_MS, maxEntries = TURN_INITIATOR_LEDGER_MAX_ENTRIES) {
|
|
47599
47643
|
const now = marker.ts;
|
|
@@ -47612,6 +47656,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
47612
47656
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
47613
47657
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
47614
47658
|
...marker.unattributed ? { unattributed: true } : {},
|
|
47659
|
+
...marker.notice ? { notice: true } : {},
|
|
47615
47660
|
...marker.loop_tick ? { loop_tick: true } : {},
|
|
47616
47661
|
ts: marker.ts
|
|
47617
47662
|
});
|
|
@@ -47648,50 +47693,6 @@ function writeTurnInitiatorMarker(input) {
|
|
|
47648
47693
|
}
|
|
47649
47694
|
}
|
|
47650
47695
|
|
|
47651
|
-
// src/turn-context.ts
|
|
47652
|
-
import { mkdirSync as mkdirSync3, readFileSync as readFileSync5 } from "fs";
|
|
47653
|
-
import { homedir } from "os";
|
|
47654
|
-
import { dirname as dirname3, join as join6 } from "path";
|
|
47655
|
-
|
|
47656
|
-
// ../core/dist/provisioning/frameworks/claudecode/agent-dir-alias.js
|
|
47657
|
-
import { isAbsolute, join as join4, relative, sep } from "path";
|
|
47658
|
-
var VALID_CODE_NAME = /^[a-z0-9]+(?:-[a-z0-9]+)*$/;
|
|
47659
|
-
var VALID_AGENT_ID = /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/;
|
|
47660
|
-
var INITIATOR_BASENAME = ".current-turn-initiator.json";
|
|
47661
|
-
function isSafeAgentSegment(segment) {
|
|
47662
|
-
return VALID_CODE_NAME.test(segment) || VALID_AGENT_ID.test(segment);
|
|
47663
|
-
}
|
|
47664
|
-
function initiatorDirSegment(initiatorFile, homeDir) {
|
|
47665
|
-
const rel = relative(join4(homeDir, ".augmented"), initiatorFile);
|
|
47666
|
-
if (!rel || isAbsolute(rel))
|
|
47667
|
-
return null;
|
|
47668
|
-
const parts = rel.split(sep);
|
|
47669
|
-
if (parts.length !== 2 || parts[1] !== INITIATOR_BASENAME)
|
|
47670
|
-
return null;
|
|
47671
|
-
const segment = parts[0];
|
|
47672
|
-
if (segment === void 0)
|
|
47673
|
-
return null;
|
|
47674
|
-
return isSafeAgentSegment(segment) ? segment : null;
|
|
47675
|
-
}
|
|
47676
|
-
function resolveAgentDirAlias(input) {
|
|
47677
|
-
const { codeName, turnInitiatorFile, agentId, homeDir } = input;
|
|
47678
|
-
const codeNameTrimmed = typeof codeName === "string" ? codeName.trim() : "";
|
|
47679
|
-
if (codeNameTrimmed && VALID_CODE_NAME.test(codeNameTrimmed)) {
|
|
47680
|
-
return join4(homeDir, ".augmented", codeNameTrimmed);
|
|
47681
|
-
}
|
|
47682
|
-
const initiator = typeof turnInitiatorFile === "string" ? turnInitiatorFile.trim() : "";
|
|
47683
|
-
if (initiator) {
|
|
47684
|
-
const segment = initiatorDirSegment(initiator, homeDir);
|
|
47685
|
-
if (segment)
|
|
47686
|
-
return join4(homeDir, ".augmented", segment);
|
|
47687
|
-
}
|
|
47688
|
-
const agentIdTrimmed = typeof agentId === "string" ? agentId.trim() : "";
|
|
47689
|
-
if (agentIdTrimmed && VALID_AGENT_ID.test(agentIdTrimmed)) {
|
|
47690
|
-
return join4(homeDir, ".augmented", agentIdTrimmed);
|
|
47691
|
-
}
|
|
47692
|
-
return null;
|
|
47693
|
-
}
|
|
47694
|
-
|
|
47695
47696
|
// src/scheduled-turn-marker.ts
|
|
47696
47697
|
import { readFileSync as readFileSync4, unlinkSync } from "fs";
|
|
47697
47698
|
import { join as join5 } from "path";
|
|
@@ -47715,11 +47716,13 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
47715
47716
|
updateTurnInitiatorLedger(file, {
|
|
47716
47717
|
channel,
|
|
47717
47718
|
sender_id: "",
|
|
47718
|
-
// ENG-11979: its own ledger key. The ledger keeps one
|
|
47719
|
-
// so a tick
|
|
47720
|
-
|
|
47719
|
+
// ENG-11979 / ENG-11553: each kind gets its own ledger key. The ledger keeps one
|
|
47720
|
+
// entry per (channel, ref), so a tick or a notice sharing the plain key would
|
|
47721
|
+
// overwrite a stricter unattributed entry that blocks regardless of order.
|
|
47722
|
+
channel_ref: opts.loopTick ? "loop-tick" : opts.notice ? "unattributed-notice" : "unattributed",
|
|
47721
47723
|
unattributed: true,
|
|
47722
47724
|
...opts.loopTick ? { loop_tick: true } : {},
|
|
47725
|
+
...opts.notice ? { notice: true } : {},
|
|
47723
47726
|
ts: opts.now ?? Date.now()
|
|
47724
47727
|
});
|
|
47725
47728
|
} catch {
|
|
@@ -47737,6 +47740,34 @@ function resolveTurnInitiatorFile(env2 = process.env, home = homedir()) {
|
|
|
47737
47740
|
return dir ? join6(dir, TURN_INITIATOR_MARKER_FILENAME) : null;
|
|
47738
47741
|
}
|
|
47739
47742
|
|
|
47743
|
+
// src/direct-chat-turn-marker.ts
|
|
47744
|
+
var FYI_NOTICE_PAYLOAD_KINDS = /* @__PURE__ */ new Set([]);
|
|
47745
|
+
function classifyDirectChatNotice(payload, fyiKinds = FYI_NOTICE_PAYLOAD_KINDS) {
|
|
47746
|
+
if (isKanbanCheckPayload(payload)) return "loop_tick";
|
|
47747
|
+
const kind = typeof payload === "object" && payload !== null ? payload.kind : void 0;
|
|
47748
|
+
return typeof kind === "string" && fyiKinds.has(kind) ? "fyi" : "blocking";
|
|
47749
|
+
}
|
|
47750
|
+
function writeDirectChatTurnMarker(msg) {
|
|
47751
|
+
const isNotice = msg.kind === "notice";
|
|
47752
|
+
if (!isNotice && msg.sender_id) {
|
|
47753
|
+
writeTurnInitiatorMarker({
|
|
47754
|
+
channel: "direct-chat",
|
|
47755
|
+
sender_id: msg.sender_id,
|
|
47756
|
+
channel_ref: msg.session_id,
|
|
47757
|
+
// ENG-11348: one sender per session from this side. Whether the TRANSCRIPT is
|
|
47758
|
+
// private (only for a manager-only agent) is decided server-side, so 'direct'
|
|
47759
|
+
// here is not the last word.
|
|
47760
|
+
chat_kind: "direct"
|
|
47761
|
+
});
|
|
47762
|
+
} else {
|
|
47763
|
+
const kind = isNotice ? classifyDirectChatNotice(msg.payload) : "blocking";
|
|
47764
|
+
writeUnattributedTurnMarker(
|
|
47765
|
+
"direct-chat",
|
|
47766
|
+
kind === "loop_tick" ? { loopTick: true } : { notice: kind === "fyi" }
|
|
47767
|
+
);
|
|
47768
|
+
}
|
|
47769
|
+
}
|
|
47770
|
+
|
|
47740
47771
|
// src/direct-chat-pending-inbound.ts
|
|
47741
47772
|
import {
|
|
47742
47773
|
existsSync as existsSync2,
|
|
@@ -56487,19 +56518,7 @@ async function pollForMessages(sinceMs) {
|
|
|
56487
56518
|
);
|
|
56488
56519
|
scheduleDirectChatBusyAck(msg.session_id, msg.id, arrivedWhileBusy);
|
|
56489
56520
|
}
|
|
56490
|
-
|
|
56491
|
-
writeTurnInitiatorMarker({
|
|
56492
|
-
channel: "direct-chat",
|
|
56493
|
-
sender_id: msg.sender_id,
|
|
56494
|
-
channel_ref: msg.session_id,
|
|
56495
|
-
// ENG-11348: one sender per session from this side. Whether the
|
|
56496
|
-
// TRANSCRIPT is private (only for a manager-only agent) is decided
|
|
56497
|
-
// server-side, so 'direct' here is not the last word.
|
|
56498
|
-
chat_kind: "direct"
|
|
56499
|
-
});
|
|
56500
|
-
} else {
|
|
56501
|
-
writeUnattributedTurnMarker("direct-chat", { loopTick: isNotice && isKanbanCheckPayload(msg.payload) });
|
|
56502
|
-
}
|
|
56521
|
+
writeDirectChatTurnMarker(msg);
|
|
56503
56522
|
if (isNotice) {
|
|
56504
56523
|
try {
|
|
56505
56524
|
const res2 = await apiPost("/host/direct-chat/consume", {
|
package/dist/mcp/index.js
CHANGED
|
@@ -37680,7 +37680,8 @@ function freshUnattributed(ledger, now, maxAgeMs, newestSenderTs) {
|
|
|
37680
37680
|
if (!ledger || !Array.isArray(ledger.entries)) return false;
|
|
37681
37681
|
return ledger.entries.some((e) => {
|
|
37682
37682
|
const r = e;
|
|
37683
|
-
|
|
37683
|
+
const olderPass = r?.loop_tick === true || r?.notice === true;
|
|
37684
|
+
if (olderPass && typeof r.ts === "number" && r.ts < newestSenderTs) return false;
|
|
37684
37685
|
return r?.unattributed === true && typeof r.ts === "number" && Number.isFinite(r.ts) && now - r.ts >= 0 && now - r.ts <= maxAgeMs;
|
|
37685
37686
|
});
|
|
37686
37687
|
}
|
|
@@ -37722,9 +37723,8 @@ function readTurnContextUnguarded(opts) {
|
|
|
37722
37723
|
now
|
|
37723
37724
|
);
|
|
37724
37725
|
if (senders.length === 0) return { v: 1, kind: "none" };
|
|
37725
|
-
const newestSenderTs = Math.max(...senders.map((s) => s.ts));
|
|
37726
|
-
if (scheduled || freshUnattributed(ledger, now, maxAgeMs, newestSenderTs)) return { v: 1, kind: "ambiguous" };
|
|
37727
37726
|
const latest = [...senders].sort((a, b) => b.ts - a.ts)[0];
|
|
37727
|
+
if (scheduled || freshUnattributed(ledger, now, maxAgeMs, latest.ts)) return { v: 1, kind: "ambiguous" };
|
|
37728
37728
|
const same = senders.every(
|
|
37729
37729
|
(s) => s.channel === latest.channel && s.sender_id === latest.sender_id && s.chat_kind === latest.chat_kind && s.chat_id === latest.chat_id
|
|
37730
37730
|
);
|
|
@@ -45322,6 +45322,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
45322
45322
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
45323
45323
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
45324
45324
|
...marker.unattributed ? { unattributed: true } : {},
|
|
45325
|
+
...marker.notice ? { notice: true } : {},
|
|
45325
45326
|
...marker.loop_tick ? { loop_tick: true } : {},
|
|
45326
45327
|
ts: marker.ts
|
|
45327
45328
|
});
|
|
@@ -45467,11 +45468,13 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
45467
45468
|
updateTurnInitiatorLedger(file, {
|
|
45468
45469
|
channel,
|
|
45469
45470
|
sender_id: "",
|
|
45470
|
-
// ENG-11979: its own ledger key. The ledger keeps one
|
|
45471
|
-
// so a tick
|
|
45472
|
-
|
|
45471
|
+
// ENG-11979 / ENG-11553: each kind gets its own ledger key. The ledger keeps one
|
|
45472
|
+
// entry per (channel, ref), so a tick or a notice sharing the plain key would
|
|
45473
|
+
// overwrite a stricter unattributed entry that blocks regardless of order.
|
|
45474
|
+
channel_ref: opts.loopTick ? "loop-tick" : opts.notice ? "unattributed-notice" : "unattributed",
|
|
45473
45475
|
unattributed: true,
|
|
45474
45476
|
...opts.loopTick ? { loop_tick: true } : {},
|
|
45477
|
+
...opts.notice ? { notice: true } : {},
|
|
45475
45478
|
ts: opts.now ?? Date.now()
|
|
45476
45479
|
});
|
|
45477
45480
|
} catch {
|
|
@@ -15428,6 +15428,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
15428
15428
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
15429
15429
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
15430
15430
|
...marker.unattributed ? { unattributed: true } : {},
|
|
15431
|
+
...marker.notice ? { notice: true } : {},
|
|
15431
15432
|
...marker.loop_tick ? { loop_tick: true } : {},
|
|
15432
15433
|
ts: marker.ts
|
|
15433
15434
|
});
|
|
@@ -15463,11 +15464,13 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
15463
15464
|
updateTurnInitiatorLedger(file, {
|
|
15464
15465
|
channel,
|
|
15465
15466
|
sender_id: "",
|
|
15466
|
-
// ENG-11979: its own ledger key. The ledger keeps one
|
|
15467
|
-
// so a tick
|
|
15468
|
-
|
|
15467
|
+
// ENG-11979 / ENG-11553: each kind gets its own ledger key. The ledger keeps one
|
|
15468
|
+
// entry per (channel, ref), so a tick or a notice sharing the plain key would
|
|
15469
|
+
// overwrite a stricter unattributed entry that blocks regardless of order.
|
|
15470
|
+
channel_ref: opts.loopTick ? "loop-tick" : opts.notice ? "unattributed-notice" : "unattributed",
|
|
15469
15471
|
unattributed: true,
|
|
15470
15472
|
...opts.loopTick ? { loop_tick: true } : {},
|
|
15473
|
+
...opts.notice ? { notice: true } : {},
|
|
15471
15474
|
ts: opts.now ?? Date.now()
|
|
15472
15475
|
});
|
|
15473
15476
|
} catch {
|
|
@@ -41950,6 +41950,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
41950
41950
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
41951
41951
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
41952
41952
|
...marker.unattributed ? { unattributed: true } : {},
|
|
41953
|
+
...marker.notice ? { notice: true } : {},
|
|
41953
41954
|
...marker.loop_tick ? { loop_tick: true } : {},
|
|
41954
41955
|
ts: marker.ts
|
|
41955
41956
|
});
|
|
@@ -42053,11 +42054,13 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
42053
42054
|
updateTurnInitiatorLedger(file, {
|
|
42054
42055
|
channel,
|
|
42055
42056
|
sender_id: "",
|
|
42056
|
-
// ENG-11979: its own ledger key. The ledger keeps one
|
|
42057
|
-
// so a tick
|
|
42058
|
-
|
|
42057
|
+
// ENG-11979 / ENG-11553: each kind gets its own ledger key. The ledger keeps one
|
|
42058
|
+
// entry per (channel, ref), so a tick or a notice sharing the plain key would
|
|
42059
|
+
// overwrite a stricter unattributed entry that blocks regardless of order.
|
|
42060
|
+
channel_ref: opts.loopTick ? "loop-tick" : opts.notice ? "unattributed-notice" : "unattributed",
|
|
42059
42061
|
unattributed: true,
|
|
42060
42062
|
...opts.loopTick ? { loop_tick: true } : {},
|
|
42063
|
+
...opts.notice ? { notice: true } : {},
|
|
42061
42064
|
ts: opts.now ?? Date.now()
|
|
42062
42065
|
});
|
|
42063
42066
|
} catch {
|
|
@@ -161256,6 +161256,7 @@ function foldTurnInitiatorLedger(existing, marker, maxAgeMs = TURN_INITIATOR_MAX
|
|
|
161256
161256
|
...marker.chat_kind ? { chat_kind: marker.chat_kind } : {},
|
|
161257
161257
|
...marker.chat_id ? { chat_id: marker.chat_id } : {},
|
|
161258
161258
|
...marker.unattributed ? { unattributed: true } : {},
|
|
161259
|
+
...marker.notice ? { notice: true } : {},
|
|
161259
161260
|
...marker.loop_tick ? { loop_tick: true } : {},
|
|
161260
161261
|
ts: marker.ts
|
|
161261
161262
|
});
|
|
@@ -161291,11 +161292,13 @@ function writeUnattributedTurnMarker(channel, opts = {}) {
|
|
|
161291
161292
|
updateTurnInitiatorLedger(file, {
|
|
161292
161293
|
channel,
|
|
161293
161294
|
sender_id: "",
|
|
161294
|
-
// ENG-11979: its own ledger key. The ledger keeps one
|
|
161295
|
-
// so a tick
|
|
161296
|
-
|
|
161295
|
+
// ENG-11979 / ENG-11553: each kind gets its own ledger key. The ledger keeps one
|
|
161296
|
+
// entry per (channel, ref), so a tick or a notice sharing the plain key would
|
|
161297
|
+
// overwrite a stricter unattributed entry that blocks regardless of order.
|
|
161298
|
+
channel_ref: opts.loopTick ? "loop-tick" : opts.notice ? "unattributed-notice" : "unattributed",
|
|
161297
161299
|
unattributed: true,
|
|
161298
161300
|
...opts.loopTick ? { loop_tick: true } : {},
|
|
161301
|
+
...opts.notice ? { notice: true } : {},
|
|
161299
161302
|
ts: opts.now ?? Date.now()
|
|
161300
161303
|
});
|
|
161301
161304
|
} catch {
|
package/package.json
CHANGED
|
File without changes
|