glimmervoid 0.38.1 → 0.38.2

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.
Files changed (24) hide show
  1. package/dist/bin/glimmervoid.js +8 -8
  2. package/dist/chunks/{adapters-B0EJp_oE.js → adapters-CAHxZYT3.js} +2 -2
  3. package/dist/chunks/{adapters-BIbF8RJB.js → adapters-DDjC7_vG.js} +1 -1
  4. package/dist/chunks/{agent-setup-cli-C9MMiask.js → agent-setup-cli-DmMfCw5O.js} +1 -1
  5. package/dist/chunks/{config-store-CKcDJebD.js → config-store-BUNZs4j7.js} +1 -1
  6. package/dist/chunks/config-store-MAVQhGMh.js +1 -0
  7. package/dist/chunks/{grok-y65HOvlU.js → grok-B6bsCgdd.js} +1 -1
  8. package/dist/chunks/{hook-tools-BkxllUHE.js → hook-tools-Dl7-r2Eb.js} +1 -1
  9. package/dist/chunks/{main-DeiiNNI7.js → main-BNSbP-Yk.js} +544 -481
  10. package/dist/chunks/{pair-cli-B9hHUHLl.js → pair-cli-DNp8i5L4.js} +2 -2
  11. package/dist/chunks/{remote-config-DlquYoVe.js → remote-config-C_s2pnLC.js} +1 -1
  12. package/dist/chunks/{rtk-hook-core-VrUafGAp.js → rtk-hook-core-B-MpzPin.js} +89 -83
  13. package/dist/chunks/rtk-resolver-BGE6Hd_L.js +1 -0
  14. package/dist/chunks/{rtk-resolver-C_micGrL.js → rtk-resolver-BgoPsEhT.js} +1 -1
  15. package/dist/chunks/{settings-cli-C5i9v59a.js → settings-cli-BbzxCyG5.js} +1 -1
  16. package/dist/client/assets/index-B5uVtedd.css +1 -0
  17. package/dist/client/assets/{index-ChXRDbjt.js → index-b13-NGGS.js} +42 -42
  18. package/dist/client/index.html +2 -2
  19. package/dist/server/index.js +1 -1
  20. package/dist/session/hook-tool-relay.js +1 -1
  21. package/package.json +1 -1
  22. package/dist/chunks/config-store-B6mX2phK.js +0 -1
  23. package/dist/chunks/rtk-resolver-B8BPgN9L.js +0 -1
  24. package/dist/client/assets/index-DA251uL1.css +0 -1
@@ -1,6 +1,6 @@
1
1
  import { r as errorMessage } from "./text-DoirglWV.js";
2
- import { c as resolveConfigPath } from "./config-store-CKcDJebD.js";
3
- import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-DlquYoVe.js";
2
+ import { c as resolveConfigPath } from "./config-store-BUNZs4j7.js";
3
+ import { c as defaultPairingsPath, i as REVOCATION_PROPAGATION_SECONDS, l as defaultSeenPath, n as normalizeRemoteConfig, o as createPairingsStore, s as createSeenStore } from "./remote-config-C_s2pnLC.js";
4
4
  import fs from "node:fs";
5
5
  //#region server/text-format.ts
6
6
  function trimIso(iso) {
@@ -3,7 +3,7 @@ import { n as equalsIgnoringCaseOnWindows } from "./paths-Bu4eH1Yd.js";
3
3
  import { n as isRecord } from "./coerce-NSst8oRP.js";
4
4
  import { n as unrefTimer, t as DEFAULT_TIMER_FNS } from "./timer-deps-u2DAQLok.js";
5
5
  import { a as jsonStateLoadError, d as writeJsonAtomicSync, l as sleepSync, s as loadJsonStateFileSync, u as writeJsonAtomic } from "./json-file-CIJf0Cel.js";
6
- import { o as glimmervoidHomeDir, st as canonicalizePath } from "./config-store-CKcDJebD.js";
6
+ import { o as glimmervoidHomeDir, st as canonicalizePath } from "./config-store-BUNZs4j7.js";
7
7
  import fs from "node:fs";
8
8
  import path from "node:path";
9
9
  import crypto from "node:crypto";
@@ -1,19 +1,22 @@
1
1
  import { n as isRecord } from "./coerce-NSst8oRP.js";
2
2
  //#region session/core/sane-yolo.ts
3
3
  var SANE_YOLO_PATH_ENV = "GLIMMERVOID_SANE_YOLO_PATH";
4
- var SANE_YOLO_POLICY = {
5
- version: 1,
6
- destructive_command_protection: {
7
- enabled: true,
8
- overrides: {
9
- "git.branch-force-delete": "off",
10
- "git.merge-abort": "off",
11
- "git.rebase-abort": "off",
12
- "rm.recursive-force-dynamic-target": "on"
13
- }
14
- },
15
- secret_protection: { enabled: false }
16
- };
4
+ function saneYoloPolicy(guardrailsTempRoot) {
5
+ return {
6
+ version: 1,
7
+ destructive_command_protection: {
8
+ enabled: true,
9
+ overrides: {
10
+ "git.branch-force-delete": "off",
11
+ "git.merge-abort": "off",
12
+ "git.rebase-abort": "off",
13
+ "rm.recursive-force-dynamic-target": "on"
14
+ },
15
+ allow_paths: [guardrailsTempRoot]
16
+ },
17
+ secret_protection: { enabled: false }
18
+ };
19
+ }
17
20
  var SANE_YOLO_RULES = {
18
21
  version: 1,
19
22
  rules: ["infra"],
@@ -27,76 +30,79 @@ var TERRAFORM_DESTROY_FLAGS = [
27
30
  "-destroy=true",
28
31
  "--destroy=true"
29
32
  ];
30
- var SANE_YOLO_FILES = {
31
- "policy.json": SANE_YOLO_POLICY,
32
- "rules/rule.json": SANE_YOLO_RULES,
33
- "rules/infra/rulebook.json": {
34
- rulebook_version: 1,
35
- name: "infra",
36
- version: "1.1.0",
37
- allowed_commands: [
38
- "terraform",
39
- "tofu",
40
- "pulumi",
41
- "kubectl"
42
- ],
43
- rules: [
44
- {
45
- name: "terraform-destroy",
46
- command: "terraform",
47
- subcommand: "destroy",
48
- block_args: ["destroy"],
49
- reason: INFRA_REASON
50
- },
51
- {
52
- name: "terraform-apply-destroy",
53
- command: "terraform",
54
- subcommand: "apply",
55
- block_args: TERRAFORM_DESTROY_FLAGS,
56
- reason: INFRA_REASON
57
- },
58
- {
59
- name: "tofu-destroy",
60
- command: "tofu",
61
- subcommand: "destroy",
62
- block_args: ["destroy"],
63
- reason: INFRA_REASON
64
- },
65
- {
66
- name: "tofu-apply-destroy",
67
- command: "tofu",
68
- subcommand: "apply",
69
- block_args: TERRAFORM_DESTROY_FLAGS,
70
- reason: INFRA_REASON
71
- },
72
- {
73
- name: "pulumi-destroy",
74
- command: "pulumi",
75
- subcommand: "destroy",
76
- block_args: ["destroy"],
77
- reason: INFRA_REASON
78
- },
79
- {
80
- name: "pulumi-down",
81
- command: "pulumi",
82
- subcommand: "down",
83
- block_args: ["down"],
84
- reason: INFRA_REASON
85
- },
86
- {
87
- name: "kubectl-delete-namespace",
88
- command: "kubectl",
89
- subcommand: "delete",
90
- block_args: [
91
- "ns",
92
- "namespace",
93
- "namespaces"
94
- ],
95
- reason: INFRA_REASON
96
- }
97
- ]
98
- }
33
+ var SANE_YOLO_INFRA_RULEBOOK = {
34
+ rulebook_version: 1,
35
+ name: "infra",
36
+ version: "1.1.0",
37
+ allowed_commands: [
38
+ "terraform",
39
+ "tofu",
40
+ "pulumi",
41
+ "kubectl"
42
+ ],
43
+ rules: [
44
+ {
45
+ name: "terraform-destroy",
46
+ command: "terraform",
47
+ subcommand: "destroy",
48
+ block_args: ["destroy"],
49
+ reason: INFRA_REASON
50
+ },
51
+ {
52
+ name: "terraform-apply-destroy",
53
+ command: "terraform",
54
+ subcommand: "apply",
55
+ block_args: TERRAFORM_DESTROY_FLAGS,
56
+ reason: INFRA_REASON
57
+ },
58
+ {
59
+ name: "tofu-destroy",
60
+ command: "tofu",
61
+ subcommand: "destroy",
62
+ block_args: ["destroy"],
63
+ reason: INFRA_REASON
64
+ },
65
+ {
66
+ name: "tofu-apply-destroy",
67
+ command: "tofu",
68
+ subcommand: "apply",
69
+ block_args: TERRAFORM_DESTROY_FLAGS,
70
+ reason: INFRA_REASON
71
+ },
72
+ {
73
+ name: "pulumi-destroy",
74
+ command: "pulumi",
75
+ subcommand: "destroy",
76
+ block_args: ["destroy"],
77
+ reason: INFRA_REASON
78
+ },
79
+ {
80
+ name: "pulumi-down",
81
+ command: "pulumi",
82
+ subcommand: "down",
83
+ block_args: ["down"],
84
+ reason: INFRA_REASON
85
+ },
86
+ {
87
+ name: "kubectl-delete-namespace",
88
+ command: "kubectl",
89
+ subcommand: "delete",
90
+ block_args: [
91
+ "ns",
92
+ "namespace",
93
+ "namespaces"
94
+ ],
95
+ reason: INFRA_REASON
96
+ }
97
+ ]
99
98
  };
99
+ function saneYoloFiles(guardrailsTempRoot) {
100
+ return {
101
+ "policy.json": saneYoloPolicy(guardrailsTempRoot),
102
+ "rules/rule.json": SANE_YOLO_RULES,
103
+ "rules/infra/rulebook.json": SANE_YOLO_INFRA_RULEBOOK
104
+ };
105
+ }
100
106
  function saneYoloEnv(homeDir) {
101
107
  return {
102
108
  CC_SAFETY_NET_HOME: homeDir,
@@ -138,4 +144,4 @@ function normalizeRtkHookResponse(stdoutText, { isForClaude = false } = {}) {
138
144
  return JSON.stringify(parsed);
139
145
  }
140
146
  //#endregion
141
- export { SANE_YOLO_FILES as a, normalizeRtkHookResponse as i, MAX_RTK_STDOUT_BYTES as n, SANE_YOLO_PATH_ENV as o, RTK_PATH_ENV as r, saneYoloEnv as s, CLAUDE_RELAY_FLAVOR as t };
147
+ export { SANE_YOLO_PATH_ENV as a, normalizeRtkHookResponse as i, MAX_RTK_STDOUT_BYTES as n, saneYoloEnv as o, RTK_PATH_ENV as r, saneYoloFiles as s, CLAUDE_RELAY_FLAVOR as t };
@@ -0,0 +1 @@
1
+ export { t as getRtkPath } from "./rtk-resolver-BgoPsEhT.js";
@@ -1,6 +1,6 @@
1
1
  import { i as execSync } from "./child-process-safe-CbQnyh7D.js";
2
2
  import { n as glimmervoidHomeDir } from "./config-path-core-DFt-TemS.js";
3
- import { r as resolveRtkPath } from "./hook-tools-BkxllUHE.js";
3
+ import { r as resolveRtkPath } from "./hook-tools-Dl7-r2Eb.js";
4
4
  import fs from "node:fs";
5
5
  import os from "node:os";
6
6
  //#region server/rtk-resolver.ts
@@ -3,7 +3,7 @@ import "./session-BlT68ppa.js";
3
3
  import { t as renderTable } from "./ascii-figure-core-pDAwtlKO.js";
4
4
  import { n as glimmervoidHomeDir, t as decideConfigPath } from "./config-path-core-DFt-TemS.js";
5
5
  import { n as isRecord } from "./coerce-NSst8oRP.js";
6
- import { $ as withEnvSecrets, A as settingsOf, C as deleteValueAtPath, D as scoreSettingsSearch, E as parsePosthogProjectSelection, M as FILE_ONLY_GROUPS, N as SETTINGS_REGISTRY, O as setValueAtPath, S as cloneValue, T as hasScaledUnit, X as ENV_SECRET_BINDINGS, Z as readEnvSecrets, j as valueAtPath, k as settingsGroupOf, l as saveConfigFileOnce, s as loadConfigFile, u as validateConfig, w as displayText, x as SETTINGS_INDEX } from "./config-store-CKcDJebD.js";
6
+ import { $ as withEnvSecrets, A as settingsOf, C as deleteValueAtPath, D as scoreSettingsSearch, E as parsePosthogProjectSelection, M as FILE_ONLY_GROUPS, N as SETTINGS_REGISTRY, O as setValueAtPath, S as cloneValue, T as hasScaledUnit, X as ENV_SECRET_BINDINGS, Z as readEnvSecrets, j as valueAtPath, k as settingsGroupOf, l as saveConfigFileOnce, s as loadConfigFile, u as validateConfig, w as displayText, x as SETTINGS_INDEX } from "./config-store-BUNZs4j7.js";
7
7
  import { r as BrowserConfig } from "./config-CjawSOBk.js";
8
8
  import fs from "node:fs";
9
9
  import os from "node:os";