@loophubs/agent-guard 0.1.0 → 0.3.0

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/src/mvdan-sh.d.ts DELETED
@@ -1,92 +0,0 @@
1
- // The mvdan-sh package ships no types. This declares only the AST subset the
2
- // front end reads, so the package needs no type dependency. Positions are
3
- // UTF-8 byte offsets into the parsed source.
4
- declare module "mvdan-sh" {
5
- export interface Pos {
6
- Offset(): number;
7
- }
8
- export interface Node {
9
- Pos(): Pos;
10
- End(): Pos;
11
- }
12
- export interface Lit extends Node {
13
- Value: string;
14
- }
15
- export interface Comment extends Node {
16
- Hash: Pos;
17
- }
18
- export interface Word extends Node {
19
- Parts: Node[];
20
- }
21
- export interface Assign extends Node {
22
- Naked: boolean;
23
- Name: Lit | null;
24
- Value: Word | null;
25
- }
26
- export interface Redirect extends Node {
27
- OpPos: Pos;
28
- Word: Word;
29
- Hdoc: Word | null;
30
- }
31
- export interface Stmt extends Node {
32
- Cmd: Node | null;
33
- Background: boolean;
34
- Redirs: Redirect[];
35
- }
36
- export interface File extends Node {
37
- Stmts: Stmt[];
38
- }
39
- export interface CallExpr extends Node {
40
- Assigns: Assign[];
41
- Args: Word[];
42
- }
43
- export interface DeclClause extends Node {
44
- Variant: Lit;
45
- Args: Assign[];
46
- }
47
- export interface BinaryCmd extends Node {
48
- OpPos: Pos;
49
- X: Stmt;
50
- Y: Stmt;
51
- }
52
- export interface Subshell extends Node {
53
- Stmts: Stmt[];
54
- }
55
- export interface IfClause extends Node {
56
- Cond: Stmt[];
57
- Then: Stmt[];
58
- Else: IfClause | null;
59
- }
60
- export interface SglQuoted extends Node {
61
- Dollar: boolean;
62
- Value: string;
63
- }
64
- export interface DblQuoted extends Node {
65
- Parts: Node[];
66
- }
67
- export interface ParamExp extends Node {
68
- Excl: boolean;
69
- Length: boolean;
70
- Width: boolean;
71
- Param: Lit;
72
- Index: Node | null;
73
- Slice: object | null;
74
- Repl: object | null;
75
- Exp: object | null;
76
- }
77
- export interface CmdSubst extends Node {
78
- Stmts: Stmt[];
79
- }
80
-
81
- const sh: {
82
- syntax: {
83
- NewParser(...options: unknown[]): { Parse(source: string, name: string): File };
84
- NodeType(node: Node): string;
85
- Walk(node: Node, visit: (node: Node | null) => boolean): void;
86
- KeepComments(keep: boolean): unknown;
87
- Variant(language: unknown): unknown;
88
- LangBash: unknown;
89
- };
90
- };
91
- export default sh;
92
- }