nexarch 0.1.16 → 0.1.17

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.
@@ -4,7 +4,7 @@ import { join } from "path";
4
4
  import process from "process";
5
5
  import { requireCredentials } from "../lib/credentials.js";
6
6
  import { callMcpTool, mcpInitialize, mcpListTools } from "../lib/mcp.js";
7
- const CLI_VERSION = "0.1.16";
7
+ const CLI_VERSION = "0.1.17";
8
8
  const AGENT_ENTITY_TYPE = "agent";
9
9
  const TECH_COMPONENT_ENTITY_TYPE = "technology_component";
10
10
  function parseFlag(args, flag) {
@@ -184,7 +184,7 @@ export async function initProject(args) {
184
184
  const dirArg = parseOptionValue(args, "--dir") ?? process.cwd();
185
185
  const dir = resolvePath(dirArg);
186
186
  const nameOverride = parseOptionValue(args, "--name");
187
- const entityTypeOverride = parseOptionValue(args, "--entity-type") ?? "service";
187
+ const entityTypeOverride = parseOptionValue(args, "--entity-type") ?? "application";
188
188
  const creds = requireCredentials();
189
189
  const mcpOpts = { companyId: creds.companyId };
190
190
  if (!asJson)
@@ -254,10 +254,12 @@ export async function initProject(args) {
254
254
  : undefined;
255
255
  // Build entity list — project entity + all resolved reference entities
256
256
  const entities = [];
257
- // The project itself
257
+ // The project itself — default subtype app_custom_built for application type
258
+ const projectSubtype = entityTypeOverride === "application" ? "app_custom_built" : undefined;
258
259
  entities.push({
259
260
  externalKey: projectExternalKey,
260
261
  entityTypeCode: entityTypeOverride,
262
+ ...(projectSubtype ? { entitySubtypeCode: projectSubtype } : {}),
261
263
  name: displayName,
262
264
  description: `Project initialised from ${dir}`,
263
265
  confidence: 1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nexarch",
3
- "version": "0.1.16",
3
+ "version": "0.1.17",
4
4
  "description": "Connect AI coding tools to your Nexarch architecture workspace",
5
5
  "keywords": [
6
6
  "nexarch",