@longtable/cli 0.1.37 → 0.1.38
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 +1 -1
- package/dist/longtable-codex-native-hook.js +12 -1
- package/package.json +7 -7
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.38";
|
|
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) {
|
|
@@ -126,8 +126,19 @@ function looksLikeLongTableEngineeringPrompt(prompt) {
|
|
|
126
126
|
return /\b(longtable|hook|checkpoint|mcp|agent|npm|version|global|publish|release|deploy|git)\b/i.test(normalized)
|
|
127
127
|
|| /롱테이블|훅|체크포인트|에이전트|글로벌|배포|버전|릴리즈|깃|깃허브/.test(normalized);
|
|
128
128
|
}
|
|
129
|
+
function looksLikeDiagnosticOrExplanatoryPrompt(prompt) {
|
|
130
|
+
const normalized = prompt.trim();
|
|
131
|
+
if (!normalized) {
|
|
132
|
+
return false;
|
|
133
|
+
}
|
|
134
|
+
return /\b(explain|why|how|diagnos(?:e|is)|debug|inspect|check|verify|status|simulate|simulation|test|logs?)\b/i.test(normalized)
|
|
135
|
+
|| /설명|왜|어떻게|진단|디버그|확인|점검|상태|시뮬레이션|테스트|로그|불필요/.test(normalized);
|
|
136
|
+
}
|
|
129
137
|
function shouldAutoCreateQuestionsForPrompt(prompt) {
|
|
130
|
-
|
|
138
|
+
if (!looksLikeLongTableEngineeringPrompt(prompt)) {
|
|
139
|
+
return true;
|
|
140
|
+
}
|
|
141
|
+
return !looksLikeExecutionDirective(prompt) && !looksLikeDiagnosticOrExplanatoryPrompt(prompt);
|
|
131
142
|
}
|
|
132
143
|
function shouldApplyProtectedDecisionClosure(runtime, prompt) {
|
|
133
144
|
return Boolean(runtime.context.session.protectedDecision) &&
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@longtable/cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.38",
|
|
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.38",
|
|
33
|
+
"@longtable/core": "0.1.38",
|
|
34
|
+
"@longtable/memory": "0.1.38",
|
|
35
|
+
"@longtable/provider-claude": "0.1.38",
|
|
36
|
+
"@longtable/provider-codex": "0.1.38",
|
|
37
|
+
"@longtable/setup": "0.1.38"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
40
|
"@types/node": "^22.10.1",
|