@qlucent/fishi 0.9.0 → 0.11.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.
Files changed (2) hide show
  1. package/dist/index.js +22 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -10,7 +10,7 @@ import ora from "ora";
10
10
  import inquirer from "inquirer";
11
11
  import path3 from "path";
12
12
  import fs3 from "fs";
13
- import { detectConflicts, createBackup, detectDocker } from "@qlucent/fishi-core";
13
+ import { detectConflicts, createBackup, detectDocker, getAvailableDomains, getDomainConfigYaml } from "@qlucent/fishi-core";
14
14
 
15
15
  // src/analyzers/detector.ts
16
16
  import fs from "fs";
@@ -1079,6 +1079,18 @@ async function initCommand(description, options) {
1079
1079
  }
1080
1080
  }
1081
1081
  }
1082
+ let selectedDomain = "general";
1083
+ if (options.interactive !== false) {
1084
+ const domains = getAvailableDomains();
1085
+ const { domain } = await inquirer.prompt([{
1086
+ type: "list",
1087
+ name: "domain",
1088
+ message: "What type of application are you building?",
1089
+ choices: domains,
1090
+ default: "general"
1091
+ }]);
1092
+ selectedDomain = domain;
1093
+ }
1082
1094
  const conflictResult = detectConflicts(targetDir);
1083
1095
  let resolutions;
1084
1096
  if (conflictResult.hasConflicts) {
@@ -1154,7 +1166,8 @@ async function initCommand(description, options) {
1154
1166
  brownfieldAnalysis: brownfieldData,
1155
1167
  resolutions,
1156
1168
  docsReadmeExists: conflictResult?.docsReadmeExists,
1157
- rootClaudeMdExists: conflictResult?.rootClaudeMdExists
1169
+ rootClaudeMdExists: conflictResult?.rootClaudeMdExists,
1170
+ domain: selectedDomain
1158
1171
  });
1159
1172
  if (brownfieldAnalysis) {
1160
1173
  const reportPath = path3.join(targetDir, ".fishi", "memory", "brownfield-analysis.md");
@@ -1174,6 +1187,12 @@ sandbox:
1174
1187
  if (fs3.existsSync(fishiYamlPath)) {
1175
1188
  fs3.appendFileSync(fishiYamlPath, sandboxYaml, "utf-8");
1176
1189
  }
1190
+ if (selectedDomain !== "general") {
1191
+ const fishiYamlPath2 = path3.join(targetDir, ".fishi", "fishi.yaml");
1192
+ if (fs3.existsSync(fishiYamlPath2)) {
1193
+ fs3.appendFileSync(fishiYamlPath2, getDomainConfigYaml(selectedDomain), "utf-8");
1194
+ }
1195
+ }
1177
1196
  const { getSandboxPolicyTemplate, getDockerfileTemplate } = await import("@qlucent/fishi-core");
1178
1197
  fs3.writeFileSync(path3.join(targetDir, ".fishi", "sandbox-policy.yaml"), getSandboxPolicyTemplate(), "utf-8");
1179
1198
  if (sandboxMode === "docker") {
@@ -2260,7 +2279,7 @@ async function designCommand(action, options) {
2260
2279
  var program = new Command();
2261
2280
  program.name("fishi").description(
2262
2281
  chalk12.cyan("\u{1F41F} FISHI") + " \u2014 Your AI Dev Team That Actually Ships\n Autonomous agent framework for Claude Code"
2263
- ).version("0.9.0");
2282
+ ).version("0.11.0");
2264
2283
  program.command("init").description("Initialize FISHI in the current directory").argument("[description]", "Project description (skip wizard with zero-config)").option("-l, --language <lang>", "Primary language (e.g., typescript, python)").option("-f, --framework <framework>", "Framework (e.g., nextjs, express, django)").option(
2265
2284
  "-c, --cost-mode <mode>",
2266
2285
  "Cost mode: performance | balanced | economy",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@qlucent/fishi",
3
- "version": "0.9.0",
3
+ "version": "0.11.0",
4
4
  "description": "FISHI — Your AI Dev Team That Actually Ships. Autonomous agent framework for Claude Code.",
5
5
  "license": "MIT",
6
6
  "type": "module",