shiva-code 0.7.2 → 0.7.5

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.
@@ -43,6 +43,10 @@ function isPathWithinAllowedBoundaries(inputPath) {
43
43
  ];
44
44
  return allowedPrefixes.some((prefix) => resolved.startsWith(prefix));
45
45
  }
46
+ var SHELL_DANGEROUS_CHARS = /[;&|`$(){}[\]<>\\!#*?"'\n\r\t]/;
47
+ function containsShellMetacharacters(input) {
48
+ return SHELL_DANGEROUS_CHARS.test(input);
49
+ }
46
50
  function isValidSessionId(sessionId) {
47
51
  if (!sessionId || typeof sessionId !== "string") {
48
52
  return false;
@@ -402,6 +406,7 @@ function formatDate(date) {
402
406
  }
403
407
 
404
408
  export {
409
+ containsShellMetacharacters,
405
410
  isValidSessionId,
406
411
  isValidProjectPath,
407
412
  maskSecret,
@@ -1,6 +1,6 @@
1
1
  import {
2
2
  api
3
- } from "./chunk-QQZRCJZK.js";
3
+ } from "./chunk-J5IS642F.js";
4
4
  import "./chunk-OP4HYQZZ.js";
5
5
  import "./chunk-3RG5ZIWI.js";
6
6
  export {
@@ -0,0 +1,11 @@
1
+ import {
2
+ hookCommand
3
+ } from "./chunk-RQ75X32M.js";
4
+ import "./chunk-Z6NXFC4Q.js";
5
+ import "./chunk-IVFCZLBX.js";
6
+ import "./chunk-PMA6MGQW.js";
7
+ import "./chunk-HIQO2DBA.js";
8
+ import "./chunk-3RG5ZIWI.js";
9
+ export {
10
+ hookCommand
11
+ };