@longtable/cli 0.1.62 → 0.1.63

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
@@ -2691,6 +2691,12 @@ async function buildProjectAwarePrompt(prompt, workingDirectory) {
2691
2691
  `project: ${context.project.projectName}`,
2692
2692
  `current session goal: ${context.session.currentGoal}`,
2693
2693
  ...(context.session.currentBlocker ? [`current blocker: ${context.session.currentBlocker}`] : []),
2694
+ ...(context.session.researchObject ? [`research object: ${context.session.researchObject}`] : []),
2695
+ ...(context.session.gapRisk ? [`gap/tacit risk: ${context.session.gapRisk}`] : []),
2696
+ ...(context.session.protectedDecision ? [`protected decision: ${context.session.protectedDecision}`] : []),
2697
+ ...(context.project.globalSetupSummary.humanAuthorshipSignal
2698
+ ? [`human authorship signal: ${context.project.globalSetupSummary.humanAuthorshipSignal}`]
2699
+ : []),
2694
2700
  `requested perspectives: ${context.session.requestedPerspectives.length > 0 ? context.session.requestedPerspectives.join(", ") : "auto"}`,
2695
2701
  `disagreement preference: ${context.session.disagreementPreference}`,
2696
2702
  "",
package/dist/panel.js CHANGED
@@ -374,12 +374,22 @@ function panelDecisionOptions(copy, language, focus, includeDefer) {
374
374
  ...(value === copy.recommendedValue ? { recommended: true } : {})
375
375
  }));
376
376
  }
377
+ function promptForPanelDecision(prompt) {
378
+ const trimmed = prompt.trim();
379
+ if (!trimmed.startsWith("LongTable project context\n")) {
380
+ return prompt;
381
+ }
382
+ const sections = trimmed.split(/\n\s*\n/).map((section) => section.trim()).filter(Boolean);
383
+ const lastSection = sections.length > 0 ? sections[sections.length - 1] : undefined;
384
+ return lastSection ?? prompt;
385
+ }
377
386
  export function buildPanelDecisionContext(prompt) {
378
- const language = detectOutputLanguage(prompt);
379
- const domain = decisionDomainFromPrompt(prompt);
387
+ const decisionPrompt = promptForPanelDecision(prompt);
388
+ const language = detectOutputLanguage(decisionPrompt);
389
+ const domain = decisionDomainFromPrompt(decisionPrompt);
380
390
  const copy = PANEL_DECISION_COPY[domain];
381
391
  const domainFocus = copy.focus[language];
382
- const focus = domain === "generic" ? conciseFocusFromPrompt(prompt) || domainFocus : domainFocus;
392
+ const focus = domain === "generic" ? conciseFocusFromPrompt(decisionPrompt) || domainFocus : domainFocus;
383
393
  const blockerSummary = copy.blockerSummary[language];
384
394
  return {
385
395
  language,
@@ -387,7 +397,7 @@ export function buildPanelDecisionContext(prompt) {
387
397
  blockerSummary,
388
398
  decisionQuestion: languageText(language, `What should LongTable treat as the next human decision for ${focus} after this panel review?`, `이 패널 리뷰 이후 LongTable이 ${focus}에 대해 다음 인간 결정으로 기록해야 할 것은 무엇인가요?`),
389
399
  displayReason: languageText(language, `${blockerSummary} This should be resolved by the researcher before LongTable treats the direction as settled.`, `${blockerSummary} LongTable이 방향을 확정하기 전에 연구자가 직접 선택해야 합니다.`),
390
- options: panelDecisionOptions(copy, language, focus, shouldIncludeDeferOption(prompt)),
400
+ options: panelDecisionOptions(copy, language, focus, shouldIncludeDeferOption(decisionPrompt)),
391
401
  otherLabel: languageText(language, "Other decision", "직접 입력")
392
402
  };
393
403
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@longtable/cli",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
4
4
  "private": false,
5
5
  "description": "Researcher-facing LongTable CLI",
6
6
  "type": "module",
@@ -29,13 +29,13 @@
29
29
  },
30
30
  "dependencies": {
31
31
  "@clack/prompts": "^1.2.0",
32
- "@longtable/checkpoints": "0.1.62",
33
- "@longtable/core": "0.1.62",
34
- "@longtable/memory": "0.1.62",
35
- "@longtable/provider-claude": "0.1.62",
36
- "@longtable/provider-codex": "0.1.62",
37
- "@longtable/scholar-research": "0.1.62",
38
- "@longtable/setup": "0.1.62"
32
+ "@longtable/checkpoints": "0.1.63",
33
+ "@longtable/core": "0.1.63",
34
+ "@longtable/memory": "0.1.63",
35
+ "@longtable/provider-claude": "0.1.63",
36
+ "@longtable/provider-codex": "0.1.63",
37
+ "@longtable/scholar-research": "0.1.63",
38
+ "@longtable/setup": "0.1.63"
39
39
  },
40
40
  "devDependencies": {
41
41
  "@types/node": "^22.10.1",