@buaa_smat/hometrans 26.0.7 → 26.0.8-devecocli.1
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/agents/a2h-executor.md +37 -0
- package/devecocli-plugin/common.ts +2370 -0
- package/devecocli-plugin/content-resolver.ts +363 -0
- package/devecocli-plugin/install.ts +72 -0
- package/devecocli-plugin/uninstall.ts +26 -0
- package/devecocli-plugin/update.ts +77 -0
- package/i18n/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +2 -2
- package/i18n/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +1 -1
- package/i18n/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +13 -6
- package/i18n/skills/a2h-app-migrate/SKILL.md +2 -2
- package/i18n/skills/a2h-app-migrate/references/workflow.yaml +27 -4
- package/i18n/skills/a2h-app-migrate/scripts/opencode_depth.mjs +418 -0
- package/i18n/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
- package/i18n/skills/a2h-batch-ui-align/SKILL.md +7 -7
- package/i18n/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -1
- package/i18n/skills/a2h-batch-ui-align/references/cards/state.md +20 -2
- package/i18n/skills/a2h-batch-ui-align/references/cards/widgets.md +2 -2
- package/i18n/skills/a2h-batch-ui-align/references/checker-rules.md +3 -3
- package/i18n/skills/a2h-batch-ui-align/references/conversion-procedure.md +3 -1
- package/i18n/skills/a2h-batch-ui-align/references/incremental-scope.md +2 -2
- package/i18n/skills/a2h-batch-ui-align/references/step3-capture.md +10 -6
- package/i18n/skills/a2h-batch-ui-align/references/step5-convert.md +13 -9
- package/i18n/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +59 -7
- package/i18n/skills/a2h-batch-ui-align/scripts/group_pack.mjs +3 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/interactions.mjs +186 -0
- package/i18n/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +33 -7
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +83 -22
- package/i18n/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +39 -5
- package/i18n/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +25 -1
- package/i18n/skills/a2h-page-specgen/SKILL.md +1 -1
- package/i18n/skills/a2h-page-specgen/references/gates.md +3 -1
- package/i18n/skills/a2h-page-specgen/references/scenario-authoring.md +11 -11
- package/i18n/skills/a2h-page-specgen/references/spec-template.md +3 -3
- package/i18n/skills/a2h-page-specgen/scripts/contract-calls.mjs +40 -3
- package/i18n/skills/a2h-page-specgen/scripts/entry-evidence.mjs +73 -5
- package/i18n/skills/a2h-page-specgen/scripts/gate.mjs +144 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +10 -10
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +1 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +11 -11
- package/i18n/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +45 -1
- package/i18n/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +100 -0
- package/i18n/skills/a2h-page-specgen/scripts/test/gate.test.mjs +132 -3
- package/i18n/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +36 -1
- package/i18n/skills/a2h-spec-design-pipeline/SKILL.md +1 -1
- package/i18n/skills/a2h-spec-design-pipeline/references/coding-loop.md +16 -0
- package/i18n/skills/a2h-utg-static/SKILL.md +2 -0
- package/index.js +1741 -0
- package/package.json +8 -8
- package/platforms/atomcode/agents/a2h-executor.frontmatter.md +6 -0
- package/platforms/codebuddy/agents/a2h-executor.frontmatter.md +5 -0
- package/platforms/codebuddy/skills/a2h-app-migrate/SKILL.unique.md +2 -2
- package/platforms/deveco/agents/a2h-executor.frontmatter.md +7 -0
- package/platforms/deveco/agents/build-fixer.frontmatter.md +0 -2
- package/platforms/deveco/agents/code-reviewer.frontmatter.md +0 -2
- package/platforms/deveco/agents/model-render-worker.frontmatter.md +0 -2
- package/platforms/deveco/agents/model-worker.frontmatter.md +0 -2
- package/platforms/deveco/agents/specgen-worker.frontmatter.md +0 -2
- package/platforms/deveco/skills/a2h-app-migrate/SKILL.unique.md +1 -1
- package/platforms/opencode/agents/a2h-executor.frontmatter.md +7 -0
- package/platforms/opencode/agents/build-fixer.frontmatter.md +0 -2
- package/platforms/opencode/agents/code-reviewer.frontmatter.md +0 -2
- package/platforms/opencode/agents/model-render-worker.frontmatter.md +0 -2
- package/platforms/opencode/agents/model-worker.frontmatter.md +0 -2
- package/platforms/opencode/agents/specgen-worker.frontmatter.md +0 -2
- package/platforms/opencode/skills/a2h-app-migrate/SKILL.unique.md +13 -6
- package/plugin.jsonc +12 -0
- package/skills/a2h-app-migrate/SKILL.md +29 -3
- package/skills/a2h-app-migrate/references/host-rules.md +33 -0
- package/skills/a2h-app-migrate/references/workflow.yaml +24 -4
- package/skills/a2h-app-migrate/scripts/opencode_depth.mjs +418 -0
- package/skills/a2h-app-migrate/test/test_executor_header_sync.mjs +78 -0
- package/skills/a2h-app-migrate/test/test_opencode_depth.mjs +312 -0
- package/skills/a2h-app-migrate/tools/dag.mjs +267 -0
- package/skills/a2h-arkts-logic-coder/references/ISSUES.md +2 -0
- package/skills/a2h-batch-ui-align/SKILL.md +7 -7
- package/skills/a2h-batch-ui-align/references/cards/alignment.md +1 -1
- package/skills/a2h-batch-ui-align/references/cards/state.md +20 -2
- package/skills/a2h-batch-ui-align/references/cards/widgets.md +2 -2
- package/skills/a2h-batch-ui-align/references/checker-rules.md +3 -3
- package/skills/a2h-batch-ui-align/references/conversion-procedure.md +3 -1
- package/skills/a2h-batch-ui-align/references/host-dispatch.md +5 -5
- package/skills/a2h-batch-ui-align/references/incremental-scope.md +2 -2
- package/skills/a2h-batch-ui-align/references/step3-capture.md +10 -6
- package/skills/a2h-batch-ui-align/references/step5-convert.md +13 -9
- package/skills/a2h-batch-ui-align/scripts/build_conversion_set.mjs +59 -7
- package/skills/a2h-batch-ui-align/scripts/group_pack.mjs +3 -0
- package/skills/a2h-batch-ui-align/scripts/group_pass.mjs +3 -2
- package/skills/a2h-batch-ui-align/scripts/group_queue.mjs +139 -23
- package/skills/a2h-batch-ui-align/scripts/host_env.mjs +32 -8
- package/skills/a2h-batch-ui-align/scripts/interactions.mjs +186 -0
- package/skills/a2h-batch-ui-align/scripts/phase5_check.mjs +33 -7
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/hit_test.ts +83 -22
- package/skills/a2h-batch-ui-align/scripts/static_check/rules/media_tint.ts +39 -5
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_hit_test.test.mjs +82 -0
- package/skills/a2h-batch-ui-align/scripts/tests/arkts_static_check_scroll_padding_raster.test.mjs +25 -1
- package/skills/a2h-batch-ui-align/scripts/tests/group_queue.test.mjs +184 -2
- package/skills/a2h-batch-ui-align/scripts/tests/host_env.test.mjs +33 -0
- package/skills/a2h-batch-ui-align/scripts/tests/interactions.test.mjs +258 -0
- package/skills/a2h-page-specgen/SKILL.md +1 -1
- package/skills/a2h-page-specgen/references/evidence.md +15 -0
- package/skills/a2h-page-specgen/references/gates.md +3 -1
- package/skills/a2h-page-specgen/references/scenario-authoring.md +10 -10
- package/skills/a2h-page-specgen/references/spec-template.md +2 -2
- package/skills/a2h-page-specgen/scripts/contract-calls.mjs +40 -3
- package/skills/a2h-page-specgen/scripts/entry-evidence.mjs +73 -5
- package/skills/a2h-page-specgen/scripts/gate.mjs +141 -0
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.prompt.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/PlainDisplayPage.worker.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.prompt.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/SilentFailurePage.worker.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.json +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.post-review.json +1 -1
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.prompt.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/UniAppSourcePage.worker.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.prompt.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/acceptance/authoring/ValidatedSearchPage.worker.md +10 -10
- package/skills/a2h-page-specgen/scripts/test/contract-calls.test.mjs +45 -1
- package/skills/a2h-page-specgen/scripts/test/entry-evidence.test.mjs +100 -0
- package/skills/a2h-page-specgen/scripts/test/gate.test.mjs +104 -3
- package/skills/a2h-resource-convert/references/conversion-rules.md +2 -0
- package/skills/a2h-resource-convert/scripts/a2h_resource_convert.ts +36 -1
- package/skills/a2h-resource-convert/scripts/tests/adaptive_icon.test.mjs +42 -0
- package/skills/a2h-spec-design-pipeline/SKILL.md +1 -1
- package/skills/a2h-spec-design-pipeline/references/coding-loop.md +16 -0
- package/skills/a2h-spec-design-pipeline/references/execution-model.md +2 -2
- package/skills/a2h-spec-design-pipeline/references/static-defect-gate.md +5 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleMeta.json +5 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/config/ruleSet.json +4 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-cn.md +2 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-runtime-pitfall-en.md +3 -1
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-v2-observation-cn.md +105 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/document/checker/hometrans/arkui-v2-observation-en.md +122 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIRuntimePitfallCheck.js +4 -4
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/checker/ArkUIV2ObservationCheck.js +1862 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/lib/index.js +2 -0
- package/skills/a2h-spec-design-pipeline/rules/migration-rules/package.json +1 -1
- package/skills/a2h-spec-design-pipeline/scripts/dispatch/wait.mjs +15 -2
- package/skills/a2h-spec-design-pipeline/scripts/dispatch.mjs +20 -4
- package/skills/a2h-spec-design-pipeline/scripts/test_arkui_v2_observation.ts +284 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_commands.mjs +32 -0
- package/skills/a2h-spec-design-pipeline/scripts/test_dispatch_wait.mjs +22 -1
- package/skills/a2h-utg-static/SKILL.md +2 -0
- package/skills/a2h-utg-static/references/extractors.md +16 -0
- package/skills/a2h-utg-static/scripts/run_pipeline.mjs +22 -1
- package/skills/a2h-utg-static/scripts/tests/regression_matrix.mjs +4 -0
- package/skills/a2h-utg-static/scripts/tests/test_pr169_review_fixes.mjs +15 -0
- package/skills/a2h-utg-static/scripts/tests/test_view_attachments.mjs +330 -0
- package/skills/a2h-utg-static/scripts/view_attachments.mjs +465 -0
- package/README.md +0 -413
- package/dist/cli/config-store.js +0 -128
- package/dist/cli/config.js +0 -48
- package/dist/cli/editors.json +0 -147
- package/dist/cli/env-vars.js +0 -127
- package/dist/cli/index.js +0 -76
- package/dist/cli/init.js +0 -2618
- package/dist/cli/uninstall.js +0 -406
- package/dist/platform/compose.js +0 -232
- package/dist/platform/frontmatter.js +0 -151
- package/dist/platform/installer.js +0 -417
- package/dist/platform/language.js +0 -77
- package/dist/platform/registry.js +0 -340
- package/dist/platform/transform.js +0 -397
- package/dist/platform/types.js +0 -9
- package/dist/platform/validate.js +0 -153
- package/dist/utils/regex.js +0 -7
- package/env-requirements.json +0 -536
- package/platforms/codebuddy/agents/build-fixer.frontmatter.md +0 -5
- package/platforms/codebuddy/agents/code-reviewer.frontmatter.md +0 -5
- package/platforms/codebuddy/agents/model-render-worker.frontmatter.md +0 -5
- package/platforms/codebuddy/agents/model-worker.frontmatter.md +0 -5
- package/platforms/codebuddy/agents/specgen-worker.frontmatter.md +0 -5
- package/resource/choose_editor.png +0 -0
- package/resource/set_sdk.png +0 -0
- package/resource/title_dark.png +0 -0
|
@@ -1,397 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Per-platform document transforms.
|
|
3
|
-
*
|
|
4
|
-
* Ported from `devecocli-plugin/common.ts` so `ht init` produces exactly what
|
|
5
|
-
* `devecocli plugin install` produces (locked by `platform-parity.test.ts`).
|
|
6
|
-
* The plugin file stays untouched.
|
|
7
|
-
*/
|
|
8
|
-
import { asRecord, asString, fmValueToString, FRONTMATTER_BLOCK, parseFrontmatter, serializeFrontmatter, stripBom, } from './frontmatter.js';
|
|
9
|
-
const SKILL_STANDARD_KEYS = new Set([
|
|
10
|
-
'name',
|
|
11
|
-
'description',
|
|
12
|
-
'license',
|
|
13
|
-
'compatibility',
|
|
14
|
-
'metadata',
|
|
15
|
-
// Kept verbatim for every platform: `allowed-tools` is the skill-level tool
|
|
16
|
-
// allowlist and `argument-hint` the invocation hint. Platforms that do not
|
|
17
|
-
// understand them ignore unknown frontmatter keys.
|
|
18
|
-
'allowed-tools',
|
|
19
|
-
'argument-hint',
|
|
20
|
-
]);
|
|
21
|
-
export function transformSkillMd(platform, raw) {
|
|
22
|
-
if (platform.verbatim)
|
|
23
|
-
return { content: raw, rawCopy: true, notes: [] };
|
|
24
|
-
const { fm, body, hasFrontmatter } = parseFrontmatter(raw);
|
|
25
|
-
if (!hasFrontmatter)
|
|
26
|
-
return { content: raw, rawCopy: true, notes: [] };
|
|
27
|
-
const out = {};
|
|
28
|
-
const metadata = { ...asRecord(fm.metadata) };
|
|
29
|
-
let dirty = false;
|
|
30
|
-
const notes = [];
|
|
31
|
-
for (const [key, value] of Object.entries(fm)) {
|
|
32
|
-
if (key === 'metadata')
|
|
33
|
-
continue;
|
|
34
|
-
if (SKILL_STANDARD_KEYS.has(key)) {
|
|
35
|
-
out[key] = value;
|
|
36
|
-
continue;
|
|
37
|
-
}
|
|
38
|
-
// Non-standard top-level keys are relocated into standard `metadata`.
|
|
39
|
-
metadata[key] = fmValueToString(value);
|
|
40
|
-
dirty = true;
|
|
41
|
-
notes.push(`relocated top-level ${key} -> metadata.${key}`);
|
|
42
|
-
}
|
|
43
|
-
if (Object.keys(metadata).length > 0) {
|
|
44
|
-
out.metadata = metadata;
|
|
45
|
-
if (!('metadata' in fm))
|
|
46
|
-
dirty = true;
|
|
47
|
-
}
|
|
48
|
-
if (!dirty)
|
|
49
|
-
return { content: raw, rawCopy: true, notes: [] };
|
|
50
|
-
return { content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
51
|
-
}
|
|
52
|
-
/** Source permission key -> Claude-family tool name. */
|
|
53
|
-
const PERMISSION_TO_TOOLS = {
|
|
54
|
-
edit: ['Edit', 'Write'],
|
|
55
|
-
bash: ['Bash'],
|
|
56
|
-
task: ['Agent', 'Task'],
|
|
57
|
-
webfetch: ['WebFetch'],
|
|
58
|
-
websearch: ['WebSearch'],
|
|
59
|
-
read: ['Read'],
|
|
60
|
-
glob: ['Glob'],
|
|
61
|
-
grep: ['Grep'],
|
|
62
|
-
};
|
|
63
|
-
/** Single-line TOML basic string. */
|
|
64
|
-
export function tomlInline(s) {
|
|
65
|
-
return '"' + s.replace(/\\/g, '\\\\').replace(/"/g, '\\"') + '"';
|
|
66
|
-
}
|
|
67
|
-
/** Multi-line TOML literal string; falls back to an escaped basic string if it contains `'''`. */
|
|
68
|
-
export function tomlMultiline(s) {
|
|
69
|
-
const body = s.replace(/\r\n/g, '\n');
|
|
70
|
-
if (!body.includes("'''"))
|
|
71
|
-
return `'''\n${body}\n'''`;
|
|
72
|
-
return ('"' +
|
|
73
|
-
body
|
|
74
|
-
.replace(/\\/g, '\\\\')
|
|
75
|
-
.replace(/"/g, '\\"')
|
|
76
|
-
.replace(/\r/g, '\\r')
|
|
77
|
-
.replace(/\n/g, '\\n') +
|
|
78
|
-
'"');
|
|
79
|
-
}
|
|
80
|
-
/** First sentence of `description` (AtomCode `when`); truncated past `max`. */
|
|
81
|
-
function firstSentence(text, max = 200) {
|
|
82
|
-
const m = /^[\s\S]*?[.!?](\s|$)/.exec(text);
|
|
83
|
-
let s = (m ? m[0] : text).trim();
|
|
84
|
-
if (s.length > max)
|
|
85
|
-
s = s.slice(0, max - 1).replace(/\s+\S*$/, '') + '…';
|
|
86
|
-
return s;
|
|
87
|
-
}
|
|
88
|
-
/** Explanation for a dropped `mode` field. */
|
|
89
|
-
function droppedModeNote(mode, platform) {
|
|
90
|
-
if (mode === undefined)
|
|
91
|
-
return undefined;
|
|
92
|
-
if (mode !== 'all')
|
|
93
|
-
return `dropped mode: ${mode}`;
|
|
94
|
-
if (platform.agentFormat === 'claude') {
|
|
95
|
-
return "dropped mode: all - primary-style use natively available via 'claude --agent <name>'";
|
|
96
|
-
}
|
|
97
|
-
return `dropped mode: all - ${platform.name} has no primary-agent concept (subagent dispatch preserved)`;
|
|
98
|
-
}
|
|
99
|
-
/**
|
|
100
|
-
* Convert the bundled agent markdown (OpenCode-style frontmatter:
|
|
101
|
-
* name / description / mode / permission) into the target platform's format.
|
|
102
|
-
*/
|
|
103
|
-
export function transformAgentMd(platform, fileName, raw) {
|
|
104
|
-
if (platform.agentFormat === 'none')
|
|
105
|
-
return null;
|
|
106
|
-
if (platform.verbatim)
|
|
107
|
-
return { fileName, content: raw, rawCopy: true, notes: [] };
|
|
108
|
-
if (platform.agentFormat === 'passthrough') {
|
|
109
|
-
// OpenCode family: mode / permission are native — copy as-is.
|
|
110
|
-
return { fileName, content: raw, rawCopy: true, notes: [] };
|
|
111
|
-
}
|
|
112
|
-
const { fm, body } = parseFrontmatter(raw);
|
|
113
|
-
const name = asString(fm.name) || fileName.replace(/\.md$/, '');
|
|
114
|
-
const description = asString(fm.description) ?? '';
|
|
115
|
-
const permission = asRecord(fm.permission);
|
|
116
|
-
const denies = Object.keys(permission).filter((k) => permission[k] === 'deny');
|
|
117
|
-
const allows = Object.keys(permission).filter((k) => permission[k] === 'allow');
|
|
118
|
-
const bodyText = body.replace(/^\r?\n/, '').replace(/\s+$/, '');
|
|
119
|
-
const modeNote = droppedModeNote(asString(fm.mode), platform);
|
|
120
|
-
switch (platform.agentFormat) {
|
|
121
|
-
case 'claude':
|
|
122
|
-
case 'codebuddy': {
|
|
123
|
-
const out = { name, description };
|
|
124
|
-
const notes = [];
|
|
125
|
-
const disallowed = [...new Set(denies.flatMap((k) => PERMISSION_TO_TOOLS[k] ?? []))];
|
|
126
|
-
if (disallowed.length > 0) {
|
|
127
|
-
out.disallowedTools = disallowed;
|
|
128
|
-
notes.push(`permission deny (${denies.join(', ')}) -> disallowedTools: ${disallowed.join(', ')}`);
|
|
129
|
-
}
|
|
130
|
-
if (modeNote)
|
|
131
|
-
notes.push(modeNote);
|
|
132
|
-
return { fileName, content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
133
|
-
}
|
|
134
|
-
case 'cursor': {
|
|
135
|
-
const out = { name, description };
|
|
136
|
-
const notes = [];
|
|
137
|
-
if (permission.edit === 'deny') {
|
|
138
|
-
out.readonly = true;
|
|
139
|
-
notes.push('permission edit deny -> readonly: true');
|
|
140
|
-
}
|
|
141
|
-
const rest = denies.filter((k) => k !== 'edit');
|
|
142
|
-
if (rest.length > 0) {
|
|
143
|
-
notes.push(`dropped permission deny (${rest.join(', ')}) - no Cursor equivalent`);
|
|
144
|
-
}
|
|
145
|
-
if (modeNote)
|
|
146
|
-
notes.push(modeNote);
|
|
147
|
-
return { fileName, content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
148
|
-
}
|
|
149
|
-
case 'qoder': {
|
|
150
|
-
const out = { name, description };
|
|
151
|
-
const notes = [];
|
|
152
|
-
if (Object.keys(permission).length > 0) {
|
|
153
|
-
const tools = new Set(['Read', 'Glob', 'Grep']);
|
|
154
|
-
for (const k of allows) {
|
|
155
|
-
for (const t of PERMISSION_TO_TOOLS[k] ?? []) {
|
|
156
|
-
if (t !== 'Agent' && t !== 'Task')
|
|
157
|
-
tools.add(t);
|
|
158
|
-
}
|
|
159
|
-
}
|
|
160
|
-
out.tools = [...tools];
|
|
161
|
-
notes.push(`permission -> tools whitelist: ${out.tools.join(', ')}`);
|
|
162
|
-
}
|
|
163
|
-
if (modeNote)
|
|
164
|
-
notes.push(modeNote);
|
|
165
|
-
return { fileName, content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
166
|
-
}
|
|
167
|
-
case 'trae': {
|
|
168
|
-
const out = { name, description };
|
|
169
|
-
const notes = [];
|
|
170
|
-
const disallowed = [...new Set(denies.flatMap((k) => PERMISSION_TO_TOOLS[k] ?? []))].filter((t) => t !== 'Agent' && t !== 'Task');
|
|
171
|
-
if (disallowed.length > 0) {
|
|
172
|
-
// Trae expects a comma-separated string; a block list breaks the frontmatter parser.
|
|
173
|
-
out.disallowedTools = disallowed.join(', ');
|
|
174
|
-
notes.push(`permission deny (${denies.join(', ')}) -> disallowedTools: ${out.disallowedTools}`);
|
|
175
|
-
}
|
|
176
|
-
if (denies.includes('task')) {
|
|
177
|
-
notes.push('dropped permission task deny - Trae subagents have no Task tool');
|
|
178
|
-
}
|
|
179
|
-
if (modeNote)
|
|
180
|
-
notes.push(modeNote);
|
|
181
|
-
return { fileName, content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
182
|
-
}
|
|
183
|
-
case 'pi-profile': {
|
|
184
|
-
const out = { name, description };
|
|
185
|
-
const notes = [];
|
|
186
|
-
if (Object.keys(permission).length > 0) {
|
|
187
|
-
const tools = new Set(['read', 'glob', 'grep']);
|
|
188
|
-
if (allows.includes('edit')) {
|
|
189
|
-
tools.add('edit');
|
|
190
|
-
tools.add('write');
|
|
191
|
-
}
|
|
192
|
-
if (allows.includes('bash'))
|
|
193
|
-
tools.add('bash');
|
|
194
|
-
if (allows.includes('webfetch'))
|
|
195
|
-
tools.add('webfetch');
|
|
196
|
-
if (allows.includes('websearch'))
|
|
197
|
-
tools.add('websearch');
|
|
198
|
-
out.tools = [...tools].join(', ');
|
|
199
|
-
notes.push(`permission -> tools: ${out.tools}`);
|
|
200
|
-
}
|
|
201
|
-
if (modeNote)
|
|
202
|
-
notes.push(modeNote);
|
|
203
|
-
return { fileName, content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
204
|
-
}
|
|
205
|
-
case 'codex-toml': {
|
|
206
|
-
const notes = ['converted to Codex subagent TOML (body -> developer_instructions)'];
|
|
207
|
-
const lines = [`name = ${tomlInline(name)}`];
|
|
208
|
-
if (description)
|
|
209
|
-
lines.push(`description = ${tomlInline(description)}`);
|
|
210
|
-
let instructions = bodyText;
|
|
211
|
-
if (permission.edit === 'deny') {
|
|
212
|
-
instructions +=
|
|
213
|
-
'\n\nConstraint: never modify, create, or delete any file - this agent is read-only.';
|
|
214
|
-
notes.push('permission edit deny -> read-only constraint appended (no per-agent write sandbox)');
|
|
215
|
-
}
|
|
216
|
-
lines.push(`developer_instructions = ${tomlMultiline(instructions)}`);
|
|
217
|
-
if (permission.bash === 'deny') {
|
|
218
|
-
lines.push('', '[features]', 'shell_tool = false');
|
|
219
|
-
notes.push('permission bash deny -> features.shell_tool = false');
|
|
220
|
-
}
|
|
221
|
-
if (modeNote)
|
|
222
|
-
notes.push(modeNote);
|
|
223
|
-
return {
|
|
224
|
-
fileName: fileName.replace(/\.md$/, '.toml'),
|
|
225
|
-
content: lines.join('\n') + '\n',
|
|
226
|
-
rawCopy: false,
|
|
227
|
-
notes,
|
|
228
|
-
};
|
|
229
|
-
}
|
|
230
|
-
case 'atomcode-role': {
|
|
231
|
-
const permissionValue = permission.edit === 'deny' ? 'explore' : 'worker';
|
|
232
|
-
const out = {
|
|
233
|
-
permission: permissionValue,
|
|
234
|
-
difficulty: 'hard',
|
|
235
|
-
when: firstSentence(description),
|
|
236
|
-
name,
|
|
237
|
-
description,
|
|
238
|
-
};
|
|
239
|
-
const notes = [
|
|
240
|
-
`converted to AtomCode role format (permission: ${permissionValue}, difficulty: hard)`,
|
|
241
|
-
'difficulty defaults to hard (no source equivalent)',
|
|
242
|
-
];
|
|
243
|
-
return { fileName, content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
244
|
-
}
|
|
245
|
-
default:
|
|
246
|
-
return { fileName, content: raw, rawCopy: true, notes: [] };
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
/**
|
|
250
|
-
* Route command frontmatter fields: keys not in `commandKeepKeys` are dropped;
|
|
251
|
-
* Claude Code maps `subtask: true` to `context: fork`. Body templates are kept.
|
|
252
|
-
*/
|
|
253
|
-
export function transformCommandMd(platform, raw) {
|
|
254
|
-
if (platform.verbatim || platform.commandsDir === null) {
|
|
255
|
-
return { content: raw, rawCopy: true, notes: [] };
|
|
256
|
-
}
|
|
257
|
-
const { fm, body, hasFrontmatter } = parseFrontmatter(raw);
|
|
258
|
-
if (!hasFrontmatter)
|
|
259
|
-
return { content: raw, rawCopy: true, notes: [] };
|
|
260
|
-
const keep = new Set(platform.commandKeepKeys);
|
|
261
|
-
const out = {};
|
|
262
|
-
let dirty = false;
|
|
263
|
-
const notes = [];
|
|
264
|
-
for (const [key, value] of Object.entries(fm)) {
|
|
265
|
-
if (keep.has(key)) {
|
|
266
|
-
out[key] = value;
|
|
267
|
-
continue;
|
|
268
|
-
}
|
|
269
|
-
if (key === 'subtask' && platform.agentFormat === 'claude' && value === 'true') {
|
|
270
|
-
out.context = 'fork';
|
|
271
|
-
dirty = true;
|
|
272
|
-
notes.push('subtask: true -> context: fork');
|
|
273
|
-
continue;
|
|
274
|
-
}
|
|
275
|
-
dirty = true;
|
|
276
|
-
notes.push(`dropped ${key} (not supported in ${platform.name} commands)`);
|
|
277
|
-
}
|
|
278
|
-
if (!dirty)
|
|
279
|
-
return { content: raw, rawCopy: true, notes: [] };
|
|
280
|
-
// No supported key left (e.g. command without description): drop the whole block.
|
|
281
|
-
if (Object.keys(out).length === 0) {
|
|
282
|
-
return { content: body, rawCopy: false, notes };
|
|
283
|
-
}
|
|
284
|
-
return { content: serializeFrontmatter(out) + body, rawCopy: false, notes };
|
|
285
|
-
}
|
|
286
|
-
/**
|
|
287
|
-
* Convert a command markdown into a skill (Codex custom prompts are deprecated;
|
|
288
|
-
* DSH / AtomCode have no file-based commands).
|
|
289
|
-
*/
|
|
290
|
-
export function commandToSkillMd(platform, fileName, raw) {
|
|
291
|
-
const skillName = fileName.replace(/\.md$/, '');
|
|
292
|
-
if (platform.verbatim) {
|
|
293
|
-
// Commands are relocated into skills/ with their fields untouched; only the
|
|
294
|
-
// SKILL.md-required `name` field is added when it is missing.
|
|
295
|
-
const { fm, hasFrontmatter } = parseFrontmatter(raw);
|
|
296
|
-
if (!hasFrontmatter) {
|
|
297
|
-
return {
|
|
298
|
-
skillName,
|
|
299
|
-
content: `---\nname: ${skillName}\n---\n\n${raw}`,
|
|
300
|
-
openaiYaml: null,
|
|
301
|
-
notes: ['installed command as a skill (frontmatter added: name)'],
|
|
302
|
-
};
|
|
303
|
-
}
|
|
304
|
-
if (asString(fm.name)) {
|
|
305
|
-
return {
|
|
306
|
-
skillName,
|
|
307
|
-
content: raw,
|
|
308
|
-
openaiYaml: null,
|
|
309
|
-
notes: ['installed command as a skill (fields kept as-is)'],
|
|
310
|
-
};
|
|
311
|
-
}
|
|
312
|
-
const m = /^---(?:\r?\n)/.exec(raw);
|
|
313
|
-
return {
|
|
314
|
-
skillName,
|
|
315
|
-
content: m
|
|
316
|
-
? raw.slice(0, m[0].length) + `name: ${skillName}\n` + raw.slice(m[0].length)
|
|
317
|
-
: `---\nname: ${skillName}\n---\n\n${raw}`,
|
|
318
|
-
openaiYaml: null,
|
|
319
|
-
notes: ['installed command as a skill (fields kept; name added)'],
|
|
320
|
-
};
|
|
321
|
-
}
|
|
322
|
-
const { fm, body } = parseFrontmatter(raw);
|
|
323
|
-
const notes = [];
|
|
324
|
-
const out = { name: skillName };
|
|
325
|
-
const description = asString(fm.description);
|
|
326
|
-
if (description)
|
|
327
|
-
out.description = description;
|
|
328
|
-
if ('subtask' in fm)
|
|
329
|
-
notes.push('dropped subtask (no skill equivalent)');
|
|
330
|
-
if ('argument-hint' in fm)
|
|
331
|
-
notes.push('dropped argument-hint (no skill equivalent)');
|
|
332
|
-
let openaiYaml = null;
|
|
333
|
-
if (platform.name === 'codex') {
|
|
334
|
-
notes.push('converted command to skill (Codex custom prompts deprecated)');
|
|
335
|
-
notes.push('openai.yaml: allow_implicit_invocation=false (commands are user-triggered)');
|
|
336
|
-
openaiYaml = 'policy:\n allow_implicit_invocation: false\n';
|
|
337
|
-
}
|
|
338
|
-
else if (platform.name === 'dsh') {
|
|
339
|
-
notes.push('converted command to skill (DSH has no file-based commands)');
|
|
340
|
-
out['disable-model-invocation'] = true;
|
|
341
|
-
out['user-invocable'] = true;
|
|
342
|
-
notes.push('disable-model-invocation + user-invocable -> user-only invocation (DSH native keys)');
|
|
343
|
-
}
|
|
344
|
-
else if (platform.name === 'atomcode') {
|
|
345
|
-
notes.push('converted command to skill (each skill appears as /<skill-name>; $<skill-name> <args> carries inline arguments)');
|
|
346
|
-
notes.push('user-only invocation not preservable (AtomCode model may auto-invoke via use_skill)');
|
|
347
|
-
}
|
|
348
|
-
else {
|
|
349
|
-
notes.push('converted command to skill');
|
|
350
|
-
}
|
|
351
|
-
return {
|
|
352
|
-
skillName,
|
|
353
|
-
content: serializeFrontmatter(out) + body,
|
|
354
|
-
openaiYaml,
|
|
355
|
-
notes,
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
/* ------------------------------------------------------------------ */
|
|
359
|
-
/* Agent color normalization (passthrough platforms only) */
|
|
360
|
-
/* ------------------------------------------------------------------ */
|
|
361
|
-
/** Named ANSI/agent colors -> `#RRGGBB` (OpenCode-style editors reject names). */
|
|
362
|
-
const AGENT_COLOR_HEX = {
|
|
363
|
-
black: '#000000',
|
|
364
|
-
red: '#ff0000',
|
|
365
|
-
green: '#008000',
|
|
366
|
-
yellow: '#ffff00',
|
|
367
|
-
blue: '#0000ff',
|
|
368
|
-
magenta: '#ff00ff',
|
|
369
|
-
purple: '#800080',
|
|
370
|
-
cyan: '#00ffff',
|
|
371
|
-
white: '#ffffff',
|
|
372
|
-
gray: '#808080',
|
|
373
|
-
grey: '#808080',
|
|
374
|
-
orange: '#ffa500',
|
|
375
|
-
pink: '#ffc0cb',
|
|
376
|
-
};
|
|
377
|
-
/**
|
|
378
|
-
* Map a named `color:` in an agent's YAML frontmatter to `#RRGGBB`.
|
|
379
|
-
* Only the leading frontmatter block is touched; hex values pass through.
|
|
380
|
-
*
|
|
381
|
-
* Needed for `passthrough` platforms (OpenCode / DevEco Code) when no platform
|
|
382
|
-
* frontmatter overlay is available: those editors reject named colors.
|
|
383
|
-
*/
|
|
384
|
-
export function mapAgentColorToHex(content) {
|
|
385
|
-
// Match on the BOM-stripped text (the delimiter must be at the start), but
|
|
386
|
-
// replace inside the original so untouched content keeps its bytes.
|
|
387
|
-
const src = stripBom(content);
|
|
388
|
-
const fm = FRONTMATTER_BLOCK.exec(src);
|
|
389
|
-
if (!fm)
|
|
390
|
-
return content;
|
|
391
|
-
const block = fm[0];
|
|
392
|
-
const mapped = block.replace(/^(color:[ \t]*)(\S+)([ \t]*\r?\n)/m, (whole, prefix, value, suffix) => {
|
|
393
|
-
const hex = AGENT_COLOR_HEX[value.trim().toLowerCase()];
|
|
394
|
-
return hex ? `${prefix}"${hex}"${suffix}` : whole;
|
|
395
|
-
});
|
|
396
|
-
return mapped === block ? content : content.replace(block, mapped);
|
|
397
|
-
}
|
package/dist/platform/types.js
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Platform descriptor types shared by the CLI installer.
|
|
3
|
-
*
|
|
4
|
-
* This module intentionally mirrors the shape of the devecocli-plugin platform
|
|
5
|
-
* table (`devecocli-plugin/common.ts`) so the two installers can be compared
|
|
6
|
-
* byte-for-byte in `src/cli/platform-parity.test.ts`. The plugin file itself is
|
|
7
|
-
* NOT imported at runtime by the CLI — only by that test.
|
|
8
|
-
*/
|
|
9
|
-
export {};
|
|
@@ -1,153 +0,0 @@
|
|
|
1
|
-
/** Post-install read-back validators (ported from the plugin). */
|
|
2
|
-
import { asString, parseFrontmatter, stripBom } from './frontmatter.js';
|
|
3
|
-
const SKILL_NAME_RE = /^[a-z0-9]+(-[a-z0-9]+)*$/;
|
|
4
|
-
/** Generic rules; `descriptionLimit` is passed only for platforms with a hard limit. */
|
|
5
|
-
export function validateSkillMd(skillName, raw, descriptionLimit) {
|
|
6
|
-
const issues = [];
|
|
7
|
-
const { fm, hasFrontmatter } = parseFrontmatter(raw);
|
|
8
|
-
if (!hasFrontmatter) {
|
|
9
|
-
issues.push({
|
|
10
|
-
level: 'error',
|
|
11
|
-
message: `${skillName}: SKILL.md has no frontmatter block starting with --- on line 1`,
|
|
12
|
-
});
|
|
13
|
-
return issues;
|
|
14
|
-
}
|
|
15
|
-
const name = asString(fm.name);
|
|
16
|
-
if (!name) {
|
|
17
|
-
issues.push({ level: 'error', message: `${skillName}: missing name` });
|
|
18
|
-
}
|
|
19
|
-
else {
|
|
20
|
-
if (!SKILL_NAME_RE.test(name)) {
|
|
21
|
-
issues.push({ level: 'error', message: `${skillName}: name "${name}" is not kebab-case` });
|
|
22
|
-
}
|
|
23
|
-
if (name.length > 64) {
|
|
24
|
-
issues.push({ level: 'error', message: `${skillName}: name exceeds 64 chars` });
|
|
25
|
-
}
|
|
26
|
-
if (name !== skillName) {
|
|
27
|
-
issues.push({ level: 'error', message: `${skillName}: name "${name}" != directory name` });
|
|
28
|
-
}
|
|
29
|
-
}
|
|
30
|
-
const description = asString(fm.description);
|
|
31
|
-
if (!description) {
|
|
32
|
-
issues.push({ level: 'error', message: `${skillName}: missing description` });
|
|
33
|
-
}
|
|
34
|
-
else if (descriptionLimit !== undefined && descriptionLimit !== null && description.length > descriptionLimit) {
|
|
35
|
-
issues.push({
|
|
36
|
-
level: 'warn',
|
|
37
|
-
message: `${skillName}: description ${description.length} chars > ${descriptionLimit} (platform hard limit); installed as-is, platform may refuse to load`,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
return issues;
|
|
41
|
-
}
|
|
42
|
-
export function validateAgentFile(platform, fileName, raw) {
|
|
43
|
-
const issues = [];
|
|
44
|
-
const base = fileName.replace(/\.(md|toml)$/, '');
|
|
45
|
-
if (platform.agentFormat === 'codex-toml') {
|
|
46
|
-
if (!/^name\s*=/m.test(raw))
|
|
47
|
-
issues.push({ level: 'error', message: `${base}.toml: missing name` });
|
|
48
|
-
if (!/^description\s*=/m.test(raw)) {
|
|
49
|
-
issues.push({ level: 'error', message: `${base}.toml: missing description` });
|
|
50
|
-
}
|
|
51
|
-
if (!/^developer_instructions\s*=/m.test(raw)) {
|
|
52
|
-
issues.push({ level: 'error', message: `${base}.toml: missing developer_instructions` });
|
|
53
|
-
}
|
|
54
|
-
return issues;
|
|
55
|
-
}
|
|
56
|
-
const { fm, hasFrontmatter } = parseFrontmatter(raw);
|
|
57
|
-
if (!hasFrontmatter) {
|
|
58
|
-
issues.push({ level: 'error', message: `${base}: no frontmatter block starting with --- on line 1` });
|
|
59
|
-
return issues;
|
|
60
|
-
}
|
|
61
|
-
if (platform.agentFormat === 'atomcode-role') {
|
|
62
|
-
const permission = asString(fm.permission);
|
|
63
|
-
if (permission !== 'explore' && permission !== 'worker') {
|
|
64
|
-
issues.push({ level: 'error', message: `${base}: permission must be explore|worker` });
|
|
65
|
-
}
|
|
66
|
-
const difficulty = asString(fm.difficulty);
|
|
67
|
-
if (difficulty !== 'simple' && difficulty !== 'hard') {
|
|
68
|
-
issues.push({ level: 'error', message: `${base}: difficulty must be simple|hard` });
|
|
69
|
-
}
|
|
70
|
-
return issues;
|
|
71
|
-
}
|
|
72
|
-
const name = asString(fm.name);
|
|
73
|
-
if (!name) {
|
|
74
|
-
issues.push({ level: 'error', message: `${base}: missing name` });
|
|
75
|
-
}
|
|
76
|
-
else {
|
|
77
|
-
if ((platform.name === 'trae' || platform.name === 'trae-cn') &&
|
|
78
|
-
name.length > 50) {
|
|
79
|
-
issues.push({ level: 'error', message: `${base}: name ${name.length} chars > 50 (trae limit)` });
|
|
80
|
-
}
|
|
81
|
-
if (platform.name === 'claude-code') {
|
|
82
|
-
if (name.length > 256) {
|
|
83
|
-
issues.push({ level: 'error', message: `${base}: name exceeds 256 chars` });
|
|
84
|
-
}
|
|
85
|
-
if (name.includes(':')) {
|
|
86
|
-
issues.push({ level: 'error', message: `${base}: name must not contain ':'` });
|
|
87
|
-
}
|
|
88
|
-
if (name.startsWith('-')) {
|
|
89
|
-
issues.push({ level: 'error', message: `${base}: name must not start with '-'` });
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
if (!asString(fm.description)) {
|
|
94
|
-
issues.push({ level: 'error', message: `${base}: missing description` });
|
|
95
|
-
}
|
|
96
|
-
return issues;
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Command rules: lowercase kebab-case file name; frontmatter completeness;
|
|
100
|
-
* missing description is only a warning; CodeBuddy's `` !`cmd` `` injection
|
|
101
|
-
* requires `allowed-tools` to include Bash.
|
|
102
|
-
*/
|
|
103
|
-
export function validateCommandMd(platform, fileName, raw) {
|
|
104
|
-
const issues = [];
|
|
105
|
-
const base = fileName.replace(/\.md$/, '');
|
|
106
|
-
if (!SKILL_NAME_RE.test(base)) {
|
|
107
|
-
issues.push({
|
|
108
|
-
level: 'error',
|
|
109
|
-
message: `${fileName}: command name "${base}" is not lowercase kebab-case (trae/qoder/codex naming constraint)`,
|
|
110
|
-
});
|
|
111
|
-
}
|
|
112
|
-
if (!stripBom(raw).startsWith('---')) {
|
|
113
|
-
issues.push({
|
|
114
|
-
level: 'warn',
|
|
115
|
-
message: `${fileName}: no frontmatter block - description missing from command list`,
|
|
116
|
-
});
|
|
117
|
-
return issues;
|
|
118
|
-
}
|
|
119
|
-
const { fm, body, hasFrontmatter } = parseFrontmatter(raw);
|
|
120
|
-
if (!hasFrontmatter) {
|
|
121
|
-
issues.push({
|
|
122
|
-
level: 'error',
|
|
123
|
-
message: `${fileName}: malformed frontmatter (--- must open and close the block)`,
|
|
124
|
-
});
|
|
125
|
-
return issues;
|
|
126
|
-
}
|
|
127
|
-
if (!asString(fm.description)) {
|
|
128
|
-
issues.push({
|
|
129
|
-
level: 'warn',
|
|
130
|
-
message: `${fileName}: no description - autocomplete shows nothing (qoder may not list it)`,
|
|
131
|
-
});
|
|
132
|
-
}
|
|
133
|
-
if (body.trim() === '') {
|
|
134
|
-
issues.push({
|
|
135
|
-
level: 'warn',
|
|
136
|
-
message: `${fileName}: empty body - qoder will not list this command`,
|
|
137
|
-
});
|
|
138
|
-
}
|
|
139
|
-
if (platform.agentFormat === 'codebuddy' && body.includes('!`')) {
|
|
140
|
-
const allowed = typeof fm['allowed-tools'] === 'string'
|
|
141
|
-
? fm['allowed-tools']
|
|
142
|
-
: Array.isArray(fm['allowed-tools'])
|
|
143
|
-
? fm['allowed-tools'].join(',')
|
|
144
|
-
: '';
|
|
145
|
-
if (!/\bBash\b/.test(allowed)) {
|
|
146
|
-
issues.push({
|
|
147
|
-
level: 'warn',
|
|
148
|
-
message: `${fileName}: body uses !\`cmd\` injection but allowed-tools lacks Bash (codebuddy requires it)`,
|
|
149
|
-
});
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
return issues;
|
|
153
|
-
}
|
package/dist/utils/regex.js
DELETED