@llipe.com/dev-tasks 0.6.4 → 0.6.5
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/.claude/agents/developer.md +294 -0
- package/.claude/agents/github-ops.md +407 -0
- package/.claude/agents/housekeeping.md +109 -0
- package/.claude/agents/technical-writer.md +390 -0
- package/.claude/agents/ux-engineer.md +184 -0
- package/.claude/agents/verifier.md +276 -0
- package/.claude/commands/developer.md +272 -0
- package/.claude/commands/github-ops.md +10 -0
- package/.claude/commands/housekeeping.md +10 -0
- package/.claude/commands/planner.md +506 -0
- package/.claude/commands/product-engineer.md +263 -0
- package/.claude/commands/technical-writer.md +10 -0
- package/.claude/commands/ux-engineer.md +10 -0
- package/.claude/commands/verifier-audit.md +10 -0
- package/.claude/commands/verifier-design.md +10 -0
- package/.claude/hooks/git-guard.sh +95 -0
- package/.claude/skills/activity-contract-test-design/SKILL.md +122 -0
- package/.claude/skills/activity-drift-reconciliation/SKILL.md +133 -0
- package/.claude/skills/activity-e2e-test-design/SKILL.md +124 -0
- package/.claude/skills/activity-edge-case-refinement/SKILL.md +146 -0
- package/.claude/skills/activity-generate-spec/SKILL.md +137 -0
- package/.claude/skills/activity-generate-stories/SKILL.md +243 -0
- package/.claude/skills/activity-init/SKILL.md +162 -0
- package/.claude/skills/activity-publish-github/SKILL.md +116 -0
- package/.claude/skills/activity-random-test-tactics/SKILL.md +181 -0
- package/.claude/skills/activity-refine/SKILL.md +236 -0
- package/.claude/skills/git-ops/SKILL.md +221 -0
- package/.claude/skills/implement/SKILL.md +129 -0
- package/.claude/skills/memo-cli-usage/REFERENCE.md +798 -0
- package/.claude/skills/memo-cli-usage/SKILL.md +144 -0
- package/.claude/skills/plan/SKILL.md +145 -0
- package/.claude/skills/webapp-mockup/SKILL.md +76 -0
- package/.claude/skills/webapp-mockup/scripts/scaffold-mockup.sh +469 -0
- package/.github/agents/developer.agent.md +293 -0
- package/.github/agents/github-ops.agent.md +416 -0
- package/.github/agents/housekeeping.agent.md +109 -0
- package/.github/agents/planner.agent.md +496 -0
- package/.github/agents/product-engineer.agent.md +262 -0
- package/.github/agents/technical-writer.agent.md +389 -0
- package/.github/agents/ux-engineer.agent.md +183 -0
- package/.github/agents/verifier.agent.md +275 -0
- package/.github/instructions/domain/nextjs-pages-components.instructions.md +375 -0
- package/.github/instructions/implement.instructions.md +128 -0
- package/.github/instructions/plan.instructions.md +144 -0
- package/.github/prompts/developer-execute.prompt.md +13 -0
- package/.github/prompts/github-ops.prompt.md +16 -0
- package/.github/prompts/housekeeping.prompt.md +16 -0
- package/.github/prompts/planner-resume.prompt.md +13 -0
- package/.github/prompts/planner.prompt.md +18 -0
- package/.github/prompts/product-engineer-feature.prompt.md +21 -0
- package/.github/prompts/product-engineer-init.prompt.md +16 -0
- package/.github/prompts/product-engineer-issue.prompt.md +19 -0
- package/.github/prompts/technical-writer.prompt.md +21 -0
- package/.github/prompts/ux-engineer.prompt.md +14 -0
- package/.github/prompts/verifier-audit.prompt.md +33 -0
- package/.github/prompts/verifier-design.prompt.md +28 -0
- package/.github/skills/activity-contract-test-design/SKILL.md +117 -0
- package/.github/skills/activity-drift-reconciliation/SKILL.md +128 -0
- package/.github/skills/activity-e2e-test-design/SKILL.md +119 -0
- package/.github/skills/activity-edge-case-refinement/SKILL.md +141 -0
- package/.github/skills/activity-generate-spec/SKILL.md +132 -0
- package/.github/skills/activity-generate-stories/SKILL.md +238 -0
- package/.github/skills/activity-init/SKILL.md +157 -0
- package/.github/skills/activity-publish-github/SKILL.md +111 -0
- package/.github/skills/activity-random-test-tactics/SKILL.md +176 -0
- package/.github/skills/activity-refine/SKILL.md +231 -0
- package/.github/skills/git-ops/SKILL.md +216 -0
- package/.github/skills/memo-cli-usage/REFERENCE.md +798 -0
- package/.github/skills/memo-cli-usage/SKILL.md +144 -0
- package/.github/skills/webapp-mockup/SKILL.md +71 -0
- package/.github/skills/webapp-mockup/scripts/scaffold-mockup.sh +469 -0
- package/.kiro/agents/developer.md +305 -0
- package/.kiro/agents/github-ops.md +428 -0
- package/.kiro/agents/housekeeping.md +122 -0
- package/.kiro/agents/planner.md +530 -0
- package/.kiro/agents/product-engineer.md +294 -0
- package/.kiro/agents/technical-writer.md +408 -0
- package/.kiro/agents/ux-engineer.md +200 -0
- package/.kiro/agents/verifier.md +275 -0
- package/.kiro/hooks/git-guard.json +16 -0
- package/.kiro/hooks/scripts/git-guard.sh +116 -0
- package/.kiro/skills/activity-contract-test-design/SKILL.md +122 -0
- package/.kiro/skills/activity-drift-reconciliation/SKILL.md +133 -0
- package/.kiro/skills/activity-e2e-test-design/SKILL.md +124 -0
- package/.kiro/skills/activity-edge-case-refinement/SKILL.md +146 -0
- package/.kiro/skills/activity-generate-spec/SKILL.md +137 -0
- package/.kiro/skills/activity-generate-stories/SKILL.md +243 -0
- package/.kiro/skills/activity-init/SKILL.md +162 -0
- package/.kiro/skills/activity-publish-github/SKILL.md +116 -0
- package/.kiro/skills/activity-random-test-tactics/SKILL.md +181 -0
- package/.kiro/skills/activity-refine/SKILL.md +236 -0
- package/.kiro/skills/git-ops/SKILL.md +221 -0
- package/.kiro/skills/memo-cli-usage/REFERENCE.md +798 -0
- package/.kiro/skills/memo-cli-usage/SKILL.md +144 -0
- package/.kiro/skills/webapp-mockup/SKILL.md +76 -0
- package/.kiro/steering/git-guard-notice.md +11 -0
- package/.kiro/steering/implement.md +129 -0
- package/.kiro/steering/nextjs-pages-components.md +376 -0
- package/.kiro/steering/plan.md +145 -0
- package/AGENTS.md +122 -0
- package/CHANGELOG.md +18 -2
- package/CLAUDE.md +94 -0
- package/README.md +6 -6
- package/dist/adapters/cli/extract-all.js +4 -4
- package/dist/adapters/cli/extract-component.d.ts +1 -1
- package/dist/adapters/cli/extract-component.js +4 -4
- package/dist/adapters/cli/parse-args.d.ts +1 -0
- package/dist/adapters/cli/parse-args.d.ts.map +1 -1
- package/dist/adapters/cli/parse-args.js +4 -0
- package/dist/adapters/cli/parse-args.js.map +1 -1
- package/dist/bin/dev-tasks.js +23 -9
- package/dist/bin/dev-tasks.js.map +1 -1
- package/dist/bin/dt.js +3 -3
- package/dist/core/distribution/index.d.ts +5 -3
- package/dist/core/distribution/index.d.ts.map +1 -1
- package/dist/core/distribution/index.js +3 -2
- package/dist/core/distribution/index.js.map +1 -1
- package/dist/core/distribution/install.d.ts +20 -8
- package/dist/core/distribution/install.d.ts.map +1 -1
- package/dist/core/distribution/install.js +76 -36
- package/dist/core/distribution/install.js.map +1 -1
- package/dist/core/distribution/manifest.d.ts +25 -2
- package/dist/core/distribution/manifest.d.ts.map +1 -1
- package/dist/core/distribution/manifest.js +29 -2
- package/dist/core/distribution/manifest.js.map +1 -1
- package/dist/core/distribution/migrate.d.ts +6 -3
- package/dist/core/distribution/migrate.d.ts.map +1 -1
- package/dist/core/distribution/migrate.js +21 -19
- package/dist/core/distribution/migrate.js.map +1 -1
- package/dist/core/distribution/profiles.d.ts +30 -0
- package/dist/core/distribution/profiles.d.ts.map +1 -0
- package/dist/core/distribution/profiles.js +57 -0
- package/dist/core/distribution/profiles.js.map +1 -0
- package/dist/core/distribution/update.d.ts +6 -4
- package/dist/core/distribution/update.d.ts.map +1 -1
- package/dist/core/distribution/update.js +22 -22
- package/dist/core/distribution/update.js.map +1 -1
- package/dist/core/extract/component.d.ts +9 -9
- package/dist/core/extract/component.js +5 -5
- package/dist/core/extract/report.d.ts +1 -1
- package/dist/core/extract/report.js +1 -1
- package/package.json +15 -2
- package/skills/.gitkeep +0 -0
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Update command logic — reconcile
|
|
2
|
+
* Update command logic — reconcile all managed files against the package.
|
|
3
3
|
* Uses the generic reconcile engine from core/reconcile.ts.
|
|
4
|
+
* Works across all platform profiles (copilot, claude, kiro).
|
|
4
5
|
*/
|
|
5
6
|
import { readFile, writeFile, mkdir, access } from "node:fs/promises";
|
|
6
7
|
import { join, dirname } from "node:path";
|
|
@@ -21,9 +22,9 @@ async function fileExists(path) {
|
|
|
21
22
|
}
|
|
22
23
|
}
|
|
23
24
|
/**
|
|
24
|
-
* Run the update reconciliation for all
|
|
25
|
+
* Run the update reconciliation for all managed files in the manifest.
|
|
25
26
|
*
|
|
26
|
-
* For each
|
|
27
|
+
* For each managed file:
|
|
27
28
|
* 1. Compute localHash from the installed file (null if missing)
|
|
28
29
|
* 2. Read originHash from the manifest
|
|
29
30
|
* 3. Compute packageHash from the package source
|
|
@@ -42,17 +43,17 @@ export async function runUpdate(options) {
|
|
|
42
43
|
backupDir: null,
|
|
43
44
|
};
|
|
44
45
|
}
|
|
45
|
-
const skillsTargetDir = join(targetDir, ".dev-tasks", "skills");
|
|
46
|
-
const skillsSourceDir = join(sourceDir, "skills");
|
|
47
46
|
const conflicts = [];
|
|
48
47
|
const updated = [];
|
|
49
48
|
const installed = [];
|
|
50
49
|
const skipped = [];
|
|
51
50
|
let backupDir = null;
|
|
52
|
-
// Process each
|
|
53
|
-
for (const entry of manifest.
|
|
54
|
-
|
|
55
|
-
const
|
|
51
|
+
// Process each managed file entry from the manifest
|
|
52
|
+
for (const entry of manifest.files) {
|
|
53
|
+
// Files are stored at their native platform path in the consumer repo
|
|
54
|
+
const localPath = join(targetDir, entry.path);
|
|
55
|
+
// Source is the same relative path inside the package
|
|
56
|
+
const packagePath = join(sourceDir, entry.path);
|
|
56
57
|
// Compute local hash (null if file doesn't exist)
|
|
57
58
|
let localHash = null;
|
|
58
59
|
if (await fileExists(localPath)) {
|
|
@@ -64,9 +65,10 @@ export async function runUpdate(options) {
|
|
|
64
65
|
packageHash = await hashFile(packagePath);
|
|
65
66
|
}
|
|
66
67
|
catch {
|
|
67
|
-
// Package file doesn't exist (
|
|
68
|
+
// Package file doesn't exist (file removed from package?) — skip
|
|
68
69
|
skipped.push({
|
|
69
70
|
path: entry.path,
|
|
71
|
+
profile: entry.profile,
|
|
70
72
|
action: "skip",
|
|
71
73
|
localHash,
|
|
72
74
|
originHash: entry.origin_sha256,
|
|
@@ -77,6 +79,7 @@ export async function runUpdate(options) {
|
|
|
77
79
|
const action = reconcile(localHash, entry.origin_sha256, packageHash);
|
|
78
80
|
const fileResult = {
|
|
79
81
|
path: entry.path,
|
|
82
|
+
profile: entry.profile,
|
|
80
83
|
action,
|
|
81
84
|
localHash,
|
|
82
85
|
originHash: entry.origin_sha256,
|
|
@@ -85,18 +88,16 @@ export async function runUpdate(options) {
|
|
|
85
88
|
switch (action) {
|
|
86
89
|
case "install": {
|
|
87
90
|
// File doesn't exist locally — copy from package
|
|
88
|
-
|
|
89
|
-
await mkdir(dirname(destPath), { recursive: true });
|
|
91
|
+
await mkdir(dirname(localPath), { recursive: true });
|
|
90
92
|
const content = await readFile(packagePath, "utf-8");
|
|
91
|
-
await writeFile(
|
|
93
|
+
await writeFile(localPath, content, "utf-8");
|
|
92
94
|
installed.push(fileResult);
|
|
93
95
|
break;
|
|
94
96
|
}
|
|
95
97
|
case "overwrite": {
|
|
96
98
|
// User hasn't edited — safe to overwrite
|
|
97
|
-
const destPath = join(skillsTargetDir, entry.path);
|
|
98
99
|
const content = await readFile(packagePath, "utf-8");
|
|
99
|
-
await writeFile(
|
|
100
|
+
await writeFile(localPath, content, "utf-8");
|
|
100
101
|
updated.push(fileResult);
|
|
101
102
|
break;
|
|
102
103
|
}
|
|
@@ -111,9 +112,8 @@ export async function runUpdate(options) {
|
|
|
111
112
|
backupDir = await createBackupDir(targetDir);
|
|
112
113
|
}
|
|
113
114
|
await backupFile(backupDir, localPath, entry.path);
|
|
114
|
-
const destPath = join(skillsTargetDir, entry.path);
|
|
115
115
|
const content = await readFile(packagePath, "utf-8");
|
|
116
|
-
await writeFile(
|
|
116
|
+
await writeFile(localPath, content, "utf-8");
|
|
117
117
|
updated.push({ ...fileResult, action: "overwrite" });
|
|
118
118
|
}
|
|
119
119
|
else {
|
|
@@ -129,13 +129,13 @@ export async function runUpdate(options) {
|
|
|
129
129
|
...manifest,
|
|
130
130
|
version,
|
|
131
131
|
installed_at: new Date().toISOString(),
|
|
132
|
-
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
132
|
+
files: manifest.files.map((entry) => {
|
|
133
|
+
const result = [...installed, ...updated].find((r) => r.path === entry.path);
|
|
134
|
+
if (result) {
|
|
135
135
|
return {
|
|
136
136
|
...entry,
|
|
137
|
-
sha256:
|
|
138
|
-
origin_sha256:
|
|
137
|
+
sha256: result.packageHash,
|
|
138
|
+
origin_sha256: result.packageHash,
|
|
139
139
|
};
|
|
140
140
|
}
|
|
141
141
|
return entry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../core/distribution/update.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"update.js","sourceRoot":"","sources":["../../../core/distribution/update.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AAEH,OAAO,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAC1C,OAAO,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACrC,OAAO,EAAE,YAAY,EAAE,aAAa,EAAiB,MAAM,eAAe,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAwB,MAAM,iBAAiB,CAAC;AAClE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AA8B1D;;GAEG;AACH,KAAK,UAAU,UAAU,CAAC,IAAY;IACpC,IAAI,CAAC;QACH,MAAM,MAAM,CAAC,IAAI,CAAC,CAAC;QACnB,OAAO,IAAI,CAAC;IACd,CAAC;IAAC,MAAM,CAAC;QACP,OAAO,KAAK,CAAC;IACf,CAAC;AACH,CAAC;AAED;;;;;;;;;GASG;AACH,MAAM,CAAC,KAAK,UAAU,SAAS,CAAC,OAAsB;IACpD,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAE,OAAO,EAAE,GAAG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CAAC;IAClD,CAAC;IAED,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAE,SAAS,EAAE,CAAC;AAC/D,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Component.
|
|
3
|
-
* Spec §8.5 — derives component.
|
|
2
|
+
* Component.json derivation + provenance assembly.
|
|
3
|
+
* Spec §8.5 — derives component.json fields from detection + extraction outputs,
|
|
4
4
|
* assembles _provenance metadata, and integrates with reconciliation for idempotency.
|
|
5
5
|
*
|
|
6
6
|
* Field categories:
|
|
@@ -27,7 +27,7 @@ export interface FieldProvenance {
|
|
|
27
27
|
confirmed_by?: string;
|
|
28
28
|
}
|
|
29
29
|
/**
|
|
30
|
-
* The _provenance block embedded inside component.
|
|
30
|
+
* The _provenance block embedded inside component.json.
|
|
31
31
|
*/
|
|
32
32
|
export interface ProvenanceBlock {
|
|
33
33
|
extracted_at: string;
|
|
@@ -38,7 +38,7 @@ export interface ProvenanceBlock {
|
|
|
38
38
|
field_hashes: Record<string, string>;
|
|
39
39
|
}
|
|
40
40
|
/**
|
|
41
|
-
* A provides entry in component.
|
|
41
|
+
* A provides entry in component.json.
|
|
42
42
|
*/
|
|
43
43
|
export interface ProvidesEntry {
|
|
44
44
|
path: string;
|
|
@@ -47,7 +47,7 @@ export interface ProvidesEntry {
|
|
|
47
47
|
confidence?: Confidence;
|
|
48
48
|
}
|
|
49
49
|
/**
|
|
50
|
-
* A consumes entry in component.
|
|
50
|
+
* A consumes entry in component.json.
|
|
51
51
|
*/
|
|
52
52
|
export interface ConsumesEntry {
|
|
53
53
|
service: string;
|
|
@@ -55,7 +55,7 @@ export interface ConsumesEntry {
|
|
|
55
55
|
criticality?: string;
|
|
56
56
|
}
|
|
57
57
|
/**
|
|
58
|
-
* The component.
|
|
58
|
+
* The component.json data structure.
|
|
59
59
|
*/
|
|
60
60
|
export interface ComponentYaml {
|
|
61
61
|
name: string;
|
|
@@ -178,10 +178,10 @@ export declare function assembleProvenance(inputs: ExtractionInputs, component:
|
|
|
178
178
|
*/
|
|
179
179
|
export declare function deriveComponent(options: DeriveComponentOptions): ComponentYaml;
|
|
180
180
|
/**
|
|
181
|
-
* Reconcile a component.
|
|
181
|
+
* Reconcile a component.json field against its prior version.
|
|
182
182
|
* Uses the hash-based reconcile engine from core/reconcile.ts.
|
|
183
183
|
*
|
|
184
|
-
* - localHash: current hash of the field in the existing component.
|
|
184
|
+
* - localHash: current hash of the field in the existing component.json on disk
|
|
185
185
|
* - originHash: hash recorded in _provenance.field_hashes at last extraction
|
|
186
186
|
* - newHash: hash of the newly derived value
|
|
187
187
|
*
|
|
@@ -189,7 +189,7 @@ export declare function deriveComponent(options: DeriveComponentOptions): Compon
|
|
|
189
189
|
*/
|
|
190
190
|
export declare function reconcileField(localHash: string | null, originHash: string, newHash: string): ReconcileAction;
|
|
191
191
|
/**
|
|
192
|
-
* Reconcile an entire component.
|
|
192
|
+
* Reconcile an entire component.json against a prior version on disk.
|
|
193
193
|
* Returns a map of field → action.
|
|
194
194
|
*/
|
|
195
195
|
export declare function reconcileComponent(existingFieldHashes: Record<string, string> | null, provenanceFieldHashes: Record<string, string>, newFieldHashes: Record<string, string>): Record<string, ReconcileAction>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Component.
|
|
3
|
-
* Spec §8.5 — derives component.
|
|
2
|
+
* Component.json derivation + provenance assembly.
|
|
3
|
+
* Spec §8.5 — derives component.json fields from detection + extraction outputs,
|
|
4
4
|
* assembles _provenance metadata, and integrates with reconciliation for idempotency.
|
|
5
5
|
*
|
|
6
6
|
* Field categories:
|
|
@@ -209,10 +209,10 @@ export function deriveComponent(options) {
|
|
|
209
209
|
};
|
|
210
210
|
}
|
|
211
211
|
/**
|
|
212
|
-
* Reconcile a component.
|
|
212
|
+
* Reconcile a component.json field against its prior version.
|
|
213
213
|
* Uses the hash-based reconcile engine from core/reconcile.ts.
|
|
214
214
|
*
|
|
215
|
-
* - localHash: current hash of the field in the existing component.
|
|
215
|
+
* - localHash: current hash of the field in the existing component.json on disk
|
|
216
216
|
* - originHash: hash recorded in _provenance.field_hashes at last extraction
|
|
217
217
|
* - newHash: hash of the newly derived value
|
|
218
218
|
*
|
|
@@ -222,7 +222,7 @@ export function reconcileField(localHash, originHash, newHash) {
|
|
|
222
222
|
return reconcile(localHash, originHash, newHash);
|
|
223
223
|
}
|
|
224
224
|
/**
|
|
225
|
-
* Reconcile an entire component.
|
|
225
|
+
* Reconcile an entire component.json against a prior version on disk.
|
|
226
226
|
* Returns a map of field → action.
|
|
227
227
|
*/
|
|
228
228
|
export function reconcileComponent(existingFieldHashes, provenanceFieldHashes, newFieldHashes) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Extraction report generation.
|
|
3
|
-
* Produces extraction_report.json alongside component.
|
|
3
|
+
* Produces extraction_report.json alongside component.json.
|
|
4
4
|
*
|
|
5
5
|
* Reports: strategies used, coverage (endpoints/topics/tables resolved vs unresolved),
|
|
6
6
|
* confidence counts, unresolved[] with location + reason, requires_human[].
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Extraction report generation.
|
|
3
|
-
* Produces extraction_report.json alongside component.
|
|
3
|
+
* Produces extraction_report.json alongside component.json.
|
|
4
4
|
*
|
|
5
5
|
* Reports: strategies used, coverage (endpoints/topics/tables resolved vs unresolved),
|
|
6
6
|
* confidence counts, unresolved[] with location + reason, requires_human[].
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@llipe.com/dev-tasks",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.5",
|
|
4
4
|
"description": "Multi-repo context tooling for dev-tasks",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"imports": {
|
|
@@ -16,7 +16,20 @@
|
|
|
16
16
|
"dist/core/",
|
|
17
17
|
"dist/adapters/",
|
|
18
18
|
"schemas/",
|
|
19
|
-
"
|
|
19
|
+
".github/agents/",
|
|
20
|
+
".github/skills/",
|
|
21
|
+
".github/instructions/",
|
|
22
|
+
".github/prompts/",
|
|
23
|
+
".claude/agents/",
|
|
24
|
+
".claude/skills/",
|
|
25
|
+
".claude/commands/",
|
|
26
|
+
".claude/hooks/",
|
|
27
|
+
".kiro/agents/",
|
|
28
|
+
".kiro/skills/",
|
|
29
|
+
".kiro/steering/",
|
|
30
|
+
".kiro/hooks/",
|
|
31
|
+
"AGENTS.md",
|
|
32
|
+
"CLAUDE.md",
|
|
20
33
|
"bundle-manifest.json",
|
|
21
34
|
"README.md",
|
|
22
35
|
"CHANGELOG.md"
|
package/skills/.gitkeep
DELETED
|
File without changes
|