GhostPaw Questlog

io.github.GhostPawJS由 GitHub 帳號 GhostPawJS 發布v0.13.0更新於 Nov 5, 2026

Local tasks, calendar commitments, and recurring work.

已驗證STDIO僅桌面效率與工作流檔案與儲存

概覽

AI 產生的概覽

本機 SQLite 任務與行事曆伺服器,讓助理擷取、規劃、執行並完成帶有書面結果的任務。

可以做什麼
  • 搜尋與檢視紀錄:跨實體全文搜尋、依可用/逾期/即將到期等檢視篩選,並查看單一條目詳情
  • 擷取與整理工作:記錄待定線索,建立任務與任務線,把線索落實為結構化工作
  • 規劃與執行任務:設定截止、延後與排程時間,開始、完成、放棄或記錄投入,並檢查前置解鎖條件
  • 組織與分類:在任務線之間移動任務、管理重複範本、加上標籤、附加或領取獎勵、封存或軟刪除
  • 透過專用工具維護重複性工作與獎勵生命週期
適用情境
適合希望助理在自己的電腦上維護長期個人任務與行事曆紀錄的情境,把對話內容變成可追蹤的承諾,只有寫下結果才算完成,也適用於重複性工作與前置依賴鏈。
執行需求
以本機 stdio 程序執行,可使用發行版二進位檔或 npm 套件(需 Node 24 以上)。資料預設存放在 ~/.ghostpaw/questlog.db 的 SQLite 檔案,可用 GHOSTPAW_QUESTLOG_DB 環境變數或 --db 路徑變更。未宣告需要帳號或 API 金鑰。
安裝前請注意
伺服器會寫入本機資料庫:建立、修改、完成、封存與刪除任務、任務線與獎勵。選用的 webhook 鉤子會把簽章密鑰與自訂標頭值存入該資料庫,並在執行 tick 或 watch 時發出對外 HTTP 請求;請妥善保管標頭檔,優先使用標準輸入參數而非命令列值。安裝腳本會下載並執行遠端程式碼,建議驗證校驗碼或建置證明。

安裝

在 SourceWeft 中

  1. 開啟 儀表板中的 GhostPaw Questlog,將其新增到工作區。
  2. 為需要使用其工具的對話啟用該服務。

Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。

其他 MCP 客戶端

參照 儲存庫 中的啟動說明。

README

[GhostPaw questlog: Your agent said it was done. Was it?]

@ghostpaw/questlog

[npm] [CI] [site] [runtime deps] [MCP Registry] [node] [license]

Agent tasks as quests that finish only with a written outcome.

bash
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh

A unified task and calendar model for Node.js, built on SQLite.

Questlog treats tasks, events, deadlines, recurring commitments, and loose intake as one coherent data model instead of separate systems. It ships as a single prebundled blob with zero runtime dependencies, designed for two audiences at once: human developers working directly in code, and LLM agents operating through a structured tool facade.

MCP server

Every client below starts the same stdio server: ghostpaw-questlog mcp. For npm-based environments, use npx -y @ghostpaw/questlog mcp (Node 24+). Data lives in ~/.ghostpaw/questlog.db unless the GHOSTPAW_QUESTLOG_DB environment variable (absolute path) or --db <path> says otherwise.

Claude Code

bash
claude mcp add ghostpaw-questlog -- ghostpaw-questlog mcp

or as a plugin, which also installs the skill:

bash
/plugin marketplace add GhostPawJS/questlog/plugin install ghostpaw-questlog@ghostpaw-questlog

Codex CLI (~/.codex/config.toml)

toml
[mcp_servers.ghostpaw-questlog]command = "ghostpaw-questlog"args = ["mcp"]

Cursor (.cursor/mcp.json), Claude Desktop (claude_desktop_config.json) or a project .mcp.json:

json
{  "mcpServers": {    "ghostpaw-questlog": {      "command": "ghostpaw-questlog",      "args": ["mcp"]    }  }}

Claude Desktop users can also install server.mcpb from the latest GitHub release. A Dockerfile is included for container hosts: docker build -t ghostpaw-questlog . && docker run -i --rm -v questlog:/data ghostpaw-questlog.

The server speaks MCP 2026-07-28 (stateless, server/discover) and the initialize-based revisions 2025-11-25, 2025-06-18, 2025-03-26 and 2024-11-05.

CLI

Install the release binary for ghostpaw-questlog (questlog is an alias).

bash
questlog add "Review release notes" --tag release --due 2030-01-02questlog list --limit 10questlog search release notes --limit 5questlog show 1questlog start 1questlog done 1 --outcome "Reviewed changes"questlog list --view quests.resolved --json

add accepts comma-separated tags (--tag a,b) and repeated --tag flags, --objective (defaults to the title), --questline <id>, and --due as YYYY-MM-DD, DD.MM.YYYY, today, tomorrow, +3d, an ISO date-time with timezone, or milliseconds since epoch. Date-only values use local end of day. --objective is the one flag that reads a file: @path, @- for stdin, and @@text for a literal @text (help marks it (@file, @- stdin, @@ literal @)). Every other value, including titles, --outcome and per-tool flags, is literal. list --tag work --tag urgent requires all tags and supports quest views; unknown tags return an empty list.

list defaults to available quests; list --help lists all supported views. Its --limit and --offset paginate text and JSON. JSON data includes total, offset, limit, and hasMore. search --fts enables raw FTS5 syntax; search text is literal by default. search --limit caps matches in both formats. show prints full quest detail. Lists show local due dates, overdue markers, and recorded outcomes. Plain JSON adds ISO UTC siblings for numeric timestamp fields ending in At. done stores --outcome with the finished quest; without it the command asks for one and exits 3.

Revise a title with questlog quest revise <id> --title "New title". Count filtered quests with questlog list --count-by tag|prefix. Find similar open quest titles with questlog list --view quests.duplicates.

Commands print text by default, including hooks, delivery views and each watch tick; call and direct tool commands return the raw tool result as JSON. Use --json for the full tool result and --compact for compact JSON. --db path works before or after the command. Each command accepts --help. Exit codes are 0 for success, 1 for invalid input or a tool error, 2 for usage errors, and 3 when clarification is needed or a quest, delivery, or hook target is not found. An empty hook list prints No hooks ([] with --json). Delivery text timestamps use local time; JSON retains UTC/epoch timestamps. hook label names the database, not an individual target.

questlog skill --short prints the compact cheat sheet; questlog skill --list lists guides. ISO date-times without a zone (for example 2026-10-29T09:00) use the local time zone.

The call command and the per-tool form still reach every tool and parameter:

bash
questlog toolsquestlog call capture_rumor '{"title":"Review release notes"}'questlog search_questlog --query "release notes"

questlog mcp starts the stdio server.

The default database is ~/.ghostpaw/questlog.db. Override it with --db <path> or GHOSTPAW_QUESTLOG_DB; top-level help shows the selected path. New database files are reported on stderr. The npm entry requires Node 24+ and exits 2 with an installation hint on older Node versions, including for help and version.

Agent Skill

SKILL.md (repo root) and skills/questlog/SKILL.md follow the Agent Skills format and ship in the npm package. Copy skills/questlog/ into your agent's skills folder, or print it:

bash
ghostpaw-questlog skill > SKILL.md

Install

Release binary (default)

Each line downloads the latest release asset, checks it against the release’s SHA256SUMS and installs it on the PATH (~/.local/bin on Linux/macOS; the Windows script adds its folder to the user PATH).

These lines never edit ~/.profile or other shell startup files: export PATH applies to the current shell only. To keep it in new shells, use the ~/.profile line below.

linux-x64:

sh
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh -s -- --target linux-x64 && export PATH="$HOME/.local/bin:$PATH"

linux-arm64:

sh
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh -s -- --target linux-arm64 && export PATH="$HOME/.local/bin:$PATH"

darwin-arm64:

sh
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh -s -- --target darwin-arm64 && export PATH="$HOME/.local/bin:$PATH"

darwin-x64:

sh
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh -s -- --target darwin-x64 && export PATH="$HOME/.local/bin:$PATH"

windows-x64 (PowerShell; persistently adds its folder to the user PATH):

powershell
irm https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.ps1 | iex

Pinned to a release:

sh
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh -s -- --target linux-x64 --version 0.11.1 && export PATH="$HOME/.local/bin:$PATH"

Also adding ~/.local/bin to ~/.profile (edits ~/.profile once; skipped if it already mentions ~/.local/bin; zsh login shells read ~/.zprofile instead, so use that file name there):

sh
curl -fsSL https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.sh | sh -s -- --target linux-x64 && { grep -qs '.local/bin' ~/.profile || echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.profile; } && export PATH="$HOME/.local/bin:$PATH"

To skip the persistent Windows user PATH edit (the installer still installs and prints the folder to add):

powershell
$env:GHOSTPAW_NO_MODIFY_PATH=1; irm https://raw.githubusercontent.com/GhostPawJS/questlog/main/install.ps1 | iex
text
$ ghostpaw-questlog --versionquestlog 0.11.1 (binary, linux-x64)

Scripts that compare versions should use --version --short or --version --json.

Standalone binaries are available from GitHub Releases.

A session with the 0.9.1 linux-x64 binary against a fresh database:

[questlog 0.9.1: --version, three add calls, list, search, done with an outcome, and show]

The same session as an animated GIF.

Other release installers:

sh
mise use -g github:GhostPawJS/questlogubi --project GhostPawJS/questlog --exe ghostpaw-questlog --in ~/.local/bineget GhostPawJS/questlog

For aqua, define a github_release package in aqua.yaml:

yaml
registries:  - name: questlog    type: local    path: questlog-registry.yamlpackages:  - name: GhostPawJS/[email protected]    registry: questlog

questlog-registry.yaml:

yaml
packages:  - type: github_release    repo_owner: GhostPawJS    repo_name: questlog    asset: ghostpaw-questlog-{{trimV .Version}}-{{.OS}}-{{.Arch}}.tar.gz    format: tar.gz    replacements: { amd64: x64 }    overrides:      - goos: windows        asset: ghostpaw-questlog-{{trimV .Version}}-windows-{{.Arch}}.zip        format: zip    files:      - name: ghostpaw-questlog

Install scripts verify SHA256SUMS. To verify a downloaded archive's build attestation:

sh
gh attestation verify <archive> -R GhostPawJS/questlog

Set GHOSTPAW_VERIFY=attestation for attestation verification in install.sh. Binaries are unsigned; macOS binaries carry an ad-hoc signature. For a browser download on macOS, remove quarantine with xattr -d com.apple.quarantine /path/to/ghostpaw-questlog. Linux binaries require glibc 2.28+; use npx on Alpine. See the binary build workflow.

npx / npm (for npm-based environments)

The npm package requires Node 24+:

sh
npx -y @ghostpaw/questlog --helpnpm install -g @ghostpaw/questlog

Library (for harnesses embedding it in code)

sh
npm install @ghostpaw/questlog
ts
import { initQuestlogTables, read, write } from '@ghostpaw/questlog';

See library usage. The library uses built-in node:sqlite with zero runtime dependencies.

Quick Start

ts
import { DatabaseSync } from 'node:sqlite';import { initQuestlogTables, read, write } from '@ghostpaw/questlog';
const db = new DatabaseSync(':memory:');initQuestlogTables(db);
// Capture incoming work as a rumor before committing to shapeconst rumor = write.captureRumor(db, {  title: 'Legal says the vendor terms changed',  details: 'Need to understand pricing delta and termination clause.',});
// Settle the rumor into real work once the shape is clearwrite.settleRumor(db, rumor.id, {  settledAt: Date.now(),  questline: {    title: 'Vendor Renewal',    description: 'Commercial, legal, and approval work.',  },  quests: [    { title: 'Collect redlines', objective: 'Obtain the latest legal markup.' },    { title: 'Review pricing delta', objective: 'Compare current vs. proposed cost.' },  ],});
// Drive the day from derived views, not from memoryconst available = read.listAvailableQuests(db);const dueSoon = read.listDueSoonQuests(db, 7 * 24 * 60 * 60 * 1000);const results = read.searchQuestlog(db, 'vendor');

Docs

The live demo runs the library in your browser against an in-memory SQLite database. Each view below opens a different part of it:

  • Dashboard: open, available, overdue and pending work
  • Intake: capture rumors and triage them into quests
  • Quests: start, block and finish quests with an outcome
  • Planning: questlines and scheduling
  • Search: full-text search across the log

The Model

Seven concepts, strict separation of concerns:

ConceptPurpose
RumorIncoming signal that may or may not become real work
QuestlineShared context and rollup for a group of related quests
QuestOne concrete commitment with lifecycle, timing, and outcome
Repeatable QuestRecurring template that spawns fresh quests on a schedule
UnlockHard prerequisite: quest B stays blocked until quest A succeeds
RewardDescriptive outcome attached to completed work, with a claim lifecycle
TagCross-cutting label for filtering and reporting

The unified model means one entity type covers every temporal intention:

What it looks likeWhat it actually is
A todo itemA quest with no temporal metadata
A deadlineA quest with dueAt
A calendar eventA quest with scheduledStartAt and scheduledEndAt
A recurring commitmentA repeatable quest with an RRULE
A completed actionA quest resolved via finishQuest

State is derived, not toggled. A quest's availability comes from its lifecycle, timing fields, and unlock graph — computed at read time, never stored as a status flag.

Lifecycle at a glance

Questlog computes WoW-style markers on every read. They change as work moves through its lifecycle:

 

Intake

$\color{Goldenrod}{\textsf{❗}}$Legal says the vendor terms changedrumor · open
↓   settle into questline + quests

Quest progression

$\color{Goldenrod}{\textsf{❗}}$Review pricing deltaopen · available
$\color{Gray}{\textsf{❓}}$Review pricing deltain progress
$\color{Goldenrod}{\textsf{❓}}$Review pricing deltadone · reward unclaimed
  ✓  Review pricing deltadone · reward claimed

Other markers

$\color{CornflowerBlue}{\textsf{❗}}$Weekly standup notesrepeatable · due
$\color{Gray}{\textsf{❗}}$Plan Q3 roadmapopen · deferred
$\color{Gray}{\textsf{❓}}$Obtain finance approvalopen · blocked

 

Marker IDs are semantic strings (attention.available, progress.complete, ...) computed at read time, never stored. The markers namespace maps each to its symbol, color, label, and CSS class for consistent rendering across HTML, TTY, and plain text.

Two Audiences

Human developers

Use the read and write namespaces for direct-code access to every domain operation:

ts
import { read, write } from '@ghostpaw/questlog';
write.createQuest(db, { title: 'Ship release notes', objective: 'Draft and publish.' });write.startQuest(db, questId);write.finishQuest(db, questId, 'Published to blog and changelog.');
const blocked = read.listBlockedQuests(db);const overdue = read.listOverdueQuests(db);

See HUMAN.md for the full human-facing guide with worked examples.

LLM agents

Use the tools, skills, and soul namespaces for a structured runtime surface designed to minimize LLM cognitive load:

ts
import { tools, skills, soul } from '@ghostpaw/questlog';
// 12 intent-shaped tools with JSON Schema inputs and structured resultsconst allTools = tools.questlogTools;const searchTool = tools.getQuestlogToolByName('search_questlog')!;const result = searchTool.handler(db, { query: 'vendor', mode: 'browse' });
// 25 reusable workflow skills for common multi-step scenariosconst allSkills = skills.questlogSkills;
// Thinking foundation for system promptsconst prompt = soul.renderQuestlogSoulPromptFoundation();

Every tool returns a discriminated result with outcome: 'success' | 'no_op' | 'needs_clarification' | 'error', structured entities, next-step hints, and actionable recovery advice. No thrown exceptions to parse, no ambiguous prose.

See LLM.md for the full AI-facing guide covering soul, tools, and skills.

Tools

Twelve tools shaped around operator intent, not raw storage operations:

ToolWhat it does
search_questlogCross-entity full-text search
review_questlogFiltered list views (available, overdue, due soon, ...)
inspect_questlog_itemDetailed inspection of any single entity
capture_rumorRecord incoming work before committing to shape
shape_workCreate quests, questlines, settle rumors into structure
plan_questSet timing: due dates, defer dates, scheduled windows
run_questStart, finish, abandon, log effort
organize_workMove quests between questlines, manage questline lifecycle
manage_repeatableCreate and maintain recurring quest templates
tag_workClassify quests and repeatables with tags
reward_workAttach, update, claim, or remove rewards
retire_workSoft-delete or archive things that should leave the active surface

Each tool exports runtime metadata — name, description, JSON Schema, input descriptions, side-effect level — so agent harnesses can wire them without reading docs.

The run_quest tool refuses to start a quest with unmet unlock prerequisites and returns the blocking quests with inspection hints. Set force: true to start anyway with a warning. The library startQuest function remains permissive.

Key Properties

  • Zero runtime dependencies. Only node:sqlite (built into Node 24+).
  • Single prebundled blob. One ESM + one CJS entry in dist/. No subpath exports, no code splitting.
  • Pure SQLite storage. FTS5 full-text search, CHECK-constrained state transitions, trigger-maintained indexes. Bring your own DatabaseSync instance.
  • Derived state. Availability, blocking, deferral, overdue, and markers are computed at read time from fields and relationships, never stored as flags.
  • Intention-shaped writes. captureRumor, settleRumor, startQuest, finishQuest, abandonQuest — operations that say what happened, not generic CRUD.
  • RFC 5545 recurrence. Standard RRULE strings for recurring work. No custom recurrence format.
  • WoW-style markers. Semantic marker IDs (attention.available, progress.complete, ...) computed on every read, renderable to any channel.
  • Colocated tests. Every non-type module has a colocated .test.ts file. The behavior described in docs is backed by executable coverage.

Performance

Measured with npm run bench on Node 24.14.0, Linux, Intel Xeon (shared cloud vCPU), 10,000 quests in a file-backed database:

Operationp50p95
search_questlog (tool)0.06 ms0.07 ms
MCP tools/call search, stdio framing included0.07 ms0.08 ms
read.searchQuestlog, one matching quest0.07 ms0.08 ms
read.searchQuestlog, all 10,000 quests matching26.6 ms41.9 ms
write.createQuest0.22 ms0.69 ms

The library search returns every match with a highlighted snippet, so a query that matches the whole log pays for building all of those rows. Cold start (process spawn to first response, median) is about 30 ms for --version and the MCP server.

Package Surface

ts
import {  initQuestlogTables,  // schema setup  read,                // all query functions  write,               // all mutation functions  tools,               // LLM tool definitions + registry  skills,              // LLM workflow skills + registry  soul,                // thinking foundation for system prompts  markers,             // marker derivation and lookup} from '@ghostpaw/questlog';

All domain types are also available at the root for TypeScript consumers:

ts
import type {  QuestlogDb,  QuestState,  QuestDetail,  CreateQuestInput,  QuestlogSearchResult,  QuestlogToolDefinition,  QuestlogSkill,  QuestlogSoul,} from '@ghostpaw/questlog';

Documentation

DocumentAudience
HUMAN.mdHuman developers using the low-level read/write API
LLM.mdAgent builders wiring tools, skills, and soul into LLM systems
docs/README.mdArchitecture overview: model, invariants, lifecycle, markers
docs/entities/Per-entity manuals with exact public API listings

Development

bash
npm installnpm test            # node:test runnernpm run typecheck   # tsc --noEmitnpm run lint        # biome checknpm run build       # ESM + CJS + declarations via tsup

The repo is pinned to Node 24.14.0 via .nvmrc / .node-version / .tool-versions / mise.toml / Volta. Use whichever version manager you prefer.

Support

If this package helps your project, consider sponsoring its maintenance:

[GitHub Sponsors]


Anonyfox • MIT License

Webhooks

Configure opt-in outbound wakes with the release binary. No server or scheduler is started. With no targets, tick makes no network calls. Targets and retry state live in the database.

sh
questlog hook add https://example.org/wake --min-gap 60questlog hook add https://example.org/team --tag work --events quest.due,quest.overdue --secret-stdinquestlog hook label workquestlog hook listquestlog tick --dry-runquestlog tickquestlog watch --interval 60questlog hook test 1questlog review deliveriesquestlog show 12questlog hook remove 1

Save the signing secret printed once by hook add (including its --json result). --secret-stdin reads a supplied secret from standard input; there is no secret flag. Secrets and custom header values are stored in the database. On POSIX, new database files and their WAL/SHM siblings use mode 0600, and directories created for them use 0700. Existing database permissions are preserved; Windows uses its existing access controls.

Prefer --header-stdin for real keys (one Name: value line per header), keeping values out of shell history and process arguments: questlog hook add https://example.org/wake --header-stdin < /secure/headers.txt. Keep that file private (0600 on POSIX). Repeatable --header "Name: value" remains available, but exposes values in process arguments. Headers accompany every delivery and test. Header names are shown with values replaced by ***; values are never included in list, show, test, tick, watch, or tool output. Names must be HTTP tokens; host, content-length, content-type, and x-questlog-* are reserved (case insensitive). To change headers, remove the hook and add it again. Use separate invocations for --header-stdin and --secret-stdin. URL userinfo is rejected; use a custom header or query key instead. questlog show d_… prints delivery status, attempts, HTTP status, next attempt, redacted target URL, and event ids; add --json for JSON.

List output redacts URL userinfo and query strings. Removal deletes the target and its deliveries. A target covers the database unless --tag restricts it to quests with that tag; rumors have no tags and reach database targets only. --events defaults to all five events. The label defaults to the database filename without directory or extension (questlog for memory). Only use labels suitable for disclosure to the receiver.

For cron:

cron
* * * * * questlog tick

Cron's PATH may need $HOME/.local/bin/questlog tick --db /path/to/quests.db. watch repeats tick (default 60 seconds, minimum 5), finishing its current tick on SIGINT/SIGTERM. Tick exits 0 after running even when deliveries need retrying. Dry runs roll back all changes, including repeatable materialization, and make no network calls.

Events are detected from the model at tick time:

  • quest.due: an unresolved, undeleted quest reaches its effective due time (own due_at, otherwise its undeleted questline's due time).
  • quest.overdue: that effective deadline is strictly earlier than now and the quest remains unresolved.
  • quest.unblocked: an unresolved quest is available, all active prerequisites have succeeded or been deleted, and at least one prerequisite succeeded after its unlock was installed. Occurrence time is the latest active prerequisite success or not-before time, whichever is later.
  • repeatable.spawned: a concrete repeatable instance was created; occurrence time is its creation time. Tick first materializes due anchors through the existing spawn operation.
  • rumor.captured: an undeleted rumor was created; occurrence time is its creation time, even if subsequently settled or dismissed.

Each type, entity and occurrence timestamp has a persistent unique event key. Repeated ticks and restarts do not create another occurrence. Changes removed before any tick cannot be reconstructed. Occurrences earlier than target creation are excluded, preventing backlog floods. Tags are evaluated when assigning an event. Already assigned events retain their batch membership.

One POST batch per target per tick contains only identifiers, types, timestamps, and the DB label:

json
{"type":"questlog.events","db":"work","deliveryId":"d_…","sentAt":"2026-10-28T10:00:00.000Z","events":[{"id":"e_…","type":"quest.due","questId":12,"occurredAt":"2026-10-28T09:59:00.000Z"}]}

Headers are content-type: application/json, user-agent: questlog/<version>, x-questlog-delivery: <deliveryId>, x-questlog-timestamp: <unix seconds>, and x-questlog-signature: sha256=<hex HMAC-SHA256(secret, timestamp + "." + rawBody)>. No titles, objectives, details, or tag text are sent. hook test sends a logged hook.test event immediately, ignoring the min gap. Add and test are CLI-only in the tool facade; manage_hooks supports list, remove, tick (with dry_run), and deliveries.

2xx delivers the batch. Requests time out after 5 seconds. Other responses, timeouts, and network errors retry after 30 seconds, 1 minute, 2 minutes, 4 minutes, and so on, capped at 1 hour, plus less than 1 second jitter. The target's min gap also applies to retries. Eight unsuccessful attempts mark a delivery failed. Retries retain the delivery id and events. Pending batches wait behind retries. Only the last 500 delivered entries per target are kept; pending and failed entries are retained. Transactions and two-minute leases prevent overlapping ticks from claiming the same delivery. A crash after receipt but before recording success can cause another request: receivers must dedupe by delivery id.

Verifying a delivery

Compute HMAC-SHA256 over timestamp + "." + rawBody with the secret and compare in constant time. Reject timestamps older than 5 minutes (and timestamps too far in the future), then dedupe on x-questlog-delivery. Use durable deduplication storage in a production receiver. This 15-line Node example uses an in-memory set:

js
import { createHmac, timingSafeEqual } from 'node:crypto';import { createServer } from 'node:http';const secret = process.env.WEBHOOK_SECRET, seen = new Set();createServer(async (req, res) => {  const chunks = []; for await (const chunk of req) chunks.push(chunk);  const rawBody = Buffer.concat(chunks), h = req.headers;  const timestamp = h['x-questlog-timestamp'], id = h['x-questlog-delivery'];  const age = Date.now() / 1000 - Number(timestamp);  const expected = createHmac('sha256', secret).update(timestamp + '.').update(rawBody).digest();  const signature = String(h['x-questlog-signature'] || '');  const actual = Buffer.from(signature.slice(7), 'hex');  if (!id || !/^\d+$/.test(timestamp) || age > 300 || age < -300 || !/^sha256=[a-f0-9]{64}$/.test(signature) || actual.length !== expected.length || !timingSafeEqual(actual, expected)) { res.writeHead(401).end(); return; }  if (!seen.has(id)) { seen.add(id); console.log(JSON.parse(rawBody)); }  res.writeHead(204).end();}).listen(8080, '127.0.0.1');

Repeatables accept an optional IANA time zone, such as Europe/Berlin, via repeatableQuest.tz in manage_repeatable create input. Zoned RRULEs retain local wall-clock time across DST. Omitted or null zones keep existing UTC behavior. Ambiguous local times use the earlier instant; nonexistent times move forward.

sh
questlog repeatable create --title "Daily review" --objective "Review tasks" --rrule FREQ=DAILY --anchor-at 2026-03-28T00:02:00+01:00 --tz Europe/Berlinquestlog repeatable revise 1 --tz Europe/Berlinquestlog repeatable revise 1 --tz none

The facade accepts action: "revise" (or "update") with repeatableQuestId and tz; null clears the zone. Existing spawned quests are unchanged. Invalid zones are rejected; the plain CLI exits 2. Set GHOSTPAW_OUTPUT=json to select CLI JSON output as with --json. Other values leave the default output unchanged.

When opening the default database, the CLI prints using default db <path> to stderr. Suppress this notice with --quiet or GHOSTPAW_QUIET=1.

Due selection and consumer claims

questlog due [--within 15m] [--tag work --tag team] [--limit 100] [--json] selects open overdue/due quests and recurring occurrences through the inclusive horizon (default 0m). Durations use integer m, h, or d; limits are 1–1000. Tags require every named tag. JSON data contains items and hasMore. Each item has kind, key, questId or repeatableId + occurrenceAt, title, epoch-millisecond dueAt, overdue, and tags. Text prints one line per item: key, due status, local date/time (as in list/show), then title and space-separated #tags, omitted when empty. For example:

text
quest:1  overdue  1 Nov 2026 23:59  overdue one #ops #socialoccurrence:1:1792796520000  overdue  24 Oct 2026 01:02  nightly

The occurrence example uses Europe/Berlin local time. Recurring occurrences use the stored time zone and due offset (default zero), and retain their occurrence key after materialization. Resolved/deleted instances are excluded.

questlog due --claim worker atomically records consumer-specific claims; reruns return only unclaimed items. Other consumers are independent. Release with questlog due --release 12 --claim worker, or questlog due --release occurrence:3:1792882920000 --claim worker using an item's key. Release only removes the mark; a subsequent due call selects it again if still open. Claims on resolved/deleted items need no cleanup.

questlog tick --claim worker [--within 2h] claims up to 100 due items and sends one quest.due event per new claim through normal webhook batching/retries. Its payload adds the item fields above and consumer; this opt-in payload includes titles and tags. Plain tick retains its existing behavior. Dry-run rolls claims back. The MCP/tool due accepts within, tags, limit, claim, and release; it is marked as writing state because claim/release persist marks.

來源:README.md,提交 9e02b81

工具

0
SourceWeft 曾在隔離沙箱中以無憑證方式啟動該軟體包一次,以列出其工具,但未能完成:伺服器未能啟動。

版本歷史

5
  1. v0.13.0最新Nov 5, 2026
  2. v0.12.0Nov 5, 2026
  3. v0.11.3Oct 30, 2026
  4. v0.11.1Oct 29, 2026
  5. v0.6.2Oct 25, 2026

評分

已滿足適用檢查項的 50%

該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。

  • 近 30 天內可連通25 分

    請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。

  • 已宣告認證方式10 分

    請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。

  • 已列出工具15 分

    請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。

  • 描述必需15 分
  • 圖示10 分
  • 文件15 分
  • 授權條款10 分