@ghostpaw/questlog 0.6.2 → 0.8.0

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/index.cjs CHANGED
@@ -4743,6 +4743,16 @@ var rewardWorkTool = defineQuestlogTool({
4743
4743
  function runQuestToolHandler(db, input) {
4744
4744
  try {
4745
4745
  const current = getQuestDetail(db, input.questId);
4746
+ if (input.action !== "start" && input.action !== "log_effort") {
4747
+ const outcome = input.outcome;
4748
+ if (typeof outcome !== "string") {
4749
+ return toolNeedsClarification(
4750
+ "missing_required_choice",
4751
+ `What outcome should be recorded for quest \`${current.title}\`?`,
4752
+ ["outcome"]
4753
+ );
4754
+ }
4755
+ }
4746
4756
  switch (input.action) {
4747
4757
  case "start": {
4748
4758
  if (current.resolvedAt != null) {
package/dist/index.js CHANGED
@@ -4741,6 +4741,16 @@ var rewardWorkTool = defineQuestlogTool({
4741
4741
  function runQuestToolHandler(db, input) {
4742
4742
  try {
4743
4743
  const current = getQuestDetail(db, input.questId);
4744
+ if (input.action !== "start" && input.action !== "log_effort") {
4745
+ const outcome = input.outcome;
4746
+ if (typeof outcome !== "string") {
4747
+ return toolNeedsClarification(
4748
+ "missing_required_choice",
4749
+ `What outcome should be recorded for quest \`${current.title}\`?`,
4750
+ ["outcome"]
4751
+ );
4752
+ }
4753
+ }
4744
4754
  switch (input.action) {
4745
4755
  case "start": {
4746
4756
  if (current.resolvedAt != null) {
@@ -677,7 +677,7 @@ var init_open_questlog_db = __esm({
677
677
  var questlogVersion;
678
678
  var init_version = __esm({
679
679
  "src/version.ts"() {
680
- questlogVersion = "0.6.2";
680
+ questlogVersion = "0.8.0";
681
681
  }
682
682
  });
683
683
 
@@ -4611,6 +4611,16 @@ var init_reward_work_tool = __esm({
4611
4611
  function runQuestToolHandler(db, input) {
4612
4612
  try {
4613
4613
  const current = getQuestDetail(db, input.questId);
4614
+ if (input.action !== "start" && input.action !== "log_effort") {
4615
+ const outcome = input.outcome;
4616
+ if (typeof outcome !== "string") {
4617
+ return toolNeedsClarification(
4618
+ "missing_required_choice",
4619
+ `What outcome should be recorded for quest \`${current.title}\`?`,
4620
+ ["outcome"]
4621
+ );
4622
+ }
4623
+ }
4614
4624
  switch (input.action) {
4615
4625
  case "start": {
4616
4626
  if (current.resolvedAt != null) {
package/dist/mcp.cjs CHANGED
@@ -386,7 +386,7 @@ async function openQuestlogDb(path) {
386
386
  }
387
387
 
388
388
  // src/version.ts
389
- var questlogVersion = "0.6.2";
389
+ var questlogVersion = "0.8.0";
390
390
 
391
391
  // src/surface/questlog_mcp_instructions.ts
392
392
  var questlogMcpInstructions = "Questlog manages local tasks, calendar commitments, and recurring work. Search before creating work, inspect before changing it, and keep uncertain work as rumors. Use unlock prerequisites to sequence work. run_quest refuses blocked starts unless force is true. Review commitments and resolve work with an honest outcome.";
@@ -3599,6 +3599,16 @@ var rewardWorkTool = defineQuestlogTool({
3599
3599
  function runQuestToolHandler(db, input) {
3600
3600
  try {
3601
3601
  const current = getQuestDetail(db, input.questId);
3602
+ if (input.action !== "start" && input.action !== "log_effort") {
3603
+ const outcome = input.outcome;
3604
+ if (typeof outcome !== "string") {
3605
+ return toolNeedsClarification(
3606
+ "missing_required_choice",
3607
+ `What outcome should be recorded for quest \`${current.title}\`?`,
3608
+ ["outcome"]
3609
+ );
3610
+ }
3611
+ }
3602
3612
  switch (input.action) {
3603
3613
  case "start": {
3604
3614
  if (current.resolvedAt != null) {
package/dist/mcp.js CHANGED
@@ -384,7 +384,7 @@ async function openQuestlogDb(path) {
384
384
  }
385
385
 
386
386
  // src/version.ts
387
- var questlogVersion = "0.6.2";
387
+ var questlogVersion = "0.8.0";
388
388
 
389
389
  // src/surface/questlog_mcp_instructions.ts
390
390
  var questlogMcpInstructions = "Questlog manages local tasks, calendar commitments, and recurring work. Search before creating work, inspect before changing it, and keep uncertain work as rumors. Use unlock prerequisites to sequence work. run_quest refuses blocked starts unless force is true. Review commitments and resolve work with an honest outcome.";
@@ -3597,6 +3597,16 @@ var rewardWorkTool = defineQuestlogTool({
3597
3597
  function runQuestToolHandler(db, input) {
3598
3598
  try {
3599
3599
  const current = getQuestDetail(db, input.questId);
3600
+ if (input.action !== "start" && input.action !== "log_effort") {
3601
+ const outcome = input.outcome;
3602
+ if (typeof outcome !== "string") {
3603
+ return toolNeedsClarification(
3604
+ "missing_required_choice",
3605
+ `What outcome should be recorded for quest \`${current.title}\`?`,
3606
+ ["outcome"]
3607
+ );
3608
+ }
3609
+ }
3600
3610
  switch (input.action) {
3601
3611
  case "start": {
3602
3612
  if (current.resolvedAt != null) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ghostpaw/questlog",
3
- "version": "0.6.2",
3
+ "version": "0.8.0",
4
4
  "description": "Unified task and calendar model for Node.js — SQLite, zero dependencies, with a built-in LLM tool facade",
5
5
  "type": "module",
6
6
  "exports": {
@@ -65,7 +65,10 @@
65
65
  "check:api": "node scripts/guard/api.mjs",
66
66
  "check:consumer": "node scripts/guard/consumer.mjs",
67
67
  "check:startup": "node scripts/guard/startup.mjs",
68
- "mcpb": "node scripts/mcpb/build.mjs"
68
+ "mcpb": "node scripts/mcpb/build.mjs",
69
+ "sea": "node scripts/sea/build.mjs",
70
+ "sea:smoke": "node scripts/sea/smoke.mjs",
71
+ "sea:bench": "node scripts/sea/bench.mjs"
69
72
  },
70
73
  "engines": {
71
74
  "node": ">=24"
@@ -93,7 +96,12 @@
93
96
  "mcp-server",
94
97
  "model-context-protocol",
95
98
  "agent-skills",
96
- "cli"
99
+ "cli",
100
+ "ghostpaw",
101
+ "ai-agents",
102
+ "llm-tools",
103
+ "node-sqlite",
104
+ "local-first"
97
105
  ],
98
106
  "license": "MIT",
99
107
  "repository": {
@@ -105,7 +113,7 @@
105
113
  "email": "max@anonyfox.com",
106
114
  "url": "https://anonyfox.com"
107
115
  },
108
- "homepage": "https://ghostpaw.dev/agent-tasks/",
116
+ "homepage": "https://questlog.ghostpaw.dev/",
109
117
  "bugs": {
110
118
  "url": "https://github.com/GhostPawJS/questlog/issues"
111
119
  },