@longtable/cli 0.1.36 → 0.1.37
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/cli.js
CHANGED
|
@@ -45,7 +45,7 @@ const ANSI = {
|
|
|
45
45
|
green: "\u001B[32m"
|
|
46
46
|
};
|
|
47
47
|
const LONGTABLE_MCP_SERVER_NAME = "longtable-state";
|
|
48
|
-
const LONGTABLE_MCP_PACKAGE_VERSION = "0.1.
|
|
48
|
+
const LONGTABLE_MCP_PACKAGE_VERSION = "0.1.37";
|
|
49
49
|
const LONGTABLE_MCP_MARKER_START = "# LongTable state MCP START";
|
|
50
50
|
const LONGTABLE_MCP_MARKER_END = "# LongTable state MCP END";
|
|
51
51
|
function style(text, prefix) {
|
|
@@ -184,7 +184,8 @@ function buildPendingQuestionContext(question) {
|
|
|
184
184
|
return [
|
|
185
185
|
`Required Researcher Checkpoint is still pending: ${question.prompt.question}`,
|
|
186
186
|
`Options: ${formatQuestionOptions(question)}`,
|
|
187
|
-
`Record it with longtable decide --question ${question.id} --answer <value> if you are outside MCP elicitation
|
|
187
|
+
`Record it with longtable decide --question ${question.id} --answer <value> if you are outside MCP elicitation.`,
|
|
188
|
+
"Do not choose or record an answer unless the researcher explicitly provides the selection."
|
|
188
189
|
].join("\n");
|
|
189
190
|
}
|
|
190
191
|
function buildGeneratedQuestionsContext(questions, created) {
|
|
@@ -198,6 +199,7 @@ function buildGeneratedQuestionsContext(questions, created) {
|
|
|
198
199
|
lines.push(` Options: ${formatQuestionOptions(question)}`);
|
|
199
200
|
lines.push(` Record it with longtable decide --question ${question.id} --answer <value> if you are outside MCP elicitation.`);
|
|
200
201
|
}
|
|
202
|
+
lines.push("Do not choose or record answers for these checkpoints unless the researcher explicitly provides the selections.");
|
|
201
203
|
return lines.join("\n");
|
|
202
204
|
}
|
|
203
205
|
function buildPendingObligationContext(obligation) {
|
|
@@ -322,14 +324,7 @@ function postToolUseOutput(runtime, payload) {
|
|
|
322
324
|
return null;
|
|
323
325
|
}
|
|
324
326
|
function stopOutput(runtime) {
|
|
325
|
-
|
|
326
|
-
if (blockingQuestion) {
|
|
327
|
-
return buildStopBlockOutput("A required LongTable Researcher Checkpoint is still pending.");
|
|
328
|
-
}
|
|
329
|
-
const blockingObligation = pendingObligations(runtime.state)[0];
|
|
330
|
-
if (blockingObligation) {
|
|
331
|
-
return buildStopBlockOutput("A LongTable research obligation is still pending.");
|
|
332
|
-
}
|
|
327
|
+
void runtime;
|
|
333
328
|
return null;
|
|
334
329
|
}
|
|
335
330
|
export async function dispatchCodexHook(payload, cwdOverride) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longtable/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Researcher-facing LongTable CLI",
|
|
6
6
|
"type": "module",
|
|
@@ -29,12 +29,12 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@clack/prompts": "^1.2.0",
|
|
32
|
-
"@longtable/checkpoints": "0.1.
|
|
33
|
-
"@longtable/core": "0.1.
|
|
34
|
-
"@longtable/memory": "0.1.
|
|
35
|
-
"@longtable/provider-claude": "0.1.
|
|
36
|
-
"@longtable/provider-codex": "0.1.
|
|
37
|
-
"@longtable/setup": "0.1.
|
|
32
|
+
"@longtable/checkpoints": "0.1.37",
|
|
33
|
+
"@longtable/core": "0.1.37",
|
|
34
|
+
"@longtable/memory": "0.1.37",
|
|
35
|
+
"@longtable/provider-claude": "0.1.37",
|
|
36
|
+
"@longtable/provider-codex": "0.1.37",
|
|
37
|
+
"@longtable/setup": "0.1.37"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.10.1",
|