@rigstate/cli 0.7.32 → 0.7.34
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/dist/index.cjs +20 -13
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +19 -13
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/commands/sync-rules.ts +3 -4
- package/src/utils/version.ts +6 -1
package/package.json
CHANGED
|
@@ -3,8 +3,7 @@ import chalk from 'chalk';
|
|
|
3
3
|
import ora from 'ora';
|
|
4
4
|
import { getApiKey, getApiUrl } from '../utils/config.js';
|
|
5
5
|
import axios from 'axios';
|
|
6
|
-
import {
|
|
7
|
-
const require = createRequire(import.meta.url);
|
|
6
|
+
import { CLI_VERSION } from '../utils/version.js';
|
|
8
7
|
|
|
9
8
|
interface SyncResult {
|
|
10
9
|
projectId: string;
|
|
@@ -14,7 +13,7 @@ interface SyncResult {
|
|
|
14
13
|
}
|
|
15
14
|
|
|
16
15
|
// Core Logic (Exported for re-use)
|
|
17
|
-
export async function syncProjectRules(projectId: string, apiKey: string, apiUrl: string, dryRun = false): Promise<boolean> {
|
|
16
|
+
export async function syncProjectRules(projectId: string, apiKey: string, apiUrl: string, dryRun = false, version: string = CLI_VERSION): Promise<boolean> {
|
|
18
17
|
const spinner = ora('🛡️ Frank Protocol: Initializing retroactive sync...').start();
|
|
19
18
|
let success = true;
|
|
20
19
|
|
|
@@ -87,7 +86,7 @@ export async function syncProjectRules(projectId: string, apiKey: string, apiUrl
|
|
|
87
86
|
|
|
88
87
|
const governanceBlock = `${START_MARKER}
|
|
89
88
|
# 🛡️ Rigstate Governance (Do not edit this block manually)
|
|
90
|
-
# The following rules are enforced by the Rigstate Daemon (v${
|
|
89
|
+
# The following rules are enforced by the Rigstate Daemon (v${version}).
|
|
91
90
|
# Failure to adhere to these rules will be flagged during the 'work' cycle.
|
|
92
91
|
|
|
93
92
|
# YOU MUST ADHERE TO THESE PROACTIVE RULES:
|
package/src/utils/version.ts
CHANGED