@fractary/core-cli 0.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.
- package/LICENSE +21 -0
- package/README.md +313 -0
- package/dist/cli.d.ts +8 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +86 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/docs/index.d.ts +11 -0
- package/dist/commands/docs/index.d.ts.map +1 -0
- package/dist/commands/docs/index.js +276 -0
- package/dist/commands/docs/index.js.map +1 -0
- package/dist/commands/file/index.d.ts +11 -0
- package/dist/commands/file/index.d.ts.map +1 -0
- package/dist/commands/file/index.js +210 -0
- package/dist/commands/file/index.js.map +1 -0
- package/dist/commands/logs/index.d.ts +11 -0
- package/dist/commands/logs/index.d.ts.map +1 -0
- package/dist/commands/logs/index.js +277 -0
- package/dist/commands/logs/index.js.map +1 -0
- package/dist/commands/logs/utils.d.ts +11 -0
- package/dist/commands/logs/utils.d.ts.map +1 -0
- package/dist/commands/logs/utils.js +39 -0
- package/dist/commands/logs/utils.js.map +1 -0
- package/dist/commands/repo/branch.d.ts +6 -0
- package/dist/commands/repo/branch.d.ts.map +1 -0
- package/dist/commands/repo/branch.js +128 -0
- package/dist/commands/repo/branch.js.map +1 -0
- package/dist/commands/repo/commit.d.ts +6 -0
- package/dist/commands/repo/commit.d.ts.map +1 -0
- package/dist/commands/repo/commit.js +51 -0
- package/dist/commands/repo/commit.js.map +1 -0
- package/dist/commands/repo/index.d.ts +11 -0
- package/dist/commands/repo/index.d.ts.map +1 -0
- package/dist/commands/repo/index.js +33 -0
- package/dist/commands/repo/index.js.map +1 -0
- package/dist/commands/repo/pr.d.ts +6 -0
- package/dist/commands/repo/pr.d.ts.map +1 -0
- package/dist/commands/repo/pr.js +165 -0
- package/dist/commands/repo/pr.js.map +1 -0
- package/dist/commands/repo/status.d.ts +8 -0
- package/dist/commands/repo/status.d.ts.map +1 -0
- package/dist/commands/repo/status.js +123 -0
- package/dist/commands/repo/status.js.map +1 -0
- package/dist/commands/repo/tag.d.ts +6 -0
- package/dist/commands/repo/tag.d.ts.map +1 -0
- package/dist/commands/repo/tag.js +125 -0
- package/dist/commands/repo/tag.js.map +1 -0
- package/dist/commands/repo/worktree.d.ts +6 -0
- package/dist/commands/repo/worktree.d.ts.map +1 -0
- package/dist/commands/repo/worktree.js +137 -0
- package/dist/commands/repo/worktree.js.map +1 -0
- package/dist/commands/spec/index.d.ts +11 -0
- package/dist/commands/spec/index.d.ts.map +1 -0
- package/dist/commands/spec/index.js +264 -0
- package/dist/commands/spec/index.js.map +1 -0
- package/dist/commands/work/index.d.ts +11 -0
- package/dist/commands/work/index.d.ts.map +1 -0
- package/dist/commands/work/index.js +773 -0
- package/dist/commands/work/index.js.map +1 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +51 -0
- package/dist/index.js.map +1 -0
- package/dist/sdk/factory.d.ts +51 -0
- package/dist/sdk/factory.d.ts.map +1 -0
- package/dist/sdk/factory.js +188 -0
- package/dist/sdk/factory.js.map +1 -0
- package/dist/utils/config.d.ts +71 -0
- package/dist/utils/config.d.ts.map +1 -0
- package/dist/utils/config.js +219 -0
- package/dist/utils/config.js.map +1 -0
- package/dist/utils/errors.d.ts +42 -0
- package/dist/utils/errors.d.ts.map +1 -0
- package/dist/utils/errors.js +144 -0
- package/dist/utils/errors.js.map +1 -0
- package/dist/utils/output.d.ts +115 -0
- package/dist/utils/output.d.ts.map +1 -0
- package/dist/utils/output.js +201 -0
- package/dist/utils/output.js.map +1 -0
- package/package.json +78 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Fractary Team
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,313 @@
|
|
|
1
|
+
# @fractary/core-cli
|
|
2
|
+
|
|
3
|
+
Command-line interface for Fractary Core SDK - work tracking, repository management, specifications, logging, file storage, and documentation.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @fractary/core-cli
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
The CLI provides six main command categories:
|
|
14
|
+
|
|
15
|
+
```bash
|
|
16
|
+
fractary-core <command> [subcommand] [options]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Work Tracking
|
|
20
|
+
|
|
21
|
+
Manage work items, issues, and project tasks:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
# Fetch an issue
|
|
25
|
+
fractary-core work issue fetch 123
|
|
26
|
+
|
|
27
|
+
# Create a new issue
|
|
28
|
+
fractary-core work issue create --title "Add feature" --body "Description"
|
|
29
|
+
|
|
30
|
+
# Search issues
|
|
31
|
+
fractary-core work issue search --query "bug" --state open
|
|
32
|
+
|
|
33
|
+
# Add comment
|
|
34
|
+
fractary-core work comment create 123 --body "Fixed in PR #456"
|
|
35
|
+
|
|
36
|
+
# Manage labels
|
|
37
|
+
fractary-core work label add 123 --labels "bug,urgent"
|
|
38
|
+
|
|
39
|
+
# Initialize work tracking
|
|
40
|
+
fractary-core work init --platform github
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Repository Operations
|
|
44
|
+
|
|
45
|
+
Manage Git repositories, branches, commits, and pull requests:
|
|
46
|
+
|
|
47
|
+
```bash
|
|
48
|
+
# Create a branch
|
|
49
|
+
fractary-core repo branch create feature/new-feature
|
|
50
|
+
|
|
51
|
+
# Commit with conventional commits
|
|
52
|
+
fractary-core repo commit --message "Add login" --type feat --scope auth
|
|
53
|
+
|
|
54
|
+
# Create pull request
|
|
55
|
+
fractary-core repo pr create --title "Add feature" --body "Description"
|
|
56
|
+
|
|
57
|
+
# Manage tags
|
|
58
|
+
fractary-core repo tag create v1.0.0 --message "Release 1.0.0"
|
|
59
|
+
|
|
60
|
+
# Work with worktrees
|
|
61
|
+
fractary-core repo worktree create feature-branch
|
|
62
|
+
|
|
63
|
+
# Check status
|
|
64
|
+
fractary-core repo status
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Specification Management
|
|
68
|
+
|
|
69
|
+
Create and manage technical specifications:
|
|
70
|
+
|
|
71
|
+
```bash
|
|
72
|
+
# Create specification
|
|
73
|
+
fractary-core spec create "User Authentication" --template feature
|
|
74
|
+
|
|
75
|
+
# Validate specification
|
|
76
|
+
fractary-core spec validate SPEC-20241216
|
|
77
|
+
|
|
78
|
+
# List specifications
|
|
79
|
+
fractary-core spec list --status validated
|
|
80
|
+
|
|
81
|
+
# Generate refinement questions
|
|
82
|
+
fractary-core spec refine SPEC-20241216
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
### Log Management
|
|
86
|
+
|
|
87
|
+
Capture and manage operational logs:
|
|
88
|
+
|
|
89
|
+
```bash
|
|
90
|
+
# Start session capture
|
|
91
|
+
fractary-core logs capture 123 --model claude-3.5-sonnet
|
|
92
|
+
|
|
93
|
+
# Write log entry
|
|
94
|
+
fractary-core logs write --type build --title "Build" --content "Success"
|
|
95
|
+
|
|
96
|
+
# Search logs
|
|
97
|
+
fractary-core logs search --query "error" --type session
|
|
98
|
+
|
|
99
|
+
# Archive old logs
|
|
100
|
+
fractary-core logs archive --max-age 90
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### File Storage
|
|
104
|
+
|
|
105
|
+
Manage file storage operations:
|
|
106
|
+
|
|
107
|
+
```bash
|
|
108
|
+
# Write file
|
|
109
|
+
fractary-core file write data.json --content '{"key":"value"}'
|
|
110
|
+
|
|
111
|
+
# Read file
|
|
112
|
+
fractary-core file read data.json
|
|
113
|
+
|
|
114
|
+
# List files
|
|
115
|
+
fractary-core file list --prefix "data/"
|
|
116
|
+
|
|
117
|
+
# Copy file
|
|
118
|
+
fractary-core file copy source.txt destination.txt
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### Documentation Management
|
|
122
|
+
|
|
123
|
+
Create and manage documentation:
|
|
124
|
+
|
|
125
|
+
```bash
|
|
126
|
+
# Create document
|
|
127
|
+
fractary-core docs create guide-001 \
|
|
128
|
+
--title "User Guide" \
|
|
129
|
+
--content "..." \
|
|
130
|
+
--format markdown \
|
|
131
|
+
--tags "guide,user"
|
|
132
|
+
|
|
133
|
+
# Search documents
|
|
134
|
+
fractary-core docs search --text "authentication" --tags "api"
|
|
135
|
+
|
|
136
|
+
# List documents
|
|
137
|
+
fractary-core docs list --category "guides"
|
|
138
|
+
```
|
|
139
|
+
|
|
140
|
+
## Configuration
|
|
141
|
+
|
|
142
|
+
The CLI uses configuration files stored in `.fractary/core/config.json`:
|
|
143
|
+
|
|
144
|
+
```json
|
|
145
|
+
{
|
|
146
|
+
"work": {
|
|
147
|
+
"platform": "github",
|
|
148
|
+
"repository": {
|
|
149
|
+
"owner": "fractary",
|
|
150
|
+
"name": "core"
|
|
151
|
+
}
|
|
152
|
+
},
|
|
153
|
+
"repo": {
|
|
154
|
+
"platform": "github"
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
Initialize configuration for each plugin:
|
|
160
|
+
|
|
161
|
+
```bash
|
|
162
|
+
fractary-core work init --platform github
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
## JSON Output
|
|
166
|
+
|
|
167
|
+
All commands support `--json` flag for machine-readable output:
|
|
168
|
+
|
|
169
|
+
```bash
|
|
170
|
+
fractary-core work issue fetch 123 --json
|
|
171
|
+
```
|
|
172
|
+
|
|
173
|
+
Output format:
|
|
174
|
+
|
|
175
|
+
```json
|
|
176
|
+
{
|
|
177
|
+
"status": "success",
|
|
178
|
+
"data": {
|
|
179
|
+
"number": 123,
|
|
180
|
+
"title": "Issue title",
|
|
181
|
+
"state": "open"
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
## Programmatic Usage
|
|
187
|
+
|
|
188
|
+
Import and use CLI components programmatically:
|
|
189
|
+
|
|
190
|
+
```typescript
|
|
191
|
+
import { getWorkManager, createWorkCommand } from '@fractary/core-cli';
|
|
192
|
+
|
|
193
|
+
// Use SDK managers directly
|
|
194
|
+
const workManager = await getWorkManager();
|
|
195
|
+
const issue = await workManager.fetchIssue(123);
|
|
196
|
+
|
|
197
|
+
// Or compose custom CLI tools
|
|
198
|
+
import { Command } from 'commander';
|
|
199
|
+
|
|
200
|
+
const program = new Command();
|
|
201
|
+
program.addCommand(createWorkCommand());
|
|
202
|
+
program.parse();
|
|
203
|
+
```
|
|
204
|
+
|
|
205
|
+
## Command Reference
|
|
206
|
+
|
|
207
|
+
### Work Commands
|
|
208
|
+
|
|
209
|
+
- `work issue fetch <number>` - Fetch issue details
|
|
210
|
+
- `work issue create` - Create new issue
|
|
211
|
+
- `work issue update <number>` - Update issue
|
|
212
|
+
- `work issue close <number>` - Close issue
|
|
213
|
+
- `work issue reopen <number>` - Reopen issue
|
|
214
|
+
- `work issue assign <number>` - Assign/unassign issue
|
|
215
|
+
- `work issue classify <number>` - Classify work type
|
|
216
|
+
- `work issue search` - Search issues
|
|
217
|
+
- `work comment create <number>` - Add comment
|
|
218
|
+
- `work comment list <number>` - List comments
|
|
219
|
+
- `work label add <number>` - Add labels
|
|
220
|
+
- `work label remove <number>` - Remove labels
|
|
221
|
+
- `work label list` - List all labels
|
|
222
|
+
- `work milestone create` - Create milestone
|
|
223
|
+
- `work milestone list` - List milestones
|
|
224
|
+
- `work milestone set <number>` - Set milestone
|
|
225
|
+
- `work init` - Initialize work tracking
|
|
226
|
+
|
|
227
|
+
### Repo Commands
|
|
228
|
+
|
|
229
|
+
- `repo branch create <name>` - Create branch
|
|
230
|
+
- `repo branch delete <name>` - Delete branch
|
|
231
|
+
- `repo branch list` - List branches
|
|
232
|
+
- `repo commit` - Create commit
|
|
233
|
+
- `repo pr create` - Create pull request
|
|
234
|
+
- `repo pr list` - List pull requests
|
|
235
|
+
- `repo pr merge <number>` - Merge pull request
|
|
236
|
+
- `repo pr review <number>` - Review pull request
|
|
237
|
+
- `repo tag create <name>` - Create tag
|
|
238
|
+
- `repo tag push <name>` - Push tag
|
|
239
|
+
- `repo tag list` - List tags
|
|
240
|
+
- `repo worktree create <branch>` - Create worktree
|
|
241
|
+
- `repo worktree list` - List worktrees
|
|
242
|
+
- `repo worktree remove <path>` - Remove worktree
|
|
243
|
+
- `repo worktree cleanup` - Clean up worktrees
|
|
244
|
+
- `repo status` - Show status
|
|
245
|
+
- `repo push` - Push to remote
|
|
246
|
+
- `repo pull` - Pull from remote
|
|
247
|
+
|
|
248
|
+
### Spec Commands
|
|
249
|
+
|
|
250
|
+
- `spec create <title>` - Create specification
|
|
251
|
+
- `spec get <id>` - Get specification
|
|
252
|
+
- `spec list` - List specifications
|
|
253
|
+
- `spec update <id>` - Update specification
|
|
254
|
+
- `spec validate <id>` - Validate specification
|
|
255
|
+
- `spec refine <id>` - Generate refinement questions
|
|
256
|
+
- `spec delete <id>` - Delete specification
|
|
257
|
+
- `spec templates` - List templates
|
|
258
|
+
|
|
259
|
+
### Logs Commands
|
|
260
|
+
|
|
261
|
+
- `logs capture <issue>` - Start session capture
|
|
262
|
+
- `logs stop` - Stop capture
|
|
263
|
+
- `logs write` - Write log entry
|
|
264
|
+
- `logs read <id>` - Read log entry
|
|
265
|
+
- `logs search` - Search logs
|
|
266
|
+
- `logs list` - List logs
|
|
267
|
+
- `logs archive` - Archive logs
|
|
268
|
+
- `logs delete <id>` - Delete log
|
|
269
|
+
|
|
270
|
+
### File Commands
|
|
271
|
+
|
|
272
|
+
- `file write <path>` - Write file
|
|
273
|
+
- `file read <path>` - Read file
|
|
274
|
+
- `file exists <path>` - Check existence
|
|
275
|
+
- `file list` - List files
|
|
276
|
+
- `file delete <path>` - Delete file
|
|
277
|
+
- `file copy <source> <dest>` - Copy file
|
|
278
|
+
- `file move <source> <dest>` - Move file
|
|
279
|
+
|
|
280
|
+
### Docs Commands
|
|
281
|
+
|
|
282
|
+
- `docs create <id>` - Create document
|
|
283
|
+
- `docs get <id>` - Get document
|
|
284
|
+
- `docs list` - List documents
|
|
285
|
+
- `docs update <id>` - Update document
|
|
286
|
+
- `docs delete <id>` - Delete document
|
|
287
|
+
- `docs search` - Search documents
|
|
288
|
+
|
|
289
|
+
## Platform Support
|
|
290
|
+
|
|
291
|
+
### Work Tracking
|
|
292
|
+
- **GitHub Issues** - Full support
|
|
293
|
+
- **Jira Cloud** - Basic support
|
|
294
|
+
- **Linear** - Basic support
|
|
295
|
+
|
|
296
|
+
### Repository Management
|
|
297
|
+
- **GitHub** - Full support
|
|
298
|
+
- **GitLab** - Planned
|
|
299
|
+
- **Bitbucket** - Planned
|
|
300
|
+
|
|
301
|
+
## Requirements
|
|
302
|
+
|
|
303
|
+
- Node.js >= 18.0.0
|
|
304
|
+
- Git (for repository operations)
|
|
305
|
+
|
|
306
|
+
## License
|
|
307
|
+
|
|
308
|
+
MIT
|
|
309
|
+
|
|
310
|
+
## Related Projects
|
|
311
|
+
|
|
312
|
+
- [@fractary/core](../sdk/js) - Core SDK for JavaScript/TypeScript
|
|
313
|
+
- [fractary/core](../) - Fractary Core monorepo
|
package/dist/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AAEA;;;;GAIG"}
|
package/dist/cli.js
ADDED
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
/**
|
|
4
|
+
* Fractary Core CLI - Command-line interface for core operations
|
|
5
|
+
*
|
|
6
|
+
* Binary entry point for `fractary-core` command
|
|
7
|
+
*/
|
|
8
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
9
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
const commander_1 = require("commander");
|
|
13
|
+
const chalk_1 = __importDefault(require("chalk"));
|
|
14
|
+
const work_1 = require("./commands/work");
|
|
15
|
+
const repo_1 = require("./commands/repo");
|
|
16
|
+
const spec_1 = require("./commands/spec");
|
|
17
|
+
const logs_1 = require("./commands/logs");
|
|
18
|
+
const file_1 = require("./commands/file");
|
|
19
|
+
const docs_1 = require("./commands/docs");
|
|
20
|
+
// Package information
|
|
21
|
+
const packageJson = require('../package.json');
|
|
22
|
+
// Create main program
|
|
23
|
+
const program = new commander_1.Command();
|
|
24
|
+
program
|
|
25
|
+
.name('fractary-core')
|
|
26
|
+
.description('CLI for Fractary Core SDK - work, repo, spec, logs, file, docs')
|
|
27
|
+
.version(packageJson.version);
|
|
28
|
+
// Add all command trees
|
|
29
|
+
program.addCommand((0, work_1.createWorkCommand)());
|
|
30
|
+
program.addCommand((0, repo_1.createRepoCommand)());
|
|
31
|
+
program.addCommand((0, spec_1.createSpecCommand)());
|
|
32
|
+
program.addCommand((0, logs_1.createLogsCommand)());
|
|
33
|
+
program.addCommand((0, file_1.createFileCommand)());
|
|
34
|
+
program.addCommand((0, docs_1.createDocsCommand)());
|
|
35
|
+
// Custom help text
|
|
36
|
+
program.addHelpText('after', `
|
|
37
|
+
${chalk_1.default.bold('Commands:')}
|
|
38
|
+
work Work item tracking (issues, comments, labels, milestones)
|
|
39
|
+
repo Repository operations (branches, commits, PRs, tags, worktrees)
|
|
40
|
+
spec Specification management (create, validate, refine)
|
|
41
|
+
logs Log management (capture, search, archive)
|
|
42
|
+
file File storage operations (read, write, list, delete)
|
|
43
|
+
docs Documentation management (create, search, export)
|
|
44
|
+
|
|
45
|
+
${chalk_1.default.bold('Examples:')}
|
|
46
|
+
$ fractary-core work issue fetch 123
|
|
47
|
+
$ fractary-core repo commit --message "Add feature" --type feat
|
|
48
|
+
$ fractary-core spec validate SPEC-20241216
|
|
49
|
+
$ fractary-core logs search --query "error" --type session
|
|
50
|
+
$ fractary-core file write data.json --content '{"key":"value"}'
|
|
51
|
+
$ fractary-core docs create guide-001 --title "User Guide" --content "..."
|
|
52
|
+
|
|
53
|
+
${chalk_1.default.bold('Documentation:')}
|
|
54
|
+
Run ${chalk_1.default.cyan('fractary-core <command> --help')} for more information on a command.
|
|
55
|
+
`);
|
|
56
|
+
// Show help if no command specified
|
|
57
|
+
if (process.argv.length === 2) {
|
|
58
|
+
program.outputHelp();
|
|
59
|
+
process.exit(0);
|
|
60
|
+
}
|
|
61
|
+
// Error handling
|
|
62
|
+
program.exitOverride();
|
|
63
|
+
async function main() {
|
|
64
|
+
try {
|
|
65
|
+
await program.parseAsync(process.argv);
|
|
66
|
+
}
|
|
67
|
+
catch (error) {
|
|
68
|
+
if (error.code === 'commander.help') {
|
|
69
|
+
process.exit(0);
|
|
70
|
+
}
|
|
71
|
+
if (error.code === 'commander.unknownCommand') {
|
|
72
|
+
console.error(chalk_1.default.red('Unknown command:'), error.message);
|
|
73
|
+
console.log(chalk_1.default.gray('\nAvailable commands: work, repo, spec, logs, file, docs'));
|
|
74
|
+
console.log(chalk_1.default.gray('Run "fractary-core --help" for more information.'));
|
|
75
|
+
process.exit(1);
|
|
76
|
+
}
|
|
77
|
+
console.error(chalk_1.default.red('Error:'), error.message);
|
|
78
|
+
process.exit(1);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
// Run CLI
|
|
82
|
+
main().catch((error) => {
|
|
83
|
+
console.error(chalk_1.default.red('Fatal error:'), error);
|
|
84
|
+
process.exit(1);
|
|
85
|
+
});
|
|
86
|
+
//# sourceMappingURL=cli.js.map
|
package/dist/cli.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";;AAEA;;;;GAIG;;;;;AAEH,yCAAoC;AACpC,kDAA0B;AAC1B,0CAAoD;AACpD,0CAAoD;AACpD,0CAAoD;AACpD,0CAAoD;AACpD,0CAAoD;AACpD,0CAAoD;AAEpD,sBAAsB;AACtB,MAAM,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAE/C,sBAAsB;AACtB,MAAM,OAAO,GAAG,IAAI,mBAAO,EAAE,CAAC;AAE9B,OAAO;KACJ,IAAI,CAAC,eAAe,CAAC;KACrB,WAAW,CAAC,gEAAgE,CAAC;KAC7E,OAAO,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;AAEhC,wBAAwB;AACxB,OAAO,CAAC,UAAU,CAAC,IAAA,wBAAiB,GAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,IAAA,wBAAiB,GAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,IAAA,wBAAiB,GAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,IAAA,wBAAiB,GAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,IAAA,wBAAiB,GAAE,CAAC,CAAC;AACxC,OAAO,CAAC,UAAU,CAAC,IAAA,wBAAiB,GAAE,CAAC,CAAC;AAExC,mBAAmB;AACnB,OAAO,CAAC,WAAW,CACjB,OAAO,EACP;EACA,eAAK,CAAC,IAAI,CAAC,WAAW,CAAC;;;;;;;;EAQvB,eAAK,CAAC,IAAI,CAAC,WAAW,CAAC;;;;;;;;EAQvB,eAAK,CAAC,IAAI,CAAC,gBAAgB,CAAC;QACtB,eAAK,CAAC,IAAI,CAAC,gCAAgC,CAAC;CACnD,CACA,CAAC;AAEF,oCAAoC;AACpC,IAAI,OAAO,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;IAC9B,OAAO,CAAC,UAAU,EAAE,CAAC;IACrB,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC;AAED,iBAAiB;AACjB,OAAO,CAAC,YAAY,EAAE,CAAC;AAEvB,KAAK,UAAU,IAAI;IACjB,IAAI,CAAC;QACH,MAAM,OAAO,CAAC,UAAU,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACzC,CAAC;IAAC,OAAO,KAAU,EAAE,CAAC;QACpB,IAAI,KAAK,CAAC,IAAI,KAAK,gBAAgB,EAAE,CAAC;YACpC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,IAAI,KAAK,CAAC,IAAI,KAAK,0BAA0B,EAAE,CAAC;YAC9C,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,kBAAkB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;YAC5D,OAAO,CAAC,GAAG,CACT,eAAK,CAAC,IAAI,CAAC,0DAA0D,CAAC,CACvE,CAAC;YACF,OAAO,CAAC,GAAG,CAAC,eAAK,CAAC,IAAI,CAAC,kDAAkD,CAAC,CAAC,CAAC;YAC5E,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAClB,CAAC;QAED,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC;AAED,UAAU;AACV,IAAI,EAAE,CAAC,KAAK,CAAC,CAAC,KAAK,EAAE,EAAE;IACrB,OAAO,CAAC,KAAK,CAAC,eAAK,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,KAAK,CAAC,CAAC;IAChD,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AAClB,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Docs subcommand - Documentation management
|
|
3
|
+
*
|
|
4
|
+
* Provides documentation operations via @fractary/core DocsManager.
|
|
5
|
+
*/
|
|
6
|
+
import { Command } from 'commander';
|
|
7
|
+
/**
|
|
8
|
+
* Create the docs command tree
|
|
9
|
+
*/
|
|
10
|
+
export declare function createDocsCommand(): Command;
|
|
11
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/commands/docs/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAKpC;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,OAAO,CAW3C"}
|