nexarch 0.8.10 → 0.8.11

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.
@@ -897,13 +897,15 @@ export async function initAgent(args) {
897
897
  submitCommandTemplate: `nexarch agent identify --agent-id \"${agentId}\" --provider \"<provider>\" --model \"<model>\" --client \"<client>\" --framework \"<openclaw|n8n|m365-agent-framework|other>\" --session-id \"<session-id>\" --tool-version \"<tool-version>\" --capabilities \"<capability1,capability2>\" --notes \"<optional notes>\" --json`,
898
898
  initProjectSuggestion: appDetection.detected
899
899
  ? {
900
- shouldPromptUser: true,
900
+ detected: true,
901
901
  reason: `Detected likely project manifests in cwd: ${appDetection.evidence.join(", ")}`,
902
- userPrompt: "I found a likely application in this directory. Do you want me to run init-project next?",
903
- suggestedCommand: "npx nexarch@latest init-project --dir . --json",
902
+ consentRequired: true,
903
+ consentPrompt: "I detected a likely project in this directory. Do you want me to run init-project now?",
904
+ actionIfApproved: "run_init_project",
905
+ command: "npx nexarch@latest init-project --dir . --json",
904
906
  }
905
907
  : {
906
- shouldPromptUser: false,
908
+ detected: false,
907
909
  reason: "No common application manifest files detected in current directory.",
908
910
  },
909
911
  },
@@ -947,8 +949,9 @@ export async function initAgent(args) {
947
949
  if (!fromSetup && appDetection.detected) {
948
950
  console.log("\n➡ Optional next step: likely application detected in current directory.");
949
951
  console.log(` Detected manifests: ${appDetection.evidence.join(", ")}`);
950
- console.log(" Ask the user: 'I found a likely application here. Do you want me to run init-project next?'");
951
- console.log(" Suggested command: npx nexarch@latest init-project --dir . --json");
952
+ console.log(" Ask for user consent before running init-project.");
953
+ console.log(" Consent prompt: 'I detected a likely project in this directory. Do you want me to run init-project now?'");
954
+ console.log(" If approved, run: npx nexarch@latest init-project --dir . --json");
952
955
  }
953
956
  }
954
957
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.8.10",
3
+ "version": "0.8.11",
4
4
  "description": "Your architecture workspace for AI delivery.",
5
5
  "keywords": [
6
6
  "nexarch",