factory-ai 1.0.0 → 1.0.2

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/CHANGELOG.md CHANGED
@@ -11,6 +11,18 @@ All notable changes follow semantic versioning and the Keep a Changelog structur
11
11
  - Azure and Bedrock provider wizard.
12
12
  - Durable evaluation, analytics, scaling, policy, extension, and recovery roadmap.
13
13
 
14
+ ## [1.0.2] - 2026-07-13
15
+
16
+ ### Fixed
17
+
18
+ - Compress large Azure dashboard payloads so the interactive TUI remains reliable as objective history grows.
19
+
20
+ ## [1.0.1] - 2026-07-13
21
+
22
+ ### Fixed
23
+
24
+ - Resolve npm global CLI symlinks before loading bundled TUI, setup, infrastructure, deployment, and project-template files.
25
+
14
26
  ## [1.0.0] - 2026-07-12
15
27
 
16
28
  ### Added
package/README.md CHANGED
@@ -7,6 +7,8 @@
7
7
  One CEO interface delegates to a deterministic CTO that coordinates isolated coding, testing, security, and release agents across Azure AI and Bedrock—then delivers verified GitHub pull requests with durable memory, recovery, and cost visibility.
8
8
 
9
9
  [![CI](https://github.com/itsvedantkumar/factory-ai/actions/workflows/ci.yml/badge.svg)](https://github.com/itsvedantkumar/factory-ai/actions/workflows/ci.yml)
10
+ [![npm](https://img.shields.io/npm/v/factory-ai.svg?logo=npm)](https://www.npmjs.com/package/factory-ai)
11
+ [![npm downloads](https://img.shields.io/npm/dm/factory-ai.svg)](https://www.npmjs.com/package/factory-ai)
10
12
  [![Node 20](https://img.shields.io/badge/node-20-339933?logo=node.js&logoColor=white)](https://nodejs.org/)
11
13
  [![Azure](https://img.shields.io/badge/runtime-Azure-0078D4?logo=microsoftazure)](https://azure.microsoft.com/)
12
14
  [![License: MIT](https://img.shields.io/badge/license-MIT-blue.svg)](LICENSE)
package/bin/factory CHANGED
@@ -1,6 +1,7 @@
1
1
  #!/usr/bin/env bash
2
2
  set -euo pipefail
3
3
 
4
+ FACTORY_ROOT=$(dirname "$(dirname "$(realpath "$0")")")
4
5
  CONFIG_FILE=${FACTORY_CONFIG_FILE:-$HOME/.config/factory-ai/config}
5
6
  LEGACY_CONFIG_FILE=$HOME/.config/agent-factory/config
6
7
  if [[ -f $CONFIG_FILE ]]; then source "$CONFIG_FILE"; elif [[ -f $LEGACY_CONFIG_FILE ]]; then source "$LEGACY_CONFIG_FILE"; fi
@@ -72,13 +73,13 @@ case "$command" in
72
73
  exec "$0" submit "$repo" "$objective"
73
74
  ;;
74
75
  ui)
75
- FACTORY_RESOURCE_GROUP="$RESOURCE_GROUP" FACTORY_VM="$VM" FACTORY_SERVICE_BUS="$NAMESPACE" FACTORY_KEY_VAULT="$VAULT" node "$(dirname "$0")/../src/tui.js"
76
+ FACTORY_RESOURCE_GROUP="$RESOURCE_GROUP" FACTORY_VM="$VM" FACTORY_SERVICE_BUS="$NAMESPACE" FACTORY_KEY_VAULT="$VAULT" node "$FACTORY_ROOT/src/tui.js"
76
77
  ;;
77
78
  setup)
78
79
  for dependency in az gh jq curl ssh-keygen node; do command -v "$dependency" >/dev/null || { printf 'Missing dependency: %s\n' "$dependency" >&2; exit 1; }; done
79
80
  choices=$(mktemp)
80
81
  trap 'rm -f "$choices"' EXIT
81
- node "$(dirname "$0")/../src/setup-menu.js" "$choices"
82
+ node "$FACTORY_ROOT/src/setup-menu.js" "$choices"
82
83
  provider=$(jq -r .provider "$choices")
83
84
  location=$(jq -r .location "$choices")
84
85
  enterprise_org=$(jq -r .githubOrg "$choices")
@@ -92,7 +93,7 @@ case "$command" in
92
93
  key=${FACTORY_SSH_KEY:-$HOME/.ssh/agent-factory-azure}
93
94
  [[ -f $key ]] || ssh-keygen -t ed25519 -f "$key" -N "" -C agent-factory-azure
94
95
  operator=$(az ad signed-in-user show --query id --output tsv)
95
- deployment=$(az deployment group create --name agent-factory-setup --resource-group "$RESOURCE_GROUP" --template-file "$(dirname "$0")/../infra/main.bicep" --parameters adminSshKey="$(< "$key.pub")" operatorObjectId="$operator" --output json)
96
+ deployment=$(az deployment group create --name agent-factory-setup --resource-group "$RESOURCE_GROUP" --template-file "$FACTORY_ROOT/infra/main.bicep" --parameters adminSshKey="$(< "$key.pub")" operatorObjectId="$operator" --output json)
96
97
  vault=$(jq -r '.properties.outputs.keyVaultName.value' <<<"$deployment")
97
98
  namespace=$(jq -r '.properties.outputs.serviceBusNamespace.value' <<<"$deployment")
98
99
  VAULT=$vault
@@ -158,7 +159,7 @@ case "$command" in
158
159
  parameters+=(AWS_REGION "$aws_region" FACTORY_MODEL_BUILDER "bedrock/$bedrock_builder")
159
160
  fi
160
161
  az vm run-command invoke --resource-group "$RESOURCE_GROUP" --name agent-factory-vm --command-id RunShellScript \
161
- --scripts @"$(dirname "$0")/../bootstrap/deploy-runtime.sh" --parameters "${parameters[@]}" --output none
162
+ --scripts @"$FACTORY_ROOT/bootstrap/deploy-runtime.sh" --parameters "${parameters[@]}" --output none
162
163
  printf 'Runtime deployed. Run: factory doctor && factory dashboard\n'
163
164
  fi
164
165
  ;;
@@ -229,7 +230,7 @@ case "$command" in
229
230
  [[ -d $target ]] || { printf 'Project directory does not exist: %s\n' "$target" >&2; exit 2; }
230
231
  context="$target/.agent-factory"
231
232
  mkdir -p "$context"
232
- for template in "$(dirname "$0")/../templates/project/"*.md; do
233
+ for template in "$FACTORY_ROOT/templates/project/"*.md; do
233
234
  destination="$context/$(basename "$template")"
234
235
  [[ -e $destination ]] || cp "$template" "$destination"
235
236
  done
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factory-ai",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Deploy a private autonomous coding-agent factory on Azure: isolated builders, testers, security reviewers, durable orchestration, multi-model routing, memory, cost controls, and gated GitHub pull requests.",
5
5
  "private": false,
6
6
  "license": "MIT",
package/src/operator.js CHANGED
@@ -1,6 +1,7 @@
1
1
  import { readFile } from "node:fs/promises";
2
2
  import path from "node:path";
3
3
  import { fileURLToPath } from "node:url";
4
+ import { gunzipSync } from "node:zlib";
4
5
  import { run } from "./process.js";
5
6
 
6
7
  const root = path.resolve(path.dirname(fileURLToPath(import.meta.url)), "..");
@@ -30,7 +31,10 @@ export function createOperator(environment = process.env) {
30
31
  }
31
32
  };
32
33
  return {
33
- dashboard: async () => JSON.parse(await remote("sudo -u factory env $(xargs < /etc/agent-factory-control.env) node /opt/agent-factory/app/src/dashboard.js --json")),
34
+ dashboard: async () => {
35
+ const encoded = await remote("sudo -u factory env $(xargs < /etc/agent-factory-control.env) node /opt/agent-factory/app/src/dashboard.js --json | gzip -c | base64 -w0");
36
+ return JSON.parse(gunzipSync(Buffer.from(encoded, "base64")).toString("utf8"));
37
+ },
34
38
  logs: async () => remote('journalctl -u agent-factory-control -u agent-factory-worker -u agent-factory-release --since "1 hour ago" --no-pager -n 300'),
35
39
  submit: async (repository, objective) => {
36
40
  if (!/^[A-Za-z0-9_.-]+\/[A-Za-z0-9_.-]+$/.test(repository) || objective.trim().length < 3) throw new Error("Valid repository and objective are required");