@nyxa/nyx-agent 0.1.0 → 0.2.1

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/cli.js CHANGED
@@ -1,13 +1,16 @@
1
1
  #!/usr/bin/env node
2
2
  import { Command } from "commander";
3
+ import { createRequire } from "node:module";
3
4
  import pc from "picocolors";
4
5
  import { initCommand } from "./commands/init.js";
5
6
  import { runCommand } from "./commands/run.js";
7
+ const require = createRequire(import.meta.url);
8
+ const packageJson = require("../package.json");
6
9
  const program = new Command();
7
10
  program
8
11
  .name("nyxagent")
9
12
  .description("Run coding-agent workflows with fresh context per phase.")
10
- .version("0.1.0");
13
+ .version(packageJson.version);
11
14
  program
12
15
  .command("init")
13
16
  .description("Create a .nyxagent project configuration")
@@ -5,6 +5,7 @@ import { input, number as numberPrompt, select } from "@inquirer/prompts";
5
5
  import pc from "picocolors";
6
6
  import { ensureDir, pathExists, readText, writeText } from "../runtime/files.js";
7
7
  import { getNyxDir, relativeToProject } from "../runtime/paths.js";
8
+ const DEFAULT_OPENAI_MODEL = "gpt-5.5";
8
9
  export async function initCommand(options, projectRoot = process.cwd()) {
9
10
  const root = path.resolve(projectRoot);
10
11
  const nyxDir = getNyxDir(root);
@@ -42,7 +43,7 @@ async function resolveInitOptions(options, root) {
42
43
  const model = options.model ??
43
44
  (await input({
44
45
  message: "Model",
45
- default: harness === "codex" ? "gpt-5-codex" : ""
46
+ default: harness === "codex" ? DEFAULT_OPENAI_MODEL : ""
46
47
  }));
47
48
  const reasoningLevel = options.reasoningLevel ??
48
49
  (await input({
@@ -94,7 +94,7 @@ entry_phase = "selection"
94
94
  max_iterations = 5
95
95
 
96
96
  [model]
97
- name = "gpt-5-codex"
97
+ name = "gpt-5.5"
98
98
  reasoning_level = "medium"
99
99
 
100
100
  [harness]
package/package.json CHANGED
@@ -1,8 +1,12 @@
1
1
  {
2
2
  "name": "@nyxa/nyx-agent",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "A lightweight phase orchestrator for repeatedly launching coding agents with fresh context.",
5
5
  "type": "module",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Nyxa07/nyxagent.git"
9
+ },
6
10
  "bin": {
7
11
  "nyxagent": "dist/cli.js"
8
12
  },
@@ -11,6 +15,10 @@
11
15
  "templates",
12
16
  "docs"
13
17
  ],
18
+ "publishConfig": {
19
+ "registry": "https://registry.npmjs.org",
20
+ "access": "public"
21
+ },
14
22
  "scripts": {
15
23
  "build": "tsc -p tsconfig.json",
16
24
  "dev": "tsx src/cli.ts",