@joshski/dust 0.1.74 → 0.1.75
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/audits.js +50 -0
- package/dist/dust.js +51 -1
- package/package.json +1 -1
package/dist/audits.js
CHANGED
|
@@ -670,6 +670,55 @@ function globalState() {
|
|
|
670
670
|
- [ ] Proposed ideas for refactoring global state to explicit dependencies
|
|
671
671
|
`;
|
|
672
672
|
}
|
|
673
|
+
function repositoryContext() {
|
|
674
|
+
return dedent`
|
|
675
|
+
# Repository Context
|
|
676
|
+
|
|
677
|
+
Compile or update \`.dust/repository.md\` with a high-level overview of the repository's purpose, capabilities, and design philosophy.
|
|
678
|
+
|
|
679
|
+
## Purpose
|
|
680
|
+
|
|
681
|
+
The repository context document helps downstream agents quickly understand the project without reading individual files. It describes features, scenarios, and design philosophy rather than implementation details. This enables high-level planning where agents reason about capabilities rather than code structure.
|
|
682
|
+
|
|
683
|
+
## Scope
|
|
684
|
+
|
|
685
|
+
Review the current state of the codebase and produce a document covering:
|
|
686
|
+
|
|
687
|
+
1. **What the project is** - A one-sentence summary of its purpose
|
|
688
|
+
2. **What it does** - The key capabilities and features it provides
|
|
689
|
+
3. **How it fits into workflows** - How users or other systems interact with it
|
|
690
|
+
4. **Design philosophy** - The guiding principles behind its architecture
|
|
691
|
+
5. **Key scenarios** - The main use cases or user journeys it supports
|
|
692
|
+
|
|
693
|
+
Avoid mentioning specific file paths, class names, or implementation details. Write for someone who needs to make high-level suggestions about the project's direction, not someone about to edit a specific file.
|
|
694
|
+
|
|
695
|
+
## Analysis Steps
|
|
696
|
+
|
|
697
|
+
1. Read the existing \`.dust/repository.md\` if it exists
|
|
698
|
+
2. Review README, package.json, and top-level documentation for project purpose
|
|
699
|
+
3. Scan the codebase to understand features and capabilities
|
|
700
|
+
4. Review \`.dust/principles/\` for design philosophy
|
|
701
|
+
5. Review \`.dust/facts/\` for context on current state
|
|
702
|
+
6. Update \`.dust/repository.md\` with current findings, preserving any sections that are still accurate
|
|
703
|
+
|
|
704
|
+
## Principles
|
|
705
|
+
|
|
706
|
+
(none)
|
|
707
|
+
|
|
708
|
+
## Blocked By
|
|
709
|
+
|
|
710
|
+
(none)
|
|
711
|
+
|
|
712
|
+
## Definition of Done
|
|
713
|
+
|
|
714
|
+
- [ ] \`.dust/repository.md\` exists and is up to date
|
|
715
|
+
- [ ] Document describes what the project does without referencing specific files
|
|
716
|
+
- [ ] Key capabilities and features are listed
|
|
717
|
+
- [ ] Design philosophy or guiding approach is captured
|
|
718
|
+
- [ ] Document is concise enough to fit comfortably in an agent context window
|
|
719
|
+
- [ ] A new agent reading only this document could make sensible high-level suggestions
|
|
720
|
+
`;
|
|
721
|
+
}
|
|
673
722
|
function ubiquitousLanguage() {
|
|
674
723
|
return dedent`
|
|
675
724
|
# Ubiquitous Language
|
|
@@ -736,6 +785,7 @@ var stockAuditFunctions = {
|
|
|
736
785
|
"ideas-from-principles": ideasFromPrinciples,
|
|
737
786
|
"performance-review": performanceReview,
|
|
738
787
|
"refactoring-opportunities": refactoringOpportunities,
|
|
788
|
+
"repository-context": repositoryContext,
|
|
739
789
|
"security-review": securityReview,
|
|
740
790
|
"stale-ideas": staleIdeas,
|
|
741
791
|
"test-coverage": testCoverage,
|
package/dist/dust.js
CHANGED
|
@@ -275,7 +275,7 @@ async function loadSettings(cwd, fileSystem) {
|
|
|
275
275
|
}
|
|
276
276
|
|
|
277
277
|
// lib/version.ts
|
|
278
|
-
var DUST_VERSION = "0.1.
|
|
278
|
+
var DUST_VERSION = "0.1.75";
|
|
279
279
|
|
|
280
280
|
// lib/session.ts
|
|
281
281
|
var DUST_UNATTENDED = "DUST_UNATTENDED";
|
|
@@ -1217,6 +1217,55 @@ function globalState() {
|
|
|
1217
1217
|
- [ ] Proposed ideas for refactoring global state to explicit dependencies
|
|
1218
1218
|
`;
|
|
1219
1219
|
}
|
|
1220
|
+
function repositoryContext() {
|
|
1221
|
+
return dedent`
|
|
1222
|
+
# Repository Context
|
|
1223
|
+
|
|
1224
|
+
Compile or update \`.dust/repository.md\` with a high-level overview of the repository's purpose, capabilities, and design philosophy.
|
|
1225
|
+
|
|
1226
|
+
## Purpose
|
|
1227
|
+
|
|
1228
|
+
The repository context document helps downstream agents quickly understand the project without reading individual files. It describes features, scenarios, and design philosophy rather than implementation details. This enables high-level planning where agents reason about capabilities rather than code structure.
|
|
1229
|
+
|
|
1230
|
+
## Scope
|
|
1231
|
+
|
|
1232
|
+
Review the current state of the codebase and produce a document covering:
|
|
1233
|
+
|
|
1234
|
+
1. **What the project is** - A one-sentence summary of its purpose
|
|
1235
|
+
2. **What it does** - The key capabilities and features it provides
|
|
1236
|
+
3. **How it fits into workflows** - How users or other systems interact with it
|
|
1237
|
+
4. **Design philosophy** - The guiding principles behind its architecture
|
|
1238
|
+
5. **Key scenarios** - The main use cases or user journeys it supports
|
|
1239
|
+
|
|
1240
|
+
Avoid mentioning specific file paths, class names, or implementation details. Write for someone who needs to make high-level suggestions about the project's direction, not someone about to edit a specific file.
|
|
1241
|
+
|
|
1242
|
+
## Analysis Steps
|
|
1243
|
+
|
|
1244
|
+
1. Read the existing \`.dust/repository.md\` if it exists
|
|
1245
|
+
2. Review README, package.json, and top-level documentation for project purpose
|
|
1246
|
+
3. Scan the codebase to understand features and capabilities
|
|
1247
|
+
4. Review \`.dust/principles/\` for design philosophy
|
|
1248
|
+
5. Review \`.dust/facts/\` for context on current state
|
|
1249
|
+
6. Update \`.dust/repository.md\` with current findings, preserving any sections that are still accurate
|
|
1250
|
+
|
|
1251
|
+
## Principles
|
|
1252
|
+
|
|
1253
|
+
(none)
|
|
1254
|
+
|
|
1255
|
+
## Blocked By
|
|
1256
|
+
|
|
1257
|
+
(none)
|
|
1258
|
+
|
|
1259
|
+
## Definition of Done
|
|
1260
|
+
|
|
1261
|
+
- [ ] \`.dust/repository.md\` exists and is up to date
|
|
1262
|
+
- [ ] Document describes what the project does without referencing specific files
|
|
1263
|
+
- [ ] Key capabilities and features are listed
|
|
1264
|
+
- [ ] Design philosophy or guiding approach is captured
|
|
1265
|
+
- [ ] Document is concise enough to fit comfortably in an agent context window
|
|
1266
|
+
- [ ] A new agent reading only this document could make sensible high-level suggestions
|
|
1267
|
+
`;
|
|
1268
|
+
}
|
|
1220
1269
|
function ubiquitousLanguage() {
|
|
1221
1270
|
return dedent`
|
|
1222
1271
|
# Ubiquitous Language
|
|
@@ -1283,6 +1332,7 @@ var stockAuditFunctions = {
|
|
|
1283
1332
|
"ideas-from-principles": ideasFromPrinciples,
|
|
1284
1333
|
"performance-review": performanceReview,
|
|
1285
1334
|
"refactoring-opportunities": refactoringOpportunities,
|
|
1335
|
+
"repository-context": repositoryContext,
|
|
1286
1336
|
"security-review": securityReview,
|
|
1287
1337
|
"stale-ideas": staleIdeas,
|
|
1288
1338
|
"test-coverage": testCoverage,
|