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
package/README.md
CHANGED
@@ -1,30 +1,44 @@
|
|
1
|
-
# AirPilot
|
1
|
+
# AirPilot TypeScript CLI
|
2
2
|
|
3
|
-
|
3
|
+
>Universal Intelligence Control Platform - TypeScript CLI Component
|
4
4
|
|
5
|
-
|
5
|
+
This is the TypeScript command-line interface component of AirPilot, providing programmatic access and automation for AI assistant configurations.
|
6
6
|
|
7
|
-
|
7
|
+
## Overview
|
8
8
|
|
9
|
-
|
9
|
+
AirPilot introduces `.air` as the universal configuration format for all AI coding assistants, eliminating vendor-specific chaos with one universal standard.
|
10
10
|
|
11
|
-
|
12
|
-
- **Command Line Interface**: Advanced configuration and automation
|
13
|
-
- **Cross-Platform**: Support for multiple AI assistant tools
|
14
|
-
- **Team Collaboration**: Shared rule libraries and templates
|
11
|
+
## Documentation
|
15
12
|
|
16
|
-
|
13
|
+
**Complete documentation, features, and setup instructions are available in the main AirPilot repository:**
|
17
14
|
|
18
|
-
|
15
|
+
**[AirPilot Documentation](https://github.com/shaneholloman/airpilot)**
|
19
16
|
|
20
|
-
|
21
|
-
- **Issues**: <https://github.com/shaneholloman/airpilot/issues>
|
17
|
+
## Development
|
22
18
|
|
23
|
-
|
19
|
+
This component is managed as a Git subtree from the main AirPilot repository.
|
24
20
|
|
25
|
-
|
26
|
-
- **Email**: <shaneholloman@gmail.com>
|
21
|
+
### Getting Started
|
27
22
|
|
28
|
-
|
23
|
+
```sh
|
24
|
+
# Install dependencies
|
25
|
+
npm install
|
29
26
|
|
30
|
-
|
27
|
+
# Build the CLI
|
28
|
+
npm run build
|
29
|
+
|
30
|
+
# Run tests
|
31
|
+
npm test
|
32
|
+
```
|
33
|
+
|
34
|
+
## Distribution
|
35
|
+
|
36
|
+
Available on [NPM](https://www.npmjs.com/~shaneholloman)
|
37
|
+
|
38
|
+
```sh
|
39
|
+
npm install -g airpilot
|
40
|
+
```
|
41
|
+
|
42
|
+
## License
|
43
|
+
|
44
|
+
This project is licensed under the Elastic License 2.0 - see the [LICENSE](https://github.com/shaneholloman/airpilot/blob/main/LICENSE.md) file for details.
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../src/airpilot/builders/config.ts"],"names":[],"mappings":"AAoBA,wBAAsB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwH/E;AAKD,wBAAsB,2BAA2B,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAmBnF"}
|
@@ -0,0 +1,168 @@
|
|
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.createAirPilotGlobalConfig = createAirPilotGlobalConfig;
|
37
|
+
exports.createAirPilotProjectConfig = createAirPilotProjectConfig;
|
38
|
+
const fs = __importStar(require("fs-extra"));
|
39
|
+
const path = __importStar(require("path"));
|
40
|
+
const os = __importStar(require("os"));
|
41
|
+
async function createAirPilotGlobalConfig(homeDir) {
|
42
|
+
const config = {
|
43
|
+
"// Welcome to AirPilot Global Configuration": "This file provides system-wide defaults for both VSCode extension and TypeScript CLI",
|
44
|
+
"// Project-level .airpilot files can override any of these settings": "",
|
45
|
+
enabled: true,
|
46
|
+
source: "~/.air/rules/",
|
47
|
+
sourceIsDirectory: true,
|
48
|
+
indexFileName: "index.md",
|
49
|
+
defaultFormat: "markdown",
|
50
|
+
autoSync: true,
|
51
|
+
showStatus: true,
|
52
|
+
vendors: {
|
53
|
+
augment: {
|
54
|
+
enabled: false,
|
55
|
+
path: ".augment/guidelines/",
|
56
|
+
format: "markdown",
|
57
|
+
isDirectory: true
|
58
|
+
},
|
59
|
+
claude: {
|
60
|
+
enabled: true,
|
61
|
+
path: ".claude/",
|
62
|
+
format: "markdown",
|
63
|
+
isDirectory: true
|
64
|
+
},
|
65
|
+
cline: {
|
66
|
+
enabled: false,
|
67
|
+
path: ".clinerules/rules/",
|
68
|
+
format: "markdown",
|
69
|
+
isDirectory: true
|
70
|
+
},
|
71
|
+
codex: {
|
72
|
+
enabled: false,
|
73
|
+
path: ".codex/",
|
74
|
+
format: "markdown",
|
75
|
+
isDirectory: true
|
76
|
+
},
|
77
|
+
copilot: {
|
78
|
+
enabled: true,
|
79
|
+
path: ".github/copilot-instructions/",
|
80
|
+
format: "markdown",
|
81
|
+
isDirectory: true
|
82
|
+
},
|
83
|
+
cursor: {
|
84
|
+
enabled: false,
|
85
|
+
path: ".cursor/rules/",
|
86
|
+
format: "markdown",
|
87
|
+
isDirectory: true
|
88
|
+
},
|
89
|
+
roo: {
|
90
|
+
enabled: false,
|
91
|
+
path: ".roo/rules/",
|
92
|
+
format: "markdown",
|
93
|
+
isDirectory: true
|
94
|
+
},
|
95
|
+
warpdeck: {
|
96
|
+
enabled: false,
|
97
|
+
path: ".warpdeck/rules/",
|
98
|
+
format: "markdown",
|
99
|
+
isDirectory: true
|
100
|
+
},
|
101
|
+
windsurf: {
|
102
|
+
enabled: false,
|
103
|
+
path: ".windsurf/rules/",
|
104
|
+
format: "markdown",
|
105
|
+
isDirectory: true
|
106
|
+
}
|
107
|
+
},
|
108
|
+
customVendors: {
|
109
|
+
vendors: {}
|
110
|
+
},
|
111
|
+
cli: {
|
112
|
+
version: "0.7.8",
|
113
|
+
user: {
|
114
|
+
name: "",
|
115
|
+
email: "",
|
116
|
+
preferences: {
|
117
|
+
default_domain: "software",
|
118
|
+
auto_backup: true,
|
119
|
+
sync_on_change: true,
|
120
|
+
premium_features: false
|
121
|
+
}
|
122
|
+
},
|
123
|
+
paths: {
|
124
|
+
global_air_path: path.join(os.homedir(), ".air"),
|
125
|
+
config_file: path.join(homeDir, ".airpilot")
|
126
|
+
},
|
127
|
+
features: {
|
128
|
+
real_time_sync: false,
|
129
|
+
cloud_backup: false,
|
130
|
+
analytics: false
|
131
|
+
},
|
132
|
+
created: new Date().toISOString().split('T')[0]
|
133
|
+
}
|
134
|
+
};
|
135
|
+
const airpilotFile = path.join(homeDir, ".airpilot");
|
136
|
+
if (await fs.pathExists(airpilotFile)) {
|
137
|
+
const stats = await fs.stat(airpilotFile);
|
138
|
+
if (stats.isDirectory()) {
|
139
|
+
throw new Error(`CRITICAL ARCHITECTURE VIOLATION: ${airpilotFile} exists as a DIRECTORY!\n` +
|
140
|
+
`AirPilot configuration must be a FILE, never a directory.\n\n` +
|
141
|
+
`Please remove the directory: rm -rf ${airpilotFile}\n` +
|
142
|
+
`Then run 'air init --global' again to create the correct FILE.`);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
if (!(await fs.pathExists(airpilotFile))) {
|
146
|
+
await fs.writeJSON(airpilotFile, config, { spaces: 4 });
|
147
|
+
}
|
148
|
+
}
|
149
|
+
async function createAirPilotProjectConfig(projectDir) {
|
150
|
+
const config = {
|
151
|
+
enabled: true,
|
152
|
+
source: ".air/rules/",
|
153
|
+
sourceIsDirectory: true,
|
154
|
+
indexFileName: "index.md",
|
155
|
+
defaultFormat: "markdown",
|
156
|
+
autoSync: true,
|
157
|
+
showStatus: true,
|
158
|
+
vendors: {
|
159
|
+
claude: { enabled: true, path: ".claude/", format: "markdown", isDirectory: true },
|
160
|
+
copilot: { enabled: true, path: ".github/copilot-instructions/", format: "markdown", isDirectory: true }
|
161
|
+
}
|
162
|
+
};
|
163
|
+
const airpilotFile = path.join(projectDir, ".airpilot");
|
164
|
+
if (!(await fs.pathExists(airpilotFile))) {
|
165
|
+
await fs.writeJSON(airpilotFile, config, { spaces: 2 });
|
166
|
+
}
|
167
|
+
}
|
168
|
+
//# sourceMappingURL=config.js.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"config.js","sourceRoot":"","sources":["../../../src/airpilot/builders/config.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,gEAwHC;AAKD,kEAmBC;AA9JD,6CAA+B;AAC/B,2CAA6B;AAC7B,uCAAyB;AAYlB,KAAK,UAAU,0BAA0B,CAAC,OAAe;IAC9D,MAAM,MAAM,GAAmB;QAC7B,6CAA6C,EAAE,sFAAsF;QACrI,qEAAqE,EAAE,EAAE;QAGzE,OAAO,EAAE,IAAI;QACb,MAAM,EAAE,eAAe;QACvB,iBAAiB,EAAE,IAAI;QACvB,aAAa,EAAE,UAAU;QACzB,aAAa,EAAE,UAAU;QACzB,QAAQ,EAAE,IAAI;QACd,UAAU,EAAE,IAAI;QAGhB,OAAO,EAAE;YACP,OAAO,EAAE;gBACP,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,sBAAsB;gBAC5B,MAAM,EAAE,UAAU;gBAClB,WAAW,EAAE,IAAI;aAClB;YACD,MAAM,EAAE;gBACN,OAAO,EAAE,IAAI;gBACb,IAAI,EAAE,UAAU;gBAChB,MAAM,EAAE,UAAU;gBAClB,WAAW,EAAE,IAAI;aAClB;YACD,KAAK,EAAE;gBACL,OAAO,EAAE,KAAK;gBACd,IAAI,EAAE,oBAAoB;gBAC1B,MAAM,EAAE,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AAO,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,IAAI,EAAE,+BAA+B,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,EAAE,IAAI,EAAE;SACzG;KACF,CAAC;IAEF,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,UAAU,EAAE,WAAW,CAAC,CAAC;IACxD,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC,UAAU,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC;QACzC,MAAM,EAAE,CAAC,SAAS,CAAC,YAAY,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,CAAC,EAAE,CAAC,CAAC;IAC1D,CAAC;AACH,CAAC"}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
export declare function createGlobalRules(airDir: string): Promise<void>;
|
2
|
+
export declare function createGlobalPrompts(airDir: string): Promise<void>;
|
3
|
+
export declare function createGlobalWorkflows(airDir: string): Promise<void>;
|
4
|
+
export declare function createGlobalFrameworks(airDir: string): Promise<void>;
|
5
|
+
export declare function createGlobalTools(airDir: string): Promise<void>;
|
6
|
+
//# sourceMappingURL=content.d.ts.map
|
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"content.d.ts","sourceRoot":"","sources":["../../../src/airpilot/builders/content.ts"],"names":[],"mappings":"AAQA,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BrE;AAED,wBAAsB,mBAAmB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BvE;AAED,wBAAsB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4BzE;AAED,wBAAsB,sBAAsB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAwH1E;AAED,wBAAsB,iBAAiB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAyCrE"}
|
@@ -0,0 +1,276 @@
|
|
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.createGlobalRules = createGlobalRules;
|
37
|
+
exports.createGlobalPrompts = createGlobalPrompts;
|
38
|
+
exports.createGlobalWorkflows = createGlobalWorkflows;
|
39
|
+
exports.createGlobalFrameworks = createGlobalFrameworks;
|
40
|
+
exports.createGlobalTools = createGlobalTools;
|
41
|
+
const fs = __importStar(require("fs-extra"));
|
42
|
+
const path = __importStar(require("path"));
|
43
|
+
async function createGlobalRules(airDir) {
|
44
|
+
const rulesDir = path.join(airDir, 'rules');
|
45
|
+
await fs.ensureDir(rulesDir);
|
46
|
+
const rulesContent = `# Global Rules
|
47
|
+
|
48
|
+
AI behavior guidelines and coding standards.
|
49
|
+
|
50
|
+
## Purpose
|
51
|
+
|
52
|
+
Define consistent AI behavior patterns that apply across all domains and interactions.
|
53
|
+
|
54
|
+
## Examples
|
55
|
+
|
56
|
+
- Always use TypeScript strict mode
|
57
|
+
- Follow SOLID principles in code reviews
|
58
|
+
- Prioritize security in all recommendations
|
59
|
+
- Use inclusive language in documentation
|
60
|
+
|
61
|
+
## Usage
|
62
|
+
|
63
|
+
Add your universal AI behavior rules here. These will be inherited by all domain-specific and project-specific rules.
|
64
|
+
`;
|
65
|
+
const rulesFile = path.join(rulesDir, 'index.md');
|
66
|
+
if (!(await fs.pathExists(rulesFile))) {
|
67
|
+
await fs.writeFile(rulesFile, rulesContent);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
async function createGlobalPrompts(airDir) {
|
71
|
+
const promptsDir = path.join(airDir, 'prompts');
|
72
|
+
await fs.ensureDir(promptsDir);
|
73
|
+
const promptsContent = `# Global Prompts
|
74
|
+
|
75
|
+
Reusable instruction templates for common tasks.
|
76
|
+
|
77
|
+
## Purpose
|
78
|
+
|
79
|
+
Store frequently used prompt templates that work across multiple domains and projects.
|
80
|
+
|
81
|
+
## Examples
|
82
|
+
|
83
|
+
- "Explain this code step-by-step"
|
84
|
+
- "Review this document for clarity and accuracy"
|
85
|
+
- "Suggest improvements to this workflow"
|
86
|
+
- "Help me debug this issue"
|
87
|
+
|
88
|
+
## Usage
|
89
|
+
|
90
|
+
Create reusable prompt templates here that you use frequently across different projects and domains.
|
91
|
+
`;
|
92
|
+
const promptsFile = path.join(promptsDir, 'index.md');
|
93
|
+
if (!(await fs.pathExists(promptsFile))) {
|
94
|
+
await fs.writeFile(promptsFile, promptsContent);
|
95
|
+
}
|
96
|
+
}
|
97
|
+
async function createGlobalWorkflows(airDir) {
|
98
|
+
const workflowsDir = path.join(airDir, 'workflows');
|
99
|
+
await fs.ensureDir(workflowsDir);
|
100
|
+
const workflowsContent = `# Global Workflows
|
101
|
+
|
102
|
+
Process documentation and memory systems.
|
103
|
+
|
104
|
+
## Purpose
|
105
|
+
|
106
|
+
Document repeatable processes and maintain context across AI interactions.
|
107
|
+
|
108
|
+
## Examples
|
109
|
+
|
110
|
+
- Project kickoff procedures
|
111
|
+
- Code review checklists
|
112
|
+
- Problem-solving methodologies
|
113
|
+
- Learning and research workflows
|
114
|
+
|
115
|
+
## Usage
|
116
|
+
|
117
|
+
Define structured approaches to complex, multi-step processes that you use regularly.
|
118
|
+
`;
|
119
|
+
const workflowsFile = path.join(workflowsDir, 'index.md');
|
120
|
+
if (!(await fs.pathExists(workflowsFile))) {
|
121
|
+
await fs.writeFile(workflowsFile, workflowsContent);
|
122
|
+
}
|
123
|
+
}
|
124
|
+
async function createGlobalFrameworks(airDir) {
|
125
|
+
const frameworksDir = path.join(airDir, 'frameworks');
|
126
|
+
await fs.ensureDir(frameworksDir);
|
127
|
+
const memoryBankContent = `# Memory Bank Framework
|
128
|
+
|
129
|
+
Cline-style project context and progress tracking.
|
130
|
+
|
131
|
+
## Purpose
|
132
|
+
|
133
|
+
Maintain persistent project memory across AI sessions, tracking progress, decisions, and context.
|
134
|
+
|
135
|
+
## Structure
|
136
|
+
|
137
|
+
### Project Brief
|
138
|
+
|
139
|
+
- Project overview and objectives
|
140
|
+
- Key stakeholders and constraints
|
141
|
+
- Success criteria and milestones
|
142
|
+
|
143
|
+
### Active Context
|
144
|
+
|
145
|
+
- Current focus and priorities
|
146
|
+
- Recent decisions and rationale
|
147
|
+
- Immediate next steps
|
148
|
+
|
149
|
+
### Progress Tracking
|
150
|
+
|
151
|
+
- Completed milestones
|
152
|
+
- Blockers and challenges
|
153
|
+
- Lessons learned
|
154
|
+
|
155
|
+
## Usage
|
156
|
+
|
157
|
+
Use this framework to maintain continuity across AI interactions, ensuring context is preserved and progress is tracked systematically.
|
158
|
+
`;
|
159
|
+
const memoryBankFile = path.join(frameworksDir, 'memory-bank.md');
|
160
|
+
if (!(await fs.pathExists(memoryBankFile))) {
|
161
|
+
await fs.writeFile(memoryBankFile, memoryBankContent);
|
162
|
+
}
|
163
|
+
const conversationContent = `# Conversation Framework
|
164
|
+
|
165
|
+
Claude-style session history and knowledge base.
|
166
|
+
|
167
|
+
## Purpose
|
168
|
+
|
169
|
+
Maintain conversational context and build cumulative knowledge across AI interactions.
|
170
|
+
|
171
|
+
## Structure
|
172
|
+
|
173
|
+
### Session History
|
174
|
+
|
175
|
+
- Previous conversation summaries
|
176
|
+
- Key insights and discoveries
|
177
|
+
- Decision points and outcomes
|
178
|
+
|
179
|
+
### Knowledge Base
|
180
|
+
|
181
|
+
- Domain-specific learnings
|
182
|
+
- Best practices discovered
|
183
|
+
- Common patterns and solutions
|
184
|
+
|
185
|
+
### Context Threads
|
186
|
+
|
187
|
+
- Ongoing discussion topics
|
188
|
+
- Related concepts and connections
|
189
|
+
- Future exploration areas
|
190
|
+
|
191
|
+
## Usage
|
192
|
+
|
193
|
+
Use this framework to build conversational intelligence that improves over time and maintains rich context.
|
194
|
+
`;
|
195
|
+
const conversationFile = path.join(frameworksDir, 'conversation.md');
|
196
|
+
if (!(await fs.pathExists(conversationFile))) {
|
197
|
+
await fs.writeFile(conversationFile, conversationContent);
|
198
|
+
}
|
199
|
+
const workflowContent = `# Workflow Framework
|
200
|
+
|
201
|
+
Windsurf-style memories, tasks, and planning.
|
202
|
+
|
203
|
+
## Purpose
|
204
|
+
|
205
|
+
Organize work into structured workflows with memory, task management, and strategic planning.
|
206
|
+
|
207
|
+
## Structure
|
208
|
+
|
209
|
+
### Memories
|
210
|
+
|
211
|
+
- Important context and decisions
|
212
|
+
- Patterns and insights
|
213
|
+
- Historical reference points
|
214
|
+
|
215
|
+
### Tasks
|
216
|
+
|
217
|
+
- Current work items
|
218
|
+
- Priorities and dependencies
|
219
|
+
- Progress and status
|
220
|
+
|
221
|
+
### Planning
|
222
|
+
|
223
|
+
- Strategic objectives
|
224
|
+
- Resource allocation
|
225
|
+
- Timeline and milestones
|
226
|
+
|
227
|
+
## Usage
|
228
|
+
|
229
|
+
Use this framework for structured project management and strategic thinking with AI assistance.
|
230
|
+
`;
|
231
|
+
const workflowFile = path.join(frameworksDir, 'workflow.md');
|
232
|
+
if (!(await fs.pathExists(workflowFile))) {
|
233
|
+
await fs.writeFile(workflowFile, workflowContent);
|
234
|
+
}
|
235
|
+
}
|
236
|
+
async function createGlobalTools(airDir) {
|
237
|
+
const toolsDir = path.join(airDir, 'tools');
|
238
|
+
await fs.ensureDir(toolsDir);
|
239
|
+
const toolsContent = `# Global Tools
|
240
|
+
|
241
|
+
Scripts, configurations, and automation utilities.
|
242
|
+
|
243
|
+
## Purpose
|
244
|
+
|
245
|
+
Store reusable tools, scripts, and configurations that enhance AI workflows across all domains.
|
246
|
+
|
247
|
+
## Types
|
248
|
+
|
249
|
+
### Scripts
|
250
|
+
|
251
|
+
- Automation scripts
|
252
|
+
- Utility functions
|
253
|
+
- Workflow helpers
|
254
|
+
|
255
|
+
### MCP Configurations
|
256
|
+
|
257
|
+
- Model Context Protocol setups
|
258
|
+
- Integration configurations
|
259
|
+
- Custom tool definitions
|
260
|
+
|
261
|
+
### Utilities
|
262
|
+
|
263
|
+
- Data processing tools
|
264
|
+
- File management scripts
|
265
|
+
- Development utilities
|
266
|
+
|
267
|
+
## Usage
|
268
|
+
|
269
|
+
Place executable tools and configurations here that you use across multiple projects and domains.
|
270
|
+
`;
|
271
|
+
const toolsFile = path.join(toolsDir, 'README.md');
|
272
|
+
if (!(await fs.pathExists(toolsFile))) {
|
273
|
+
await fs.writeFile(toolsFile, toolsContent);
|
274
|
+
}
|
275
|
+
}
|
276
|
+
//# sourceMappingURL=content.js.map
|
@@ -0,0 +1 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