@teammy/server 0.1.5 → 0.1.6
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/dist/main.js +9835 -6799
- package/dist/native-pi-entry.js +14 -1
- package/dist/project-pi-entry.js +46 -8
- package/dist/runtime/workflows/task-bootstrap/prompt.md +2 -0
- package/dist/web/assets/{Assistant-B3h2yQF3.css → Assistant-4yZWjYm-.css} +1 -1
- package/dist/web/assets/Assistant-BNVXOHQZ.js +1 -0
- package/dist/web/assets/Dashboard-zKTK6EZD.js +1 -0
- package/dist/web/assets/Files-DI98WkdW.js +1 -0
- package/dist/web/assets/{Markdown-oZagG-wy.js → Markdown-D3cU0ani.js} +4 -4
- package/dist/web/assets/Materials-CK-mbNmo.css +1 -0
- package/dist/web/assets/Materials-CWptgAHz.js +6 -0
- package/dist/web/assets/Sessions-DiDwqXLI.js +1 -0
- package/dist/web/assets/WorkspaceTree-DeAA1QtV.js +1 -0
- package/dist/web/assets/{file-links-CD346_jf.js → file-links-GfCXWkEh.js} +1 -1
- package/dist/web/assets/index-BwEl1PIa.js +66 -0
- package/dist/web/assets/{index-Be5hGscJ.css → index-CTIAGUGG.css} +1 -1
- package/dist/web/downloads/teammy-skill.zip +0 -0
- package/dist/web/index.html +2 -2
- package/node_modules/@isaacs/nonrecursive-glob-match/LICENSE.md +55 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/README.md +333 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts +114 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js +762 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js +142 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/commonjs/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts +114 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js +758 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/index.min.js.map +7 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts +4 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.d.ts.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js +138 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/dist/esm/parse-class.js.map +1 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/package.json +56 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/index.ts +900 -0
- package/node_modules/@isaacs/nonrecursive-glob-match/src/parse-class.ts +158 -0
- package/node_modules/glob/README.md +388 -214
- package/node_modules/glob/dist/commonjs/glob.d.ts +20 -11
- package/node_modules/glob/dist/commonjs/glob.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/glob.js +22 -29
- package/node_modules/glob/dist/commonjs/glob.js.map +1 -1
- package/node_modules/glob/dist/commonjs/has-magic.d.ts +1 -1
- package/node_modules/glob/dist/commonjs/has-magic.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/has-magic.js +1 -4
- package/node_modules/glob/dist/commonjs/has-magic.js.map +1 -1
- package/node_modules/glob/dist/commonjs/ignore.d.ts +16 -4
- package/node_modules/glob/dist/commonjs/ignore.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/ignore.js +24 -4
- package/node_modules/glob/dist/commonjs/ignore.js.map +1 -1
- package/node_modules/glob/dist/commonjs/index.d.ts +3 -2
- package/node_modules/glob/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/index.js.map +1 -1
- package/node_modules/glob/dist/commonjs/index.min.js +2 -3
- package/node_modules/glob/dist/commonjs/index.min.js.map +4 -4
- package/node_modules/glob/dist/commonjs/pattern.d.ts +10 -3
- package/node_modules/glob/dist/commonjs/pattern.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/pattern.js +27 -15
- package/node_modules/glob/dist/commonjs/pattern.js.map +1 -1
- package/node_modules/glob/dist/commonjs/processor.d.ts +23 -10
- package/node_modules/glob/dist/commonjs/processor.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/processor.js +36 -23
- package/node_modules/glob/dist/commonjs/processor.js.map +1 -1
- package/node_modules/glob/dist/commonjs/walker.d.ts +19 -17
- package/node_modules/glob/dist/commonjs/walker.d.ts.map +1 -1
- package/node_modules/glob/dist/commonjs/walker.js +50 -35
- package/node_modules/glob/dist/commonjs/walker.js.map +1 -1
- package/node_modules/glob/dist/esm/glob.d.ts +20 -11
- package/node_modules/glob/dist/esm/glob.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/glob.js +22 -29
- package/node_modules/glob/dist/esm/glob.js.map +1 -1
- package/node_modules/glob/dist/esm/has-magic.d.ts +1 -1
- package/node_modules/glob/dist/esm/has-magic.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/has-magic.js +1 -4
- package/node_modules/glob/dist/esm/has-magic.js.map +1 -1
- package/node_modules/glob/dist/esm/ignore.d.ts +16 -4
- package/node_modules/glob/dist/esm/ignore.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/ignore.js +25 -5
- package/node_modules/glob/dist/esm/ignore.js.map +1 -1
- package/node_modules/glob/dist/esm/index.d.ts +3 -2
- package/node_modules/glob/dist/esm/index.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/index.js.map +1 -1
- package/node_modules/glob/dist/esm/index.min.js +2 -3
- package/node_modules/glob/dist/esm/index.min.js.map +4 -4
- package/node_modules/glob/dist/esm/pattern.d.ts +10 -3
- package/node_modules/glob/dist/esm/pattern.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/pattern.js +27 -15
- package/node_modules/glob/dist/esm/pattern.js.map +1 -1
- package/node_modules/glob/dist/esm/processor.d.ts +23 -10
- package/node_modules/glob/dist/esm/processor.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/processor.js +36 -23
- package/node_modules/glob/dist/esm/processor.js.map +1 -1
- package/node_modules/glob/dist/esm/walker.d.ts +19 -17
- package/node_modules/glob/dist/esm/walker.d.ts.map +1 -1
- package/node_modules/glob/dist/esm/walker.js +51 -36
- package/node_modules/glob/dist/esm/walker.js.map +1 -1
- package/node_modules/glob/package.json +28 -12
- package/node_modules/glob/src/glob.ts +655 -0
- package/node_modules/glob/src/has-magic.ts +23 -0
- package/node_modules/glob/src/ignore.ts +162 -0
- package/node_modules/glob/src/index.ts +225 -0
- package/node_modules/glob/src/pattern.ts +286 -0
- package/node_modules/glob/src/processor.ts +333 -0
- package/node_modules/glob/src/walker.ts +523 -0
- package/node_modules/minimatch/README.md +125 -107
- package/node_modules/minimatch/dist/commonjs/index.d.ts +49 -38
- package/node_modules/minimatch/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/commonjs/index.js +782 -359
- package/node_modules/minimatch/dist/commonjs/index.js.map +1 -1
- package/node_modules/minimatch/dist/esm/index.d.ts +49 -38
- package/node_modules/minimatch/dist/esm/index.d.ts.map +1 -1
- package/node_modules/minimatch/dist/esm/index.js +781 -356
- package/node_modules/minimatch/dist/esm/index.js.map +1 -1
- package/node_modules/minimatch/package.json +5 -4
- package/node_modules/path-scurry/README.md +0 -1
- package/node_modules/path-scurry/dist/commonjs/index.d.ts +7 -0
- package/node_modules/path-scurry/dist/commonjs/index.d.ts.map +1 -1
- package/node_modules/path-scurry/dist/commonjs/index.js +59 -21
- package/node_modules/path-scurry/dist/commonjs/index.js.map +1 -1
- package/node_modules/path-scurry/dist/esm/index.d.ts +7 -0
- package/node_modules/path-scurry/dist/esm/index.d.ts.map +1 -1
- package/node_modules/path-scurry/dist/esm/index.js +42 -14
- package/node_modules/path-scurry/dist/esm/index.js.map +1 -1
- package/node_modules/path-scurry/package.json +4 -4
- package/package.json +2 -1
- package/dist/web/assets/Assistant-Dm_p8EZl.js +0 -1
- package/dist/web/assets/Dashboard-fwW9NxcC.js +0 -1
- package/dist/web/assets/Files-D-KCDWmO.js +0 -1
- package/dist/web/assets/Sessions-BQhGiLvz.js +0 -1
- package/dist/web/assets/WorkspaceTree-B9733pV3.js +0 -1
- package/dist/web/assets/index-BiiPuwDi.js +0 -66
- package/node_modules/minimatch/dist/commonjs/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/commonjs/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/ast.js +0 -845
- package/node_modules/minimatch/dist/commonjs/ast.js.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/commonjs/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js +0 -150
- package/node_modules/minimatch/dist/commonjs/brace-expressions.js.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.d.ts +0 -22
- package/node_modules/minimatch/dist/esm/ast.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/ast.js +0 -841
- package/node_modules/minimatch/dist/esm/ast.js.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts +0 -8
- package/node_modules/minimatch/dist/esm/brace-expressions.d.ts.map +0 -1
- package/node_modules/minimatch/dist/esm/brace-expressions.js +0 -146
- package/node_modules/minimatch/dist/esm/brace-expressions.js.map +0 -1
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
// translate the various posix character classes into unicode properties
|
|
2
|
+
// this works across all unicode locales
|
|
3
|
+
|
|
4
|
+
// { <posix class>: [<translation>, negated]
|
|
5
|
+
const posixClasses: { [k: string]: [e: string, n?: boolean] } = {
|
|
6
|
+
'[:alnum:]': ['\\p{L}\\p{Nl}\\p{Nd}'],
|
|
7
|
+
'[:alpha:]': ['\\p{L}\\p{Nl}'],
|
|
8
|
+
'[:ascii:]': ['\\x' + '00-\\x' + '7f'],
|
|
9
|
+
'[:blank:]': ['\\p{Zs}\\t'],
|
|
10
|
+
'[:cntrl:]': ['\\p{Cc}'],
|
|
11
|
+
'[:digit:]': ['\\p{Nd}'],
|
|
12
|
+
'[:graph:]': ['\\p{Z}\\p{C}', true],
|
|
13
|
+
'[:lower:]': ['\\p{Ll}'],
|
|
14
|
+
'[:print:]': ['\\p{C}', true],
|
|
15
|
+
'[:punct:]': ['\\p{P}\\p{S}'],
|
|
16
|
+
'[:space:]': ['\\p{Z}\\t\\r\\n\\v\\f'],
|
|
17
|
+
'[:upper:]': ['\\p{Lu}'],
|
|
18
|
+
'[:word:]': ['\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}'],
|
|
19
|
+
'[:xdigit:]': ['A-Fa-f0-9'],
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
// only need to escape a few things inside of brace expressions
|
|
23
|
+
// escapes: [ \ ] -
|
|
24
|
+
const braceEscape = (s: string) => s.replace(/[[\]\\-]/g, '\\$&')
|
|
25
|
+
|
|
26
|
+
export type ParseClassResult = [re: RegExp, consumed: number]
|
|
27
|
+
|
|
28
|
+
export type Form = 'NFC' | 'NFD' | 'NFKC' | 'NFKD'
|
|
29
|
+
|
|
30
|
+
const noMatch = /$./
|
|
31
|
+
|
|
32
|
+
// Takes a glob string at a posix brace expression. Returns a RegExp
|
|
33
|
+
// that tests one character, and the number of glob chars consumed.
|
|
34
|
+
// If the class is not closed, consumed is 0, and the `[` must be
|
|
35
|
+
// treated as a literal character.
|
|
36
|
+
// Out of order ranges are removed. If nothing is left, the RegExp
|
|
37
|
+
// is `/$./`, and the rest of the glob is consumed, so that the
|
|
38
|
+
// whole glob cannot match.
|
|
39
|
+
export const parseClass = (
|
|
40
|
+
glob: string,
|
|
41
|
+
position: number,
|
|
42
|
+
nocase: boolean = false,
|
|
43
|
+
form?: Form,
|
|
44
|
+
): ParseClassResult => {
|
|
45
|
+
// normalize one class member, if it stays one code point
|
|
46
|
+
const norm = (c: string) => {
|
|
47
|
+
const n = form ? c.normalize(form) : c
|
|
48
|
+
return [...n].length === 1 ? n : c
|
|
49
|
+
}
|
|
50
|
+
const pos = position
|
|
51
|
+
/* c8 ignore start */
|
|
52
|
+
if (glob.charAt(pos) !== '[') {
|
|
53
|
+
throw new Error('not in a brace expression')
|
|
54
|
+
}
|
|
55
|
+
/* c8 ignore stop */
|
|
56
|
+
const ranges: string[] = []
|
|
57
|
+
const negs: string[] = []
|
|
58
|
+
|
|
59
|
+
let i = pos + 1
|
|
60
|
+
let sawStart = false
|
|
61
|
+
let escaping = false
|
|
62
|
+
let negate = false
|
|
63
|
+
let endPos = pos
|
|
64
|
+
let rangeStart = ''
|
|
65
|
+
WHILE: while (i < glob.length) {
|
|
66
|
+
const c = String.fromCodePoint(glob.codePointAt(i)!)
|
|
67
|
+
if ((c === '!' || c === '^') && i === pos + 1) {
|
|
68
|
+
negate = true
|
|
69
|
+
i++
|
|
70
|
+
continue
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
if (c === ']' && sawStart && !escaping) {
|
|
74
|
+
endPos = i + 1
|
|
75
|
+
break
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
sawStart = true
|
|
79
|
+
if (c === '\\') {
|
|
80
|
+
if (!escaping) {
|
|
81
|
+
escaping = true
|
|
82
|
+
i++
|
|
83
|
+
continue
|
|
84
|
+
}
|
|
85
|
+
// escaped \ char, fall through and treat like normal char
|
|
86
|
+
}
|
|
87
|
+
if (c === '[' && !escaping) {
|
|
88
|
+
// either a posix class, a collation equivalent, or just a [
|
|
89
|
+
for (const [cls, [unip, neg]] of Object.entries(posixClasses)) {
|
|
90
|
+
if (glob.startsWith(cls, i)) {
|
|
91
|
+
// invalid, [a-[] is fine, but not [a-[:alpha]]
|
|
92
|
+
if (rangeStart) {
|
|
93
|
+
return [noMatch, glob.length - pos]
|
|
94
|
+
}
|
|
95
|
+
i += cls.length
|
|
96
|
+
if (neg) negs.push(unip)
|
|
97
|
+
else ranges.push(unip)
|
|
98
|
+
continue WHILE
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
// now it's just a normal character, effectively
|
|
104
|
+
escaping = false
|
|
105
|
+
const n = norm(c)
|
|
106
|
+
if (rangeStart) {
|
|
107
|
+
// throw this range away if it's not valid, but others
|
|
108
|
+
// can still match.
|
|
109
|
+
if (n.codePointAt(0)! > rangeStart.codePointAt(0)!) {
|
|
110
|
+
ranges.push(braceEscape(rangeStart) + '-' + braceEscape(n))
|
|
111
|
+
} else if (n === rangeStart) {
|
|
112
|
+
ranges.push(braceEscape(n))
|
|
113
|
+
}
|
|
114
|
+
rangeStart = ''
|
|
115
|
+
i += c.length
|
|
116
|
+
continue
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
// now might be the start of a range.
|
|
120
|
+
// can be either c-d or c-] or c<more...>] or c] at this point
|
|
121
|
+
if (glob.startsWith('-]', i + c.length)) {
|
|
122
|
+
ranges.push(braceEscape(n + '-'))
|
|
123
|
+
i += c.length + 1
|
|
124
|
+
continue
|
|
125
|
+
}
|
|
126
|
+
if (glob.startsWith('-', i + c.length)) {
|
|
127
|
+
rangeStart = n
|
|
128
|
+
i += c.length + 1
|
|
129
|
+
continue
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
// not the start of a range, just a single character
|
|
133
|
+
ranges.push(braceEscape(n))
|
|
134
|
+
i += c.length
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
if (endPos < i) {
|
|
138
|
+
// didn't see the end of the class, not a valid class,
|
|
139
|
+
// but might still be valid as a literal match.
|
|
140
|
+
return [noMatch, 0]
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
// if we got no ranges and no negates, then we have a range that
|
|
144
|
+
// cannot possibly match anything, and that poisons the whole glob
|
|
145
|
+
if (!ranges.length && !negs.length) {
|
|
146
|
+
return [noMatch, glob.length - pos]
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
const sranges = '[' + (negate ? '^' : '') + ranges.join('') + ']'
|
|
150
|
+
const snegs = '[' + (negate ? '' : '^') + negs.join('') + ']'
|
|
151
|
+
const comb =
|
|
152
|
+
'^' +
|
|
153
|
+
(ranges.length && negs.length ? '(' + sranges + '|' + snegs + ')'
|
|
154
|
+
: ranges.length ? sranges
|
|
155
|
+
: snegs)
|
|
156
|
+
|
|
157
|
+
return [new RegExp(comb, nocase ? 'iu' : 'u'), endPos - pos]
|
|
158
|
+
}
|