@parel/security-basic 0.1.5 → 0.1.7

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/README.md CHANGED
@@ -18,7 +18,8 @@ plugins:
18
18
  ```
19
19
 
20
20
  It enforces a command allowlist and redacts known secret patterns from tool
21
- output.
21
+ output. By default it scans common shell tool names, including `bash`,
22
+ `workspace_shell`, and `workspace_start_process`.
22
23
 
23
24
  > **Scope.** This is a best-effort policy layer, **not** an isolation boundary.
24
25
  > A program-name allowlist cannot see inside an allowlisted interpreter's
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import * as _parel_core from '@parel/core';
1
+ import { ParelPlugin } from '@parel/plugin-sdk';
2
2
 
3
- declare const _default: _parel_core.ParelPlugin;
3
+ declare const _default: ParelPlugin;
4
4
 
5
5
  export { _default as default };
package/dist/index.js CHANGED
@@ -1,6 +1,29 @@
1
1
  // src/index.ts
2
2
  import { definePlugin, HookPriority, LifecycleEvent } from "@parel/plugin-sdk";
3
- var DEFAULT_EXEC_TOOLS = /* @__PURE__ */ new Set(["bash", "shell", "exec", "terminal", "run_command", "run"]);
3
+
4
+ // parel.plugin.json
5
+ var parel_plugin_default = {
6
+ name: "@parel/security-basic",
7
+ version: "0.1.5",
8
+ execution: {
9
+ snapshot: {
10
+ store: "reset",
11
+ sideEffects: "reference"
12
+ }
13
+ }
14
+ };
15
+
16
+ // src/index.ts
17
+ var DEFAULT_EXEC_TOOLS = /* @__PURE__ */ new Set([
18
+ "bash",
19
+ "shell",
20
+ "exec",
21
+ "terminal",
22
+ "run_command",
23
+ "run",
24
+ "workspace_shell",
25
+ "workspace_start_process"
26
+ ]);
4
27
  var DEFAULT_ALLOWED_PATTERNS = [
5
28
  /^(ls|cat|head|tail|wc|grep|find|which|echo|printf|date|pwd|whoami|id|env|printenv)$/,
6
29
  /^(cd|mkdir|cp|mv|touch|ln)$/,
@@ -347,6 +370,7 @@ function extractAllPrograms(command) {
347
370
  }
348
371
  var index_default = definePlugin({
349
372
  name: "@parel/security-basic",
373
+ execution: parel_plugin_default.execution,
350
374
  async setup(ctx) {
351
375
  const mode = ctx.config.mode ?? "allowlist";
352
376
  const customExecTools = ctx.config.exec_tools;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@parel/security-basic",
3
- "version": "0.1.5",
3
+ "version": "0.1.7",
4
4
  "description": "PAREL plugin for basic command and secret safety checks.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,16 +21,17 @@
21
21
  },
22
22
  "files": [
23
23
  "dist",
24
+ "parel.plugin.json",
24
25
  "LICENSE",
25
26
  "README.md"
26
27
  ],
27
28
  "dependencies": {
28
- "@parel/plugin-sdk": "0.2.4"
29
+ "@parel/plugin-sdk": "0.4.0"
29
30
  },
30
31
  "devDependencies": {
31
32
  "tsup": "^8.0.0",
32
33
  "typescript": "^5.8.0",
33
- "vitest": "^3.0.0"
34
+ "vitest": "^4.1.8"
34
35
  },
35
36
  "publishConfig": {
36
37
  "access": "public"
@@ -0,0 +1,10 @@
1
+ {
2
+ "name": "@parel/security-basic",
3
+ "version": "0.1.5",
4
+ "execution": {
5
+ "snapshot": {
6
+ "store": "reset",
7
+ "sideEffects": "reference"
8
+ }
9
+ }
10
+ }