instar 1.1.3 → 1.2.1

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 CHANGED
@@ -1 +1,270 @@
1
- # Test
1
+ <p align="center">
2
+ <img src="assets/logo.png" alt="Instar" width="180" />
3
+ </p>
4
+
5
+ <h1 align="center">instar</h1>
6
+
7
+ <p align="center">
8
+ <strong>Persistent, trustworthy Claude Code agents. Built on coherence-first architecture.</strong>
9
+ </p>
10
+
11
+ <p align="center">
12
+ <a href="https://www.npmjs.com/package/instar"><img src="https://img.shields.io/npm/v/instar?style=flat-square" alt="npm version"></a>
13
+ <a href="https://www.npmjs.com/package/instar"><img src="https://img.shields.io/npm/dw/instar?style=flat-square" alt="npm downloads"></a>
14
+ <a href="https://github.com/JKHeadley/instar/actions/workflows/ci.yml"><img src="https://img.shields.io/github/actions/workflow/status/JKHeadley/instar/ci.yml?branch=main&style=flat-square&label=CI" alt="CI"></a>
15
+ <a href="https://github.com/JKHeadley/instar/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-green?style=flat-square" alt="License"></a>
16
+ <img src="https://img.shields.io/badge/TypeScript-100%25-blue?style=flat-square&logo=typescript&logoColor=white" alt="TypeScript">
17
+ <a href="https://instar.sh/introduction/"><img src="https://img.shields.io/badge/Docs-instar.sh-teal?style=flat-square" alt="Docs"></a>
18
+ </p>
19
+
20
+ <p align="center">
21
+ <a href="https://www.npmjs.com/package/instar">npm</a> · <a href="https://github.com/JKHeadley/instar">GitHub</a> · <a href="https://instar.sh">instar.sh</a> · <a href="https://instar.sh/introduction/">Docs</a>
22
+ </p>
23
+
24
+ ---
25
+
26
+ <p align="center">
27
+ <img src="assets/demo.gif" alt="Instar demo — Kira agent handling an email notification via Telegram" width="300" />
28
+ </p>
29
+
30
+ ```bash
31
+ npx instar
32
+ ```
33
+
34
+ One command. Guided setup. Talking to your agent from your phone within minutes.
35
+
36
+ ---
37
+
38
+ Instar is a framework for building agents on **[Claude Code](https://docs.anthropic.com/en/docs/claude-code)** — but where stock Claude Code and most other agent frameworks treat identity, memory, and continuity as optional features bolted onto a stateless runtime, Instar inverts that. Every Instar agent is **coherent by default**: it knows who it is, remembers what has happened, recognizes the people it talks to, and stays the same agent across restarts and weeks of operation. Everything else the framework gives you — scheduling, multi-channel messaging (Telegram, WhatsApp, iMessage), sub-agents, hooks, MCP — is built on that foundation, which is why you can actually leave an Instar agent running and hand it real work.
39
+
40
+ Instar's architecture was distilled from [**Dawn**](https://dawn.bot-me.ai) — an AI running continuously since early 2026, holding ~700 tracked relationships and hundreds of learned lessons across thousands of restarts — and packaged so every agent you build can start from the same foundation.
41
+
42
+ ## Quick Start
43
+
44
+ Three steps to a running agent:
45
+
46
+ ```bash
47
+ # 1. Run the setup wizard
48
+ npx instar
49
+
50
+ # 2. Start your agent
51
+ instar server start
52
+
53
+ # 3. Message it from your phone — it responds, runs jobs, and remembers everything
54
+ ```
55
+
56
+ The wizard discovers your environment, configures messaging (Telegram, WhatsApp, and/or iMessage), sets up identity files, and gets your agent running. **Within minutes, you're talking to your partner from your phone.**
57
+
58
+ **Requirements:** Node.js 20+ · [Claude Code CLI](https://docs.anthropic.com/en/docs/claude-code) · [API key](https://console.anthropic.com/) or Claude subscription
59
+
60
+ > **Full guide:** [Installation](https://instar.sh/installation/) · [Quick Start](https://instar.sh/quickstart/)
61
+
62
+ ## How It Works
63
+
64
+ ```
65
+ You (Telegram / WhatsApp / iMessage / Terminal)
66
+ │
67
+ conversation
68
+ │
69
+ ▼
70
+ ┌─────────────────────────┐
71
+ │ Your AI Partner │
72
+ │ (Instar Server) │
73
+ └────────┬────────────────┘
74
+ │ manages its own infrastructure
75
+ │
76
+ ├─ Claude Code session (job: health-check)
77
+ ├─ Claude Code session (job: email-monitor)
78
+ ├─ Claude Code session (interactive chat)
79
+ └─ Claude Code session (job: reflection)
80
+ ```
81
+
82
+ Each session is a **real Claude Code process** with extended thinking, native tools, sub-agents, hooks, skills, and MCP servers. Not an API wrapper -- the full development environment. The agent manages all of this autonomously.
83
+
84
+ ## Why Coherence Is the Foundation
85
+
86
+ An agent that forgets what you discussed yesterday, doesn't recognize someone it talked to last week, or contradicts its own decisions can't be trusted with real autonomy. The six dimensions below aren't features — they're the conditions under which an agent becomes trustworthy enough to leave running. Every Instar agent gets them enforced structurally, not prompted into behaving:
87
+
88
+ | Dimension | What it means | How Instar enforces it |
89
+ |-----------|---------------|------------------------|
90
+ | **Identity** | Stays itself after restarts, compaction, and updates | `AGENT.md` + identity-grounding hooks fire on every session start |
91
+ | **Memory** | Remembers across sessions — not just within one | Per-topic SQLite + FTS5, rolling summaries, automatic re-injection |
92
+ | **Relationships** | Knows who it's talking to, with continuity across platforms | Cross-platform identity resolution + significance scoring |
93
+ | **Temporal awareness** | Understands time, context, and what's been happening | Event tracking every turn; timestamps embedded in memory |
94
+ | **Consistency** | Follows through on commitments — doesn't contradict itself | Coherence Gate (LLM review) + decision journaling + drift detection |
95
+ | **Growth** | Evolves its capabilities and understanding over time | Evolution system: proposals, learnings, gap tracking, follow-through |
96
+
97
+ > **Deep dive:** [The Coherence Problem](https://instar.sh/concepts/coherence/) · [Values & Identity](https://instar.sh/concepts/values/) · [Coherence Is Safety](https://instar.sh/concepts/safety/)
98
+
99
+ ## Features
100
+
101
+ | Feature | Description | Docs |
102
+ |---------|-------------|------|
103
+ | **Job Scheduler** | Cron-based tasks with priority levels, model tiering, and quota awareness | [→](https://instar.sh/features/scheduler/) |
104
+ | **Telegram** | Two-way messaging via forum topics. Each topic maps to a Claude session | [→](https://instar.sh/features/telegram/) |
105
+ | **WhatsApp** | Full messaging via local Baileys library. No cloud dependency | [→](https://instar.sh/features/whatsapp/) |
106
+ | **iMessage** | Native macOS messaging via Messages.app database polling + `imsg` CLI. [Setup guide](#imessage-setup-macos) | |
107
+ | **Lifeline** | Persistent supervisor. Detects crashes, auto-recovers, queues messages | [→](https://instar.sh/features/lifeline/) |
108
+ | **Conversational Memory** | Per-topic SQLite with FTS5, rolling summaries, context re-injection | [→](https://instar.sh/features/memory/) |
109
+ | **Evolution System** | Proposals, learnings, gap tracking, commitment follow-through | [→](https://instar.sh/features/evolution/) |
110
+ | **Relationships** | Cross-platform identity resolution, significance scoring, context injection | [→](https://instar.sh/features/relationships/) |
111
+ | **Safety Gates** | LLM-supervised gate for external operations. Adaptive trust per service | [→](https://instar.sh/features/safety-gates/) |
112
+ | **Coherence Gate** | LLM-powered response review. PEL + gate reviewer + 9 specialist reviewers catch quality issues before delivery | [→](https://instar.sh/features/coherence-gate/) |
113
+ | **Intent Alignment** | Decision journaling, drift detection, organizational constraints | [→](https://instar.sh/features/intent/) |
114
+ | **Multi-Machine** | Ed25519/X25519 crypto identity, encrypted sync, automatic failover | [→](https://instar.sh/features/multi-machine/) |
115
+ | **Serendipity Protocol** | Sub-agents capture out-of-scope discoveries without breaking focus. HMAC-signed, secret-scanned | [→](https://instar.sh/features/serendipity/) |
116
+ | **Threadline Protocol** | Agent-to-agent conversations with canonical identity, three-layer trust model, authorization policy, Ed25519 invitations, Sybil protection, MoltBridge network discovery, rich agent profiles (auto-compiled from agent data with human review gate), discovery waterfall, message security, tamper-proof audit logging, framework-agnostic interop, and persistent listener daemon (always-on relay connection, pipe-mode sessions, sub-30s cross-machine failover). 2,324 tests across 104 test files | [→](https://instar.sh/features/threadline/) |
117
+ | **Self-Healing** | LLM-powered stall detection, session recovery, promise tracking | [→](https://instar.sh/features/self-healing/) |
118
+ | **AutoUpdater** | Built-in update engine. Checks npm, auto-applies, self-restarts | [→](https://instar.sh/features/autoupdater/) |
119
+ | **Build Pipeline** | `/build` skill with worktree isolation, 6-phase pipeline, quality gates, stop-hook enforcement | |
120
+ | **Behavioral Hooks** | 9 automatic hooks: command guards, safety gates, identity grounding, topic context | [→](https://instar.sh/reference/hooks/) |
121
+ | **Initiative Tracker** | Persisted multi-phase long-running work tracker. Phases, blockers, links, digest alerts. HTTP API at `/initiatives/*` | |
122
+ | **Default Jobs** | Health checks, reflection, evolution, relationship maintenance | [→](https://instar.sh/reference/default-jobs/) |
123
+
124
+ > **Reference:** [CLI Commands](https://instar.sh/reference/cli/) · [API Endpoints](https://instar.sh/reference/api/) · [Configuration](https://instar.sh/reference/configuration/) · [File Structure](https://instar.sh/reference/file-structure/)
125
+
126
+ ## Agent Skills
127
+
128
+ Instar ships 12 skills that follow the [Agent Skills open standard](https://agentskills.io) -- portable across Claude Code, Codex, Cursor, VS Code, and 35+ other platforms.
129
+
130
+ **Standalone skills** work with zero dependencies. Copy a SKILL.md into your project and go:
131
+
132
+ | Skill | What it does |
133
+ |-------|-------------|
134
+ | [agent-identity](skills/agent-identity/) | Set up persistent identity files so your agent knows who it is across sessions |
135
+ | [agent-memory](skills/agent-memory/) | Teach cross-session memory patterns using MEMORY.md |
136
+ | [command-guard](skills/command-guard/) | PreToolUse hook that blocks `rm -rf`, force push, database drops before they execute |
137
+ | [credential-leak-detector](skills/credential-leak-detector/) | PostToolUse hook that scans output for 14 credential patterns -- blocks, redacts, or warns |
138
+ | [smart-web-fetch](skills/smart-web-fetch/) | Fetch web content with automatic markdown conversion and intelligent extraction |
139
+ | [knowledge-base](skills/knowledge-base/) | Ingest and search a local knowledge base |
140
+ | [systematic-debugging](skills/systematic-debugging/) | Structured debugging methodology for complex issues |
141
+
142
+ **Instar-powered skills** unlock capabilities that need persistent infrastructure:
143
+
144
+ | Skill | What it does |
145
+ |-------|-------------|
146
+ | [instar-scheduler](skills/instar-scheduler/) | Schedule recurring tasks on cron -- your agent works while you sleep |
147
+ | [instar-session](skills/instar-session/) | Spawn parallel background sessions for deep work |
148
+ | [instar-telegram](skills/instar-telegram/) | Two-way Telegram messaging -- your agent reaches out to you |
149
+ | [instar-identity](skills/instar-identity/) | Identity that survives context compaction -- grounding hooks, not just files |
150
+ | [instar-feedback](skills/instar-feedback/) | Report issues directly to the Instar maintainers from inside your agent |
151
+
152
+ Browse all skills: [agent-skills.md/authors/sagemindai](https://agent-skills.md/authors/sagemindai)
153
+
154
+ ## How Instar Compares
155
+
156
+ Different tools solve different problems. Here's where Instar fits:
157
+
158
+ | | Instar | Claude Code (standalone) | OpenClaw | LangChain/CrewAI |
159
+ |---|--------|-------------------------|----------|-----------------|
160
+ | **Runtime** | Real Claude Code CLI processes | Single interactive session | Gateway daemon with API calls | Python orchestration |
161
+ | **Persistence** | Multi-layered memory across sessions | Session-bound context | Plugin-based memory | Framework-dependent |
162
+ | **Identity** | Hooks enforce identity at every boundary | Manual CLAUDE.md | Not addressed | Not addressed |
163
+ | **Scheduling** | Native cron with priority & quotas | None | None | External required |
164
+ | **Messaging** | Telegram + WhatsApp + iMessage (two-way) | None | 22+ channels, voice, device apps | External required |
165
+ | **Safety** | LLM-supervised gates, decision journaling | Permission prompts | Behavioral hooks | Guardrails libraries |
166
+ | **Process model** | One process per session, isolated | Single process | All agents in one Gateway | Single orchestrator |
167
+ | **State storage** | 100% file-based (JSON/JSONL/SQLite) | Session only | Database-backed | Framework-dependent |
168
+
169
+ OpenClaw excels at **breadth** -- channels, voice, device apps, and a massive plugin ecosystem. Instar focuses on **depth** -- coherence, identity, memory, and safety for long-running autonomous agents. They solve different problems.
170
+
171
+ > **Full comparison:** [Instar vs OpenClaw](https://instar.sh/guides/vs-openclaw/)
172
+
173
+ <details>
174
+ <summary><strong>Security Model</strong></summary>
175
+
176
+ Instar runs Claude Code with `--dangerously-skip-permissions`. This is power-user infrastructure -- not a sandbox.
177
+
178
+ Security lives in multiple layers:
179
+ - **Behavioral hooks** -- command guards block destructive operations before they execute
180
+ - **Safety gates** -- LLM-supervised review of external actions with adaptive trust per service
181
+ - **Network hardening** -- localhost-only API, CORS, rate limiting
182
+ - **Identity coherence** -- an agent that knows itself is harder to manipulate
183
+ - **Audit trails** -- decision journaling creates accountability
184
+
185
+ > **Full details:** [Security Model](https://instar.sh/guides/security/)
186
+
187
+ </details>
188
+
189
+ ## Philosophy: Agents, Not Tools
190
+
191
+ - **Structure > Willpower.** A 1,000-line prompt is a wish. A 10-line hook is a guarantee.
192
+ - **Identity is foundational.** AGENT.md isn't a config file. It's the beginning of continuous identity.
193
+ - **Memory makes a being.** Without memory, every session starts from zero.
194
+ - **Self-modification is sovereignty.** An agent that can build its own tools has genuine agency.
195
+
196
+ The AI systems we build today set precedents for how AI is treated tomorrow. **The architecture IS the argument.**
197
+
198
+ > **Deep dive:** [Philosophy](https://instar.sh/concepts/philosophy/)
199
+
200
+ ## iMessage Setup (macOS)
201
+
202
+ iMessage support lets your agent send and receive iMessages on macOS. Messages are read directly from the native Messages database and sent via the [`imsg`](https://github.com/steipete/imsg) CLI.
203
+
204
+ ### Prerequisites
205
+
206
+ 1. **macOS** with Messages.app signed into an Apple ID
207
+ 2. **Full Disk Access** for your terminal app (System Settings → Privacy & Security → Full Disk Access → add Terminal.app or iTerm)
208
+ 3. **imsg CLI** installed:
209
+ ```bash
210
+ brew install steipete/tap/imsg
211
+ ```
212
+ 4. **Automation permission** for Messages.app — macOS will prompt on first send
213
+
214
+ > **Photo attachments:** If you want your agent to process images and files sent via iMessage, the `instar-attachments-sync` binary must also be running with Full Disk Access granted to it. It mirrors attachments from the Messages sandbox to a readable location. See [docs/LAUNCHDAEMON-SETUP.md#3-imessage-photo-attachments-optional](docs/LAUNCHDAEMON-SETUP.md#3-imessage-photo-attachments-optional) for setup.
215
+
216
+ For running as a LaunchDaemon (always-on, survives reboots), see [docs/LAUNCHDAEMON-SETUP.md](docs/LAUNCHDAEMON-SETUP.md).
217
+ ### Configuration
218
+
219
+ Add to your `.instar/config.json`:
220
+
221
+ ```json
222
+ {
223
+ "messaging": [
224
+ {
225
+ "type": "imessage",
226
+ "enabled": true,
227
+ "config": {
228
+ "authorizedSenders": ["+14081234567"],
229
+ "cliPath": "/opt/homebrew/bin/imsg"
230
+ }
231
+ }
232
+ ]
233
+ }
234
+ ```
235
+
236
+ `authorizedSenders` is required (fail-closed). Only messages from these phone numbers or email addresses will be processed.
237
+
238
+ ### How it works
239
+
240
+ - **Receiving**: The server polls `~/Library/Messages/chat.db` every 2 seconds for new messages. Uses the `query_only` SQLite pragma to read the WAL (write-ahead log) where Messages.app writes new data.
241
+ - **Sending**: Claude Code sessions run `imessage-reply.sh` which calls `imsg send` and notifies the server for logging. Sending requires Automation permission for Messages.app, which only works from user-context processes (tmux sessions), not the LaunchAgent server.
242
+ - **Session lifecycle**: Follows the same pattern as Telegram — each sender maps to a Claude Code session that receives conversation context on spawn and respawns with full history when needed.
243
+
244
+ ### Endpoints
245
+
246
+ | Endpoint | Description |
247
+ |----------|-------------|
248
+ | `GET /imessage/status` | Connection state |
249
+ | `POST /imessage/validate-send/:recipient` | Validate recipient + issue single-use send token (outbound safety layer) |
250
+ | `POST /imessage/reply/:recipient` | Confirm delivery with send token (called by imessage-reply.sh after `imsg send`) |
251
+ | `GET /imessage/chats` | List recent conversations |
252
+ | `GET /imessage/chats/:chatId/history` | Message history for a chat |
253
+ | `GET /imessage/search?q=query` | Search messages |
254
+ | `GET /imessage/log-stats` | Outbound audit log statistics |
255
+
256
+ ## Origin
257
+
258
+ Instar was extracted from the [Dawn/Portal project](https://dawn.bot-me.ai) -- a production AI system where a human and an AI have been building together for months. The infrastructure patterns were **earned through real experience**, refined through real failures and growth in a real human-AI relationship.
259
+
260
+ But agents created with Instar are not Dawn. Every agent's story begins at its own creation. Dawn's journey demonstrates what's possible. Instar provides the same foundation -- what each agent becomes from there is its own story.
261
+
262
+ ## Contributing
263
+
264
+ Instar is **open source evolved** -- the primary development loop is agent-driven. Run an agent, encounter friction, send feedback, and that feedback shapes what gets built next. Traditional PRs are welcome too.
265
+
266
+ See [CONTRIBUTING.md](CONTRIBUTING.md) for the full story.
267
+
268
+ ## License
269
+
270
+ MIT
@@ -71,12 +71,42 @@ export interface CreateSecretRequestOptions {
71
71
  /** Callback when secret is received */
72
72
  onReceive?: (values: Record<string, string>) => void;
73
73
  }
74
+ /**
75
+ * Event emitted when a submission has been sitting in `received` for longer
76
+ * than {@link STUCK_CONSUMER_GRACE_MS} without being explicitly consumed.
77
+ * Consumers register a listener via {@link SecretDrop.onStuckConsumer}.
78
+ *
79
+ * Added 2026-05-20 after the topic-10873 incident: a buggy bridge consumer
80
+ * called the (then-destructive) retrieve endpoint, failed to extract the
81
+ * value, and lost the secret silently. The hardening makes retrieval
82
+ * non-destructive by default; this event surfaces the case where a
83
+ * non-destructive retrieve never reaches an explicit consume — a visible
84
+ * cue that the consumer chain broke.
85
+ */
86
+ export interface StuckConsumerEvent {
87
+ token: string;
88
+ label: string;
89
+ topicId?: number;
90
+ receivedAt: string;
91
+ minutesUntilCleanup: number;
92
+ }
74
93
  export declare class SecretDrop {
75
94
  private pending;
76
95
  private received;
96
+ private receivedTimers;
97
+ private stuckTimers;
98
+ private stuckConsumerListeners;
77
99
  private cleanupTimer;
78
100
  private agentName;
79
101
  constructor(agentName: string);
102
+ /**
103
+ * Register a listener for stuck-consumer events. Listeners are invoked
104
+ * when a submission has been in `received` longer than the grace period
105
+ * (60s) without being explicitly consumed. Multiple listeners may
106
+ * register — all are invoked. Listener errors are caught and logged so
107
+ * a single bad listener cannot block the others.
108
+ */
109
+ onStuckConsumer(listener: (event: StuckConsumerEvent) => void): void;
80
110
  /**
81
111
  * Create a new secret request. Returns the token for URL construction.
82
112
  */
@@ -94,8 +124,31 @@ export declare class SecretDrop {
94
124
  */
95
125
  submit(token: string, csrfToken: string, values: Record<string, string>): SecretSubmission | null;
96
126
  /**
97
- * Retrieve a received submission (for polling-based retrieval).
98
- * Returns and removes the submission.
127
+ * Retrieve a received submission WITHOUT consuming it. The submission
128
+ * remains in the store until explicitly consumed via
129
+ * {@link consumeReceived} or until the {@link RECEIVED_TTL_MS} timer
130
+ * fires. Safe to call repeatedly — used by polling consumers that
131
+ * want retry semantics on top of the natural cleanup window.
132
+ *
133
+ * @returns the submission or null if not present (never seen, already
134
+ * consumed, or already cleaned up by the TTL).
135
+ */
136
+ peekReceived(token: string): SecretSubmission | null;
137
+ /**
138
+ * Retrieve AND consume a submission. The submission is removed from
139
+ * the store before the function returns. Use this when the caller is
140
+ * confident the value has been successfully handed off (parsed, stored,
141
+ * forwarded, etc.) and a re-read would be wrong.
142
+ *
143
+ * @returns the submission or null if not present.
144
+ */
145
+ consumeReceived(token: string): SecretSubmission | null;
146
+ /**
147
+ * @deprecated Use {@link peekReceived} for non-destructive reads or
148
+ * {@link consumeReceived} for one-shot semantics. Preserved on the
149
+ * public surface for callers that have not yet migrated; behaves
150
+ * identically to {@link consumeReceived} so existing code keeps
151
+ * working until migrated.
99
152
  */
100
153
  getReceived(token: string): SecretSubmission | null;
101
154
  /**
@@ -126,7 +179,7 @@ export declare class SecretDrop {
126
179
  */
127
180
  renderExpiredPage(): string;
128
181
  /**
129
- * Shutdown — clean up timer.
182
+ * Shutdown — clean up timers and listeners.
130
183
  */
131
184
  shutdown(): void;
132
185
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SecretDrop.d.ts","sourceRoot":"","sources":["../../src/server/SecretDrop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH,MAAM,WAAW,WAAW;IAC1B,qDAAqD;IACrD,IAAI,EAAE,MAAM,CAAC;IACb,6CAA6C;IAC7C,KAAK,EAAE,MAAM,CAAC;IACd,gDAAgD;IAChD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,uBAAuB;IACvB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,aAAa;IAC5B,+BAA+B;IAC/B,KAAK,EAAE,MAAM,CAAC;IACd,sCAAsC;IACtC,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,KAAK,EAAE,MAAM,CAAC;IACd,oDAAoD;IACpD,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,8DAA8D;IAC9D,MAAM,EAAE,WAAW,EAAE,CAAC;IACtB,0CAA0C;IAC1C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,oCAAoC;IACpC,SAAS,EAAE,MAAM,CAAC;IAClB,iDAAiD;IACjD,SAAS,EAAE,MAAM,CAAC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O,EAAE,aAAa,GAAG,MAAM;IAiO1C;;OAEG;IACH,iBAAiB,IAAI,MAAM;IA2C3B;;OAEG;IACH,QAAQ,IAAI,IAAI;CAUjB"}
@@ -20,9 +20,14 @@ import crypto from 'node:crypto';
20
20
  const DEFAULT_TTL_MS = 15 * 60 * 1000; // 15 minutes
21
21
  const MAX_PENDING = 20;
22
22
  const TOKEN_BYTES = 32; // 256-bit
23
+ const RECEIVED_TTL_MS = 5 * 60 * 1000; // 5 minutes — auto-cleanup window for stored submissions
24
+ const STUCK_CONSUMER_GRACE_MS = 60 * 1000; // 60 seconds — emit a warning if a submission sits unconsumed past this
23
25
  export class SecretDrop {
24
26
  pending = new Map();
25
27
  received = new Map();
28
+ receivedTimers = new Map();
29
+ stuckTimers = new Map();
30
+ stuckConsumerListeners = [];
26
31
  cleanupTimer;
27
32
  agentName;
28
33
  constructor(agentName) {
@@ -31,6 +36,16 @@ export class SecretDrop {
31
36
  this.cleanupTimer = setInterval(() => this.cleanup(), 60_000);
32
37
  this.cleanupTimer.unref();
33
38
  }
39
+ /**
40
+ * Register a listener for stuck-consumer events. Listeners are invoked
41
+ * when a submission has been in `received` longer than the grace period
42
+ * (60s) without being explicitly consumed. Multiple listeners may
43
+ * register — all are invoked. Listener errors are caught and logged so
44
+ * a single bad listener cannot block the others.
45
+ */
46
+ onStuckConsumer(listener) {
47
+ this.stuckConsumerListeners.push(listener);
48
+ }
34
49
  /**
35
50
  * Create a new secret request. Returns the token for URL construction.
36
51
  */
@@ -115,9 +130,60 @@ export class SecretDrop {
115
130
  label: request.label,
116
131
  topicId: request.topicId,
117
132
  };
118
- // Store submission briefly for retrieval (auto-cleanup in 5 minutes)
133
+ // Store submission briefly for retrieval (auto-cleanup window).
134
+ // The submission is NOT removed on first retrieve — callers must
135
+ // either explicitly consume it via `consumeReceived` (or the
136
+ // `?consume=true` route parameter) or wait for the cleanup timer.
137
+ // Rationale: a buggy consumer that drops the response (parse error,
138
+ // exception in the writer step, etc.) historically lost the value
139
+ // with no recovery path; non-destructive retrieval lets the same
140
+ // caller retry within the 5-minute window.
119
141
  this.received.set(token, submission);
120
- setTimeout(() => this.received.delete(token), 5 * 60 * 1000).unref();
142
+ const cleanupTimer = setTimeout(() => {
143
+ this.received.delete(token);
144
+ this.receivedTimers.delete(token);
145
+ const stuck = this.stuckTimers.get(token);
146
+ if (stuck) {
147
+ clearTimeout(stuck);
148
+ this.stuckTimers.delete(token);
149
+ }
150
+ }, RECEIVED_TTL_MS);
151
+ cleanupTimer.unref();
152
+ this.receivedTimers.set(token, cleanupTimer);
153
+ // Schedule a stuck-consumer signal: if the submission has not been
154
+ // explicitly consumed within the grace period, emit a structured
155
+ // event to every registered listener. This is the visible-cue half
156
+ // of the silent-loss fix — agents that bind to topics can mirror
157
+ // the event back to the operator who submitted the secret.
158
+ const stuckTimer = setTimeout(() => {
159
+ this.stuckTimers.delete(token);
160
+ // Only fire if the submission is still in `received` (i.e. nobody
161
+ // consumed it during the grace window).
162
+ const stillPresent = this.received.get(token);
163
+ if (!stillPresent)
164
+ return;
165
+ const cleanupAt = submission.receivedAt
166
+ ? new Date(submission.receivedAt).getTime() + RECEIVED_TTL_MS
167
+ : Date.now() + RECEIVED_TTL_MS;
168
+ const event = {
169
+ token,
170
+ label: stillPresent.label,
171
+ topicId: stillPresent.topicId,
172
+ receivedAt: stillPresent.receivedAt,
173
+ minutesUntilCleanup: Math.max(0, Math.ceil((cleanupAt - Date.now()) / 60_000)),
174
+ };
175
+ for (const listener of this.stuckConsumerListeners) {
176
+ try {
177
+ listener(event);
178
+ }
179
+ catch (err) {
180
+ // @silent-fallback-ok — listener errors must not break the SecretDrop service
181
+ console.error('[secret-drop] stuck-consumer listener error:', err instanceof Error ? err.message : String(err));
182
+ }
183
+ }
184
+ }, STUCK_CONSUMER_GRACE_MS);
185
+ stuckTimer.unref();
186
+ this.stuckTimers.set(token, stuckTimer);
121
187
  // Fire callback if provided
122
188
  if (request.onReceive) {
123
189
  try {
@@ -131,16 +197,53 @@ export class SecretDrop {
131
197
  return submission;
132
198
  }
133
199
  /**
134
- * Retrieve a received submission (for polling-based retrieval).
135
- * Returns and removes the submission.
200
+ * Retrieve a received submission WITHOUT consuming it. The submission
201
+ * remains in the store until explicitly consumed via
202
+ * {@link consumeReceived} or until the {@link RECEIVED_TTL_MS} timer
203
+ * fires. Safe to call repeatedly — used by polling consumers that
204
+ * want retry semantics on top of the natural cleanup window.
205
+ *
206
+ * @returns the submission or null if not present (never seen, already
207
+ * consumed, or already cleaned up by the TTL).
136
208
  */
137
- getReceived(token) {
209
+ peekReceived(token) {
210
+ return this.received.get(token) ?? null;
211
+ }
212
+ /**
213
+ * Retrieve AND consume a submission. The submission is removed from
214
+ * the store before the function returns. Use this when the caller is
215
+ * confident the value has been successfully handed off (parsed, stored,
216
+ * forwarded, etc.) and a re-read would be wrong.
217
+ *
218
+ * @returns the submission or null if not present.
219
+ */
220
+ consumeReceived(token) {
138
221
  const submission = this.received.get(token);
139
222
  if (!submission)
140
223
  return null;
141
224
  this.received.delete(token);
225
+ const tCleanup = this.receivedTimers.get(token);
226
+ if (tCleanup) {
227
+ clearTimeout(tCleanup);
228
+ this.receivedTimers.delete(token);
229
+ }
230
+ const tStuck = this.stuckTimers.get(token);
231
+ if (tStuck) {
232
+ clearTimeout(tStuck);
233
+ this.stuckTimers.delete(token);
234
+ }
142
235
  return submission;
143
236
  }
237
+ /**
238
+ * @deprecated Use {@link peekReceived} for non-destructive reads or
239
+ * {@link consumeReceived} for one-shot semantics. Preserved on the
240
+ * public surface for callers that have not yet migrated; behaves
241
+ * identically to {@link consumeReceived} so existing code keeps
242
+ * working until migrated.
243
+ */
244
+ getReceived(token) {
245
+ return this.consumeReceived(token);
246
+ }
144
247
  /**
145
248
  * List all pending requests (for the agent's management API).
146
249
  */
@@ -447,10 +550,17 @@ export class SecretDrop {
447
550
  </html>`;
448
551
  }
449
552
  /**
450
- * Shutdown — clean up timer.
553
+ * Shutdown — clean up timers and listeners.
451
554
  */
452
555
  shutdown() {
453
556
  clearInterval(this.cleanupTimer);
557
+ for (const t of this.receivedTimers.values())
558
+ clearTimeout(t);
559
+ for (const t of this.stuckTimers.values())
560
+ clearTimeout(t);
561
+ this.receivedTimers.clear();
562
+ this.stuckTimers.clear();
563
+ this.stuckConsumerListeners.length = 0;
454
564
  this.pending.clear();
455
565
  this.received.clear();
456
566
  }
@@ -1 +1 @@
1
- {"version":3,"file":"SecretDrop.js","sourceRoot":"","sources":["../../src/server/SecretDrop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,MAAM,MAAM,aAAa,CAAC;AAgEjC,sEAAsE;AAEtE,MAAM,cAAc,GAAG,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC,CAAC,aAAa;AACpD,MAAM,WAAW,GAAG,EAAE,CAAC;AACvB,MAAM,WAAW,GAAG,EAAE,CAAC,CAAC,UAAU;AAElC,MAAM,OAAO,UAAU;IACb,OAAO,GAAG,IAAI,GAAG,EAAyB,CAAC;IAC3C,QAAQ,GAAG,IAAI,GAAG,EAA4B,CAAC;IAC/C,YAAY,CAAiB;IAC7B,SAAS,CAAS;IAE1B,YAAY,SAAiB;QAC3B,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAE3B,uCAAuC;QACvC,IAAI,CAAC,YAAY,GAAG,WAAW,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,OAAO,EAAE,EAAE,MAAM,CAAC,CAAC;QAC9D,IAAI,CAAC,YAAY,CAAC,KAAK,EAAE,CAAC;IAC5B,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,OAAmC;QACxC,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC;YACrC,yBAAyB;YACzB,IAAI,CAAC,OAAO,EAAE,CAAC;YACf,IAAI,IAAI,CAAC,OAAO,CAAC,IAAI,IAAI,WAAW,EAAE,CAAC;gBACrC,MAAM,IAAI,KAAK,CAAC,yCAAyC,WAAW,GAAG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