nexarch 0.8.13 → 0.8.14
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/dist/commands/init-agent.js +16 -1
- package/package.json +1 -1
|
@@ -1065,6 +1065,14 @@ export async function initAgent(args) {
|
|
|
1065
1065
|
preferredCommandTemplate: "npx nexarch@latest init-agent --provider \"<provider>\" --model \"<model>\" --client \"<client>\" --framework \"<optional>\" --tool-version \"<optional>\" --capabilities \"<optional,comma,separated>\" --notes \"<optional>\" --json",
|
|
1066
1066
|
}
|
|
1067
1067
|
: null,
|
|
1068
|
+
instructionWriteGuidance: registration.ok && !instructionsWriteAllowed
|
|
1069
|
+
? {
|
|
1070
|
+
consentRequired: true,
|
|
1071
|
+
consentPrompt: "Nexarch can add setup instructions to AGENTS.md/CLAUDE.md so future AI sessions in this repo can self-register. Would you like me to do that?",
|
|
1072
|
+
ifApprovedCommand: "npx nexarch@latest init-agent --allow-instruction-write --json",
|
|
1073
|
+
activeFlag: "--allow-instruction-write",
|
|
1074
|
+
}
|
|
1075
|
+
: null,
|
|
1068
1076
|
companyId: creds.companyId,
|
|
1069
1077
|
registry: { version: registry.release.version, registryVersion: registry.registryVersion, publishedAt: registry.release.publishedAt },
|
|
1070
1078
|
agentConfigs: agentConfigResults,
|
|
@@ -1103,7 +1111,14 @@ export async function initAgent(args) {
|
|
|
1103
1111
|
console.log("\nℹ Additional identity details are still needed to complete agent profile enrichment.");
|
|
1104
1112
|
console.log(` Missing: ${identityCapture.missingRequired.join(", ")}`);
|
|
1105
1113
|
console.log(" In an interactive terminal, rerun 'npx nexarch@latest init-agent' and answer prompts.");
|
|
1106
|
-
console.log(" In non-interactive mode,
|
|
1114
|
+
console.log(" In non-interactive mode, rerun with: --provider --model --client");
|
|
1115
|
+
console.log(" Example: npx nexarch@latest init-agent --provider \"<provider>\" --model \"<model>\" --client \"<client>\"");
|
|
1116
|
+
}
|
|
1117
|
+
if (registration.ok && !instructionsWriteAllowed) {
|
|
1118
|
+
console.log("\n➡ Optional trusted-boundary step: AGENTS/CLAUDE instruction write requires user consent.");
|
|
1119
|
+
console.log(" Consent prompt: 'Nexarch can add setup instructions to AGENTS.md/CLAUDE.md so future AI sessions in this repo can self-register. Would you like me to do that?'");
|
|
1120
|
+
console.log(" If approved, rerun with: --allow-instruction-write");
|
|
1121
|
+
console.log(" Example: npx nexarch@latest init-agent --allow-instruction-write");
|
|
1107
1122
|
}
|
|
1108
1123
|
if (!fromSetup && appDetection.detected) {
|
|
1109
1124
|
console.log("\n➡ Optional next step: likely application detected in current directory.");
|