@longtable/provider-claude 0.1.41 → 0.1.43
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/skills.js +40 -2
- package/package.json +4 -4
package/dist/skills.js
CHANGED
|
@@ -65,8 +65,12 @@ 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.",
|
|
71
|
+
"- Stop before acting when the request would change the research question/scope, theory frame, measurement/coding standard, method design, or analysis strategy.",
|
|
72
|
+
"- For low-risk reversible work, proceed with explicit assumptions instead of interrupting.",
|
|
73
|
+
"- For LongTable product, hook, setup, release, or documentation work, do not create research-state QuestionRecords.",
|
|
70
74
|
"- If a checkpoint allows `other`, make `other` visible instead of hiding it in state.",
|
|
71
75
|
"- Treat Claude's structured question surface as transport; LongTable state records are the source of truth.",
|
|
72
76
|
"- When an MCP `elicit_question` tool is available in the client, use it first so the checkpoint can be shown through the native elicitation surface and recorded in LongTable state.",
|
|
@@ -76,6 +80,16 @@ function baseSkillSpecs(surface = "compact") {
|
|
|
76
80
|
"- Disclose consulted roles with `LongTable consulted: ...` when a role is foregrounded.",
|
|
77
81
|
"- Label unsupported external claims as inference or estimate.",
|
|
78
82
|
"",
|
|
83
|
+
"## Panel And Question Ordering",
|
|
84
|
+
"",
|
|
85
|
+
"- If the user asks for a panel, team, disagreement, or multiple perspectives, expose a structured deliberation record instead of a one-line summary.",
|
|
86
|
+
"- The structured deliberation record must include: roles consulted, each role's main claim or objection, the disagreement map, the decision options, the recommended option when defensible, and the exact researcher-facing question.",
|
|
87
|
+
"- If the panel converges, explain what changed the disagreement; if it does not converge, preserve the unresolved conflict instead of collapsing it into one confident synthesis.",
|
|
88
|
+
"- Ask and stop when missing context would decide a high-risk research commitment.",
|
|
89
|
+
"- Continue with stated assumptions when the missing context is low-risk, reversible, or purely presentational.",
|
|
90
|
+
"- Rank questions by importance and risk; prefer one grouped high-leverage question over a long questionnaire.",
|
|
91
|
+
"- When human knowledge, AI inference, and project state conflict, make the conflict visible and ask for human clarity before treating the direction as settled.",
|
|
92
|
+
"",
|
|
79
93
|
"## Optional CLI Bridge",
|
|
80
94
|
"",
|
|
81
95
|
"If the `longtable` command is available and canonical prompt rendering would help, use `longtable ask --print --prompt \"...\"` or `longtable panel --print --prompt \"...\"` as an adapter aid. Do not make shell commands the user's primary interface."
|
|
@@ -98,9 +112,10 @@ function baseSkillSpecs(surface = "compact") {
|
|
|
98
112
|
"4. Ask one natural-language question at a time.",
|
|
99
113
|
"5. Evaluate answer quality before classifying it.",
|
|
100
114
|
"6. Record turns with MCP `append_interview_turn` when available.",
|
|
101
|
-
"7. Continue until there is
|
|
115
|
+
"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
116
|
"8. Store the First Research Shape with MCP `summarize_interview`.",
|
|
103
117
|
"9. Use MCP `confirm_first_research_shape` for the final structured confirmation.",
|
|
118
|
+
"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
119
|
"",
|
|
105
120
|
"## Opening",
|
|
106
121
|
"",
|
|
@@ -116,8 +131,29 @@ function baseSkillSpecs(surface = "compact") {
|
|
|
116
131
|
"- Use a quiet research-note tone.",
|
|
117
132
|
"- Reflect with `LongTable hears:` before the next question.",
|
|
118
133
|
"- Ask one question only; wait for the researcher.",
|
|
134
|
+
"- 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
135
|
"- If an answer is thin, ask for one more sentence instead of classifying it.",
|
|
120
136
|
"- Treat one-word or one-letter answers as `quality: thin`.",
|
|
137
|
+
"- Keep hook-added context out of normal replies unless it changes the next research action.",
|
|
138
|
+
"",
|
|
139
|
+
"## Turn Recording",
|
|
140
|
+
"",
|
|
141
|
+
"`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.",
|
|
142
|
+
"",
|
|
143
|
+
"Do not set `readyToSummarize: true` because of turn count. Set it only when the answer history supports the closure-readiness criteria below.",
|
|
144
|
+
"",
|
|
145
|
+
"## Closure Readiness",
|
|
146
|
+
"",
|
|
147
|
+
"End the interview only when the conversation has enough material to support later research work:",
|
|
148
|
+
"",
|
|
149
|
+
"- research object: what kind of artifact or study decision LongTable is shaping",
|
|
150
|
+
"- focal uncertainty: what remains hard to name, justify, or inspect",
|
|
151
|
+
"- construct or boundary: what should count and what should not count",
|
|
152
|
+
"- evidence/material: where the first inspection will happen",
|
|
153
|
+
"- protected decision: what LongTable must not settle silently",
|
|
154
|
+
"- next action: the next concrete research move",
|
|
155
|
+
"",
|
|
156
|
+
"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
157
|
"",
|
|
122
158
|
"## First Research Shape",
|
|
123
159
|
"",
|
|
@@ -131,7 +167,9 @@ function baseSkillSpecs(surface = "compact") {
|
|
|
131
167
|
"- nextAction",
|
|
132
168
|
"- confidence",
|
|
133
169
|
"",
|
|
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."
|
|
170
|
+
"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.",
|
|
171
|
+
"",
|
|
172
|
+
"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
173
|
]
|
|
136
174
|
},
|
|
137
175
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longtable/provider-claude",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.43",
|
|
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.
|
|
25
|
-
"@longtable/core": "0.1.
|
|
26
|
-
"@longtable/setup": "0.1.
|
|
24
|
+
"@longtable/checkpoints": "0.1.43",
|
|
25
|
+
"@longtable/core": "0.1.43",
|
|
26
|
+
"@longtable/setup": "0.1.43"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
29
|
"typescript": "^5.6.0"
|