chore: generate
This commit is contained in:
@@ -50,7 +50,20 @@ const FILES = new Set([
|
|||||||
"new-item",
|
"new-item",
|
||||||
"rename-item",
|
"rename-item",
|
||||||
])
|
])
|
||||||
const CMD_FILES = new Set(["copy", "del", "dir", "erase", "md", "mkdir", "move", "rd", "ren", "rename", "rmdir", "type"])
|
const CMD_FILES = new Set([
|
||||||
|
"copy",
|
||||||
|
"del",
|
||||||
|
"dir",
|
||||||
|
"erase",
|
||||||
|
"md",
|
||||||
|
"mkdir",
|
||||||
|
"move",
|
||||||
|
"rd",
|
||||||
|
"ren",
|
||||||
|
"rename",
|
||||||
|
"rmdir",
|
||||||
|
"type",
|
||||||
|
])
|
||||||
const FLAGS = new Set(["-destination", "-literalpath", "-path"])
|
const FLAGS = new Set(["-destination", "-literalpath", "-path"])
|
||||||
const SWITCHES = new Set(["-confirm", "-debug", "-force", "-nonewline", "-recurse", "-verbose", "-whatif"])
|
const SWITCHES = new Set(["-confirm", "-debug", "-force", "-nonewline", "-recurse", "-verbose", "-whatif"])
|
||||||
|
|
||||||
|
|||||||
@@ -8,12 +8,10 @@ const PS = new Set(["powershell", "pwsh"])
|
|||||||
const CMD = new Set(["cmd"])
|
const CMD = new Set(["cmd"])
|
||||||
|
|
||||||
const descriptions = {
|
const descriptions = {
|
||||||
bash:
|
bash: "Clear, concise description of what this command does in 5-10 words. Examples:\nInput: ls\nOutput: Lists files in current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: mkdir foo\nOutput: Creates directory 'foo'",
|
||||||
"Clear, concise description of what this command does in 5-10 words. Examples:\nInput: ls\nOutput: Lists files in current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: mkdir foo\nOutput: Creates directory 'foo'",
|
|
||||||
powershell:
|
powershell:
|
||||||
'Clear, concise description of what this command does in 5-10 words. Examples:\nInput: Get-ChildItem -LiteralPath "."\nOutput: Lists current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: New-Item -ItemType Directory -Path "tmp"\nOutput: Creates directory tmp',
|
'Clear, concise description of what this command does in 5-10 words. Examples:\nInput: Get-ChildItem -LiteralPath "."\nOutput: Lists current directory\n\nInput: git status\nOutput: Shows working tree status\n\nInput: npm install\nOutput: Installs package dependencies\n\nInput: New-Item -ItemType Directory -Path "tmp"\nOutput: Creates directory tmp',
|
||||||
cmd:
|
cmd: 'Clear, concise description of what this command does in 5-10 words. Examples:\nInput: dir\nOutput: Lists current directory\n\nInput: if exist "package.json" type "package.json"\nOutput: Prints package.json when it exists\n\nInput: mkdir tmp\nOutput: Creates directory tmp',
|
||||||
'Clear, concise description of what this command does in 5-10 words. Examples:\nInput: dir\nOutput: Lists current directory\n\nInput: if exist "package.json" type "package.json"\nOutput: Prints package.json when it exists\n\nInput: mkdir tmp\nOutput: Creates directory tmp',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Limits = {
|
export type Limits = {
|
||||||
|
|||||||
@@ -757,9 +757,7 @@ describe("tool.shell permissions", () => {
|
|||||||
)
|
)
|
||||||
const extDirReq = requests.find((r) => r.permission === "external_directory")
|
const extDirReq = requests.find((r) => r.permission === "external_directory")
|
||||||
expect(extDirReq).toBeDefined()
|
expect(extDirReq).toBeDefined()
|
||||||
expect(extDirReq!.patterns).toContain(
|
expect(extDirReq!.patterns).toContain(Filesystem.normalizePathPattern(path.join(process.env.WINDIR!, "*")))
|
||||||
Filesystem.normalizePathPattern(path.join(process.env.WINDIR!, "*")),
|
|
||||||
)
|
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
}),
|
}),
|
||||||
|
|||||||
Reference in New Issue
Block a user