@longtable/provider-claude 0.1.40 → 0.1.42

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.
Files changed (2) hide show
  1. package/dist/skills.js +27 -2
  2. package/package.json +4 -4
package/dist/skills.js CHANGED
@@ -65,6 +65,7 @@ function baseSkillSpecs(surface = "compact") {
65
65
  "- The compact visible shortcut set is methods, measure, theory, reviewer, and voice. Other roles remain available through this router when the request calls for them.",
66
66
  "- Prefer natural language over asking the researcher to run shell role commands.",
67
67
  "- For `$longtable-interview`, use natural-language turns for the interview and reserve structured options for final First Research Shape confirmation.",
68
+ "- Do not let unrelated pending Researcher Checkpoints interrupt the interview. Mention them only as separate unresolved checkpoints, and treat them as blocking only when the researcher is confirming, saving, or recording a research decision.",
68
69
  "- If a Researcher Checkpoint is needed, ask a short structured question with meaningful options and wait for the researcher.",
69
70
  "- If changing LongTable product language, README positioning, or checkpoint policy, ask a Meta-Decision Checkpoint first.",
70
71
  "- If a checkpoint allows `other`, make `other` visible instead of hiding it in state.",
@@ -98,9 +99,10 @@ function baseSkillSpecs(surface = "compact") {
98
99
  "4. Ask one natural-language question at a time.",
99
100
  "5. Evaluate answer quality before classifying it.",
100
101
  "6. Record turns with MCP `append_interview_turn` when available.",
101
- "7. Continue until there is enough context for a provisional `first_research_handle`.",
102
+ "7. Continue until there is content-based readiness for a provisional `first_research_handle`; never stop merely because a fixed number of turns has passed.",
102
103
  "8. Store the First Research Shape with MCP `summarize_interview`.",
103
104
  "9. Use MCP `confirm_first_research_shape` for the final structured confirmation.",
105
+ "10. If the researcher explicitly cancels the interview, use MCP `cancel_interview` when available. Do not cancel durable state for a casual topic change unless the researcher says to cancel the interview.",
104
106
  "",
105
107
  "## Opening",
106
108
  "",
@@ -116,8 +118,29 @@ function baseSkillSpecs(surface = "compact") {
116
118
  "- Use a quiet research-note tone.",
117
119
  "- Reflect with `LongTable hears:` before the next question.",
118
120
  "- Ask one question only; wait for the researcher.",
121
+ "- Keep the follow-up focused on one main uncertainty. A sentence may name nearby tensions for context, but avoid bundling several answerable questions into a mini-questionnaire.",
119
122
  "- If an answer is thin, ask for one more sentence instead of classifying it.",
120
123
  "- Treat one-word or one-letter answers as `quality: thin`.",
124
+ "- Keep hook-added context out of normal replies unless it changes the next research action.",
125
+ "",
126
+ "## Turn Recording",
127
+ "",
128
+ "`append_interview_turn` records the durable interview trace in `.longtable/state.json`: the question asked, the researcher answer, a short reflection, answer quality, whether a follow-up is needed, and any content-based readiness rationale. If MCP tools are unavailable, continue the interview but say that this durable turn was not written.",
129
+ "",
130
+ "Do not set `readyToSummarize: true` because of turn count. Set it only when the answer history supports the closure-readiness criteria below.",
131
+ "",
132
+ "## Closure Readiness",
133
+ "",
134
+ "End the interview only when the conversation has enough material to support later research work:",
135
+ "",
136
+ "- research object: what kind of artifact or study decision LongTable is shaping",
137
+ "- focal uncertainty: what remains hard to name, justify, or inspect",
138
+ "- construct or boundary: what should count and what should not count",
139
+ "- evidence/material: where the first inspection will happen",
140
+ "- protected decision: what LongTable must not settle silently",
141
+ "- next action: the next concrete research move",
142
+ "",
143
+ "Some projects may need two turns; others may need ten or more. If these elements are still vague, ask another natural-language question instead of summarizing.",
121
144
  "",
122
145
  "## First Research Shape",
123
146
  "",
@@ -131,7 +154,9 @@ function baseSkillSpecs(surface = "compact") {
131
154
  "- nextAction",
132
155
  "- confidence",
133
156
  "",
134
- "Use structured options only for the final confirmation or true checkpoint boundaries. If MCP is unavailable, continue in natural language but do not claim that state was written."
157
+ "Use structured options only for the final confirmation or true checkpoint boundaries. Show the options in the researcher's current language when possible, usually: save/confirm, ask one more question, revise, or keep open. If MCP is unavailable, continue in natural language but do not claim that state was written.",
158
+ "",
159
+ "If a confirmed First Research Shape already exists, do not reopen the interview automatically. Summarize the existing shape and ask whether to continue from it, revise it, or explicitly start a new interview."
135
160
  ]
136
161
  },
137
162
  {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longtable/provider-claude",
3
- "version": "0.1.40",
3
+ "version": "0.1.42",
4
4
  "private": false,
5
5
  "description": "Claude adapter surface for LongTable",
6
6
  "type": "module",
@@ -21,9 +21,9 @@
21
21
  "typecheck": "tsc -p tsconfig.json --noEmit"
22
22
  },
23
23
  "dependencies": {
24
- "@longtable/checkpoints": "0.1.40",
25
- "@longtable/core": "0.1.40",
26
- "@longtable/setup": "0.1.40"
24
+ "@longtable/checkpoints": "0.1.42",
25
+ "@longtable/core": "0.1.42",
26
+ "@longtable/setup": "0.1.42"
27
27
  },
28
28
  "devDependencies": {
29
29
  "typescript": "^5.6.0"