@assemblyline/al-orc 0.3.1 → 0.4.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/CHANGELOG.md CHANGED
@@ -7,6 +7,20 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
7
7
 
8
8
  ## [Unreleased]
9
9
 
10
+ ## [0.4.1] - 2026-11-05
11
+
12
+ ### Changed
13
+
14
+ - The move from `~/.assemblyline` to `~/.al` no longer leaves a symlink at the old path. Update
15
+ al-control, al-orc and control-room together.
16
+
17
+ ## [0.4.0] - 2026-11-05
18
+
19
+ ### Changed
20
+
21
+ - The config root is `~/.al`, not `~/.assemblyline`. The first run moves the folder and leaves a
22
+ `~/.assemblyline` symlink for tools not yet updated.
23
+
10
24
  ## [0.3.1] - 2026-10-26
11
25
 
12
26
  ### Fixed
package/README.md CHANGED
@@ -18,7 +18,7 @@ printed link on any device). Orgs you already have a profile for show as connect
18
18
  profile changes only when there was none. To add a key by hand instead:
19
19
  `al-orc config profiles add acme --api-key <key> --api-secret <secret>`.
20
20
 
21
- Profiles live in `~/.assemblyline/al-orc/config.yml` (mode 0600; override the folder with
21
+ Profiles live in `~/.al/al-orc/config.yml` (mode 0600; override the folder with
22
22
  `AL_ORC_CONFIG_DIR`). The CLI never reads `.env`.
23
23
 
24
24
  ## Library
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@assemblyline/al-orc",
3
- "version": "0.3.1",
3
+ "version": "0.4.1",
4
4
  "description": "Assembly Line Orchestrator client + al-orc CLI (2-in-1): push lines and stations, run them, read work records.",
5
5
  "repository": {
6
6
  "type": "git",
@@ -1,9 +1,9 @@
1
1
  // @ts-check
2
2
  /**
3
- * CLI credential store — reads/writes ~/.assemblyline/al-orc/config.yml (mode 0600) and
3
+ * CLI credential store — reads/writes ~/.al/al-orc/config.yml (mode 0600) and
4
4
  * resolves which credentials the current command uses.
5
5
  *
6
- * Config lives under the shared family root ~/.assemblyline/ so every al-<tool>
6
+ * Config lives under the shared family root ~/.al/ so every al-<tool>
7
7
  * keeps its config in one place. Path is home-dir based (os.homedir()) for
8
8
  * multi-OS support; not XDG. Override the whole dir with AL_ORC_CONFIG_DIR.
9
9
  *
@@ -12,12 +12,32 @@
12
12
  * `credentials`. Single tool, per-org (no per-app nesting).
13
13
  */
14
14
 
15
- import { readFileSync, writeFileSync, mkdirSync, existsSync } from 'node:fs';
15
+ import { readFileSync, writeFileSync, mkdirSync, existsSync, renameSync } from 'node:fs';
16
16
  import { homedir } from 'node:os';
17
17
  import { join } from 'node:path';
18
18
  import yaml from 'js-yaml';
19
19
 
20
- const CONFIG_DIR = process.env.AL_ORC_CONFIG_DIR || join(homedir(), '.assemblyline', 'al-orc');
20
+ /**
21
+ * The family root, ~/.al. On the first run after the rename from ~/.assemblyline
22
+ * the whole folder moves here.
23
+ * Same move as al-control's familyRoot (its decision 0007).
24
+ * @param {string} [home]
25
+ * @returns {string}
26
+ */
27
+ export function familyRoot(home = homedir()) {
28
+ const root = join(home, '.al');
29
+ const legacy = join(home, '.assemblyline');
30
+ if (!existsSync(root) && existsSync(legacy)) {
31
+ try {
32
+ renameSync(legacy, root);
33
+ } catch {
34
+ // Another process moved it first.
35
+ }
36
+ }
37
+ return root;
38
+ }
39
+
40
+ const CONFIG_DIR = process.env.AL_ORC_CONFIG_DIR || join(familyRoot(), 'al-orc');
21
41
  const CONFIG_PATH = join(CONFIG_DIR, 'config.yml');
22
42
 
23
43
  let org_override = null;
package/src/cli/index.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * al-orc <resource> <action> [target] [options]
6
6
  *
7
7
  * The orchestrator control plane (canonical line and station definitions, work
8
- * records, tags, supporting docs). Credentials come from ~/.assemblyline/al-orc/config.yml;
8
+ * records, tags, supporting docs). Credentials come from ~/.al/al-orc/config.yml;
9
9
  * `config` manages them. (Bins and pm2 live in `al-control`; running a step
10
10
  * is lib-factory's `factory` command. Not here.)
11
11
  */