@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.cjs
CHANGED
|
@@ -242,13 +242,25 @@ var init_env = __esm({
|
|
|
242
242
|
}
|
|
243
243
|
});
|
|
244
244
|
|
|
245
|
+
// src/utils/version.ts
|
|
246
|
+
async function checkVersion() {
|
|
247
|
+
}
|
|
248
|
+
var CLI_VERSION;
|
|
249
|
+
var init_version = __esm({
|
|
250
|
+
"src/utils/version.ts"() {
|
|
251
|
+
"use strict";
|
|
252
|
+
init_cjs_shims();
|
|
253
|
+
CLI_VERSION = "0.7.34";
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
|
|
245
257
|
// src/commands/sync-rules.ts
|
|
246
258
|
var sync_rules_exports = {};
|
|
247
259
|
__export(sync_rules_exports, {
|
|
248
260
|
createSyncRulesCommand: () => createSyncRulesCommand,
|
|
249
261
|
syncProjectRules: () => syncProjectRules
|
|
250
262
|
});
|
|
251
|
-
async function syncProjectRules(projectId, apiKey, apiUrl, dryRun = false) {
|
|
263
|
+
async function syncProjectRules(projectId, apiKey, apiUrl, dryRun = false, version = CLI_VERSION) {
|
|
252
264
|
const spinner = (0, import_ora2.default)("\u{1F6E1}\uFE0F Frank Protocol: Initializing retroactive sync...").start();
|
|
253
265
|
let success = true;
|
|
254
266
|
try {
|
|
@@ -300,7 +312,7 @@ async function syncProjectRules(projectId, apiKey, apiUrl, dryRun = false) {
|
|
|
300
312
|
const ruleList = files.map((f) => f.path).filter((p) => p.endsWith(".mdc")).map((p) => `- ${p}`).join("\n");
|
|
301
313
|
const governanceBlock = `${START_MARKER}
|
|
302
314
|
# \u{1F6E1}\uFE0F Rigstate Governance (Do not edit this block manually)
|
|
303
|
-
# The following rules are enforced by the Rigstate Daemon (v${
|
|
315
|
+
# The following rules are enforced by the Rigstate Daemon (v${version}).
|
|
304
316
|
# Failure to adhere to these rules will be flagged during the 'work' cycle.
|
|
305
317
|
|
|
306
318
|
# YOU MUST ADHERE TO THESE PROACTIVE RULES:
|
|
@@ -358,7 +370,7 @@ function createSyncRulesCommand() {
|
|
|
358
370
|
});
|
|
359
371
|
return syncRules;
|
|
360
372
|
}
|
|
361
|
-
var import_commander3, import_chalk3, import_ora2, import_axios2
|
|
373
|
+
var import_commander3, import_chalk3, import_ora2, import_axios2;
|
|
362
374
|
var init_sync_rules = __esm({
|
|
363
375
|
"src/commands/sync-rules.ts"() {
|
|
364
376
|
"use strict";
|
|
@@ -368,8 +380,7 @@ var init_sync_rules = __esm({
|
|
|
368
380
|
import_ora2 = __toESM(require("ora"), 1);
|
|
369
381
|
init_config();
|
|
370
382
|
import_axios2 = __toESM(require("axios"), 1);
|
|
371
|
-
|
|
372
|
-
require2 = (0, import_module.createRequire)(importMetaUrl);
|
|
383
|
+
init_version();
|
|
373
384
|
}
|
|
374
385
|
});
|
|
375
386
|
|
|
@@ -1667,7 +1678,7 @@ var require_package = __commonJS({
|
|
|
1667
1678
|
"package.json"(exports2, module2) {
|
|
1668
1679
|
module2.exports = {
|
|
1669
1680
|
name: "@rigstate/cli",
|
|
1670
|
-
version: "0.7.
|
|
1681
|
+
version: "0.7.34",
|
|
1671
1682
|
description: "Rigstate CLI - Code audit, sync and supervision tool",
|
|
1672
1683
|
type: "module",
|
|
1673
1684
|
main: "./dist/index.js",
|
|
@@ -8616,7 +8627,7 @@ function versionParser(stdOut) {
|
|
|
8616
8627
|
}
|
|
8617
8628
|
var NOT_INSTALLED;
|
|
8618
8629
|
var parsers7;
|
|
8619
|
-
var
|
|
8630
|
+
var init_version2 = __esm2({
|
|
8620
8631
|
"src/lib/tasks/version.ts"() {
|
|
8621
8632
|
"use strict";
|
|
8622
8633
|
init_utils();
|
|
@@ -8664,7 +8675,7 @@ var init_simple_git_api = __esm2({
|
|
|
8664
8675
|
init_show();
|
|
8665
8676
|
init_status();
|
|
8666
8677
|
init_task();
|
|
8667
|
-
|
|
8678
|
+
init_version2();
|
|
8668
8679
|
init_utils();
|
|
8669
8680
|
SimpleGitApi = class {
|
|
8670
8681
|
constructor(_executor) {
|
|
@@ -10483,12 +10494,8 @@ function sleep(ms) {
|
|
|
10483
10494
|
return new Promise((resolve) => setTimeout(resolve, ms));
|
|
10484
10495
|
}
|
|
10485
10496
|
|
|
10486
|
-
// src/utils/version.ts
|
|
10487
|
-
init_cjs_shims();
|
|
10488
|
-
async function checkVersion() {
|
|
10489
|
-
}
|
|
10490
|
-
|
|
10491
10497
|
// src/index.ts
|
|
10498
|
+
init_version();
|
|
10492
10499
|
var import_dotenv = __toESM(require("dotenv"), 1);
|
|
10493
10500
|
var pkg = require_package();
|
|
10494
10501
|
import_dotenv.default.config();
|