@gobi-starweaver/ws-cli 0.3.1

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.
Files changed (36) hide show
  1. package/LICENSE +53 -0
  2. package/README-en.md +52 -0
  3. package/README.md +52 -0
  4. package/assets/assembly-orders/README.md +29 -0
  5. package/assets/asset-catalog/index.json +11 -0
  6. package/assets/asset-catalog/snapshots/catalog-2026-08-15.json +3122 -0
  7. package/assets/card-templates/README.md +166 -0
  8. package/assets/card-templates/collator.card.json +117 -0
  9. package/assets/card-templates/deep-reader.card.json +108 -0
  10. package/assets/card-templates/grant-editor.card.json +107 -0
  11. package/assets/card-templates/grant-writer.card.json +111 -0
  12. package/assets/card-templates/paper-review-rechecker.card.json +108 -0
  13. package/assets/card-templates/paper-reviewer.card.json +106 -0
  14. package/assets/card-templates/translation-reviewer.card.json +149 -0
  15. package/assets/card-templates/translator.card.json +149 -0
  16. package/assets/card-templates/visual-general.card.json +130 -0
  17. package/assets/card-templates/writing-author.card.json +137 -0
  18. package/assets/card-templates/writing-editor.card.json +118 -0
  19. package/assets/card-templates//346/234/233/350/210/222/344/270/223/345/277/203/351/251/276/351/251/266/350/257/264/346/230/216_/345/206/231/344/275/234/347/273/204.md +93 -0
  20. package/assets/card-templates//346/234/233/350/210/222/344/270/223/345/277/203/351/251/276/351/251/266/350/257/264/346/230/216_/345/256/241/347/250/277/347/273/204.md +70 -0
  21. package/assets/card-templates//346/234/233/350/210/222/344/270/223/345/277/203/351/251/276/351/251/266/350/257/264/346/230/216_/347/224/263/346/212/245/347/273/204.md +92 -0
  22. package/assets/card-templates//346/234/233/350/210/222/344/270/223/345/277/203/351/251/276/351/251/266/350/257/264/346/230/216_/347/277/273/350/257/221/347/273/204.md +70 -0
  23. package/assets/card-templates//346/234/233/350/210/222/350/275/254/345/221/210/345/275/242/346/200/201/350/247/204/350/214/203.md +58 -0
  24. package/assets/expressions/ascii-art.json +152 -0
  25. package/assets/expressions/emoji-full.json +11558 -0
  26. package/assets/expressions/emoji.json +415 -0
  27. package/bundled/plan/SKILL.md +133 -0
  28. package/chunks/chunk-BUBNMVFA.js +77 -0
  29. package/chunks/chunk-O2SA6W2I.js +37899 -0
  30. package/chunks/chunk-S7EGXUII.js +49 -0
  31. package/chunks/devtools-V5WI5QLO.js +3882 -0
  32. package/cli.js +81427 -0
  33. package/mcp/servers/doc-toolchain-server.js +1516 -0
  34. package/mcp/servers/ws-vision-ocr-server.js +32 -0
  35. package/package.json +26 -0
  36. package/templates/prompts/init_command.md.ejs +44 -0
@@ -0,0 +1,32 @@
1
+ #!/usr/bin/env node
2
+ import {
3
+ VISION_TOOL_DEFINITIONS,
4
+ WS_VISION_BRIDGE_TIMEOUT_MS,
5
+ WS_VISION_ENDPOINT_TIMEOUT_MS,
6
+ WS_VISION_OCR_NAMESPACED,
7
+ WS_VISION_OCR_TOOL,
8
+ WS_VISION_SERVER_NAME2 as WS_VISION_SERVER_NAME,
9
+ WS_VISION_TOOL_PREFIX,
10
+ WS_VISION_UPLOAD_NAMESPACED,
11
+ WS_VISION_UPLOAD_TOOL,
12
+ executeVisionTool,
13
+ releaseVisionImageRef,
14
+ resolveVisionGatewayTarget,
15
+ runWsVisionMcpServer
16
+ } from "../../chunks/chunk-O2SA6W2I.js";
17
+ import "../../chunks/chunk-BUBNMVFA.js";
18
+ export {
19
+ VISION_TOOL_DEFINITIONS,
20
+ WS_VISION_BRIDGE_TIMEOUT_MS,
21
+ WS_VISION_ENDPOINT_TIMEOUT_MS,
22
+ WS_VISION_OCR_NAMESPACED,
23
+ WS_VISION_OCR_TOOL,
24
+ WS_VISION_SERVER_NAME,
25
+ WS_VISION_TOOL_PREFIX,
26
+ WS_VISION_UPLOAD_NAMESPACED,
27
+ WS_VISION_UPLOAD_TOOL,
28
+ executeVisionTool,
29
+ releaseVisionImageRef,
30
+ resolveVisionGatewayTarget,
31
+ runWsVisionMcpServer
32
+ };
package/package.json ADDED
@@ -0,0 +1,26 @@
1
+ {
2
+ "name": "@gobi-starweaver/ws-cli",
3
+ "version": "0.3.1",
4
+ "description": "北辰计划·望舒 Polaris·WS — 面向史学与人文研究的终端智能体(WS CLI)",
5
+ "license": "SEE LICENSE IN LICENSE",
6
+ "type": "module",
7
+ "main": "cli.js",
8
+ "bin": {
9
+ "ws": "cli.js"
10
+ },
11
+ "files": [
12
+ "cli.js",
13
+ "chunks/**",
14
+ "templates/**",
15
+ "bundled/**",
16
+ "assets/**",
17
+ "mcp/**",
18
+ "README.md",
19
+ "README-en.md",
20
+ "LICENSE"
21
+ ],
22
+ "engines": {
23
+ "node": ">=22"
24
+ },
25
+ "dependencies": {}
26
+ }
@@ -0,0 +1,44 @@
1
+ <% if (agentsMdFile == null) { %>
2
+ Generate a file named ./AGENTS.md that serves as a contributor guide for this repository.
3
+ <% } else { %>
4
+ Update <%= agentsMdFile %> to align it with repository changes made after the last time <%= agentsMdFile %> was modified.
5
+ <% } %>
6
+ Your goal is to produce a clear, concise, and well-structured document with descriptive headings and actionable explanations for each section.
7
+ Follow the outline below, but adapt as needed — add sections if relevant, and omit those that do not apply to this project.
8
+
9
+ Document Requirements
10
+
11
+ - Title the document "Repository Guidelines".
12
+ - Use Markdown headings (#, ##, etc.) for structure.
13
+ - Keep the document concise. 200-400 words is optimal.
14
+ - Keep explanations short, direct, and specific to this repository.
15
+ - Provide examples where helpful (commands, directory paths, naming patterns).
16
+ - Maintain a professional, instructional tone.
17
+
18
+ Recommended Sections
19
+
20
+ Project Structure & Module Organization
21
+
22
+ - Outline the project structure, including where the source code, tests, and assets are located.
23
+
24
+ Build, Test, and Development Commands
25
+
26
+ - List key commands for building, testing, and running locally (e.g., npm test, make build).
27
+ - Briefly explain what each command does.
28
+
29
+ Coding Style & Naming Conventions
30
+
31
+ - Specify indentation rules, language-specific style preferences, and naming patterns.
32
+ - Include any formatting or linting tools used.
33
+
34
+ Testing Guidelines
35
+
36
+ - Identify testing frameworks and coverage requirements.
37
+ - State test naming conventions and how to run tests.
38
+
39
+ Commit & Pull Request Guidelines
40
+
41
+ - Summarize commit message conventions found in the project’s Git history.
42
+ - Outline pull request requirements (descriptions, linked issues, screenshots, etc.).
43
+
44
+ (Optional) Add other sections if relevant, such as Security & Configuration Tips, Architecture Overview, or Agent-Specific Instructions.