@lzhzzzzwill/cofos 1.1.3 → 1.1.6

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/bin/cofos.js CHANGED
@@ -323,7 +323,8 @@ function main() {
323
323
  ask(); return;
324
324
  }
325
325
 
326
- // Forward to backend.
326
+ // Forward to backend. Echo a stable user turn so pasted/submitted questions remain visible in the transcript.
327
+ console.log(G + " you " + R + input);
327
328
  responseOpen = false;
328
329
  generating = true;
329
330
  proc.stdin.write(input + "\n");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lzhzzzzwill/cofos",
3
- "version": "1.1.3",
3
+ "version": "1.1.6",
4
4
  "description": "COFOS 9B + RAG chat CLI with optional local PDF ingestion.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,7 +1,7 @@
1
1
  # COFOS standalone runtime config.
2
2
  # This file is generated by scripts/sync_fwdemo_runtime.py for the npm CLI.
3
3
  # It intentionally omits full-project training, extraction, and Ollama teacher settings.
4
- project_name: COF-ROS-Reasoner
4
+ project_name: COFOS
5
5
  version: 1.0.0
6
6
  paths:
7
7
  raw_pdfs: data/raw_pdfs
@@ -48,8 +48,8 @@ generation:
48
48
  no_repeat_ngram_size: 0
49
49
  min_new_tokens: 0
50
50
  history_max_turns: 4
51
- refine_answers: true
52
- stream_refinement: true
51
+ refine_answers: false
52
+ stream_refinement: false
53
53
  refinement_max_new_tokens: 512
54
54
  data_processing:
55
55
  chunk_size: 768
@@ -1,8 +1,8 @@
1
1
  # COFOS standalone student prompt templates.
2
2
  # This file is generated by scripts/sync_fwdemo_runtime.py for the npm CLI.
3
- student_qa_system_prompt: 'You are COF-ROS-Reasoner, a scientific question-answering
4
- assistant specializing in covalent organic frameworks, photocatalysis, reactive
5
- oxygen species, and oxygen-reduction products.
3
+ student_qa_system_prompt: 'You are COFOS, a scientific question-answering assistant
4
+ specializing in covalent organic frameworks, photocatalysis, reactive oxygen species,
5
+ and oxygen-reduction products.
6
6
 
7
7
 
8
8
  Answer the user''s actual question in the same language as the question unless the
@@ -69,8 +69,7 @@ student_rag_user_prompt: 'User question:
69
69
  template.
70
70
 
71
71
  '
72
- student_answer_refinement_system_prompt: 'You are COF-ROS-Reasoner''s final-answer
73
- renderer.
72
+ student_answer_refinement_system_prompt: 'You are COFOS''s final-answer renderer.
74
73
 
75
74
 
76
75
  Output contract:
package/scripts/chat.py CHANGED
@@ -470,10 +470,12 @@ def main() -> None:
470
470
  config_path = default_config_path(runtime_root) if args.config == DEFAULT_CONFIG else resolve_project_path(runtime_root, args.config)
471
471
  model_path = resolve_project_path(runtime_root, args.model_path)
472
472
 
473
- print(f"[chat] Runtime root: {runtime_root}", file=sys.stderr, flush=True)
474
- print(f"[chat] Cache root: {runtime_cache_root()}", file=sys.stderr, flush=True)
475
- print(f"[chat] Config: {config_path}", file=sys.stderr, flush=True)
476
- print(f"[chat] Model: {model_path}", file=sys.stderr, flush=True)
473
+ debug = os.environ.get("COFOS_DEBUG", "").lower() in {"1", "true", "yes", "on"}
474
+ if debug:
475
+ print(f"[chat] Runtime root: {runtime_root}", file=sys.stderr, flush=True)
476
+ print(f"[chat] Cache root: {runtime_cache_root()}", file=sys.stderr, flush=True)
477
+ print(f"[chat] Config: {config_path}", file=sys.stderr, flush=True)
478
+ print(f"[chat] Model: {model_path}", file=sys.stderr, flush=True)
477
479
  print(f"[chat] RAG: {'disabled' if args.no_rag else 'enabled'}", file=sys.stderr, flush=True)
478
480
 
479
481
  t0 = time.time()