@yagni-app/code 1.0.6 → 1.0.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 +84 -46
- package/dist/claudeCompat.d.ts +59 -0
- package/dist/claudeCompat.js +109 -2
- package/dist/claudePlugins.d.ts +45 -5
- package/dist/claudePlugins.js +129 -21
- package/dist/cli.js +16 -4
- package/dist/doctor.d.ts +21 -8
- package/dist/doctor.js +53 -28
- package/dist/extension/condensedTools.d.ts +12 -1
- package/dist/extension/condensedTools.js +17 -9
- package/dist/extension/index.d.ts +13 -0
- package/dist/extension/index.js +230 -43
- package/dist/extension/mcp/cliConfig.d.ts +1 -1
- package/dist/extension/mcp/cliConfig.js +1 -1
- package/dist/extension/mcp/config.d.ts +24 -2
- package/dist/extension/mcp/config.js +75 -3
- package/dist/extension/mcp/manager.d.ts +3 -1
- package/dist/extension/mcp/manager.js +2 -2
- package/dist/extension/mcp/panel.d.ts +0 -1
- package/dist/extension/mcp/panel.js +13 -3
- package/dist/extension/mcp/startup.js +8 -6
- package/dist/extension/permission/gate.d.ts +97 -2
- package/dist/extension/permission/gate.js +375 -26
- package/dist/extension/permissionRules/bashFileArgs.d.ts +39 -0
- package/dist/extension/permissionRules/bashFileArgs.js +236 -0
- package/dist/extension/permissionRules/engine.d.ts +50 -0
- package/dist/extension/permissionRules/engine.js +238 -0
- package/dist/extension/permissionRules/loadConfig.d.ts +53 -0
- package/dist/extension/permissionRules/loadConfig.js +90 -0
- package/dist/extension/permissionRules/parser.d.ts +38 -0
- package/dist/extension/permissionRules/parser.js +136 -0
- package/dist/extension/permissionRules/pathRules.d.ts +58 -0
- package/dist/extension/permissionRules/pathRules.js +120 -0
- package/dist/extension/permissionRules/shellRules.d.ts +52 -0
- package/dist/extension/permissionRules/shellRules.js +221 -0
- package/dist/extension/pipeline/invocation.d.ts +3 -6
- package/dist/extension/pipeline/invocation.js +3 -6
- package/dist/extension/pipeline/runner.d.ts +0 -1
- package/dist/extension/pipeline/runner.js +6 -14
- package/dist/extension/plugins/inventory.d.ts +88 -0
- package/dist/extension/plugins/inventory.js +144 -0
- package/dist/extension/plugins/panel.d.ts +45 -0
- package/dist/extension/plugins/panel.js +293 -0
- package/dist/extension/sandbox/bash.d.ts +99 -0
- package/dist/extension/sandbox/bash.js +190 -0
- package/dist/extension/sandbox/config.d.ts +114 -0
- package/dist/extension/sandbox/config.js +366 -0
- package/dist/extension/sandbox/manager.d.ts +98 -0
- package/dist/extension/sandbox/manager.js +216 -0
- package/dist/extension/sandbox/panel.d.ts +111 -0
- package/dist/extension/sandbox/panel.js +342 -0
- package/dist/extension/sandbox/session.d.ts +85 -0
- package/dist/extension/sandbox/session.js +775 -0
- package/dist/extension/telemetry/attrs.d.ts +96 -0
- package/dist/extension/telemetry/attrs.js +149 -0
- package/dist/extension/telemetry/config.d.ts +99 -0
- package/dist/extension/telemetry/config.js +193 -0
- package/dist/extension/telemetry/index.d.ts +7 -0
- package/dist/extension/telemetry/index.js +7 -0
- package/dist/extension/telemetry/probe.d.ts +29 -0
- package/dist/extension/telemetry/probe.js +122 -0
- package/dist/extension/telemetry/register.d.ts +40 -0
- package/dist/extension/telemetry/register.js +192 -0
- package/dist/extension/telemetry/sdk.d.ts +63 -0
- package/dist/extension/telemetry/sdk.js +207 -0
- package/dist/extension/telemetry/tracker.d.ts +131 -0
- package/dist/extension/telemetry/tracker.js +551 -0
- package/dist/extension/vendor/IGNORE-LICENSE-MIT +21 -0
- package/dist/extension/vendor/ignore.d.ts +86 -0
- package/dist/extension/vendor/ignore.js +788 -0
- package/dist/goHeadless.d.ts +1 -1
- package/dist/goHeadless.js +2 -2
- package/dist/launch.d.ts +4 -3
- package/dist/launch.js +7 -4
- package/dist/mcpCommand.d.ts +10 -1
- package/dist/mcpCommand.js +42 -10
- package/dist/otel.d.ts +67 -90
- package/dist/otel.js +152 -195
- package/dist/paths.d.ts +13 -0
- package/dist/paths.js +18 -0
- package/dist/pluginCommand.d.ts +43 -0
- package/dist/pluginCommand.js +499 -0
- package/dist/pluginStore.d.ts +170 -0
- package/dist/pluginStore.js +554 -0
- package/package.json +19 -3
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
Copyright (c) 2013 Kael Zhang <i@kael.me>, contributors
|
|
2
|
+
http://kael.me/
|
|
3
|
+
|
|
4
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
5
|
+
a copy of this software and associated documentation files (the
|
|
6
|
+
"Software"), to deal in the Software without restriction, including
|
|
7
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
8
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
9
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
10
|
+
the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be
|
|
13
|
+
included in all copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
16
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
17
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
18
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
19
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
20
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
21
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
// VENDORED TYPES — copy of the npm `ignore` package v7.0.5 index.d.ts
|
|
2
|
+
// (https://github.com/kaelzhang/node-ignore), MIT license. The upstream file
|
|
3
|
+
// ends with `export = ignore` (CJS); this copy ends with an ESM default
|
|
4
|
+
// export matching the ESM-converted ignore.js alongside.
|
|
5
|
+
|
|
6
|
+
type Pathname = string
|
|
7
|
+
|
|
8
|
+
interface IgnoreRule {
|
|
9
|
+
pattern: string
|
|
10
|
+
mark?: string
|
|
11
|
+
negative: boolean
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
interface TestResult {
|
|
15
|
+
ignored: boolean
|
|
16
|
+
unignored: boolean
|
|
17
|
+
rule?: IgnoreRule
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
interface PatternParams {
|
|
21
|
+
pattern: string
|
|
22
|
+
mark?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
interface Ignore {
|
|
26
|
+
/**
|
|
27
|
+
* Adds one or several rules to the current manager.
|
|
28
|
+
* @param {string[]} patterns
|
|
29
|
+
* @returns IgnoreBase
|
|
30
|
+
*/
|
|
31
|
+
add(
|
|
32
|
+
patterns: string | Ignore | readonly (string | Ignore)[] | PatternParams
|
|
33
|
+
): this
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Filters the given array of pathnames, and returns the filtered array.
|
|
37
|
+
* NOTICE that each path here should be a relative path to the root of your repository.
|
|
38
|
+
* @param paths the array of paths to be filtered.
|
|
39
|
+
* @returns The filtered array of paths
|
|
40
|
+
*/
|
|
41
|
+
filter(pathnames: readonly Pathname[]): Pathname[]
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Creates a filter function which could filter
|
|
45
|
+
* an array of paths with Array.prototype.filter.
|
|
46
|
+
*/
|
|
47
|
+
createFilter(): (pathname: Pathname) => boolean
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Returns Boolean whether pathname should be ignored.
|
|
51
|
+
* @param {string} pathname a path to check
|
|
52
|
+
* @returns boolean
|
|
53
|
+
*/
|
|
54
|
+
ignores(pathname: Pathname): boolean
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* Returns whether pathname should be ignored or unignored
|
|
58
|
+
* @param {string} pathname a path to check
|
|
59
|
+
* @returns TestResult
|
|
60
|
+
*/
|
|
61
|
+
test(pathname: Pathname): TestResult
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Debugs ignore rules and returns the checking result, which is
|
|
65
|
+
* equivalent to `git check-ignore -v`.
|
|
66
|
+
* @returns TestResult
|
|
67
|
+
*/
|
|
68
|
+
checkIgnore(pathname: Pathname): TestResult
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface Options {
|
|
72
|
+
ignorecase?: boolean
|
|
73
|
+
// For compatibility
|
|
74
|
+
ignoreCase?: boolean
|
|
75
|
+
allowRelativePaths?: boolean
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* Creates new ignore manager.
|
|
80
|
+
*/
|
|
81
|
+
declare function ignore(options?: Options): Ignore
|
|
82
|
+
|
|
83
|
+
declare const isPathValid: (pathname: string) => boolean
|
|
84
|
+
|
|
85
|
+
export { isPathValid }
|
|
86
|
+
export default ignore
|