@longtable/provider-claude 0.1.23 → 0.1.25

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.js CHANGED
@@ -93,11 +93,11 @@ export function renderStructuredQuestionRecord(record) {
93
93
  title: record.prompt.title,
94
94
  instructions: [
95
95
  record.prompt.question,
96
- ...record.prompt.rationale.map((entry) => `Why now: ${entry}`),
96
+ record.prompt.displayReason ? `Decision context: ${record.prompt.displayReason}` : undefined,
97
97
  `Question id: ${record.id}`,
98
98
  `Checkpoint: ${record.prompt.checkpointKey ?? "manual"}`,
99
99
  `Required: ${record.prompt.required ? "yes" : "no"}`
100
- ].join(" "),
100
+ ].filter(Boolean).join(" "),
101
101
  choices
102
102
  };
103
103
  }
package/dist/skills.js CHANGED
@@ -55,7 +55,8 @@ function baseSkillSpecs() {
55
55
  "- If changing LongTable product language, README positioning, or checkpoint policy, ask a Meta-Decision Checkpoint first.",
56
56
  "- If a checkpoint allows `other`, make `other` visible instead of hiding it in state.",
57
57
  "- Treat Claude's structured question surface as transport; LongTable state records are the source of truth.",
58
- "- When the `longtable` CLI is available in a workspace, use `longtable question --print --provider claude --prompt \"...\"` to create a canonical checkpoint payload before invoking Claude's structured question surface.",
58
+ "- 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.",
59
+ "- Use `longtable question --print --provider claude --prompt \"...\"` only as a fallback when MCP/native structured elicitation is unavailable, unsupported, declined, canceled, or blocked by the client.",
59
60
  "- If `CURRENT.md` shows a pending required checkpoint, do not proceed until `longtable decide --question <id> --answer <value>` records the researcher's choice.",
60
61
  "- Preserve open tensions and authorship instead of forcing closure.",
61
62
  "- Disclose consulted roles with `LongTable consulted: ...` when a role is foregrounded.",
@@ -90,7 +91,8 @@ function baseSkillSpecs() {
90
91
  "- Use multiple research perspectives when the request touches methods, theory, measurement, venue fit, ethics, or authorship.",
91
92
  "- Do not collapse disagreement too early.",
92
93
  "- Use a Researcher Checkpoint before treating panel synthesis as settled.",
93
- "- If the CLI is available, prefer `longtable question --print --provider claude --prompt \"...\"` before invoking a structured question surface.",
94
+ "- Prefer MCP/native structured elicitation for the panel checkpoint when available.",
95
+ "- Use `longtable question --print --provider claude --prompt \"...\"` only as the numbered fallback when native elicitation is unavailable or not accepted.",
94
96
  "- Do not expose hidden reasoning or tool logs.",
95
97
  "- If `.longtable/` exists, align the panel with `CURRENT.md` and project state.",
96
98
  "- If `longtable panel --print --prompt \"...\"` is available, it may be used to obtain the canonical fallback prompt."
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longtable/provider-claude",
3
- "version": "0.1.23",
3
+ "version": "0.1.25",
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.23",
25
- "@longtable/core": "0.1.23",
26
- "@longtable/setup": "0.1.23"
24
+ "@longtable/checkpoints": "0.1.25",
25
+ "@longtable/core": "0.1.25",
26
+ "@longtable/setup": "0.1.25"
27
27
  },
28
28
  "devDependencies": {
29
29
  "typescript": "^5.6.0"