maskweaver 0.8.16 → 0.9.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/README.ko.md +640 -657
- package/README.md +672 -689
- package/assets/commands/meta/commands.json +254 -0
- package/assets/commands/weave-agents.md +62 -0
- package/assets/commands/weave-approve.md +61 -0
- package/assets/commands/weave-build.md +99 -0
- package/assets/commands/weave-help.md +112 -158
- package/assets/commands/weave-interview.md +121 -0
- package/assets/commands/weave-map.md +109 -0
- package/assets/commands/weave-troubleshoot.md +57 -0
- package/dist/plugin/index.d.ts +5 -1
- package/dist/plugin/index.d.ts.map +1 -1
- package/dist/plugin/index.js +20 -17
- package/dist/plugin/index.js.map +1 -1
- package/dist/plugin/tools/command-registry.d.ts +51 -0
- package/dist/plugin/tools/command-registry.d.ts.map +1 -0
- package/dist/plugin/tools/command-registry.js +348 -0
- package/dist/plugin/tools/command-registry.js.map +1 -0
- package/dist/plugin/tools/slashcommand.d.ts +1 -1
- package/dist/plugin/tools/slashcommand.d.ts.map +1 -1
- package/dist/plugin/tools/slashcommand.js +47 -193
- package/dist/plugin/tools/slashcommand.js.map +1 -1
- package/dist/plugin/tools/weave.d.ts +14 -35
- package/dist/plugin/tools/weave.d.ts.map +1 -1
- package/dist/plugin/tools/weave.js +247 -213
- package/dist/plugin/tools/weave.js.map +1 -1
- package/package.json +142 -142
- package/assets/commands/weave-approve-plan.md +0 -57
- package/assets/commands/weave-design.md +0 -296
- package/assets/commands/weave-flow.md +0 -48
- package/assets/commands/weave-plan.md +0 -15
- package/assets/commands/weave-research.md +0 -51
- package/assets/commands/weave-spec.md +0 -227
- package/assets/commands/weave-switch.md +0 -170
|
@@ -15,180 +15,31 @@ const tool = (input) => input;
|
|
|
15
15
|
import * as fs from 'node:fs';
|
|
16
16
|
import * as path from 'node:path';
|
|
17
17
|
import { parse as parseYaml } from 'yaml';
|
|
18
|
+
import { loadCommandsJson } from './command-registry.js';
|
|
18
19
|
// ============================================================================
|
|
19
|
-
// Built-in Commands (
|
|
20
|
+
// Built-in Commands from Registry (commands.json)
|
|
20
21
|
// ============================================================================
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
3. 동작이 정답 (Working > Perfect)
|
|
43
|
-
|
|
44
|
-
---
|
|
45
|
-
|
|
46
|
-
## 명령어 목록
|
|
47
|
-
|
|
48
|
-
| 명령어 | 설명 |
|
|
49
|
-
|--------|------|
|
|
50
|
-
| \`weave init\` | 워크스페이스 초기화 + GDC 연동 점검 |
|
|
51
|
-
| \`weave research [docs]\` | 문서+워크스페이스 깊이 분석 + research 아티팩트 생성 |
|
|
52
|
-
| \`weave prepare [docs]\` | research + spec + plan 생성 (큰 계획은 자동 분할) |
|
|
53
|
-
| \`weave refine-plan\` | plan-notes를 active plan에 자동 반영 |
|
|
54
|
-
| \`weave approve-plan\` | 구현 전 계획 승인 게이트 통과 |
|
|
55
|
-
| \`weave design [docs]\` | 요구사항 분석 → Phase 계획 (큰 계획은 자동 분할) |
|
|
56
|
-
| \`weave craft [id]\` | Phase 실행 준비 (실행 컨텍스트 생성) |
|
|
57
|
-
| \`weave flow [docs]\` | prepare -> auto-approve -> craft -> verify -> finalize |
|
|
58
|
-
| \`weave status\` | 진행 상황 확인 |
|
|
59
|
-
| \`weave help\` | 이 도움말 |
|
|
60
|
-
| \`weave sync-agents\` | 설정 파일 기준으로 더미 에이전트 파일 강제 재생성 |
|
|
61
|
-
| \`weave init-config\` | 기본 설정 파일(maskweaver.config.json) 생성 |
|
|
62
|
-
|
|
63
|
-
**Note**: weave 도구를 직접 호출할 수도 있습니다: \`weave command=design docsPath=docs/\`
|
|
64
|
-
`,
|
|
65
|
-
},
|
|
66
|
-
'weave-init': {
|
|
67
|
-
metadata: {
|
|
68
|
-
name: 'weave-init',
|
|
69
|
-
description: 'Weave 워크플로우 초기화 + GDC 연동 점검',
|
|
70
|
-
usage: '/weave init',
|
|
71
|
-
examples: ['/weave init'],
|
|
72
|
-
},
|
|
73
|
-
content: `Use the weave tool with command=init.
|
|
74
|
-
|
|
75
|
-
Example: weave command=init`,
|
|
76
|
-
},
|
|
77
|
-
'weave-design': {
|
|
78
|
-
metadata: {
|
|
79
|
-
name: 'weave-design',
|
|
80
|
-
description: '요구사항 분석 및 Phase 계획 수립',
|
|
81
|
-
usage: '/weave design [docsPath]',
|
|
82
|
-
examples: ['/weave design docs/', '/weave design wiki/'],
|
|
83
|
-
},
|
|
84
|
-
content: `Use the weave tool with command=design and specify docsPath.
|
|
85
|
-
|
|
86
|
-
Example: weave command=design docsPath="docs/"`,
|
|
87
|
-
},
|
|
88
|
-
'weave-research': {
|
|
89
|
-
metadata: {
|
|
90
|
-
name: 'weave-research',
|
|
91
|
-
description: '문서+워크스페이스를 깊게 조사하고 research 아티팩트 생성',
|
|
92
|
-
usage: '/weave research [docsPath]',
|
|
93
|
-
examples: ['/weave research docs/', '/weave research wiki/spec.md'],
|
|
94
|
-
},
|
|
95
|
-
content: `Use the weave tool with command=research and specify docsPath.
|
|
96
|
-
This command investigates both docs and current workspace context.
|
|
97
|
-
|
|
98
|
-
Example: weave command=research docsPath="docs/"`,
|
|
99
|
-
},
|
|
100
|
-
'weave-prepare': {
|
|
101
|
-
metadata: {
|
|
102
|
-
name: 'weave-prepare',
|
|
103
|
-
description: 'research + spec + plan 생성',
|
|
104
|
-
usage: '/weave prepare [docsPath]',
|
|
105
|
-
examples: ['/weave prepare docs/'],
|
|
106
|
-
},
|
|
107
|
-
content: `Use the weave tool with command=prepare and specify docsPath.
|
|
108
|
-
|
|
109
|
-
Example: weave command=prepare docsPath="docs/"`,
|
|
110
|
-
},
|
|
111
|
-
'weave-refine-plan': {
|
|
112
|
-
metadata: {
|
|
113
|
-
name: 'weave-refine-plan',
|
|
114
|
-
description: 'plan-notes를 active plan에 자동 반영',
|
|
115
|
-
usage: '/weave refine-plan',
|
|
116
|
-
examples: ['/weave refine-plan'],
|
|
117
|
-
},
|
|
118
|
-
content: `Use the weave tool with command=refine-plan.
|
|
119
|
-
|
|
120
|
-
Example: weave command=refine-plan`,
|
|
121
|
-
},
|
|
122
|
-
'weave-approve-plan': {
|
|
123
|
-
metadata: {
|
|
124
|
-
name: 'weave-approve-plan',
|
|
125
|
-
description: '구현 전 계획 승인 게이트 통과',
|
|
126
|
-
usage: '/weave approve-plan',
|
|
127
|
-
examples: ['/weave approve-plan'],
|
|
128
|
-
},
|
|
129
|
-
content: `Use the weave tool with command=approve-plan.
|
|
130
|
-
|
|
131
|
-
Example: weave command=approve-plan`,
|
|
132
|
-
},
|
|
133
|
-
'weave-craft': {
|
|
134
|
-
metadata: {
|
|
135
|
-
name: 'weave-craft',
|
|
136
|
-
description: 'Phase 실행 준비 (실행 컨텍스트 생성)',
|
|
137
|
-
usage: '/weave craft [phaseId]',
|
|
138
|
-
examples: ['/weave craft P1', '/weave craft P2'],
|
|
139
|
-
},
|
|
140
|
-
content: `Use the weave tool with command=craft and specify phaseId.
|
|
141
|
-
|
|
142
|
-
Example: weave command=craft phaseId="P1"`,
|
|
143
|
-
},
|
|
144
|
-
'weave-flow': {
|
|
145
|
-
metadata: {
|
|
146
|
-
name: 'weave-flow',
|
|
147
|
-
description: '원커맨드 실행 (prepare -> auto-approve -> craft -> verify -> finalize)',
|
|
148
|
-
usage: '/weave flow [docsPath]',
|
|
149
|
-
examples: ['/weave flow docs/', '/weave flow'],
|
|
150
|
-
},
|
|
151
|
-
content: `Use the weave tool with command=flow.
|
|
152
|
-
|
|
153
|
-
With docs path:
|
|
154
|
-
weave command=flow docsPath="docs/"
|
|
155
|
-
|
|
156
|
-
Continue active plan:
|
|
157
|
-
weave command=flow
|
|
158
|
-
|
|
159
|
-
Note: If plan is not approved yet, flow pauses and asks for:
|
|
160
|
-
weave command=approve-plan`,
|
|
161
|
-
},
|
|
162
|
-
'weave-status': {
|
|
163
|
-
metadata: {
|
|
164
|
-
name: 'weave-status',
|
|
165
|
-
description: '진행 상황 확인',
|
|
166
|
-
usage: '/weave status',
|
|
167
|
-
examples: ['/weave status'],
|
|
168
|
-
},
|
|
169
|
-
content: `Use the weave tool with command=status.
|
|
170
|
-
|
|
171
|
-
Example: weave command=status`,
|
|
172
|
-
},
|
|
173
|
-
'weave-repair': {
|
|
174
|
-
metadata: {
|
|
175
|
-
name: 'weave-repair',
|
|
176
|
-
description: 'Scan and auto-repair corrupted plan YAML files',
|
|
177
|
-
usage: '/weave repair',
|
|
178
|
-
examples: ['/weave repair'],
|
|
179
|
-
},
|
|
180
|
-
content: `Use the weave tool with command=repair to scan and auto-repair all plan YAML files.
|
|
181
|
-
|
|
182
|
-
This command will:
|
|
183
|
-
1. Scan all plan files in .opencode/weave/plans/
|
|
184
|
-
2. Detect YAML corruption (unclosed quotes, tab characters, etc.)
|
|
185
|
-
3. Auto-repair when possible (backup the corrupted file as .corrupted)
|
|
186
|
-
4. Restore from .bak backup if auto-repair fails
|
|
187
|
-
5. Report unrecoverable files that need manual intervention
|
|
188
|
-
|
|
189
|
-
Example: weave command=repair`,
|
|
190
|
-
},
|
|
191
|
-
};
|
|
22
|
+
function getBuiltinCommandsFromRegistry() {
|
|
23
|
+
const registry = loadCommandsJson();
|
|
24
|
+
const builtins = {};
|
|
25
|
+
for (const cmd of registry.commands) {
|
|
26
|
+
const name = `weave-${cmd.name}`;
|
|
27
|
+
const examples = cmd.examples.slice(0, 2).map(ex => {
|
|
28
|
+
const match = ex.match(/weave command=(\S+)/);
|
|
29
|
+
return match ? `/weave ${match[1]}` : `/weave ${cmd.name}`;
|
|
30
|
+
});
|
|
31
|
+
builtins[name] = {
|
|
32
|
+
metadata: {
|
|
33
|
+
name,
|
|
34
|
+
description: cmd.description,
|
|
35
|
+
usage: `/weave ${cmd.name}`,
|
|
36
|
+
examples: examples.length > 0 ? examples : [`/weave ${cmd.name}`],
|
|
37
|
+
},
|
|
38
|
+
content: `Use the weave tool with command=${cmd.name}.\n\nExample: weave command=${cmd.name}`,
|
|
39
|
+
};
|
|
40
|
+
}
|
|
41
|
+
return builtins;
|
|
42
|
+
}
|
|
192
43
|
// ============================================================================
|
|
193
44
|
// Command Discovery
|
|
194
45
|
// ============================================================================
|
|
@@ -240,7 +91,8 @@ function discoverCommandsFromDir(commandsDir, scope) {
|
|
|
240
91
|
}
|
|
241
92
|
return commands;
|
|
242
93
|
}
|
|
243
|
-
function getAllCommands(
|
|
94
|
+
function getAllCommands(assetsDir, projectDir) {
|
|
95
|
+
const BUILTIN_COMMANDS = getBuiltinCommandsFromRegistry();
|
|
244
96
|
// Start with builtin commands
|
|
245
97
|
const commands = Object.entries(BUILTIN_COMMANDS).map(([name, cmd]) => ({
|
|
246
98
|
name,
|
|
@@ -249,7 +101,7 @@ function getAllCommands(assetsDirs, projectDir) {
|
|
|
249
101
|
scope: 'builtin',
|
|
250
102
|
}));
|
|
251
103
|
// Load from package assets
|
|
252
|
-
|
|
104
|
+
if (assetsDir) {
|
|
253
105
|
const packageCommands = discoverCommandsFromDir(path.join(assetsDir, 'commands'), 'package');
|
|
254
106
|
// Package commands override builtins
|
|
255
107
|
for (const cmd of packageCommands) {
|
|
@@ -278,24 +130,26 @@ function getAllCommands(assetsDirs, projectDir) {
|
|
|
278
130
|
// ============================================================================
|
|
279
131
|
// Tool Factory
|
|
280
132
|
// ============================================================================
|
|
281
|
-
export function createSlashcommandTool() {
|
|
133
|
+
export function createSlashcommandTool(assetsDir) {
|
|
134
|
+
const registry = loadCommandsJson();
|
|
135
|
+
const descLines = ['Execute a slash command. Available commands include:'];
|
|
136
|
+
for (const cmd of registry.commands) {
|
|
137
|
+
descLines.push(`- /weave ${cmd.name} - ${cmd.description}`);
|
|
138
|
+
}
|
|
139
|
+
descLines.push('');
|
|
140
|
+
descLines.push('Use command="list" to see all available commands.');
|
|
141
|
+
// Build dynamic shorthand list from registry
|
|
142
|
+
const shorthandSet = new Set();
|
|
143
|
+
for (const cmd of registry.commands) {
|
|
144
|
+
shorthandSet.add(cmd.name);
|
|
145
|
+
for (const alias of cmd.aliases)
|
|
146
|
+
shorthandSet.add(alias);
|
|
147
|
+
for (const alias of cmd.deprecatedAliases)
|
|
148
|
+
shorthandSet.add(alias);
|
|
149
|
+
}
|
|
150
|
+
const shorthandList = Array.from(shorthandSet);
|
|
282
151
|
return {
|
|
283
|
-
description:
|
|
284
|
-
- /weave help - Weave workflow help
|
|
285
|
-
- /weave init - Initialize workspace and probe GDC integration
|
|
286
|
-
- /weave research [docs] - Deep-read docs + workspace and write research artifact
|
|
287
|
-
- /weave design [docs] - Analyze requirements and create plan
|
|
288
|
-
- /weave prepare [docs] - Create research + spec + plan
|
|
289
|
-
- /weave refine-plan - Apply plan-note directives to active plan
|
|
290
|
-
- /weave approve-plan - Approve plan before implementation
|
|
291
|
-
- /weave flow [docs] - One-command path (prepare -> auto-approve -> craft -> verify -> finalize)
|
|
292
|
-
- /weave craft [phaseId] - Prepare phase execution context
|
|
293
|
-
- /weave status - View progress
|
|
294
|
-
- /weave repair - Scan and auto-repair corrupted plan YAML files
|
|
295
|
-
- /weave sync-agents - Force regenerate dummy agent files from config pool
|
|
296
|
-
- /weave init-config - Create default config files with pool template
|
|
297
|
-
|
|
298
|
-
Use command="list" to see all available commands.`,
|
|
152
|
+
description: descLines.join('\n'),
|
|
299
153
|
args: {
|
|
300
154
|
command: z.string()
|
|
301
155
|
.describe('The slash command to execute (without leading /). Examples: "weave-help", "weave-design"'),
|
|
@@ -303,7 +157,7 @@ Use command="list" to see all available commands.`,
|
|
|
303
157
|
execute: async (args, context) => {
|
|
304
158
|
const projectDir = context.worktree;
|
|
305
159
|
// Discover all commands (builtin + package + project)
|
|
306
|
-
const commands = getAllCommands(
|
|
160
|
+
const commands = getAllCommands(assetsDir, projectDir);
|
|
307
161
|
// Handle "list" command
|
|
308
162
|
if (args.command === 'list' || !args.command) {
|
|
309
163
|
const lines = ['# Available Slash Commands\n'];
|
|
@@ -330,7 +184,7 @@ Use command="list" to see all available commands.`,
|
|
|
330
184
|
return helpCmd.content || 'Weave help content not available.';
|
|
331
185
|
}
|
|
332
186
|
}
|
|
333
|
-
else if (
|
|
187
|
+
else if (shorthandList.includes(cmdName)) {
|
|
334
188
|
// Shorthand: "status" -> "weave-status"
|
|
335
189
|
const weaveCmd = commands.find(c => c.name === `weave-${cmdName}`);
|
|
336
190
|
if (weaveCmd) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slashcommand.js","sourceRoot":"","sources":["../../../src/plugin/tools/slashcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,0EAA0E;AAC1E,MAAM,IAAI,GAAG,CAAI,KAAQ,EAAK,EAAE,CAAC,KAAK,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"slashcommand.js","sourceRoot":"","sources":["../../../src/plugin/tools/slashcommand.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,0EAA0E;AAC1E,MAAM,IAAI,GAAG,CAAI,KAAQ,EAAK,EAAE,CAAC,KAAK,CAAC;AAEvC,OAAO,KAAK,EAAE,MAAM,SAAS,CAAC;AAC9B,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAClC,OAAO,EAAE,KAAK,IAAI,SAAS,EAAE,MAAM,MAAM,CAAC;AAC1C,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC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YAEF,IAAI,UAAU,EAAE,CAAC;gBACb,OAAO,UAAU,CAAC,OAAO,IAAI,IAAI,UAAU,CAAC,IAAI,kBAAkB,CAAC;YACvE,CAAC;YAED,uBAAuB;YACvB,MAAM,cAAc,GAAG,QAAQ,CAAC,MAAM,CAClC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,WAAW,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,CAC9C,CAAC;YAEF,IAAI,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBAC5B,MAAM,SAAS,GAAG,cAAc,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;gBACnE,OAAO,wBAAwB,OAAO,oBAAoB,SAAS,GAAG,CAAC;YAC3E,CAAC;YAED,iBAAiB;YACjB,MAAM,SAAS,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;YAC1E,OAAO,aAAa,OAAO,2BAA2B,SAAS,KAAK,CAAC;QACzE,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -8,41 +8,17 @@ import { z } from 'zod';
|
|
|
8
8
|
export declare function createWeaveTool(): {
|
|
9
9
|
description: string;
|
|
10
10
|
args: {
|
|
11
|
-
command: z.
|
|
12
|
-
|
|
13
|
-
record: "record";
|
|
11
|
+
command: z.ZodString;
|
|
12
|
+
action: z.ZodOptional<z.ZodEnum<{
|
|
14
13
|
status: "status";
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
prepare: "prepare";
|
|
24
|
-
"refine-plan": "refine-plan";
|
|
25
|
-
"approve-plan": "approve-plan";
|
|
26
|
-
flow: "flow";
|
|
27
|
-
craft: "craft";
|
|
28
|
-
"build-resume": "build-resume";
|
|
29
|
-
archive: "archive";
|
|
30
|
-
"loop-run": "loop-run";
|
|
31
|
-
"loop-start": "loop-start";
|
|
32
|
-
"loop-step": "loop-step";
|
|
33
|
-
"loop-status": "loop-status";
|
|
34
|
-
"loop-stop": "loop-stop";
|
|
35
|
-
"loop-list": "loop-list";
|
|
36
|
-
"loop-sync": "loop-sync";
|
|
37
|
-
"loop-watchdog": "loop-watchdog";
|
|
38
|
-
"loop-poll": "loop-poll";
|
|
39
|
-
"loop-operator": "loop-operator";
|
|
40
|
-
troubleshoot: "troubleshoot";
|
|
41
|
-
help: "help";
|
|
42
|
-
repair: "repair";
|
|
43
|
-
"sync-agents": "sync-agents";
|
|
44
|
-
"init-config": "init-config";
|
|
45
|
-
}>;
|
|
14
|
+
list: "list";
|
|
15
|
+
sync: "sync";
|
|
16
|
+
run: "run";
|
|
17
|
+
stop: "stop";
|
|
18
|
+
resume: "resume";
|
|
19
|
+
}>>;
|
|
20
|
+
sync: z.ZodOptional<z.ZodBoolean>;
|
|
21
|
+
init: z.ZodOptional<z.ZodBoolean>;
|
|
46
22
|
docsPath: z.ZodOptional<z.ZodString>;
|
|
47
23
|
phaseId: z.ZodOptional<z.ZodString>;
|
|
48
24
|
projectName: z.ZodOptional<z.ZodString>;
|
|
@@ -89,7 +65,10 @@ export declare function createWeaveTool(): {
|
|
|
89
65
|
phaseIds: z.ZodOptional<z.ZodString>;
|
|
90
66
|
};
|
|
91
67
|
execute: (args: {
|
|
92
|
-
command:
|
|
68
|
+
command: string;
|
|
69
|
+
action?: "run" | "status" | "stop" | "list" | "resume" | "sync";
|
|
70
|
+
sync?: boolean;
|
|
71
|
+
init?: boolean;
|
|
93
72
|
docsPath?: string;
|
|
94
73
|
phaseId?: string;
|
|
95
74
|
projectName?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"weave.d.ts","sourceRoot":"","sources":["../../../src/plugin/tools/weave.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"weave.d.ts","sourceRoot":"","sources":["../../../src/plugin/tools/weave.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAgFxB,wBAAgB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAuGb;QACF,OAAO,EAAE,MAAM,CAAC;QAChB,MAAM,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;QAChE,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,IAAI,CAAC,EAAE,OAAO,CAAC;QACf,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE,MAAM,CAAC;QAClB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,cAAc,CAAC,EAAE,MAAM,CAAC;QACxB,aAAa,CAAC,EAAE,MAAM,CAAC;QACvB,UAAU,CAAC,EAAE,MAAM,CAAC;QACpB,SAAS,CAAC,EAAE,MAAM,CAAC;QACnB,UAAU,CAAC,EAAE,OAAO,CAAC;QACrB,cAAc,CAAC,EAAE,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC;QACjE,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,cAAc,CAAC,EAAE,OAAO,CAAC;QACzB,YAAY,CAAC,EAAE,OAAO,CAAC;QACvB,UAAU,CAAC,EA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