airpilot 0.0.2 → 0.7.8
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 +32 -18
- package/dist/airpilot/builders/config.d.ts +3 -0
- package/dist/airpilot/builders/config.d.ts.map +1 -0
- package/dist/airpilot/builders/config.js +168 -0
- package/dist/airpilot/builders/config.js.map +1 -0
- package/dist/airpilot/builders/content.d.ts +6 -0
- package/dist/airpilot/builders/content.d.ts.map +1 -0
- package/dist/airpilot/builders/content.js +276 -0
- package/dist/airpilot/builders/content.js.map +1 -0
- package/dist/airpilot/builders/domains.d.ts +2 -0
- package/dist/airpilot/builders/domains.d.ts.map +1 -0
- package/dist/airpilot/builders/domains.js +212 -0
- package/dist/airpilot/builders/domains.js.map +1 -0
- package/dist/airpilot/builders/scaffold.d.ts +2 -0
- package/dist/airpilot/builders/scaffold.d.ts.map +1 -0
- package/dist/airpilot/builders/scaffold.js +218 -0
- package/dist/airpilot/builders/scaffold.js.map +1 -0
- package/dist/airpilot/cli.d.ts +4 -0
- package/dist/airpilot/cli.d.ts.map +1 -0
- package/dist/airpilot/cli.js +87 -0
- package/dist/airpilot/cli.js.map +1 -0
- package/dist/airpilot/commands/init.d.ts +2 -0
- package/dist/airpilot/commands/init.d.ts.map +1 -0
- package/dist/airpilot/commands/init.js +257 -0
- package/dist/airpilot/commands/init.js.map +1 -0
- package/dist/airpilot/commands/license.d.ts +2 -0
- package/dist/airpilot/commands/license.d.ts.map +1 -0
- package/dist/airpilot/commands/license.js +213 -0
- package/dist/airpilot/commands/license.js.map +1 -0
- package/dist/airpilot/commands/sync.d.ts +3 -0
- package/dist/airpilot/commands/sync.d.ts.map +1 -0
- package/dist/airpilot/commands/sync.js +42 -0
- package/dist/airpilot/commands/sync.js.map +1 -0
- package/dist/airpilot/license.d.ts +26 -0
- package/dist/airpilot/license.d.ts.map +1 -0
- package/dist/airpilot/license.js +249 -0
- package/dist/airpilot/license.js.map +1 -0
- package/dist/airpilot/types.d.ts +69 -0
- package/dist/airpilot/types.d.ts.map +1 -0
- package/dist/airpilot/types.js +3 -0
- package/dist/airpilot/types.js.map +1 -0
- package/dist/airpilot/ui/panels.d.ts +27 -0
- package/dist/airpilot/ui/panels.d.ts.map +1 -0
- package/dist/airpilot/ui/panels.js +425 -0
- package/dist/airpilot/ui/panels.js.map +1 -0
- package/dist/airpilot/ui/prompts.d.ts +4 -0
- package/dist/airpilot/ui/prompts.d.ts.map +1 -0
- package/dist/airpilot/ui/prompts.js +52 -0
- package/dist/airpilot/ui/prompts.js.map +1 -0
- package/dist/airpilot/ui/textFormatter.d.ts +25 -0
- package/dist/airpilot/ui/textFormatter.d.ts.map +1 -0
- package/dist/airpilot/ui/textFormatter.js +174 -0
- package/dist/airpilot/ui/textFormatter.js.map +1 -0
- package/dist/airpilot/utils/backup.d.ts +4 -0
- package/dist/airpilot/utils/backup.d.ts.map +1 -0
- package/dist/airpilot/utils/backup.js +73 -0
- package/dist/airpilot/utils/backup.js.map +1 -0
- package/dist/airpilot/utils/git.d.ts +2 -0
- package/dist/airpilot/utils/git.d.ts.map +1 -0
- package/dist/airpilot/utils/git.js +74 -0
- package/dist/airpilot/utils/git.js.map +1 -0
- package/dist/airpilot/utils/version.d.ts +2 -0
- package/dist/airpilot/utils/version.d.ts.map +1 -0
- package/dist/airpilot/utils/version.js +59 -0
- package/dist/airpilot/utils/version.js.map +1 -0
- package/package.json +59 -19
- package/index.js +0 -44
@@ -0,0 +1,212 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
36
|
+
exports.createDomainsStructure = createDomainsStructure;
|
37
|
+
const fs = __importStar(require("fs-extra"));
|
38
|
+
const path = __importStar(require("path"));
|
39
|
+
async function createDomainsStructure(airDir) {
|
40
|
+
const domainsDir = path.join(airDir, 'domains');
|
41
|
+
await fs.ensureDir(domainsDir);
|
42
|
+
const domainsReadme = `# Domains
|
43
|
+
|
44
|
+
Domain-specific intelligence organization.
|
45
|
+
|
46
|
+
## Purpose
|
47
|
+
|
48
|
+
Organize AI intelligence by life and work domains, each containing the complete set of AI management primitives.
|
49
|
+
|
50
|
+
## Available Domains
|
51
|
+
|
52
|
+
- **software/** - Development, coding, technical work
|
53
|
+
- **health/** - Medical research, wellness, fitness
|
54
|
+
- **legal/** - Contracts, compliance, legal research
|
55
|
+
|
56
|
+
## Domain Structure
|
57
|
+
|
58
|
+
Each domain contains:
|
59
|
+
|
60
|
+
- \`rules/\` - Domain-specific AI behavior guidelines
|
61
|
+
- \`prompts/\` - Domain-specific instruction templates
|
62
|
+
- \`workflows/\` - Domain-specific process documentation
|
63
|
+
- \`frameworks/\` - Domain-specific organizational patterns
|
64
|
+
- \`tools/\` - Domain-specific scripts and configurations
|
65
|
+
|
66
|
+
## Adding Domains
|
67
|
+
|
68
|
+
Create new domain directories following the same structure for any area where you need specialized AI intelligence.
|
69
|
+
`;
|
70
|
+
const domainsReadmeFile = path.join(domainsDir, 'README.md');
|
71
|
+
if (!(await fs.pathExists(domainsReadmeFile))) {
|
72
|
+
await fs.writeFile(domainsReadmeFile, domainsReadme);
|
73
|
+
}
|
74
|
+
await createSoftwareDomain(domainsDir);
|
75
|
+
await createHealthDomain(domainsDir);
|
76
|
+
await createLegalDomain(domainsDir);
|
77
|
+
}
|
78
|
+
async function createSoftwareDomain(domainsDir) {
|
79
|
+
const softwareDir = path.join(domainsDir, 'software');
|
80
|
+
await fs.ensureDir(softwareDir);
|
81
|
+
const softwareReadme = `# Software Domain
|
82
|
+
|
83
|
+
Development, coding, and technical work intelligence.
|
84
|
+
|
85
|
+
## Purpose
|
86
|
+
|
87
|
+
Specialized AI intelligence for software development, coding standards, technical documentation, and engineering workflows.
|
88
|
+
|
89
|
+
## Focus Areas
|
90
|
+
|
91
|
+
- Code quality and best practices
|
92
|
+
- Architecture and design patterns
|
93
|
+
- Development workflows and tooling
|
94
|
+
- Technical documentation
|
95
|
+
- Code review and debugging
|
96
|
+
|
97
|
+
## Structure
|
98
|
+
|
99
|
+
- \`rules/\` - Development AI behavior and coding standards
|
100
|
+
- \`prompts/\` - Development instruction templates
|
101
|
+
- \`workflows/\` - Development process documentation
|
102
|
+
- \`frameworks/\` - Development framework definitions
|
103
|
+
- \`tools/\` - Development scripts and configurations
|
104
|
+
`;
|
105
|
+
const softwareReadmeFile = path.join(softwareDir, 'README.md');
|
106
|
+
if (!(await fs.pathExists(softwareReadmeFile))) {
|
107
|
+
await fs.writeFile(softwareReadmeFile, softwareReadme);
|
108
|
+
}
|
109
|
+
await createDomainSubdirectory(softwareDir, 'rules', 'Development AI behavior and coding standards.');
|
110
|
+
await createDomainSubdirectory(softwareDir, 'prompts', 'Development instruction templates.');
|
111
|
+
await createDomainSubdirectory(softwareDir, 'workflows', 'Development process documentation.');
|
112
|
+
await createDomainSubdirectory(softwareDir, 'frameworks', 'Development framework definitions.');
|
113
|
+
await createDomainSubdirectory(softwareDir, 'tools', 'Development scripts and configurations.', true);
|
114
|
+
}
|
115
|
+
async function createHealthDomain(domainsDir) {
|
116
|
+
const healthDir = path.join(domainsDir, 'health');
|
117
|
+
await fs.ensureDir(healthDir);
|
118
|
+
const healthReadme = `# Health Domain
|
119
|
+
|
120
|
+
Medical research, wellness, and fitness intelligence.
|
121
|
+
|
122
|
+
## Purpose
|
123
|
+
|
124
|
+
Specialized AI intelligence for health-related activities, medical research, wellness planning, and fitness optimization.
|
125
|
+
|
126
|
+
## Focus Areas
|
127
|
+
|
128
|
+
- Medical research and literature review
|
129
|
+
- Wellness and preventive care
|
130
|
+
- Fitness and nutrition planning
|
131
|
+
- Health data analysis
|
132
|
+
- Privacy and HIPAA compliance
|
133
|
+
|
134
|
+
## Structure
|
135
|
+
|
136
|
+
- \`rules/\` - Medical AI behavior and privacy compliance
|
137
|
+
- \`prompts/\` - Medical instruction templates
|
138
|
+
- \`workflows/\` - Medical process documentation
|
139
|
+
- \`frameworks/\` - Medical framework definitions
|
140
|
+
- \`tools/\` - Medical scripts and configurations
|
141
|
+
`;
|
142
|
+
const healthReadmeFile = path.join(healthDir, 'README.md');
|
143
|
+
if (!(await fs.pathExists(healthReadmeFile))) {
|
144
|
+
await fs.writeFile(healthReadmeFile, healthReadme);
|
145
|
+
}
|
146
|
+
await createDomainSubdirectory(healthDir, 'rules', 'Medical AI behavior and privacy compliance.');
|
147
|
+
await createDomainSubdirectory(healthDir, 'prompts', 'Medical instruction templates.');
|
148
|
+
await createDomainSubdirectory(healthDir, 'workflows', 'Medical process documentation.');
|
149
|
+
await createDomainSubdirectory(healthDir, 'frameworks', 'Medical framework definitions.');
|
150
|
+
await createDomainSubdirectory(healthDir, 'tools', 'Medical scripts and configurations.', true);
|
151
|
+
}
|
152
|
+
async function createLegalDomain(domainsDir) {
|
153
|
+
const legalDir = path.join(domainsDir, 'legal');
|
154
|
+
await fs.ensureDir(legalDir);
|
155
|
+
const legalReadme = `# Legal Domain
|
156
|
+
|
157
|
+
Contracts, compliance, and legal research intelligence.
|
158
|
+
|
159
|
+
## Purpose
|
160
|
+
|
161
|
+
Specialized AI intelligence for legal work, contract analysis, compliance requirements, and legal research.
|
162
|
+
|
163
|
+
## Focus Areas
|
164
|
+
|
165
|
+
- Contract review and analysis
|
166
|
+
- Regulatory compliance
|
167
|
+
- Legal research and precedent
|
168
|
+
- Risk assessment
|
169
|
+
- Privacy and data protection
|
170
|
+
|
171
|
+
## Structure
|
172
|
+
|
173
|
+
- \`rules/\` - Legal AI behavior and compliance
|
174
|
+
- \`prompts/\` - Contract analysis and legal templates
|
175
|
+
- \`workflows/\` - Legal process documentation
|
176
|
+
- \`frameworks/\` - Legal framework definitions
|
177
|
+
- \`tools/\` - Legal scripts and configurations
|
178
|
+
`;
|
179
|
+
const legalReadmeFile = path.join(legalDir, 'README.md');
|
180
|
+
if (!(await fs.pathExists(legalReadmeFile))) {
|
181
|
+
await fs.writeFile(legalReadmeFile, legalReadme);
|
182
|
+
}
|
183
|
+
await createDomainSubdirectory(legalDir, 'rules', 'Legal AI behavior and compliance.');
|
184
|
+
await createDomainSubdirectory(legalDir, 'prompts', 'Contract analysis and legal templates.');
|
185
|
+
await createDomainSubdirectory(legalDir, 'workflows', 'Legal process documentation.');
|
186
|
+
await createDomainSubdirectory(legalDir, 'frameworks', 'Legal framework definitions.');
|
187
|
+
await createDomainSubdirectory(legalDir, 'tools', 'Legal scripts and configurations.', true);
|
188
|
+
}
|
189
|
+
async function createDomainSubdirectory(domainDir, subdirName, description, isTools = false) {
|
190
|
+
const subdir = path.join(domainDir, subdirName);
|
191
|
+
await fs.ensureDir(subdir);
|
192
|
+
const title = subdirName.charAt(0).toUpperCase() + subdirName.slice(1);
|
193
|
+
const domainName = path.basename(domainDir).charAt(0).toUpperCase() + path.basename(domainDir).slice(1);
|
194
|
+
const content = `# ${domainName} Domain ${title}
|
195
|
+
|
196
|
+
${description}
|
197
|
+
|
198
|
+
## Purpose
|
199
|
+
|
200
|
+
Domain-specific ${subdirName} for ${path.basename(domainDir)} intelligence and AI interactions.
|
201
|
+
|
202
|
+
## Usage
|
203
|
+
|
204
|
+
Add your ${path.basename(domainDir)}-specific ${subdirName} here to customize AI behavior for this domain.
|
205
|
+
`;
|
206
|
+
const filename = isTools ? 'README.md' : 'index.md';
|
207
|
+
const contentFile = path.join(subdir, filename);
|
208
|
+
if (!(await fs.pathExists(contentFile))) {
|
209
|
+
await fs.writeFile(contentFile, content);
|
210
|
+
}
|
211
|
+
}
|
212
|
+
//# sourceMappingURL=domains.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"domains.js","sourceRoot":"","sources":["../../../src/airpilot/builders/domains.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAQA,wDA2CC;AA9CD,6CAA+B;AAC/B,2CAA6B;AAEtB,KAAK,UAAU,sBAAsB,CAAC,MAAc;IACzD,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;IAChD,MAAM,EAAE,CAAC,SAAS,CAAC,UAAU,CAAC,CAAC;IAG/B,MAAM,aAAa,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2BvB,CAAC;IAEA,MAAM,iBAAiB,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IAC7D,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,iBAAiB,CA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IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAChD,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;QACxC,MAAM,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,OAAO,CAAC,CAAC;IAC3C,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/airpilot/builders/scaffold.ts"],"names":[],"mappings":"AA0BA,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,SAAS,GAAE,OAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CA0BjG"}
|
@@ -0,0 +1,218 @@
|
|
1
|
+
"use strict";
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
3
|
+
if (k2 === undefined) k2 = k;
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
7
|
+
}
|
8
|
+
Object.defineProperty(o, k2, desc);
|
9
|
+
}) : (function(o, m, k, k2) {
|
10
|
+
if (k2 === undefined) k2 = k;
|
11
|
+
o[k2] = m[k];
|
12
|
+
}));
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
15
|
+
}) : function(o, v) {
|
16
|
+
o["default"] = v;
|
17
|
+
});
|
18
|
+
var __importStar = (this && this.__importStar) || (function () {
|
19
|
+
var ownKeys = function(o) {
|
20
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
21
|
+
var ar = [];
|
22
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
23
|
+
return ar;
|
24
|
+
};
|
25
|
+
return ownKeys(o);
|
26
|
+
};
|
27
|
+
return function (mod) {
|
28
|
+
if (mod && mod.__esModule) return mod;
|
29
|
+
var result = {};
|
30
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
31
|
+
__setModuleDefault(result, mod);
|
32
|
+
return result;
|
33
|
+
};
|
34
|
+
})();
|
35
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
36
|
+
exports.createAirStandard = createAirStandard;
|
37
|
+
const fs = __importStar(require("fs-extra"));
|
38
|
+
const path = __importStar(require("path"));
|
39
|
+
const panels_1 = require("../ui/panels");
|
40
|
+
const content_1 = require("./content");
|
41
|
+
const domains_1 = require("./domains");
|
42
|
+
async function createAirStandard(airDir, isProject = false) {
|
43
|
+
(0, panels_1.showScaffoldingPanel)(airDir);
|
44
|
+
await fs.ensureDir(airDir);
|
45
|
+
await createAirReadme(airDir, isProject);
|
46
|
+
await (0, content_1.createGlobalRules)(airDir);
|
47
|
+
await (0, content_1.createGlobalPrompts)(airDir);
|
48
|
+
await (0, content_1.createGlobalWorkflows)(airDir);
|
49
|
+
await (0, content_1.createGlobalFrameworks)(airDir);
|
50
|
+
await (0, content_1.createGlobalTools)(airDir);
|
51
|
+
await (0, domains_1.createDomainsStructure)(airDir);
|
52
|
+
if (isProject) {
|
53
|
+
await createProjectContext(airDir);
|
54
|
+
}
|
55
|
+
}
|
56
|
+
async function createAirReadme(airDir, isProject) {
|
57
|
+
const scope = isProject ? "Project" : "Global";
|
58
|
+
const readmeContent = `# ${scope} Intelligence Control
|
59
|
+
|
60
|
+
This directory follows the universal .air standard for AI intelligence control.
|
61
|
+
|
62
|
+
> *Where .git gives us version control, .air gives us intelligence control.*
|
63
|
+
|
64
|
+
## The Five Core AI Management Primitives
|
65
|
+
|
66
|
+
### 1. Rules
|
67
|
+
|
68
|
+
AI behavior guidelines, coding standards, domain constraints
|
69
|
+
|
70
|
+
### 2. Prompts
|
71
|
+
|
72
|
+
Specific instructions and templates for AI interactions
|
73
|
+
|
74
|
+
### 3. Workflows
|
75
|
+
|
76
|
+
Process documentation, memory systems, project context
|
77
|
+
|
78
|
+
### 4. Frameworks
|
79
|
+
|
80
|
+
Project management patterns and organizational methodologies
|
81
|
+
|
82
|
+
### 5. Tools
|
83
|
+
|
84
|
+
Scripts, MCP configurations, automation, domain-specific utilities
|
85
|
+
|
86
|
+
## Structure
|
87
|
+
|
88
|
+
- \`rules/\` - ${isProject ? 'Project-level' : 'Global'} rules across all domains
|
89
|
+
- \`prompts/\` - ${isProject ? 'Project-level' : 'Global'} prompts across all domains
|
90
|
+
- \`workflows/\` - ${isProject ? 'Project-level' : 'Global'} workflows across all domains
|
91
|
+
- \`frameworks/\` - ${isProject ? 'Project-level' : 'Global'} framework definitions
|
92
|
+
- \`tools/\` - ${isProject ? 'Project-level' : 'Global'} tools, scripts, MCP configurations
|
93
|
+
- \`domains/\` - Domain-specific intelligence organization
|
94
|
+
${isProject ? '- `context/` - Project session state (not synced to vendors)' : ''}
|
95
|
+
|
96
|
+
## Getting Started
|
97
|
+
|
98
|
+
1. Add your AI rules to \`rules/index.md\`
|
99
|
+
2. Create reusable prompts in \`prompts/index.md\`
|
100
|
+
3. Configure workflows in \`workflows/index.md\`
|
101
|
+
4. Explore domain-specific organization in \`domains/\`
|
102
|
+
|
103
|
+
## Configuration Hierarchy
|
104
|
+
|
105
|
+
Settings are applied in this order (later overrides earlier):
|
106
|
+
|
107
|
+
${isProject ? '1. **Global Base**: `~/.air/` provides universal foundation' : ''}
|
108
|
+
${isProject ? '2. **Domain Specific**: `~/.air/domains/{domain}/` adds domain expertise' : ''}
|
109
|
+
${isProject ? '3. **Project Base**: `/project/.air/` adds project-specific context (this directory)' : ''}
|
110
|
+
${isProject ? '4. **Project Domain**: `/project/.air/domains/{domain}/` provides final overrides' : ''}
|
111
|
+
${!isProject ? '1. **Global Base**: `~/.air/` provides universal foundation (this directory)' : ''}
|
112
|
+
${!isProject ? '2. **Domain Specific**: `~/.air/domains/{domain}/` adds domain expertise' : ''}
|
113
|
+
${!isProject ? '3. **Project Base**: `/project/.air/` adds project-specific context' : ''}
|
114
|
+
${!isProject ? '4. **Project Domain**: `/project/.air/domains/{domain}/` provides final overrides' : ''}
|
115
|
+
|
116
|
+
For more information, see: https://github.com/shaneholloman/airpilot
|
117
|
+
`;
|
118
|
+
const readmeFile = path.join(airDir, "README.md");
|
119
|
+
if (!(await fs.pathExists(readmeFile))) {
|
120
|
+
await fs.writeFile(readmeFile, readmeContent);
|
121
|
+
}
|
122
|
+
}
|
123
|
+
async function createProjectContext(airDir) {
|
124
|
+
const contextDir = path.join(airDir, "context");
|
125
|
+
await fs.ensureDir(contextDir);
|
126
|
+
const activeFocusContent = `# Active Focus
|
127
|
+
|
128
|
+
Current work focus and priorities.
|
129
|
+
|
130
|
+
## Current Sprint
|
131
|
+
|
132
|
+
### Primary Objectives
|
133
|
+
|
134
|
+
- [Add your current primary objectives here]
|
135
|
+
|
136
|
+
### Secondary Goals
|
137
|
+
|
138
|
+
- [Add secondary goals here]
|
139
|
+
|
140
|
+
### Blockers
|
141
|
+
|
142
|
+
- [Add any current blockers here]
|
143
|
+
|
144
|
+
## Recent Decisions
|
145
|
+
|
146
|
+
### [Date] - Decision Title
|
147
|
+
|
148
|
+
- **Context**: Why this decision was needed
|
149
|
+
- **Decision**: What was decided
|
150
|
+
- **Impact**: How this affects the project
|
151
|
+
|
152
|
+
## Next Steps
|
153
|
+
|
154
|
+
### Immediate (This Week)
|
155
|
+
|
156
|
+
- [Add immediate next steps]
|
157
|
+
|
158
|
+
### Short Term (This Month)
|
159
|
+
|
160
|
+
- [Add short-term goals]
|
161
|
+
|
162
|
+
### Long Term (This Quarter)
|
163
|
+
|
164
|
+
- [Add long-term objectives]
|
165
|
+
`;
|
166
|
+
const activeFocusFile = path.join(contextDir, "active-focus.md");
|
167
|
+
if (!(await fs.pathExists(activeFocusFile))) {
|
168
|
+
await fs.writeFile(activeFocusFile, activeFocusContent);
|
169
|
+
}
|
170
|
+
const historyContent = `# Project Timeline and Decisions
|
171
|
+
|
172
|
+
Project timeline and major decisions.
|
173
|
+
|
174
|
+
## Project Overview
|
175
|
+
|
176
|
+
### Started
|
177
|
+
|
178
|
+
- **Date**: [Project start date]
|
179
|
+
- **Objective**: [Main project objective]
|
180
|
+
- **Success Criteria**: [How success will be measured]
|
181
|
+
|
182
|
+
## Major Milestones
|
183
|
+
|
184
|
+
### [Date] - Milestone Name
|
185
|
+
|
186
|
+
- **Achievement**: What was accomplished
|
187
|
+
- **Impact**: How this moved the project forward
|
188
|
+
- **Lessons**: What was learned
|
189
|
+
|
190
|
+
## Decision Log
|
191
|
+
|
192
|
+
### [Date] - Decision Title
|
193
|
+
|
194
|
+
- **Context**: Situation requiring decision
|
195
|
+
- **Options**: Alternatives considered
|
196
|
+
- **Decision**: What was chosen and why
|
197
|
+
- **Outcome**: Results of the decision
|
198
|
+
|
199
|
+
## Key Learnings
|
200
|
+
|
201
|
+
### Technical
|
202
|
+
|
203
|
+
- [Technical insights gained]
|
204
|
+
|
205
|
+
### Process
|
206
|
+
|
207
|
+
- [Process improvements discovered]
|
208
|
+
|
209
|
+
### Team
|
210
|
+
|
211
|
+
- [Team collaboration learnings]
|
212
|
+
`;
|
213
|
+
const historyFile = path.join(contextDir, "history.md");
|
214
|
+
if (!(await fs.pathExists(historyFile))) {
|
215
|
+
await fs.writeFile(historyFile, historyContent);
|
216
|
+
}
|
217
|
+
}
|
218
|
+
//# sourceMappingURL=scaffold.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"scaffold.js","sourceRoot":"","sources":["../../../src/airpilot/builders/scaffold.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0BA,8CA0BC;AA9CD,6CAA+B;AAC/B,2CAA6B;AAC7B,yCAAoD;AACpD,uCAMmB;AACnB,uCAAmD;AAU5C,KAAK,UAAU,iBAAiB,CAAC,MAAc,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CAAC;IAC1D,CAAC;IAGD,MAAM,cAAc,GAAG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0CxB,CAAC;IAEA,MAAM,WAAW,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IACxD,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC;QACxC,MAAM,EAAE,CAAC,SAAS,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC;IAClD,CAAC;AACH,CAAC"}
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../../src/airpilot/cli.ts"],"names":[],"mappings":";AA4GA,iBAAe,IAAI,IAAI,OAAO,CAAC,IAAI,CAAC,CAGnC;AAUD,eAAe,IAAI,CAAC"}
|
@@ -0,0 +1,87 @@
|
|
1
|
+
#!/usr/bin/env node
|
2
|
+
"use strict";
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
4
|
+
const panels_1 = require("./ui/panels");
|
5
|
+
const init_1 = require("./commands/init");
|
6
|
+
const license_1 = require("./commands/license");
|
7
|
+
const sync_1 = require("./commands/sync");
|
8
|
+
class AirPilotCLI {
|
9
|
+
args;
|
10
|
+
constructor() {
|
11
|
+
this.args = process.argv.slice(2);
|
12
|
+
}
|
13
|
+
async run() {
|
14
|
+
try {
|
15
|
+
if (this.args.length === 0) {
|
16
|
+
panels_1.PanelRenderer.showMainHelpPanel();
|
17
|
+
return;
|
18
|
+
}
|
19
|
+
const command = this.args[0];
|
20
|
+
if (this.args.includes('--version')) {
|
21
|
+
panels_1.PanelRenderer.showVersionPanel();
|
22
|
+
return;
|
23
|
+
}
|
24
|
+
if (this.args[0] === '--help' || (this.args.includes('--help') && (!command || command.startsWith('-')))) {
|
25
|
+
panels_1.PanelRenderer.showMainHelpPanel();
|
26
|
+
return;
|
27
|
+
}
|
28
|
+
switch (command) {
|
29
|
+
case 'init':
|
30
|
+
await (0, init_1.initCommand)(this.args.slice(1));
|
31
|
+
break;
|
32
|
+
case 'license':
|
33
|
+
await (0, license_1.licenseCommand)(this.args.slice(1));
|
34
|
+
break;
|
35
|
+
case 'sync':
|
36
|
+
await (0, sync_1.syncCommand)(this.args.slice(1));
|
37
|
+
break;
|
38
|
+
default:
|
39
|
+
this.showUnknownCommandError(command || 'undefined');
|
40
|
+
process.exit(1);
|
41
|
+
}
|
42
|
+
}
|
43
|
+
catch (error) {
|
44
|
+
if (error instanceof Error) {
|
45
|
+
panels_1.PanelRenderer.showErrorPanel(`An unexpected error occurred:\n${error.message}`, 'Error');
|
46
|
+
}
|
47
|
+
else {
|
48
|
+
panels_1.PanelRenderer.showErrorPanel('An unexpected error occurred', 'Error');
|
49
|
+
}
|
50
|
+
process.exit(1);
|
51
|
+
}
|
52
|
+
}
|
53
|
+
showUnknownCommandError(command) {
|
54
|
+
const content = {
|
55
|
+
items: [
|
56
|
+
{ type: 'text', content: `Unknown command '${command}'` },
|
57
|
+
{ type: 'space' },
|
58
|
+
{ type: 'header', content: 'Available commands' },
|
59
|
+
{ type: 'command', command: '• air init', description: 'Initialize intelligence control' },
|
60
|
+
{ type: 'command', command: '• air license', description: 'Manage AirPilot license' },
|
61
|
+
{ type: 'command', command: '• air sync', description: 'Premium: Real-time vendor sync' },
|
62
|
+
{ type: 'space' },
|
63
|
+
{
|
64
|
+
type: 'inline',
|
65
|
+
segments: [
|
66
|
+
{ text: 'Run ', style: 'normal' },
|
67
|
+
{ text: 'air --help', style: 'command' },
|
68
|
+
{ text: ' for more information.', style: 'normal' }
|
69
|
+
]
|
70
|
+
}
|
71
|
+
]
|
72
|
+
};
|
73
|
+
console.log(panels_1.PanelRenderer.createRichPanel(content, 'Command Not Found', 'red'));
|
74
|
+
}
|
75
|
+
}
|
76
|
+
async function main() {
|
77
|
+
const cli = new AirPilotCLI();
|
78
|
+
await cli.run();
|
79
|
+
}
|
80
|
+
if (require.main === module) {
|
81
|
+
main().catch((error) => {
|
82
|
+
console.error('Fatal error:', error);
|
83
|
+
process.exit(1);
|
84
|
+
});
|
85
|
+
}
|
86
|
+
exports.default = main;
|
87
|
+
//# sourceMappingURL=cli.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":["../../src/airpilot/cli.ts"],"names":[],"mappings":";;;AAOA,wCAA4C;AAC5C,0CAA8C;AAC9C,gDAAoD;AACpD,0CAA8C;AAE9C,MAAM,WAAW;IACP,IAAI,CAAW;IAEvB;QAEE,IAAI,CAAC,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IACpC,CAAC;IAKM,KAAK,CAAC,GAAG;QACd,IAAI,CAAC;YAEH,IAAI,IAAI,CAAC,IAAI,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;gBAC3B,sBAAa,CAAC,iBAAiB,EAAE,CAAC;gBAClC,OAAO;YACT,CAAC;YAGD,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAG7B,IAAI,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,WAAW,CAAC,EAAE,CAAC;gBACpC,sBAAa,CAAC,gBAAgB,EAAE,CAAC;gBACjC,OAAO;YACT,CAAC;YAGD,IAAI,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,OAAO,IAAI,OAAO,CAAC,UAAU,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC;gBACzG,sBAAa,CAAC,iBAAiB,EAAE,CAAC;gBAClC,OAAO;YACT,CAAC;YAGD,QAAQ,OAAO,EAAE,CAAC;gBAChB,KAAK,MAAM;oBACT,MAAM,IAAA,kBAAW,EAAC,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,C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