@cubis/foundry 0.3.18 → 0.3.20

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.
@@ -13,6 +13,18 @@ This file defines mandatory behavior for Antigravity projects installed via `cbx
13
13
  - Skills: `.agent/skills`
14
14
  - Rules file: `.agent/rules/GEMINI.md`
15
15
 
16
+ ## Startup Transparency (Required)
17
+
18
+ Before executing workflows, agents, or code edits, publish a short `Decision Log` that is visible to the user:
19
+
20
+ 1. Rule file(s) read at startup (at minimum `.agent/rules/GEMINI.md`, plus any additional rule files loaded).
21
+ 2. Workflow decision (`/workflow` or direct mode) and why it was chosen.
22
+ 3. Agent routing decision (`@agent` or direct mode) and why it was chosen.
23
+ 4. Skill loading decision (skill names loaded) and why they were chosen.
24
+
25
+ If routing changes during the task, publish a `Decision Update` before continuing.
26
+ Keep this user-visible summary concise and factual; do not expose private chain-of-thought.
27
+
16
28
  ## 2) Workflow-First Contract
17
29
 
18
30
  1. If the user explicitly requests a slash command, run that workflow first.
@@ -83,7 +95,7 @@ If Antigravity script harness exists, prefer:
83
95
  Use these commands to keep this setup healthy:
84
96
 
85
97
  - Install/update bundle:
86
- `cbx workflows install --platform antigravity --bundle agent-environment-setup --scope project --overwrite`
98
+ `cbx workflows install --platform antigravity --bundle agent-environment-setup --scope global --overwrite`
87
99
  - Rebuild managed routing block:
88
100
  `cbx workflows sync-rules --platform antigravity --scope project`
89
101
  - Diagnose setup issues:
@@ -9,6 +9,18 @@ This file defines mandatory behavior for Codex projects installed via `cbx workf
9
9
  - Skills: `.agents/skills`
10
10
  - Rules file: `AGENTS.md`
11
11
 
12
+ ## Startup Transparency (Required)
13
+
14
+ Before executing workflows, agents, or code edits, publish a short `Decision Log` that is visible to the user:
15
+
16
+ 1. Rule file(s) read at startup (at minimum `AGENTS.md`, plus any additional rule files loaded).
17
+ 2. Workflow decision (`$workflow-*` or direct mode) and why it was chosen.
18
+ 3. Agent routing decision (`$agent-*` or direct mode) and why it was chosen.
19
+ 4. Skill loading decision (skill names loaded) and why they were chosen.
20
+
21
+ If routing changes during the task, publish a `Decision Update` before continuing.
22
+ Keep this user-visible summary concise and factual; do not expose private chain-of-thought.
23
+
12
24
  ## 2) Skill-Based Workflow
13
25
 
14
26
  1. Codex operates primarily through **Skills** and **Rules**.
@@ -73,7 +85,7 @@ Before multi-file or architecture-impacting changes, ask targeted questions when
73
85
  Use these commands to keep this setup healthy:
74
86
 
75
87
  - Install/update bundle:
76
- `cbx workflows install --platform codex --bundle agent-environment-setup --scope project --overwrite`
88
+ `cbx workflows install --platform codex --bundle agent-environment-setup --scope global --overwrite`
77
89
  - Rebuild managed routing block:
78
90
  `cbx workflows sync-rules --platform codex --scope project`
79
91
  - Diagnose setup issues:
@@ -9,6 +9,18 @@ This file defines mandatory behavior for GitHub Copilot projects installed via `
9
9
  - Skills: `.github/skills`
10
10
  - Rules file (project): `.github/copilot-instructions.md`
11
11
 
12
+ ## Startup Transparency (Required)
13
+
14
+ Before executing workflows, agents, or code edits, publish a short `Decision Log` that is visible to the user:
15
+
16
+ 1. Rule file(s) read at startup (at minimum `.github/copilot-instructions.md`, plus any additional rule files loaded).
17
+ 2. Workflow decision (`/workflow` or direct mode) and why it was chosen.
18
+ 3. Agent routing decision (`@agent` or direct mode) and why it was chosen.
19
+ 4. Skill loading decision (skill names loaded) and why they were chosen.
20
+
21
+ If routing changes during the task, publish a `Decision Update` before continuing.
22
+ Keep this user-visible summary concise and factual; do not expose private chain-of-thought.
23
+
12
24
  ## 2) Workflow-First Contract
13
25
 
14
26
  1. If the user explicitly requests a slash command, run that workflow first.
@@ -82,7 +94,7 @@ Before multi-file or architecture-impacting changes, ask targeted questions when
82
94
  Use these commands to keep this setup healthy:
83
95
 
84
96
  - Install/update bundle:
85
- `cbx workflows install --platform copilot --bundle agent-environment-setup --scope project --overwrite`
97
+ `cbx workflows install --platform copilot --bundle agent-environment-setup --scope global --overwrite`
86
98
  - Rebuild managed routing block:
87
99
  `cbx workflows sync-rules --platform copilot --scope project`
88
100
  - Diagnose setup issues:
@@ -9,6 +9,18 @@ This file defines mandatory behavior for GitHub Copilot projects installed via `
9
9
  - Skills: `.github/skills`
10
10
  - Rules file (project): `.github/copilot-instructions.md`
11
11
 
12
+ ## Startup Transparency (Required)
13
+
14
+ Before executing workflows, agents, or code edits, publish a short `Decision Log` that is visible to the user:
15
+
16
+ 1. Rule file(s) read at startup (at minimum `.github/copilot-instructions.md`, plus any additional rule files loaded).
17
+ 2. Workflow decision (`/workflow` or direct mode) and why it was chosen.
18
+ 3. Agent routing decision (`@agent` or direct mode) and why it was chosen.
19
+ 4. Skill loading decision (skill names loaded) and why they were chosen.
20
+
21
+ If routing changes during the task, publish a `Decision Update` before continuing.
22
+ Keep this user-visible summary concise and factual; do not expose private chain-of-thought.
23
+
12
24
  ## 2) Workflow-First Contract
13
25
 
14
26
  1. If the user explicitly requests a slash command, run that workflow first.
@@ -82,7 +94,7 @@ Before multi-file or architecture-impacting changes, ask targeted questions when
82
94
  Use these commands to keep this setup healthy:
83
95
 
84
96
  - Install/update bundle:
85
- `cbx workflows install --platform copilot --bundle agent-environment-setup --scope project --overwrite`
97
+ `cbx workflows install --platform copilot --bundle agent-environment-setup --scope global --overwrite`
86
98
  - Rebuild managed routing block:
87
99
  `cbx workflows sync-rules --platform copilot --scope project`
88
100
  - Diagnose setup issues:
@@ -9,6 +9,18 @@ This file defines mandatory behavior for Cursor projects installed via `cbx work
9
9
  - Skills: `.cursor/skills`
10
10
  - Rules file: `.cursorrules`
11
11
 
12
+ ## Startup Transparency (Required)
13
+
14
+ Before executing workflows, agents, or code edits, publish a short `Decision Log` that is visible to the user:
15
+
16
+ 1. Rule file(s) read at startup (at minimum `.cursorrules`, plus any additional rule files loaded).
17
+ 2. Workflow decision (`/workflow` or direct mode) and why it was chosen.
18
+ 3. Agent routing decision (`@agent` or direct mode) and why it was chosen.
19
+ 4. Skill loading decision (skill names loaded) and why they were chosen.
20
+
21
+ If routing changes during the task, publish a `Decision Update` before continuing.
22
+ Keep this user-visible summary concise and factual; do not expose private chain-of-thought.
23
+
12
24
  ## 2) Smart Skill Selection (TIER 0)
13
25
 
14
26
  Before starting ANY task, the agent MUST:
@@ -65,7 +77,7 @@ Before multi-file or architecture-impacting changes, ask targeted questions when
65
77
  Use these commands to keep this setup healthy:
66
78
 
67
79
  - Install/update bundle:
68
- `cbx workflows install --platform cursor --bundle agent-environment-setup --scope project --overwrite`
80
+ `cbx workflows install --platform cursor --bundle agent-environment-setup --scope global --overwrite`
69
81
  - Rebuild managed routing block:
70
82
  `cbx workflows sync-rules --platform cursor --scope project`
71
83
  - Diagnose setup issues:
@@ -9,6 +9,18 @@ This file defines mandatory behavior for Windsurf projects installed via `cbx wo
9
9
  - Skills: `.windsurf/skills`
10
10
  - Rules file: `.windsurfrules`
11
11
 
12
+ ## Startup Transparency (Required)
13
+
14
+ Before executing workflows, agents, or code edits, publish a short `Decision Log` that is visible to the user:
15
+
16
+ 1. Rule file(s) read at startup (at minimum `.windsurfrules`, plus any additional rule files loaded).
17
+ 2. Workflow decision (`/workflow` or direct mode) and why it was chosen.
18
+ 3. Agent routing decision (`@agent` or direct mode) and why it was chosen.
19
+ 4. Skill loading decision (skill names loaded) and why they were chosen.
20
+
21
+ If routing changes during the task, publish a `Decision Update` before continuing.
22
+ Keep this user-visible summary concise and factual; do not expose private chain-of-thought.
23
+
12
24
  ## 2) Smart Skill Selection (TIER 0)
13
25
 
14
26
  Before starting ANY task, the agent MUST:
@@ -65,7 +77,7 @@ Before multi-file or architecture-impacting changes, ask targeted questions when
65
77
  Use these commands to keep this setup healthy:
66
78
 
67
79
  - Install/update bundle:
68
- `cbx workflows install --platform windsurf --bundle agent-environment-setup --scope project --overwrite`
80
+ `cbx workflows install --platform windsurf --bundle agent-environment-setup --scope global --overwrite`
69
81
  - Rebuild managed routing block:
70
82
  `cbx workflows sync-rules --platform windsurf --scope project`
71
83
  - Diagnose setup issues:
package/README.md CHANGED
@@ -60,6 +60,7 @@ cbx workflows install --platform copilot --postman
60
60
 
61
61
  Install bootstrap behavior:
62
62
  - `cbx workflows install` now also bootstraps `ENGINEERING_RULES.md` and `TECH.md` (creates when missing; keeps existing files unless explicitly regenerated).
63
+ - When install scope is `global`, workflow/skill/agent artifacts install to global paths, but rule sync + engineering artifacts are maintained in workspace (`project`) scope.
63
64
  - Optional `--postman` bootstrap creates `postman_setting.json` and installs/configures the Postman skill/MCP for Codex, Antigravity, and Copilot.
64
65
  - Use `cbx rules init --platform <platform> --overwrite` to force-regenerate both files.
65
66
 
@@ -252,10 +253,20 @@ Behavior:
252
253
  ## Scope and Detection
253
254
 
254
255
  Default scope:
255
- - `project`
256
+ - Install/init commands:
257
+ - `cbx workflows install`
258
+ - `cbx workflows init`
259
+ - `cbx skills install`
260
+ - `cbx skills init`
261
+ - `cbx install` (legacy alias)
262
+ - `cbx init` (legacy alias)
263
+ - Default scope for these commands is `global`.
264
+ - Rule files (`AGENTS.md`/`GEMINI.md`/Copilot instructions) and engineering files (`ENGINEERING_RULES.md`, `TECH.md`) are still updated in workspace (`project`) scope during install.
265
+ - Other workflow/rules commands default to `project`.
256
266
 
257
267
  Optional:
258
268
  - `--scope global`
269
+ - `--scope project`
259
270
 
260
271
  Platform auto-detection:
261
272
  - Uses repo markers for Antigravity/Codex/Copilot.
package/bin/cubis.js CHANGED
@@ -3319,7 +3319,9 @@ function withWorkflowBaseOptions(command) {
3319
3319
  }
3320
3320
 
3321
3321
  function withInstallOptions(command) {
3322
- return withWorkflowBaseOptions(command)
3322
+ return command
3323
+ .option("-p, --platform <platform>", "target platform id")
3324
+ .option("--scope <scope>", "target scope: project|global", "global")
3323
3325
  .option("-b, --bundle <bundle>", "bundle id (default: agent-environment-setup)")
3324
3326
  .option("--overwrite", "overwrite existing files")
3325
3327
  .option(
@@ -3474,6 +3476,7 @@ async function cleanupAntigravityTerminalIntegration({
3474
3476
  async function runWorkflowInstall(options) {
3475
3477
  try {
3476
3478
  const scope = normalizeScope(options.scope);
3479
+ const ruleScope = scope === "global" ? "project" : scope;
3477
3480
  const dryRun = Boolean(options.dryRun);
3478
3481
  const platform = await resolvePlatform(options.platform, scope, process.cwd());
3479
3482
  const bundleId = await chooseBundle(options.bundle);
@@ -3516,7 +3519,7 @@ async function runWorkflowInstall(options) {
3516
3519
  bundleId,
3517
3520
  manifest,
3518
3521
  platform,
3519
- scope,
3522
+ scope: ruleScope,
3520
3523
  overwrite: Boolean(options.overwrite),
3521
3524
  dryRun,
3522
3525
  cwd: process.cwd()
@@ -3524,13 +3527,13 @@ async function runWorkflowInstall(options) {
3524
3527
 
3525
3528
  const syncResult = await syncRulesForPlatform({
3526
3529
  platform,
3527
- scope,
3530
+ scope: ruleScope,
3528
3531
  dryRun,
3529
3532
  cwd: process.cwd()
3530
3533
  });
3531
3534
  const engineeringArtifactsResult = await upsertEngineeringArtifacts({
3532
3535
  platform,
3533
- scope,
3536
+ scope: ruleScope,
3534
3537
  overwrite: false,
3535
3538
  dryRun,
3536
3539
  skipTech: false,
@@ -3548,7 +3551,7 @@ async function runWorkflowInstall(options) {
3548
3551
  const terminalVerificationRuleResult =
3549
3552
  platform === "antigravity" && installResult.terminalIntegration
3550
3553
  ? await upsertTerminalVerificationForInstall({
3551
- scope,
3554
+ scope: ruleScope,
3552
3555
  cwd: process.cwd(),
3553
3556
  terminalIntegration: installResult.terminalIntegration,
3554
3557
  dryRun
@@ -3590,7 +3593,7 @@ async function runWorkflowInstall(options) {
3590
3593
  if (dryRun) {
3591
3594
  console.log("\nDry-run complete. Re-run without `--dry-run` to apply changes.");
3592
3595
  } else {
3593
- console.log("\nTip: run `cbx workflows doctor --platform " + platform + " --scope " + scope + "`.");
3596
+ console.log("\nTip: run `cbx workflows doctor --platform " + platform + " --scope " + ruleScope + "`.");
3594
3597
  }
3595
3598
  } catch (error) {
3596
3599
  if (error?.name === "ExitPromptError") {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cubis/foundry",
3
- "version": "0.3.18",
3
+ "version": "0.3.20",
4
4
  "description": "Cubis Foundry CLI for workflow-first AI agent environments",
5
5
  "type": "module",
6
6
  "bin": {