structurecc 3.0.0 → 3.1.0

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.
@@ -1,27 +1,8 @@
1
1
  {
2
2
  "name": "structurecc",
3
- "version": "1.0.0",
3
+ "version": "3.0.0",
4
4
  "description": "Extract structured data from documents using Claude vision and parallel Task agents",
5
- "author": "UTMB Diagnostic Center",
6
- "skills": [
7
- {
8
- "name": "structure",
9
- "description": "Extract structured data from a document (PDF, DOCX, image)",
10
- "command": "structure",
11
- "file": "commands/structure.md",
12
- "argumentHint": "<path> [--output dir]",
13
- "userInvocable": true
14
- },
15
- {
16
- "name": "structure-batch",
17
- "description": "Extract structured data from multiple documents in a directory",
18
- "command": "structure:batch",
19
- "file": "commands/structure-batch.md",
20
- "argumentHint": "<directory> [--output dir]",
21
- "userInvocable": true
22
- }
23
- ],
24
- "prompts": {
25
- "chunk-extractor": "prompts/chunk-extractor.md"
5
+ "author": {
6
+ "name": "UTMB Diagnostic Center"
26
7
  }
27
8
  }
@@ -1,13 +1,8 @@
1
1
  ---
2
- name: structure-batch
3
- description: Extract structured data from multiple documents in a directory
4
- argument-hint: <directory> [--output dir] [--pattern *.pdf]
5
- allowed-tools: Read, Write, Task, Glob, Bash
6
- model: opus
2
+ description: Batch extract structured data from multiple documents in a directory
3
+ argument-hint: <directory>
7
4
  ---
8
5
 
9
- <command-name>structure:batch</command-name>
10
-
11
6
  # Batch Document Structure Extraction
12
7
 
13
8
  You are extracting structured data from multiple documents in a directory.
@@ -1,13 +1,8 @@
1
1
  ---
2
- name: structure
3
- description: Extract structured data from documents using Claude vision and parallel chunk agents
4
- argument-hint: <path> [--output dir]
5
- allowed-tools: Read, Write, Task, Glob, Bash
6
- model: opus
2
+ description: Extract structured data from documents (PDF, DOCX, images) using Claude vision
3
+ argument-hint: <path>
7
4
  ---
8
5
 
9
- <command-name>structure</command-name>
10
-
11
6
  # Document Structure Extraction
12
7
 
13
8
  You are extracting structured data from a document using Claude's native vision capabilities and parallel Task agents.
package/install.js CHANGED
@@ -4,17 +4,8 @@ const fs = require('fs');
4
4
  const path = require('path');
5
5
  const os = require('os');
6
6
 
7
- const PLUGIN_NAME = 'structurecc';
8
- const DEST_DIR = path.join(os.homedir(), '.claude', 'plugins', PLUGIN_NAME);
9
-
10
- // Files to copy
11
- const FILES = [
12
- '.claude-plugin/plugin.json',
13
- 'commands/structure.md',
14
- 'commands/structure-batch.md',
15
- 'prompts/chunk-extractor.md',
16
- 'README.md'
17
- ];
7
+ const CLAUDE_DIR = path.join(os.homedir(), '.claude');
8
+ const COMMANDS_DIR = path.join(CLAUDE_DIR, 'commands');
18
9
 
19
10
  function copyFile(src, dest) {
20
11
  const destDir = path.dirname(dest);
@@ -26,52 +17,53 @@ function copyFile(src, dest) {
26
17
 
27
18
  function install() {
28
19
  console.log(`
29
- ┌──────────────────────────────────────────────────────────────────────┐
30
- │ │
31
- ███████╗████████╗██████╗ ██╗ ██╗ ██████╗████████╗██╗ ██╗██████╗│
32
- ██╔════╝╚══██╔══╝██╔══██╗██║ ██║██╔════╝╚══██╔══╝██║ ██║██╔══██╗
33
- │ ███████╗ ██║ ██████╔╝██║ ██║██║ ██║ ██║ ██║██████╔╝
34
- ╚════██║ ██║ ██╔══██╗██║ ██║██║ ██║ ██║ ██║██╔══██╗
35
- │ ███████║ ██║ ██║ ██║╚██████╔╝╚██████╗ ██║ ╚██████╔╝██║ ██║
36
- │ ╚══════╝ ╚═╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═╝
37
- │ │
38
- │ Document Structure Extraction | Claude Code Plugin | v3.0 │
39
- │ │
40
- └──────────────────────────────────────────────────────────────────────┘
20
+ ╔═══════════════════════════════════════════════════╗
21
+ ║ ║
22
+ STRUCTURECC ║
23
+ Document Structure Extraction ║
24
+ ║ ║
25
+ Claude Code Plugin | v3.1 ║
26
+ ║ ║
27
+ ╚═══════════════════════════════════════════════════╝
41
28
  `);
42
29
 
43
30
  const sourceDir = __dirname;
44
31
 
45
- console.log(`Installing to: ${DEST_DIR}\n`);
46
-
47
- // Create destination directory
48
- if (!fs.existsSync(DEST_DIR)) {
49
- fs.mkdirSync(DEST_DIR, { recursive: true });
32
+ // Ensure commands directory exists
33
+ if (!fs.existsSync(COMMANDS_DIR)) {
34
+ fs.mkdirSync(COMMANDS_DIR, { recursive: true });
50
35
  }
51
36
 
52
- // Copy each file
37
+ console.log(`Installing to: ${COMMANDS_DIR}\n`);
38
+
39
+ // Copy command files to ~/.claude/commands/
40
+ const commands = [
41
+ { src: 'commands/structure.md', dest: 'structure.md' },
42
+ { src: 'commands/structure-batch.md', dest: 'structure-batch.md' }
43
+ ];
44
+
53
45
  let copied = 0;
54
- for (const file of FILES) {
55
- const src = path.join(sourceDir, file);
56
- const dest = path.join(DEST_DIR, file);
46
+ for (const cmd of commands) {
47
+ const src = path.join(sourceDir, cmd.src);
48
+ const dest = path.join(COMMANDS_DIR, cmd.dest);
57
49
 
58
50
  if (fs.existsSync(src)) {
59
51
  copyFile(src, dest);
60
- console.log(` ✓ ${file}`);
52
+ console.log(` ✓ ${cmd.dest}`);
61
53
  copied++;
62
54
  } else {
63
- console.log(` ✗ ${file} (not found)`);
55
+ console.log(` ✗ ${cmd.dest} (source not found)`);
64
56
  }
65
57
  }
66
58
 
67
59
  console.log(`
68
60
  ────────────────────────────────────────────────────────────────────────
69
61
 
70
- Installation complete! ${copied}/${FILES.length} files installed.
62
+ Installation complete! ${copied}/2 commands installed.
71
63
 
72
64
  USAGE:
73
- /structure <path> Extract structured data from a document
74
- /structure:batch <dir> Process multiple documents
65
+ /structure <path> Extract from a single document
66
+ /structure-batch <dir> Extract from multiple documents
75
67
 
76
68
  SUPPORTED FORMATS:
77
69
  - PDF documents
@@ -81,10 +73,12 @@ SUPPORTED FORMATS:
81
73
  EXAMPLE:
82
74
  /structure ~/Documents/lab_report.pdf
83
75
  /structure ~/Pictures/gel_image.png
84
- /structure:batch ~/Documents/patient_files/
76
+ /structure-batch ~/Documents/patient_files/
85
77
 
86
78
  Output: JSON + Markdown in same directory as source document
87
79
 
80
+ NOTE: Restart Claude Code for commands to appear.
81
+
88
82
  ────────────────────────────────────────────────────────────────────────
89
83
  `);
90
84
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "structurecc",
3
- "version": "3.0.0",
3
+ "version": "3.1.0",
4
4
  "description": "Claude Code plugin for extracting structured data from documents using native vision and parallel Task agents",
5
5
  "author": "UTMB Diagnostic Center",
6
6
  "license": "MIT",