factory-ai 1.5.1 → 1.5.3

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
@@ -4,6 +4,18 @@ All notable changes follow semantic versioning and the Keep a Changelog structur
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.5.3] - 2026-07-13
8
+
9
+ ### Fixed
10
+
11
+ - Validate npm's actual attestation URL and SLSA predicate metadata fields during verified automatic updates.
12
+
13
+ ## [1.5.2] - 2026-07-13
14
+
15
+ ### Fixed
16
+
17
+ - Parse runtime environment files with an allowlist so factory names and purposes containing spaces do not break verified automatic updates.
18
+
7
19
  ## [1.5.1] - 2026-07-13
8
20
 
9
21
  ### Fixed
@@ -14,16 +14,19 @@ version=$(jq -r .latest <<<"$status")
14
14
  commit=$(jq -r .gitHead <<<"$status")
15
15
  [[ $commit =~ ^[0-9a-f]{40}$ ]] || { printf 'npm release does not contain a valid gitHead.\n' >&2; exit 1; }
16
16
 
17
- set -a
18
- source /etc/agent-factory.env
19
- set +a
17
+ while IFS='=' read -r name value; do
18
+ case "$name" in
19
+ KEY_VAULT_NAME|SERVICE_BUS_NAMESPACE|FACTORY_STORAGE_ACCOUNT|FACTORY_NAME|FACTORY_PURPOSE|AWS_REGION|FACTORY_MODEL_SCOUT|FACTORY_MODEL_PLANNER|FACTORY_MODEL_BUILDER|FACTORY_MODEL_TESTER|FACTORY_MODEL_DEBUGGER|FACTORY_MODEL_REVIEWER|FACTORY_MODEL_SECURITY|FACTORY_MODEL_RELEASE|FACTORY_COMPACT_AFTER_INPUT_TOKENS|FACTORY_COMPACT_MAX_CHARACTERS|FACTORY_WATCHDOG_STALE_SECONDS|FACTORY_HOOKS_JSON) printf -v "$name" '%s' "$value" ;;
20
+ esac
21
+ done < /etc/agent-factory.env
20
22
  github_token=$(az keyvault secret show --vault-name "$KEY_VAULT_NAME" --name github-token --query value --output tsv)
21
23
  tag_commit=$(GH_TOKEN="$github_token" gh api "repos/itsvedantkumar/factory-ai/commits/v$version" --jq .sha)
22
24
  [[ $tag_commit == "$commit" ]] || { printf 'npm gitHead does not match the immutable release tag.\n' >&2; exit 1; }
23
25
  release_ok=$(GH_TOKEN="$github_token" gh release view "v$version" --repo itsvedantkumar/factory-ai --json isDraft,isPrerelease --jq '(.isDraft == false) and (.isPrerelease == false)')
24
26
  [[ $release_ok == true ]] || { printf 'Matching stable GitHub release is unavailable.\n' >&2; exit 1; }
25
- provenance=$(npm view "factory-ai@$version" dist.attestations.provenance.url 2>/dev/null || true)
26
- [[ $provenance == https://search.sigstore.dev/* ]] || { printf 'npm release lacks verifiable provenance metadata.\n' >&2; exit 1; }
27
+ attestation_url=$(npm view "factory-ai@$version" dist.attestations.url 2>/dev/null || true)
28
+ predicate_type=$(npm view "factory-ai@$version" dist.attestations.provenance.predicateType 2>/dev/null || true)
29
+ [[ $attestation_url == https://registry.npmjs.org/-/npm/v1/attestations/* && $predicate_type == https://slsa.dev/provenance/v1 ]] || { printf 'npm release lacks verifiable provenance metadata.\n' >&2; exit 1; }
27
30
  checks=$(GH_TOKEN="$github_token" gh api "repos/itsvedantkumar/factory-ai/commits/$commit/check-runs" --jq '[.check_runs[] | select(.name == "verify") | .conclusion] | any(. == "success")')
28
31
  [[ $checks == true ]] || { printf 'Candidate commit lacks successful CI verification.\n' >&2; exit 1; }
29
32
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "factory-ai",
3
- "version": "1.5.1",
3
+ "version": "1.5.3",
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",