@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/dist/index.js
CHANGED
|
@@ -245,6 +245,18 @@ var init_env = __esm({
|
|
|
245
245
|
}
|
|
246
246
|
});
|
|
247
247
|
|
|
248
|
+
// src/utils/version.ts
|
|
249
|
+
async function checkVersion() {
|
|
250
|
+
}
|
|
251
|
+
var CLI_VERSION;
|
|
252
|
+
var init_version = __esm({
|
|
253
|
+
"src/utils/version.ts"() {
|
|
254
|
+
"use strict";
|
|
255
|
+
init_esm_shims();
|
|
256
|
+
CLI_VERSION = "0.7.34";
|
|
257
|
+
}
|
|
258
|
+
});
|
|
259
|
+
|
|
248
260
|
// src/commands/sync-rules.ts
|
|
249
261
|
var sync_rules_exports = {};
|
|
250
262
|
__export(sync_rules_exports, {
|
|
@@ -255,8 +267,7 @@ import { Command as Command3 } from "commander";
|
|
|
255
267
|
import chalk3 from "chalk";
|
|
256
268
|
import ora2 from "ora";
|
|
257
269
|
import axios2 from "axios";
|
|
258
|
-
|
|
259
|
-
async function syncProjectRules(projectId, apiKey, apiUrl, dryRun = false) {
|
|
270
|
+
async function syncProjectRules(projectId, apiKey, apiUrl, dryRun = false, version = CLI_VERSION) {
|
|
260
271
|
const spinner = ora2("\u{1F6E1}\uFE0F Frank Protocol: Initializing retroactive sync...").start();
|
|
261
272
|
let success = true;
|
|
262
273
|
try {
|
|
@@ -308,7 +319,7 @@ async function syncProjectRules(projectId, apiKey, apiUrl, dryRun = false) {
|
|
|
308
319
|
const ruleList = files.map((f) => f.path).filter((p) => p.endsWith(".mdc")).map((p) => `- ${p}`).join("\n");
|
|
309
320
|
const governanceBlock = `${START_MARKER}
|
|
310
321
|
# \u{1F6E1}\uFE0F Rigstate Governance (Do not edit this block manually)
|
|
311
|
-
# The following rules are enforced by the Rigstate Daemon (v${
|
|
322
|
+
# The following rules are enforced by the Rigstate Daemon (v${version}).
|
|
312
323
|
# Failure to adhere to these rules will be flagged during the 'work' cycle.
|
|
313
324
|
|
|
314
325
|
# YOU MUST ADHERE TO THESE PROACTIVE RULES:
|
|
@@ -366,13 +377,12 @@ function createSyncRulesCommand() {
|
|
|
366
377
|
});
|
|
367
378
|
return syncRules;
|
|
368
379
|
}
|
|
369
|
-
var require2;
|
|
370
380
|
var init_sync_rules = __esm({
|
|
371
381
|
"src/commands/sync-rules.ts"() {
|
|
372
382
|
"use strict";
|
|
373
383
|
init_esm_shims();
|
|
374
384
|
init_config();
|
|
375
|
-
|
|
385
|
+
init_version();
|
|
376
386
|
}
|
|
377
387
|
});
|
|
378
388
|
|
|
@@ -1668,7 +1678,7 @@ var require_package = __commonJS({
|
|
|
1668
1678
|
"package.json"(exports, module) {
|
|
1669
1679
|
module.exports = {
|
|
1670
1680
|
name: "@rigstate/cli",
|
|
1671
|
-
version: "0.7.
|
|
1681
|
+
version: "0.7.34",
|
|
1672
1682
|
description: "Rigstate CLI - Code audit, sync and supervision tool",
|
|
1673
1683
|
type: "module",
|
|
1674
1684
|
main: "./dist/index.js",
|
|
@@ -8617,7 +8627,7 @@ function versionParser(stdOut) {
|
|
|
8617
8627
|
}
|
|
8618
8628
|
var NOT_INSTALLED;
|
|
8619
8629
|
var parsers7;
|
|
8620
|
-
var
|
|
8630
|
+
var init_version2 = __esm2({
|
|
8621
8631
|
"src/lib/tasks/version.ts"() {
|
|
8622
8632
|
"use strict";
|
|
8623
8633
|
init_utils();
|
|
@@ -8665,7 +8675,7 @@ var init_simple_git_api = __esm2({
|
|
|
8665
8675
|
init_show();
|
|
8666
8676
|
init_status();
|
|
8667
8677
|
init_task();
|
|
8668
|
-
|
|
8678
|
+
init_version2();
|
|
8669
8679
|
init_utils();
|
|
8670
8680
|
SimpleGitApi = class {
|
|
8671
8681
|
constructor(_executor) {
|
|
@@ -10484,12 +10494,8 @@ function sleep(ms) {
|
|
|
10484
10494
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
10485
10495
|
}
|
|
10486
10496
|
|
|
10487
|
-
// src/utils/version.ts
|
|
10488
|
-
init_esm_shims();
|
|
10489
|
-
async function checkVersion() {
|
|
10490
|
-
}
|
|
10491
|
-
|
|
10492
10497
|
// src/index.ts
|
|
10498
|
+
init_version();
|
|
10493
10499
|
import dotenv from "dotenv";
|
|
10494
10500
|
var pkg = require_package();
|
|
10495
10501
|
dotenv.config();
|