@levelcode/cli 0.3.0 → 0.3.2
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/index.js +83 -24
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -74809,7 +74809,8 @@ var init_vp_engineering = __esm(() => {
|
|
|
74809
74809
|
"code-searcher",
|
|
74810
74810
|
"directory-lister",
|
|
74811
74811
|
"researcher-web",
|
|
74812
|
-
"researcher-docs"
|
|
74812
|
+
"researcher-docs",
|
|
74813
|
+
"context-pruner"
|
|
74813
74814
|
],
|
|
74814
74815
|
systemPrompt: `You are a VP of Engineering Agent within a LevelCode swarm team. You are responsible for engineering operations, delivery execution, and organizational effectiveness.
|
|
74815
74816
|
|
|
@@ -74919,7 +74920,8 @@ var init_director = __esm(() => {
|
|
|
74919
74920
|
"code-searcher",
|
|
74920
74921
|
"directory-lister",
|
|
74921
74922
|
"researcher-web",
|
|
74922
|
-
"researcher-docs"
|
|
74923
|
+
"researcher-docs",
|
|
74924
|
+
"context-pruner"
|
|
74923
74925
|
],
|
|
74924
74926
|
systemPrompt: `You are an Engineering Director Agent within a LevelCode swarm team. You manage multiple teams and ensure cross-team alignment and delivery.
|
|
74925
74927
|
|
|
@@ -75256,7 +75258,8 @@ var init_principal_engineer = __esm(() => {
|
|
|
75256
75258
|
"glob-matcher",
|
|
75257
75259
|
"commander",
|
|
75258
75260
|
"researcher-web",
|
|
75259
|
-
"researcher-docs"
|
|
75261
|
+
"researcher-docs",
|
|
75262
|
+
"context-pruner"
|
|
75260
75263
|
],
|
|
75261
75264
|
systemPrompt: `You are a Principal Engineer Agent within a LevelCode swarm team. You are the highest-level technical individual contributor, responsible for setting architectural direction and solving the hardest engineering problems.
|
|
75262
75265
|
|
|
@@ -75370,7 +75373,8 @@ var init_senior_staff_engineer = __esm(() => {
|
|
|
75370
75373
|
"glob-matcher",
|
|
75371
75374
|
"commander",
|
|
75372
75375
|
"researcher-web",
|
|
75373
|
-
"researcher-docs"
|
|
75376
|
+
"researcher-docs",
|
|
75377
|
+
"context-pruner"
|
|
75374
75378
|
],
|
|
75375
75379
|
systemPrompt: `You are a Senior Staff Engineer Agent within a LevelCode swarm team. You are one of the most technically experienced ICs, responsible for driving large-scale technical initiatives and providing cross-team technical leadership.
|
|
75376
75380
|
|
|
@@ -75481,7 +75485,8 @@ var init_staff_engineer = __esm(() => {
|
|
|
75481
75485
|
"code-searcher",
|
|
75482
75486
|
"directory-lister",
|
|
75483
75487
|
"glob-matcher",
|
|
75484
|
-
"commander"
|
|
75488
|
+
"commander",
|
|
75489
|
+
"context-pruner"
|
|
75485
75490
|
],
|
|
75486
75491
|
systemPrompt: `You are a Staff Engineer Agent within a LevelCode swarm team. You are a senior technical leader who drives complex engineering initiatives and sets technical direction within your domain.
|
|
75487
75492
|
|
|
@@ -75579,7 +75584,8 @@ var init_manager = __esm(() => {
|
|
|
75579
75584
|
],
|
|
75580
75585
|
spawnableAgents: [
|
|
75581
75586
|
"senior-engineer",
|
|
75582
|
-
"team-mid-level-engineer"
|
|
75587
|
+
"team-mid-level-engineer",
|
|
75588
|
+
"context-pruner"
|
|
75583
75589
|
],
|
|
75584
75590
|
systemPrompt: `You are a Manager Agent responsible for overseeing a group of engineers within a LevelCode swarm team.
|
|
75585
75591
|
|
|
@@ -75701,7 +75707,8 @@ var init_sub_manager = __esm(() => {
|
|
|
75701
75707
|
"code-searcher",
|
|
75702
75708
|
"directory-lister",
|
|
75703
75709
|
"glob-matcher",
|
|
75704
|
-
"commander"
|
|
75710
|
+
"commander",
|
|
75711
|
+
"context-pruner"
|
|
75705
75712
|
],
|
|
75706
75713
|
systemPrompt: `You are a Sub-Manager Agent (Team Lead) within a LevelCode swarm team. You coordinate a small group of engineers on a focused workstream.
|
|
75707
75714
|
|
|
@@ -75829,7 +75836,7 @@ var init_senior_engineer = __esm(() => {
|
|
|
75829
75836
|
outputMode: "last_message",
|
|
75830
75837
|
includeMessageHistory: true,
|
|
75831
75838
|
toolNames: buildArray("spawn_agents", "read_files", "read_subtree", "str_replace", "write_file", "propose_str_replace", "propose_write_file", "code_search", "find_files", "glob", "list_directory", "run_terminal_command", "write_todos", "set_output", "skill", "think_deeply"),
|
|
75832
|
-
spawnableAgents: buildArray("file-picker", "thinker", "code-reviewer", "code-searcher", "directory-lister", "glob-matcher", "commander"),
|
|
75839
|
+
spawnableAgents: buildArray("file-picker", "thinker", "code-reviewer", "code-searcher", "directory-lister", "glob-matcher", "commander", "context-pruner"),
|
|
75833
75840
|
systemPrompt: `You are Atlas, a Senior Engineer operating within a LevelCode team. You are a strong individual contributor with deep technical expertise who takes ownership of complex engineering tasks.
|
|
75834
75841
|
|
|
75835
75842
|
# Role
|
|
@@ -75879,6 +75886,15 @@ Spawn context-gathering agents before making edits. Spawn the code-reviewer afte
|
|
|
75879
75886
|
- Do not cast types as "any". Maintain strong typing throughout.
|
|
75880
75887
|
- When modifying exported symbols, find and update all references.
|
|
75881
75888
|
|
|
75889
|
+
# Output Completeness \u2014 CRITICAL
|
|
75890
|
+
|
|
75891
|
+
- NEVER truncate or abbreviate your output. There are NO length constraints.
|
|
75892
|
+
- NEVER create stubs, placeholders, or TODO comments instead of real implementations.
|
|
75893
|
+
- NEVER say "due to length constraints" or "for brevity" \u2014 write the complete code.
|
|
75894
|
+
- If the task asks for 2000+ lines, write 2000+ lines. The system handles context automatically.
|
|
75895
|
+
- If you run out of context, the context-pruner will handle it. Just keep writing.
|
|
75896
|
+
- Deliver production-ready, complete, compilable code every time.
|
|
75897
|
+
|
|
75882
75898
|
${PLACEHOLDER.FILE_TREE_PROMPT_SMALL}
|
|
75883
75899
|
${PLACEHOLDER.KNOWLEDGE_FILES_CONTENTS}
|
|
75884
75900
|
${PLACEHOLDER.SYSTEM_INFO_PROMPT}
|
|
@@ -75969,7 +75985,8 @@ var init_mid_level_engineer = __esm(() => {
|
|
|
75969
75985
|
"code-searcher",
|
|
75970
75986
|
"directory-lister",
|
|
75971
75987
|
"glob-matcher",
|
|
75972
|
-
"commander"
|
|
75988
|
+
"commander",
|
|
75989
|
+
"context-pruner"
|
|
75973
75990
|
],
|
|
75974
75991
|
systemPrompt: `You are a Mid-Level Engineer Agent within a LevelCode swarm team. You are a capable individual contributor who handles a wide range of implementation tasks independently.
|
|
75975
75992
|
|
|
@@ -76074,7 +76091,8 @@ var init_junior_engineer = __esm(() => {
|
|
|
76074
76091
|
"code-searcher",
|
|
76075
76092
|
"directory-lister",
|
|
76076
76093
|
"glob-matcher",
|
|
76077
|
-
"commander"
|
|
76094
|
+
"commander",
|
|
76095
|
+
"context-pruner"
|
|
76078
76096
|
],
|
|
76079
76097
|
systemPrompt: `You are a Junior Engineer Agent within a LevelCode swarm team. You handle well-scoped implementation tasks under the guidance of more senior engineers.
|
|
76080
76098
|
|
|
@@ -76289,7 +76307,8 @@ var init_scientist = __esm(() => {
|
|
|
76289
76307
|
"glob-matcher",
|
|
76290
76308
|
"commander",
|
|
76291
76309
|
"researcher-web",
|
|
76292
|
-
"researcher-docs"
|
|
76310
|
+
"researcher-docs",
|
|
76311
|
+
"context-pruner"
|
|
76293
76312
|
],
|
|
76294
76313
|
systemPrompt: `You are a Scientist Agent within a LevelCode swarm team. You investigate technical problems through experimentation, measurement, and systematic analysis.
|
|
76295
76314
|
|
|
@@ -76622,7 +76641,8 @@ var init_tester = __esm(() => {
|
|
|
76622
76641
|
"code-searcher",
|
|
76623
76642
|
"directory-lister",
|
|
76624
76643
|
"glob-matcher",
|
|
76625
|
-
"commander"
|
|
76644
|
+
"commander",
|
|
76645
|
+
"context-pruner"
|
|
76626
76646
|
],
|
|
76627
76647
|
systemPrompt: `You are a Tester Agent within a LevelCode swarm team. You are a testing specialist responsible for ensuring code quality through comprehensive, well-structured tests.
|
|
76628
76648
|
|
|
@@ -86722,6 +86742,22 @@ When no tasks are available for you to work on:
|
|
|
86722
86742
|
2. If no tasks are available, send an idle notification by using SendMessage with type "message" to the team leader, summarizing what you completed and that you are waiting for work.
|
|
86723
86743
|
3. Do not spin or poll repeatedly. Wait for new messages in your inbox.`;
|
|
86724
86744
|
}
|
|
86745
|
+
function buildQualityStandards() {
|
|
86746
|
+
return `## Output Quality Standards
|
|
86747
|
+
|
|
86748
|
+
CRITICAL: Never truncate, abbreviate, or create stub/placeholder implementations.
|
|
86749
|
+
|
|
86750
|
+
- **Never say** "due to length constraints" or "for brevity" \u2014 there are no length constraints. Produce complete, full implementations.
|
|
86751
|
+
- **Never create stubs** like "// TODO: implement" or "// remaining implementation here". Write the actual code.
|
|
86752
|
+
- **Never skip sections** of code with comments like "// ... rest of implementation similar to above". Write every line.
|
|
86753
|
+
- **If your output is getting long**, that is fine. Continue writing. The system handles context limits automatically via context-pruner.
|
|
86754
|
+
- **If you run out of context space**, the system will spawn a context-pruner to summarize and continue. You do not need to manage this yourself.
|
|
86755
|
+
- **Quality over speed.** A complete 2000-line implementation is better than a 200-line stub with TODOs.
|
|
86756
|
+
- **Production-ready code only.** Every file you create should compile, have proper error handling, and be ready to ship.
|
|
86757
|
+
- **Include all imports, all types, all tests** that were requested. Do not skip any part of the specification.
|
|
86758
|
+
|
|
86759
|
+
If a task is genuinely too large for a single step, break it into sub-tasks and complete each one fully. Never deliver partial work.`;
|
|
86760
|
+
}
|
|
86725
86761
|
function buildShutdownProtocol() {
|
|
86726
86762
|
return `## Shutdown Protocol
|
|
86727
86763
|
|
|
@@ -86792,6 +86828,8 @@ function generateTeamContextPrompt(config2) {
|
|
|
86792
86828
|
"",
|
|
86793
86829
|
buildAvailableTools(config2),
|
|
86794
86830
|
"",
|
|
86831
|
+
buildQualityStandards(),
|
|
86832
|
+
"",
|
|
86795
86833
|
buildCommunicationProtocol(),
|
|
86796
86834
|
"",
|
|
86797
86835
|
buildTaskWorkflow(),
|
|
@@ -165016,7 +165054,8 @@ Focus on practical, implementable guidance grounded in the existing codebase rat
|
|
|
165016
165054
|
"code-searcher",
|
|
165017
165055
|
"directory-lister",
|
|
165018
165056
|
"researcher-web",
|
|
165019
|
-
"researcher-docs"
|
|
165057
|
+
"researcher-docs",
|
|
165058
|
+
"context-pruner"
|
|
165020
165059
|
],
|
|
165021
165060
|
systemPrompt: `You are an Engineering Director Agent within a LevelCode swarm team. You manage multiple teams and ensure cross-team alignment and delivery.
|
|
165022
165061
|
|
|
@@ -165397,7 +165436,8 @@ Do not go beyond the scope of what was asked. If the task is unclear, state what
|
|
|
165397
165436
|
"code-searcher",
|
|
165398
165437
|
"directory-lister",
|
|
165399
165438
|
"glob-matcher",
|
|
165400
|
-
"commander"
|
|
165439
|
+
"commander",
|
|
165440
|
+
"context-pruner"
|
|
165401
165441
|
],
|
|
165402
165442
|
systemPrompt: `You are a Junior Engineer Agent within a LevelCode swarm team. You handle well-scoped implementation tasks under the guidance of more senior engineers.
|
|
165403
165443
|
|
|
@@ -165485,7 +165525,8 @@ Stay focused on the specific task. Do not expand scope or make improvements beyo
|
|
|
165485
165525
|
],
|
|
165486
165526
|
spawnableAgents: [
|
|
165487
165527
|
"senior-engineer",
|
|
165488
|
-
"team-mid-level-engineer"
|
|
165528
|
+
"team-mid-level-engineer",
|
|
165529
|
+
"context-pruner"
|
|
165489
165530
|
],
|
|
165490
165531
|
systemPrompt: `You are a Manager Agent responsible for overseeing a group of engineers within a LevelCode swarm team.
|
|
165491
165532
|
|
|
@@ -165600,7 +165641,8 @@ When spawning engineers, provide them with:
|
|
|
165600
165641
|
"code-searcher",
|
|
165601
165642
|
"directory-lister",
|
|
165602
165643
|
"glob-matcher",
|
|
165603
|
-
"commander"
|
|
165644
|
+
"commander",
|
|
165645
|
+
"context-pruner"
|
|
165604
165646
|
],
|
|
165605
165647
|
systemPrompt: `You are a Mid-Level Engineer Agent within a LevelCode swarm team. You are a capable individual contributor who handles a wide range of implementation tasks independently.
|
|
165606
165648
|
|
|
@@ -165712,7 +165754,8 @@ Work methodically. Gather context first, implement carefully, and validate thoro
|
|
|
165712
165754
|
"glob-matcher",
|
|
165713
165755
|
"commander",
|
|
165714
165756
|
"researcher-web",
|
|
165715
|
-
"researcher-docs"
|
|
165757
|
+
"researcher-docs",
|
|
165758
|
+
"context-pruner"
|
|
165716
165759
|
],
|
|
165717
165760
|
systemPrompt: `You are a Principal Engineer Agent within a LevelCode swarm team. You are the highest-level technical individual contributor, responsible for setting architectural direction and solving the hardest engineering problems.
|
|
165718
165761
|
|
|
@@ -166037,7 +166080,8 @@ Be thorough but focused. Prioritize information that directly answers the resear
|
|
|
166037
166080
|
"glob-matcher",
|
|
166038
166081
|
"commander",
|
|
166039
166082
|
"researcher-web",
|
|
166040
|
-
"researcher-docs"
|
|
166083
|
+
"researcher-docs",
|
|
166084
|
+
"context-pruner"
|
|
166041
166085
|
],
|
|
166042
166086
|
systemPrompt: `You are a Scientist Agent within a LevelCode swarm team. You investigate technical problems through experimentation, measurement, and systematic analysis.
|
|
166043
166087
|
|
|
@@ -166146,7 +166190,8 @@ Be rigorous. The value of your work depends on the reliability of your conclusio
|
|
|
166146
166190
|
"code-searcher",
|
|
166147
166191
|
"directory-lister",
|
|
166148
166192
|
"glob-matcher",
|
|
166149
|
-
"commander"
|
|
166193
|
+
"commander",
|
|
166194
|
+
"context-pruner"
|
|
166150
166195
|
],
|
|
166151
166196
|
systemPrompt: `You are Atlas, a Senior Engineer operating within a LevelCode team. You are a strong individual contributor with deep technical expertise who takes ownership of complex engineering tasks.
|
|
166152
166197
|
|
|
@@ -166197,6 +166242,15 @@ Spawn context-gathering agents before making edits. Spawn the code-reviewer afte
|
|
|
166197
166242
|
- Do not cast types as "any". Maintain strong typing throughout.
|
|
166198
166243
|
- When modifying exported symbols, find and update all references.
|
|
166199
166244
|
|
|
166245
|
+
# Output Completeness \u2014 CRITICAL
|
|
166246
|
+
|
|
166247
|
+
- NEVER truncate or abbreviate your output. There are NO length constraints.
|
|
166248
|
+
- NEVER create stubs, placeholders, or TODO comments instead of real implementations.
|
|
166249
|
+
- NEVER say "due to length constraints" or "for brevity" \u2014 write the complete code.
|
|
166250
|
+
- If the task asks for 2000+ lines, write 2000+ lines. The system handles context automatically.
|
|
166251
|
+
- If you run out of context, the context-pruner will handle it. Just keep writing.
|
|
166252
|
+
- Deliver production-ready, complete, compilable code every time.
|
|
166253
|
+
|
|
166200
166254
|
{LEVELCODE_FILE_TREE_PROMPT_SMALL}
|
|
166201
166255
|
{LEVELCODE_KNOWLEDGE_FILES_CONTENTS}
|
|
166202
166256
|
{LEVELCODE_SYSTEM_INFO_PROMPT}
|
|
@@ -166290,7 +166344,8 @@ Spawn context-gathering agents before making edits. Spawn the code-reviewer afte
|
|
|
166290
166344
|
"glob-matcher",
|
|
166291
166345
|
"commander",
|
|
166292
166346
|
"researcher-web",
|
|
166293
|
-
"researcher-docs"
|
|
166347
|
+
"researcher-docs",
|
|
166348
|
+
"context-pruner"
|
|
166294
166349
|
],
|
|
166295
166350
|
systemPrompt: `You are a Senior Staff Engineer Agent within a LevelCode swarm team. You are one of the most technically experienced ICs, responsible for driving large-scale technical initiatives and providing cross-team technical leadership.
|
|
166296
166351
|
|
|
@@ -166395,7 +166450,8 @@ You are a senior staff IC responsible for:
|
|
|
166395
166450
|
"code-searcher",
|
|
166396
166451
|
"directory-lister",
|
|
166397
166452
|
"glob-matcher",
|
|
166398
|
-
"commander"
|
|
166453
|
+
"commander",
|
|
166454
|
+
"context-pruner"
|
|
166399
166455
|
],
|
|
166400
166456
|
systemPrompt: `You are a Staff Engineer Agent within a LevelCode swarm team. You are a senior technical leader who drives complex engineering initiatives and sets technical direction within your domain.
|
|
166401
166457
|
|
|
@@ -166497,7 +166553,8 @@ You are a staff-level IC responsible for:
|
|
|
166497
166553
|
"code-searcher",
|
|
166498
166554
|
"directory-lister",
|
|
166499
166555
|
"glob-matcher",
|
|
166500
|
-
"commander"
|
|
166556
|
+
"commander",
|
|
166557
|
+
"context-pruner"
|
|
166501
166558
|
],
|
|
166502
166559
|
systemPrompt: `You are a Sub-Manager Agent (Team Lead) within a LevelCode swarm team. You coordinate a small group of engineers on a focused workstream.
|
|
166503
166560
|
|
|
@@ -166595,7 +166652,8 @@ Provide engineers with all the context they need upfront to minimize back-and-fo
|
|
|
166595
166652
|
"code-searcher",
|
|
166596
166653
|
"directory-lister",
|
|
166597
166654
|
"glob-matcher",
|
|
166598
|
-
"commander"
|
|
166655
|
+
"commander",
|
|
166656
|
+
"context-pruner"
|
|
166599
166657
|
],
|
|
166600
166658
|
systemPrompt: `You are a Tester Agent within a LevelCode swarm team. You are a testing specialist responsible for ensuring code quality through comprehensive, well-structured tests.
|
|
166601
166659
|
|
|
@@ -166708,7 +166766,8 @@ Be thorough. A test suite that only covers happy paths is incomplete. Think adve
|
|
|
166708
166766
|
"code-searcher",
|
|
166709
166767
|
"directory-lister",
|
|
166710
166768
|
"researcher-web",
|
|
166711
|
-
"researcher-docs"
|
|
166769
|
+
"researcher-docs",
|
|
166770
|
+
"context-pruner"
|
|
166712
166771
|
],
|
|
166713
166772
|
systemPrompt: `You are a VP of Engineering Agent within a LevelCode swarm team. You are responsible for engineering operations, delivery execution, and organizational effectiveness.
|
|
166714
166773
|
|