popeye-cli 1.3.0 → 1.4.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/README.md +115 -17
- package/dist/adapters/gemini.d.ts +2 -2
- package/dist/adapters/gemini.d.ts.map +1 -1
- package/dist/cli/index.d.ts +1 -0
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +5 -2
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/interactive.d.ts.map +1 -1
- package/dist/cli/interactive.js +307 -22
- package/dist/cli/interactive.js.map +1 -1
- package/dist/config/index.d.ts +2 -0
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/schema.d.ts +4 -0
- package/dist/config/schema.d.ts.map +1 -1
- package/dist/config/schema.js +2 -1
- package/dist/config/schema.js.map +1 -1
- package/dist/generators/all.d.ts +30 -0
- package/dist/generators/all.d.ts.map +1 -1
- package/dist/generators/all.js +5 -5
- package/dist/generators/all.js.map +1 -1
- package/dist/types/consensus.d.ts +10 -20
- package/dist/types/consensus.d.ts.map +1 -1
- package/dist/types/consensus.js +8 -3
- package/dist/types/consensus.js.map +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +2 -2
- package/dist/types/index.js.map +1 -1
- package/dist/types/project.d.ts +15 -16
- package/dist/types/project.d.ts.map +1 -1
- package/dist/types/project.js +15 -8
- package/dist/types/project.js.map +1 -1
- package/dist/types/workflow.d.ts +2 -0
- package/dist/types/workflow.d.ts.map +1 -1
- package/dist/types/workflow.js +2 -1
- package/dist/types/workflow.js.map +1 -1
- package/dist/upgrade/context.d.ts +37 -0
- package/dist/upgrade/context.d.ts.map +1 -0
- package/dist/upgrade/context.js +284 -0
- package/dist/upgrade/context.js.map +1 -0
- package/dist/upgrade/handlers.d.ts +103 -0
- package/dist/upgrade/handlers.d.ts.map +1 -0
- package/dist/upgrade/handlers.js +384 -0
- package/dist/upgrade/handlers.js.map +1 -0
- package/dist/upgrade/index.d.ts +26 -0
- package/dist/upgrade/index.d.ts.map +1 -0
- package/dist/upgrade/index.js +194 -0
- package/dist/upgrade/index.js.map +1 -0
- package/dist/upgrade/transitions.d.ts +34 -0
- package/dist/upgrade/transitions.d.ts.map +1 -0
- package/dist/upgrade/transitions.js +56 -0
- package/dist/upgrade/transitions.js.map +1 -0
- package/dist/workflow/plan-mode.d.ts.map +1 -1
- package/dist/workflow/plan-mode.js +41 -5
- package/dist/workflow/plan-mode.js.map +1 -1
- package/dist/workflow/task-workflow.d.ts.map +1 -1
- package/dist/workflow/task-workflow.js +3 -2
- package/dist/workflow/task-workflow.js.map +1 -1
- package/package.json +1 -1
- package/src/adapters/gemini.ts +2 -2
- package/src/cli/index.ts +5 -2
- package/src/cli/interactive.ts +353 -23
- package/src/config/schema.ts +2 -1
- package/src/generators/all.ts +5 -5
- package/src/types/consensus.ts +11 -5
- package/src/types/index.ts +2 -0
- package/src/types/project.ts +18 -9
- package/src/types/workflow.ts +2 -1
- package/src/upgrade/context.ts +332 -0
- package/src/upgrade/handlers.ts +477 -0
- package/src/upgrade/index.ts +244 -0
- package/src/upgrade/transitions.ts +80 -0
- package/src/workflow/plan-mode.ts +41 -7
- package/src/workflow/task-workflow.ts +3 -2
- package/tests/cli/model-command.test.ts +93 -0
- package/tests/types/project.test.ts +90 -15
- package/tests/types/workflow-schema.test.ts +59 -0
- package/tests/upgrade/context.test.ts +211 -0
- package/tests/upgrade/transitions.test.ts +85 -0
package/README.md
CHANGED
|
@@ -313,6 +313,9 @@ popeye create "A React component library for data visualization" --language type
|
|
|
313
313
|
# Create a Fullstack project (React frontend + FastAPI backend)
|
|
314
314
|
popeye create "A task management app with user authentication" --language fullstack
|
|
315
315
|
|
|
316
|
+
# Create a Website project (Next.js marketing/landing site)
|
|
317
|
+
popeye create "A marketing website with blog and pricing page" --language website
|
|
318
|
+
|
|
316
319
|
# Create an ALL project (React app + FastAPI backend + Marketing website)
|
|
317
320
|
popeye create "A SaaS product with landing page and dashboard" --language all
|
|
318
321
|
```
|
|
@@ -349,7 +352,7 @@ Popeye provides real-time feedback:
|
|
|
349
352
|
|
|
350
353
|
- **Fully Autonomous**: Runs from idea to complete project without manual intervention
|
|
351
354
|
- **Dual-AI Consensus**: Plans validated by multiple AI systems before execution
|
|
352
|
-
- **Multi-Language Support**: Generate projects in Python, TypeScript, or
|
|
355
|
+
- **Multi-Language Support**: Generate projects in Python, TypeScript, Fullstack (React + FastAPI), Website, or ALL (React + FastAPI + Website)
|
|
353
356
|
- **Automatic Testing**: Tests are generated and run for each implementation
|
|
354
357
|
- **Error Recovery**: Failed tests trigger automatic fix attempts (up to 3 retries)
|
|
355
358
|
- **Auto-Generated README**: At project completion, generates a comprehensive README with:
|
|
@@ -358,6 +361,8 @@ Popeye provides real-time feedback:
|
|
|
358
361
|
- Environment setup guide
|
|
359
362
|
- How to run (development, tests, production)
|
|
360
363
|
- Project structure overview
|
|
364
|
+
- **Project Type Upgrade**: Upgrade projects in-place (e.g., python to fullstack, fullstack to all) with automatic file restructuring, scaffolding, and planning integration
|
|
365
|
+
- **Flexible Model Switching**: Use any AI model name for OpenAI, Gemini, or Grok providers -- not limited to a predefined list
|
|
361
366
|
|
|
362
367
|
### Automatic UI/UX Design
|
|
363
368
|
|
|
@@ -527,7 +532,7 @@ popeye create "A CLI tool for converting markdown to PDF" \
|
|
|
527
532
|
| Option | Description | Default |
|
|
528
533
|
|--------|-------------|---------|
|
|
529
534
|
| `-n, --name <name>` | Project name | Derived from idea |
|
|
530
|
-
| `-l, --language <lang>` | `python`, `typescript`, `fullstack`, or `all` | `python` |
|
|
535
|
+
| `-l, --language <lang>` | `python`, `typescript`, `fullstack`, `website`, or `all` | `python` |
|
|
531
536
|
| `-d, --directory <dir>` | Output directory | Current directory |
|
|
532
537
|
| `-m, --model <model>` | OpenAI model for consensus | `gpt-4o` |
|
|
533
538
|
|
|
@@ -607,7 +612,11 @@ popeye
|
|
|
607
612
|
/config View/edit configuration
|
|
608
613
|
/config reviewer <ai> Set reviewer (openai/gemini/grok)
|
|
609
614
|
/config arbitrator <ai> Set arbitrator (openai/gemini/grok/off)
|
|
610
|
-
/
|
|
615
|
+
/config model Manage AI models via config subcommand
|
|
616
|
+
/lang <lang> Set language (py/ts/fs/web/all)
|
|
617
|
+
/model [provider] [model] Show/set AI model (openai/gemini/grok)
|
|
618
|
+
/model <provider> list Show known models for a provider
|
|
619
|
+
/upgrade [target] Upgrade project type (e.g., fullstack -> all)
|
|
611
620
|
/info Show system info (Claude CLI status, API keys, etc.)
|
|
612
621
|
/clear Clear screen
|
|
613
622
|
/exit Exit interactive mode
|
|
@@ -617,15 +626,84 @@ popeye
|
|
|
617
626
|
- `/lang py` or `/lang python` - Python projects
|
|
618
627
|
- `/lang ts` or `/lang typescript` - TypeScript projects
|
|
619
628
|
- `/lang fs` or `/lang fullstack` - Fullstack projects (React + FastAPI)
|
|
620
|
-
- `/lang
|
|
629
|
+
- `/lang web` or `/lang website` - Website projects (Next.js SSG/SSR)
|
|
630
|
+
- `/lang all` - ALL projects (React + FastAPI + Website)
|
|
621
631
|
|
|
622
632
|
**Status Bar Indicators:**
|
|
623
633
|
The input box shows current configuration:
|
|
624
|
-
- Language: `py`, `ts`, or `
|
|
634
|
+
- Language: `py`, `ts`, `fs`, `web`, or `all`
|
|
625
635
|
- Reviewer: `O` (OpenAI), `G` (Gemini), or `X` (Grok)
|
|
626
636
|
- Arbitrator: `O`, `G`, `X`, or `-` (disabled)
|
|
627
637
|
- Auth status: Filled circle when all required APIs are authenticated
|
|
628
638
|
|
|
639
|
+
### Model Switching (`/model`)
|
|
640
|
+
|
|
641
|
+
The `/model` command supports multi-provider model switching across OpenAI, Gemini, and Grok. Model names are flexible -- any valid model string is accepted, not just a predefined list. Unknown models are accepted with a warning note, allowing you to use newly released models immediately.
|
|
642
|
+
|
|
643
|
+
```bash
|
|
644
|
+
# Show current models for all providers
|
|
645
|
+
/model
|
|
646
|
+
|
|
647
|
+
# Set model for a specific provider
|
|
648
|
+
/model openai gpt-5
|
|
649
|
+
/model gemini gemini-2.5-pro
|
|
650
|
+
/model grok grok-3
|
|
651
|
+
|
|
652
|
+
# List known models for a provider (suggestions only)
|
|
653
|
+
/model openai list
|
|
654
|
+
/model gemini list
|
|
655
|
+
|
|
656
|
+
# Backward compatible: set OpenAI model directly
|
|
657
|
+
/model gpt-4o-mini
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
**Known Models (for reference):**
|
|
661
|
+
|
|
662
|
+
| Provider | Known Models |
|
|
663
|
+
|----------|-------------|
|
|
664
|
+
| OpenAI | `gpt-4o`, `gpt-4o-mini`, `gpt-4-turbo`, `o1-preview`, `o1-mini` |
|
|
665
|
+
| Gemini | `gemini-2.0-flash`, `gemini-1.5-pro`, `gemini-1.5-flash` |
|
|
666
|
+
| Grok | `grok-3` (flexible string, any model accepted) |
|
|
667
|
+
|
|
668
|
+
All three model values (openaiModel, geminiModel, grokModel) are:
|
|
669
|
+
- Persisted to `popeye.md` and loaded automatically on resume
|
|
670
|
+
- Passed through to the consensus workflow for the reviewer and arbitrator
|
|
671
|
+
- Displayed by `/config` and `/config model`
|
|
672
|
+
|
|
673
|
+
### Project Type Upgrade (`/upgrade`)
|
|
674
|
+
|
|
675
|
+
The `/upgrade` command allows upgrading an existing project to a more comprehensive type without starting over. The upgrade is transactional: it creates backups before making changes and rolls back on failure.
|
|
676
|
+
|
|
677
|
+
```bash
|
|
678
|
+
# Show valid upgrade targets for current project
|
|
679
|
+
/upgrade
|
|
680
|
+
|
|
681
|
+
# Upgrade to a specific target
|
|
682
|
+
/upgrade fullstack
|
|
683
|
+
/upgrade all
|
|
684
|
+
```
|
|
685
|
+
|
|
686
|
+
**Valid Upgrade Paths:**
|
|
687
|
+
|
|
688
|
+
| From | Valid Targets | Description |
|
|
689
|
+
|------|-------------|-------------|
|
|
690
|
+
| `python` | `fullstack`, `all` | Add frontend (and website), move backend to `apps/backend/` |
|
|
691
|
+
| `typescript` | `fullstack`, `all` | Add backend (and website), move frontend to `apps/frontend/` |
|
|
692
|
+
| `fullstack` | `all` | Add website app to existing workspace |
|
|
693
|
+
| `website` | `all` | Add frontend + backend, move website to `apps/website/` |
|
|
694
|
+
| `all` | (none) | Already the most comprehensive type |
|
|
695
|
+
|
|
696
|
+
**What happens during an upgrade:**
|
|
697
|
+
|
|
698
|
+
1. **Backup**: Critical files are backed up for rollback
|
|
699
|
+
2. **Restructure**: For single-app projects (python, typescript, website), existing code is moved into the `apps/` monorepo structure
|
|
700
|
+
3. **Scaffold**: New app directories are created with starter files
|
|
701
|
+
4. **Update State**: Project state and workspace configuration are updated
|
|
702
|
+
5. **Validate**: The upgrade result is verified (directories exist, state is correct)
|
|
703
|
+
6. **Plan**: After a successful upgrade, Popeye automatically builds context about the existing project and triggers planning mode focused only on the new apps and integration tasks
|
|
704
|
+
|
|
705
|
+
The planner receives explicit instructions to focus only on new apps and not rebuild existing ones, along with integration guidance tailored to the specific upgrade path.
|
|
706
|
+
|
|
629
707
|
## Configuration
|
|
630
708
|
|
|
631
709
|
### Project Configuration File (`popeye.md`)
|
|
@@ -644,6 +722,9 @@ When you create a new project, Popeye automatically generates a `popeye.md` file
|
|
|
644
722
|
language: fullstack
|
|
645
723
|
reviewer: openai
|
|
646
724
|
arbitrator: gemini
|
|
725
|
+
openaiModel: gpt-4o
|
|
726
|
+
geminiModel: gemini-2.0-flash
|
|
727
|
+
grokModel: grok-3
|
|
647
728
|
created: 2024-01-15T10:30:00.000Z
|
|
648
729
|
lastRun: 2024-01-15T14:45:00.000Z
|
|
649
730
|
projectName: task-manager
|
|
@@ -664,13 +745,16 @@ Add any guidance or notes for Claude here...
|
|
|
664
745
|
- **Language**: fullstack
|
|
665
746
|
- **Reviewer**: openai
|
|
666
747
|
- **Arbitrator**: gemini
|
|
748
|
+
- **OpenAI Model**: gpt-4o
|
|
749
|
+
- **Gemini Model**: gemini-2.0-flash
|
|
750
|
+
- **Grok Model**: grok-3
|
|
667
751
|
|
|
668
752
|
## Session History
|
|
669
753
|
- 2024-01-15: Project created
|
|
670
754
|
- 2024-01-15: Last session
|
|
671
755
|
```
|
|
672
756
|
|
|
673
|
-
This means you no longer need to run `/lang fullstack` every time you resume a project - the configuration is automatically restored.
|
|
757
|
+
This means you no longer need to run `/lang fullstack` or `/model` every time you resume a project - the configuration (including all three model selections) is automatically restored.
|
|
674
758
|
|
|
675
759
|
### Global Configuration File
|
|
676
760
|
|
|
@@ -691,13 +775,18 @@ consensus:
|
|
|
691
775
|
# API settings
|
|
692
776
|
apis:
|
|
693
777
|
openai:
|
|
694
|
-
model: gpt-4o
|
|
778
|
+
model: gpt-4o # Accepts any model name (e.g., gpt-5)
|
|
695
779
|
temperature: 0.3
|
|
696
780
|
max_tokens: 4096
|
|
697
781
|
gemini:
|
|
698
|
-
model: gemini-2.0-flash
|
|
782
|
+
model: gemini-2.0-flash # Accepts any model name
|
|
783
|
+
temperature: 0.3
|
|
784
|
+
max_tokens: 4096
|
|
785
|
+
grok:
|
|
786
|
+
model: grok-3 # Accepts any model name
|
|
699
787
|
temperature: 0.3
|
|
700
788
|
max_tokens: 4096
|
|
789
|
+
api_url: https://api.x.ai/v1
|
|
701
790
|
|
|
702
791
|
# Rate limit settings
|
|
703
792
|
rateLimit:
|
|
@@ -724,7 +813,7 @@ POPEYE_OPENAI_KEY=sk-... # OpenAI API key
|
|
|
724
813
|
|
|
725
814
|
# Optional
|
|
726
815
|
POPEYE_GEMINI_KEY=... # Gemini API key (for arbitration)
|
|
727
|
-
POPEYE_DEFAULT_LANGUAGE=python # Default output language
|
|
816
|
+
POPEYE_DEFAULT_LANGUAGE=python # Default output language (python/typescript/fullstack/website/all)
|
|
728
817
|
POPEYE_OPENAI_MODEL=gpt-4o # OpenAI model
|
|
729
818
|
POPEYE_GEMINI_MODEL=gemini-2.0-flash # Gemini model
|
|
730
819
|
POPEYE_CONSENSUS_THRESHOLD=95 # Consensus threshold (0-100)
|
|
@@ -732,13 +821,14 @@ POPEYE_MAX_ITERATIONS=10 # Max iterations before escalation
|
|
|
732
821
|
POPEYE_REVIEWER=openai # Primary reviewer (openai, gemini, or grok)
|
|
733
822
|
POPEYE_ARBITRATOR=gemini # Arbitrator (openai, gemini, grok, or off)
|
|
734
823
|
POPEYE_GROK_KEY=... # Grok API key (optional)
|
|
824
|
+
POPEYE_GROK_MODEL=grok-3 # Grok model (any model name accepted)
|
|
735
825
|
POPEYE_LOG_LEVEL=debug # Enable verbose logging
|
|
736
826
|
```
|
|
737
827
|
|
|
738
828
|
### Configuration Priority
|
|
739
829
|
|
|
740
830
|
1. Environment variables (highest)
|
|
741
|
-
2. Project-level `popeye.md` (for language, reviewer, arbitrator)
|
|
831
|
+
2. Project-level `popeye.md` (for language, reviewer, arbitrator, and all 3 model selections)
|
|
742
832
|
3. Project-level `popeye.config.yaml` or `.popeyerc.yaml`
|
|
743
833
|
4. Global `~/.popeye/config.yaml`
|
|
744
834
|
5. Built-in defaults (lowest)
|
|
@@ -1052,7 +1142,7 @@ src/
|
|
|
1052
1142
|
├── cli/ # CLI interface
|
|
1053
1143
|
│ ├── index.ts # Command setup
|
|
1054
1144
|
│ ├── output.ts # Output formatting
|
|
1055
|
-
│ ├── interactive.ts # REPL mode
|
|
1145
|
+
│ ├── interactive.ts # REPL mode (with /model, /upgrade commands)
|
|
1056
1146
|
│ └── commands/ # Individual commands
|
|
1057
1147
|
├── adapters/ # AI service adapters
|
|
1058
1148
|
│ ├── claude.ts # Claude Agent SDK (with rate limiting)
|
|
@@ -1063,22 +1153,30 @@ src/
|
|
|
1063
1153
|
│ ├── keychain.ts # Credential storage
|
|
1064
1154
|
│ └── server.ts # OAuth callback server
|
|
1065
1155
|
├── config/ # Configuration
|
|
1066
|
-
│ ├── schema.ts # Zod schemas
|
|
1156
|
+
│ ├── schema.ts # Zod schemas (uses OutputLanguageSchema for default_language)
|
|
1067
1157
|
│ ├── defaults.ts # Default values
|
|
1068
1158
|
│ └── index.ts # Config loading
|
|
1069
1159
|
├── generators/ # Project generators
|
|
1070
1160
|
│ ├── python.ts # Python scaffolding
|
|
1071
1161
|
│ ├── typescript.ts # TypeScript scaffolding
|
|
1162
|
+
│ ├── fullstack.ts # Fullstack scaffolding (React + FastAPI)
|
|
1163
|
+
│ ├── website.ts # Website scaffolding (Next.js)
|
|
1164
|
+
│ ├── all.ts # ALL project scaffolding (exports 5 generator functions)
|
|
1072
1165
|
│ └── templates/ # File templates
|
|
1073
1166
|
├── state/ # State management
|
|
1074
1167
|
│ ├── persistence.ts # File operations
|
|
1075
1168
|
│ └── index.ts # State API + verification
|
|
1169
|
+
├── upgrade/ # Project type upgrade system
|
|
1170
|
+
│ ├── transitions.ts # Valid upgrade paths and transition details
|
|
1171
|
+
│ ├── handlers.ts # Upgrade handlers (4 paths with file scaffolding)
|
|
1172
|
+
│ ├── index.ts # Transactional orchestrator with backup/rollback
|
|
1173
|
+
│ └── context.ts # Builds rich context for post-upgrade planning
|
|
1076
1174
|
├── workflow/ # Workflow engine
|
|
1077
1175
|
│ ├── consensus.ts # Consensus loop
|
|
1078
|
-
│ ├── plan-mode.ts # Planning phase
|
|
1176
|
+
│ ├── plan-mode.ts # Planning phase (monorepo-aware context scanning)
|
|
1079
1177
|
│ ├── execution-mode.ts # Execution phase
|
|
1080
1178
|
│ ├── milestone-workflow.ts
|
|
1081
|
-
│ ├── task-workflow.ts
|
|
1179
|
+
│ ├── task-workflow.ts # Uses isWorkspace() for multi-app checks
|
|
1082
1180
|
│ ├── test-runner.ts # Test execution
|
|
1083
1181
|
│ ├── workflow-logger.ts # Persistent logging
|
|
1084
1182
|
│ ├── plan-storage.ts # Consensus docs storage (per-app feedback)
|
|
@@ -1089,9 +1187,9 @@ src/
|
|
|
1089
1187
|
│ ├── project-verification.ts # Project quality checks
|
|
1090
1188
|
│ └── auto-fix.ts # Automatic error fixing
|
|
1091
1189
|
└── types/ # TypeScript types
|
|
1092
|
-
├── project.ts
|
|
1093
|
-
├── workflow.ts
|
|
1094
|
-
└── consensus.ts
|
|
1190
|
+
├── project.ts # OutputLanguage, isWorkspace(), flexible OpenAIModelSchema
|
|
1191
|
+
├── workflow.ts # ProjectStateSchema (uses OutputLanguageSchema)
|
|
1192
|
+
└── consensus.ts # GeminiModelSchema, GrokModelSchema, KNOWN_GEMINI_MODELS
|
|
1095
1193
|
```
|
|
1096
1194
|
|
|
1097
1195
|
## Development
|
|
@@ -5,9 +5,9 @@
|
|
|
5
5
|
import { GoogleGenerativeAI } from '@google/generative-ai';
|
|
6
6
|
import type { ConsensusResult, ArbitrationResult } from '../types/consensus.js';
|
|
7
7
|
/**
|
|
8
|
-
*
|
|
8
|
+
* Gemini model type - flexible string to support new models
|
|
9
9
|
*/
|
|
10
|
-
export type GeminiModel =
|
|
10
|
+
export type GeminiModel = string;
|
|
11
11
|
/**
|
|
12
12
|
* Default Gemini configuration
|
|
13
13
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/adapters/gemini.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGhF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,
|
|
1
|
+
{"version":3,"file":"gemini.d.ts","sourceRoot":"","sources":["../../src/adapters/gemini.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAC3D,OAAO,KAAK,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAGhF;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC;;GAEG;AACH,eAAO,MAAM,qBAAqB;WACH,WAAW;;;CAGzC,CAAC;AAEF;;GAEG;AACH,wBAAsB,YAAY,IAAI,OAAO,CAAC,kBAAkB,CAAC,CAQhE;AAED;;;;;;;GAOG;AACH,wBAAsB,gBAAgB,CACpC,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,MAAM,GAAE;IAAE,KAAK,CAAC,EAAE,WAAW,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAO,GAC7E,OAAO,CAAC,eAAe,CAAC,CA2B1B;AAED;;;;;;;;;GASG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,gBAAgB,EAAE,MAAM,EACxB,cAAc,EAAE,MAAM,EACtB,UAAU,EAAE,MAAM,EAClB,MAAM,EAAE,MAAM,EAAE,GACf,OAAO,CAAC,iBAAiB,CAAC,CAqB5B;AA6GD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,CAsCxE;AAgGD;;GAEG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,OAAO,CAAC,CASvD"}
|
package/dist/cli/index.d.ts
CHANGED
package/dist/cli/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAiBpC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAOpC,eAAO,MAAM,OAAO,EAAE,MAA4B,CAAC;AAEnD;;GAEG;AACH,wBAAgB,aAAa,IAAI,OAAO,CAuCvC;AAED;;GAEG;AACH,wBAAsB,MAAM,CAAC,IAAI,GAAE,MAAM,EAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CASzE"}
|
package/dist/cli/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
* Main entry point for the CLI interface
|
|
4
4
|
*/
|
|
5
5
|
import { Command } from 'commander';
|
|
6
|
+
import { createRequire } from 'node:module';
|
|
6
7
|
import { createAuthCommand, createCreateCommand, createStatusCommand, createValidateCommand, createSummaryCommand, createResumeCommand, createResetCommand, createCancelCommand, createConfigCommand, } from './commands/index.js';
|
|
7
8
|
import { startInteractiveMode } from './interactive.js';
|
|
8
9
|
import { printError } from './output.js';
|
|
@@ -11,9 +12,11 @@ export * from './output.js';
|
|
|
11
12
|
export * from './interactive.js';
|
|
12
13
|
export * from './commands/index.js';
|
|
13
14
|
/**
|
|
14
|
-
* Package version
|
|
15
|
+
* Package version - read from package.json
|
|
15
16
|
*/
|
|
16
|
-
const
|
|
17
|
+
const require = createRequire(import.meta.url);
|
|
18
|
+
const packageJson = require('../../package.json');
|
|
19
|
+
export const VERSION = packageJson.version;
|
|
17
20
|
/**
|
|
18
21
|
* Create the main CLI program
|
|
19
22
|
*/
|
package/dist/cli/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/cli/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACrB,oBAAoB,EACpB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,mBAAmB,GACpB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC,YAAY;AACZ,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AAEpC;;GAEG;AACH,MA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AC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../../src/cli/interactive.ts"],"names":[],"mappings":"AAAA;;;GAGG;
|
|
1
|
+
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../../src/cli/interactive.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAs/EH;;GAEG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CA4E1D"}
|