context-foundry 2.2.1 → 2.3.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/package.json +1 -1
- package/scripts/postinstall.js +14 -2
package/package.json
CHANGED
package/scripts/postinstall.js
CHANGED
|
@@ -122,8 +122,20 @@ function main() {
|
|
|
122
122
|
const installed = installPythonPackage(python.cmd);
|
|
123
123
|
|
|
124
124
|
if (installed) {
|
|
125
|
-
log(`\n${colors.green}
|
|
126
|
-
|
|
125
|
+
log(`\n${colors.green}Python package installed!${colors.reset}`);
|
|
126
|
+
|
|
127
|
+
// Run cf setup to configure Claude Code
|
|
128
|
+
log(`\nConfiguring Claude Code integration...`);
|
|
129
|
+
const setup = spawnSync('cf', ['setup'], {
|
|
130
|
+
stdio: 'inherit',
|
|
131
|
+
timeout: 30000
|
|
132
|
+
});
|
|
133
|
+
|
|
134
|
+
if (setup.status === 0) {
|
|
135
|
+
log(`\n${colors.green}Setup complete!${colors.reset}`);
|
|
136
|
+
} else {
|
|
137
|
+
log(`\n${colors.yellow}Note: Run 'cf setup' manually to configure Claude Code.${colors.reset}`);
|
|
138
|
+
}
|
|
127
139
|
} else {
|
|
128
140
|
error(`\nFailed to install Python package.`);
|
|
129
141
|
log(`\nTry installing manually:`);
|