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
|
-
|
|
900
|
+
detected: true,
|
|
901
901
|
reason: `Detected likely project manifests in cwd: ${appDetection.evidence.join(", ")}`,
|
|
902
|
-
|
|
903
|
-
|
|
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
|
-
|
|
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
|
|
951
|
-
console.log("
|
|
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 {
|