crewly 1.20.389 → 1.20.391
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/backend/backend/src/constants.d.ts +29 -0
- package/dist/backend/backend/src/constants.d.ts.map +1 -1
- package/dist/backend/backend/src/constants.js +29 -0
- package/dist/backend/backend/src/constants.js.map +1 -1
- package/dist/backend/backend/src/services/apps/app-wake.service.d.ts.map +1 -1
- package/dist/backend/backend/src/services/apps/app-wake.service.js +11 -0
- package/dist/backend/backend/src/services/apps/app-wake.service.js.map +1 -1
- package/dist/backend/backend/src/services/chat-v2/chat-v2.dispatcher.service.d.ts +5 -1
- package/dist/backend/backend/src/services/chat-v2/chat-v2.dispatcher.service.d.ts.map +1 -1
- package/dist/backend/backend/src/services/chat-v2/chat-v2.dispatcher.service.js +9 -3
- package/dist/backend/backend/src/services/chat-v2/chat-v2.dispatcher.service.js.map +1 -1
- package/dist/backend/backend/src/services/drive/drive-agent.service.d.ts +4 -3
- package/dist/backend/backend/src/services/drive/drive-agent.service.d.ts.map +1 -1
- package/dist/backend/backend/src/services/drive/drive-agent.service.js +24 -12
- package/dist/backend/backend/src/services/drive/drive-agent.service.js.map +1 -1
- package/dist/backend/backend/src/services/monitoring/claude-transcript-sync.service.d.ts +2 -0
- package/dist/backend/backend/src/services/monitoring/claude-transcript-sync.service.d.ts.map +1 -1
- package/dist/backend/backend/src/services/monitoring/claude-transcript-sync.service.js +12 -2
- package/dist/backend/backend/src/services/monitoring/claude-transcript-sync.service.js.map +1 -1
- package/dist/backend/backend/src/services/open-items/open-items.service.d.ts.map +1 -1
- package/dist/backend/backend/src/services/open-items/open-items.service.js +2 -1
- package/dist/backend/backend/src/services/open-items/open-items.service.js.map +1 -1
- package/dist/backend/backend/src/services/orc/reply-destination.wiring.d.ts.map +1 -1
- package/dist/backend/backend/src/services/orc/reply-destination.wiring.js +5 -3
- package/dist/backend/backend/src/services/orc/reply-destination.wiring.js.map +1 -1
- package/dist/backend/backend/src/utils/owner-text-ids.utils.d.ts +27 -0
- package/dist/backend/backend/src/utils/owner-text-ids.utils.d.ts.map +1 -0
- package/dist/backend/backend/src/utils/owner-text-ids.utils.js +59 -0
- package/dist/backend/backend/src/utils/owner-text-ids.utils.js.map +1 -0
- package/dist/backend/build-info.json +2 -2
- package/dist/cli/backend/src/constants.d.ts +29 -0
- package/dist/cli/backend/src/constants.d.ts.map +1 -1
- package/dist/cli/backend/src/constants.js +29 -0
- package/dist/cli/backend/src/constants.js.map +1 -1
- package/dist/cli/backend/src/services/chat-v2/chat-v2.dispatcher.service.d.ts +5 -1
- package/dist/cli/backend/src/services/chat-v2/chat-v2.dispatcher.service.d.ts.map +1 -1
- package/dist/cli/backend/src/services/chat-v2/chat-v2.dispatcher.service.js +9 -3
- package/dist/cli/backend/src/services/chat-v2/chat-v2.dispatcher.service.js.map +1 -1
- package/dist/cli/backend/src/services/open-items/open-items.service.d.ts.map +1 -1
- package/dist/cli/backend/src/services/open-items/open-items.service.js +2 -1
- package/dist/cli/backend/src/services/open-items/open-items.service.js.map +1 -1
- package/package.json +1 -1
|
@@ -3924,6 +3924,13 @@ export const CLAUDE_TRANSCRIPT_SYNC_CONSTANTS = {
|
|
|
3924
3924
|
* so a small window is enough and keeps the cursor file small.
|
|
3925
3925
|
*/
|
|
3926
3926
|
MAX_DEDUPE_IDS: 200,
|
|
3927
|
+
/**
|
|
3928
|
+
* Most bytes one pass reads from a transcript. A 745 MB transcript read
|
|
3929
|
+
* whole failed every minute with "Cannot create a string longer than
|
|
3930
|
+
* 0x1fffffe8 characters" and took the other sessions' sync down with it
|
|
3931
|
+
* (2026-10-22). The rest is read on the following passes.
|
|
3932
|
+
*/
|
|
3933
|
+
MAX_READ_BYTES_PER_PASS: 32 * 1024 * 1024,
|
|
3927
3934
|
/**
|
|
3928
3935
|
* How many earlier transcripts of a session keep their read offset.
|
|
3929
3936
|
* A session that switches between the owner's Claude Code accounts, or
|
|
@@ -5325,6 +5332,8 @@ export const CREWLY_APPS_CONSTANTS = {
|
|
|
5325
5332
|
WAKE_RETRY_MAX_MS: 15 * 60_000,
|
|
5326
5333
|
/** After this many failed deliveries the orchestrator hears about it, once per batch */
|
|
5327
5334
|
WAKE_FAILS_BEFORE_ORC_NOTICE: 3,
|
|
5335
|
+
/** Failed this many times (about 2 h with the backoff): the batch is dropped — the comments stay in the app — and the orchestrator is told once more (2026-10-22: 48 retries over 11 h for an agent that no longer existed) */
|
|
5336
|
+
WAKE_MAX_FAILURES: 12,
|
|
5328
5337
|
/**
|
|
5329
5338
|
* One delivery may take at most this long (it can wait behind other
|
|
5330
5339
|
* deliveries to a busy agent). Past it the attempt counts as failed and the
|
|
@@ -7749,6 +7758,26 @@ export const REPLY_ROUTING_CONSTANTS = {
|
|
|
7749
7758
|
* row and shown as one muted line when the post is not a direct answer to the
|
|
7750
7759
|
* owner's message in the same conversation.
|
|
7751
7760
|
*/
|
|
7761
|
+
/**
|
|
7762
|
+
* Internal decision / ticket ids taken out of agent posts the owner reads
|
|
7763
|
+
* (crewly#1427, utils/owner-text-ids.utils.ts).
|
|
7764
|
+
*/
|
|
7765
|
+
export const OWNER_TEXT_IDS_CONSTANTS = {
|
|
7766
|
+
/** One internal id: decision card, request ticket, project ticket */
|
|
7767
|
+
ID_PATTERN: /\b(?:D|TKT|CREW)-\d{1,6}\b/g,
|
|
7768
|
+
/** A bracket holding only ids: "(D-897)", "(D-829 / TKT-537)" */
|
|
7769
|
+
PAREN_ONLY_IDS_PATTERN: /[ \t]*[((]\s*(?:(?:D|TKT|CREW)-\d{1,6}\s*[/,,、&]?\s*)+[))]/g,
|
|
7770
|
+
/** A card/ticket noun followed by its id: "决策卡 D-919", "card D-7" — the noun stays */
|
|
7771
|
+
NOUN_THEN_ID_PATTERN: /(决策卡|发布卡|卡片|卡|工单|cards?|decisions?|tickets?)[ \t]*(?:D|TKT|CREW)-\d{1,6}\b/gi,
|
|
7772
|
+
/** A post addressed to an agent keeps its ids */
|
|
7773
|
+
AGENT_MENTION_PATTERN: /(?:^|\s)@[A-Za-z][\w-]*/,
|
|
7774
|
+
/** Code spans and links are never changed */
|
|
7775
|
+
PROTECTED_PATTERN: /(`[^`]*`|https?:\/\/\S+)/,
|
|
7776
|
+
/** Chinese text gets the Chinese fallback */
|
|
7777
|
+
CJK_PATTERN: /[\u4e00-\u9fff]/,
|
|
7778
|
+
FALLBACK_ZH: '那张卡',
|
|
7779
|
+
FALLBACK_EN: 'that card',
|
|
7780
|
+
};
|
|
7752
7781
|
export const TURN_TRIGGER_CONSTANTS = {
|
|
7753
7782
|
/** chat-v2 message metadata key holding the provenance record */
|
|
7754
7783
|
METADATA_KEY: 'triggeredBy',
|