@altimateai/altimate-code 0.5.12 → 0.5.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/CHANGELOG.md CHANGED
@@ -5,6 +5,41 @@ All notable changes to this project will be documented in this file.
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
6
6
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7
7
 
8
+ ## [0.5.14] - 2026-03-28
9
+
10
+ ### Added
11
+
12
+ - **MongoDB driver support** — 11th supported database with full MQL command set (find, aggregate, CRUD, indexes), BSON type serialization, schema introspection via document sampling, and cross-database queries; includes 90 E2E tests (#482)
13
+ - **Skill follow-up suggestions** — contextual "What's Next?" suggestions after skill completion to reduce first-run churn; maps 12 skills to relevant follow-ups with warehouse discovery nudge (#546)
14
+ - **`altimate-dbt build` without `--model`** — builds the entire dbt project via `unsafeBuildProjectImmediately`, replacing the separate `build-project` command (#546)
15
+ - **`upstream_fix:` marker convention** — new tag for temporary upstream bug fixes with `--audit-fixes` command to review carried fixes before upstream merges (#555)
16
+ - **Verdaccio-based sanity suite** — local npm registry test harness for real install verification, smoke tests, and upgrade scenarios (#503)
17
+
18
+ ### Fixed
19
+
20
+ - **Locale duration days/hours swap** — `Locale.duration()` for values ≥24h showed wrong days/hours (total hours instead of remainder); e.g., 25h now correctly shows `1d 1h` (#529)
21
+ - **Dispatcher `reset()` not clearing lazy registration hook** — `reset()` only cleared handlers but left `_ensureRegistered` alive, causing flaky test failures (#529)
22
+ - **Impact analysis showing project-wide test count** — was using `manifest.test_count` (all tests in project) instead of counting only tests referencing the target model (#529)
23
+ - **Prototype pollution in `SkillFollowups.get()`** — `FOLLOWUPS["__proto__"]` traversed `Object.prototype`; fixed with `Object.hasOwn()` guard (#558)
24
+ - **Shallow freeze in `SkillFollowups.get()`** — `Object.freeze()` on array didn't freeze nested objects, allowing shared state mutation; fixed with deep copy (#558)
25
+ - **CI Bun segfault resilience** — Bun 1.3.x crashes during test cleanup now handled by checking actual pass/fail summary instead of exit code (#555)
26
+
27
+ ### Testing
28
+
29
+ - 52 adversarial tests for v0.5.14 release: `SkillFollowups` injection/boundary/immutability, `Locale.duration` tier transitions, `Dispatcher.reset` hook cleanup (#558)
30
+ - Consolidated 39 test PRs — 1,173 new tests across session, provider, MCP, CLI stats, bus, and utility modules (#498, #514, #545)
31
+
32
+ ## [0.5.13] - 2026-03-26
33
+
34
+ ### Fixed
35
+
36
+ - **Pin `@altimateai/altimate-core` to exact version** — prevents npm from resolving stale cached binaries during install (#475)
37
+ - **Flaky `dbt Profiles Auto-Discovery` tests in CI** — stabilized tests that failed intermittently due to timing issues
38
+
39
+ ### Changed
40
+
41
+ - **Bump `yaml` from 2.8.2 to 2.8.3** — dependency update in `packages/opencode` (#473)
42
+
8
43
  ## [0.5.12] - 2026-03-25
9
44
 
10
45
  ### Added
@@ -23400,9 +23400,12 @@ __export(exports_build, {
23400
23400
  });
23401
23401
  async function build(adapter, args) {
23402
23402
  const model = flag2(args, "model");
23403
- if (!model)
23404
- return { error: "Missing --model" };
23405
23403
  const downstream = args.includes("--downstream");
23404
+ if (!model) {
23405
+ if (downstream)
23406
+ return { error: "--downstream requires --model" };
23407
+ return project2(adapter);
23408
+ }
23406
23409
  const result = await adapter.unsafeBuildModelImmediately({
23407
23410
  plusOperatorLeft: "",
23408
23411
  modelName: model,
@@ -23720,10 +23723,9 @@ var USAGE = {
23720
23723
  info: "Get project info (paths, targets, version)",
23721
23724
  compile: "Compile a model (Jinja to SQL) --model <name>",
23722
23725
  "compile-query": "Compile a raw query --query <sql> [--model <name>]",
23723
- build: "Build a model --model <name> [--downstream]",
23726
+ build: "Build project, or a single model with --model <name> [--downstream]",
23724
23727
  run: "Run a model --model <name> [--downstream]",
23725
23728
  test: "Test a model --model <name>",
23726
- "build-project": "Build entire project",
23727
23729
  execute: "Execute SQL --query <sql> [--model <name>] [--limit <n>]",
23728
23730
  columns: "Get columns of model --model <name>",
23729
23731
  "columns-source": "Get columns of source --source <name> --table <name>",
@@ -23863,9 +23865,6 @@ async function main() {
23863
23865
  case "test":
23864
23866
  result = await (await Promise.resolve().then(() => exports_build)).test(adapter, rest);
23865
23867
  break;
23866
- case "build-project":
23867
- result = await (await Promise.resolve().then(() => exports_build)).project(adapter);
23868
- break;
23869
23868
  case "execute":
23870
23869
  result = await (await Promise.resolve().then(() => (init_execute(), exports_execute))).execute(adapter, rest);
23871
23870
  break;
package/package.json CHANGED
@@ -7,24 +7,24 @@
7
7
  "scripts": {
8
8
  "postinstall": "bun ./postinstall.mjs || node ./postinstall.mjs"
9
9
  },
10
- "version": "0.5.12",
10
+ "version": "0.5.14",
11
11
  "license": "MIT",
12
12
  "dependencies": {
13
- "@altimateai/altimate-core": "^0.2.5"
13
+ "@altimateai/altimate-core": "0.2.5"
14
14
  },
15
15
  "optionalDependencies": {
16
- "@altimateai/altimate-code-linux-x64": "0.5.12",
17
- "@altimateai/altimate-code-windows-arm64": "0.5.12",
18
- "@altimateai/altimate-code-linux-arm64-musl": "0.5.12",
19
- "@altimateai/altimate-code-darwin-x64": "0.5.12",
20
- "@altimateai/altimate-code-windows-x64": "0.5.12",
21
- "@altimateai/altimate-code-linux-x64-musl": "0.5.12",
22
- "@altimateai/altimate-code-darwin-x64-baseline": "0.5.12",
23
- "@altimateai/altimate-code-linux-x64-baseline-musl": "0.5.12",
24
- "@altimateai/altimate-code-linux-x64-baseline": "0.5.12",
25
- "@altimateai/altimate-code-linux-arm64": "0.5.12",
26
- "@altimateai/altimate-code-darwin-arm64": "0.5.12",
27
- "@altimateai/altimate-code-windows-x64-baseline": "0.5.12"
16
+ "@altimateai/altimate-code-linux-arm64": "0.5.14",
17
+ "@altimateai/altimate-code-windows-x64": "0.5.14",
18
+ "@altimateai/altimate-code-windows-x64-baseline": "0.5.14",
19
+ "@altimateai/altimate-code-darwin-x64": "0.5.14",
20
+ "@altimateai/altimate-code-windows-arm64": "0.5.14",
21
+ "@altimateai/altimate-code-linux-x64-baseline": "0.5.14",
22
+ "@altimateai/altimate-code-linux-arm64-musl": "0.5.14",
23
+ "@altimateai/altimate-code-linux-x64-musl": "0.5.14",
24
+ "@altimateai/altimate-code-linux-x64": "0.5.14",
25
+ "@altimateai/altimate-code-darwin-x64-baseline": "0.5.14",
26
+ "@altimateai/altimate-code-linux-x64-baseline-musl": "0.5.14",
27
+ "@altimateai/altimate-code-darwin-arm64": "0.5.14"
28
28
  },
29
29
  "peerDependencies": {
30
30
  "pg": ">=8",
@@ -111,7 +111,7 @@ If no manifest is available:
111
111
  1. Run `lineage_check` on the changed SQL
112
112
  2. Show column-level data flow
113
113
  3. Note: downstream impact requires a manifest
114
- 4. Suggest: `altimate-dbt build-project` to generate one
114
+ 4. Suggest: `altimate-dbt build` to generate one
115
115
 
116
116
  ## Common Mistakes
117
117
 
@@ -20,10 +20,10 @@ altimate-dbt info # Project name, adapter, root
20
20
  ## Build & Run
21
21
 
22
22
  ```bash
23
- altimate-dbt build --model <name> [--downstream] # compile + run + test
23
+ altimate-dbt build # full project build (compile + run + test)
24
+ altimate-dbt build --model <name> [--downstream] # build a single model
24
25
  altimate-dbt run --model <name> [--downstream] # materialize only
25
26
  altimate-dbt test --model <name> # run tests only
26
- altimate-dbt build-project # full project build
27
27
  ```
28
28
 
29
29
  ## Compile
@@ -20,10 +20,10 @@ altimate-dbt info # Project name, adapter, root
20
20
  ## Build & Run
21
21
 
22
22
  ```bash
23
- altimate-dbt build --model <name> [--downstream] # compile + run + test
23
+ altimate-dbt build # full project build (compile + run + test)
24
+ altimate-dbt build --model <name> [--downstream] # build a single model
24
25
  altimate-dbt run --model <name> [--downstream] # materialize only
25
26
  altimate-dbt test --model <name> # run tests only
26
- altimate-dbt build-project # full project build
27
27
  ```
28
28
 
29
29
  ## Compile
@@ -20,10 +20,10 @@ altimate-dbt info # Project name, adapter, root
20
20
  ## Build & Run
21
21
 
22
22
  ```bash
23
- altimate-dbt build --model <name> [--downstream] # compile + run + test
23
+ altimate-dbt build # full project build (compile + run + test)
24
+ altimate-dbt build --model <name> [--downstream] # build a single model
24
25
  altimate-dbt run --model <name> [--downstream] # materialize only
25
26
  altimate-dbt test --model <name> # run tests only
26
- altimate-dbt build-project # full project build
27
27
  ```
28
28
 
29
29
  ## Compile
@@ -20,10 +20,10 @@ altimate-dbt info # Project name, adapter, root
20
20
  ## Build & Run
21
21
 
22
22
  ```bash
23
- altimate-dbt build --model <name> [--downstream] # compile + run + test
23
+ altimate-dbt build # full project build (compile + run + test)
24
+ altimate-dbt build --model <name> [--downstream] # build a single model
24
25
  altimate-dbt run --model <name> [--downstream] # materialize only
25
26
  altimate-dbt test --model <name> # run tests only
26
- altimate-dbt build-project # full project build
27
27
  ```
28
28
 
29
29
  ## Compile
@@ -20,10 +20,10 @@ altimate-dbt info # Project name, adapter, root
20
20
  ## Build & Run
21
21
 
22
22
  ```bash
23
- altimate-dbt build --model <name> [--downstream] # compile + run + test
23
+ altimate-dbt build # full project build (compile + run + test)
24
+ altimate-dbt build --model <name> [--downstream] # build a single model
24
25
  altimate-dbt run --model <name> [--downstream] # materialize only
25
26
  altimate-dbt test --model <name> # run tests only
26
- altimate-dbt build-project # full project build
27
27
  ```
28
28
 
29
29
  ## Compile