@kenkaiiii/ggcoder 4.3.184 → 4.3.186
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/cli.js +1 -2
- package/dist/cli.js.map +1 -1
- package/dist/core/agent-session.d.ts.map +1 -1
- package/dist/core/agent-session.js +5 -4
- package/dist/core/agent-session.js.map +1 -1
- package/dist/core/prompt-commands.d.ts.map +1 -1
- package/dist/core/prompt-commands.js +121 -5
- package/dist/core/prompt-commands.js.map +1 -1
- package/dist/core/prompt-commands.test.d.ts +2 -0
- package/dist/core/prompt-commands.test.d.ts.map +1 -0
- package/dist/core/prompt-commands.test.js +25 -0
- package/dist/core/prompt-commands.test.js.map +1 -0
- package/dist/core/style-packs/index.d.ts.map +1 -1
- package/dist/core/style-packs/index.js +8 -9
- package/dist/core/style-packs/index.js.map +1 -1
- package/dist/interactive.d.ts.map +1 -1
- package/dist/interactive.js +8 -4
- package/dist/interactive.js.map +1 -1
- package/dist/system-prompt.d.ts.map +1 -1
- package/dist/system-prompt.js +102 -108
- package/dist/system-prompt.js.map +1 -1
- package/dist/system-prompt.test.d.ts +2 -0
- package/dist/system-prompt.test.d.ts.map +1 -0
- package/dist/system-prompt.test.js +104 -0
- package/dist/system-prompt.test.js.map +1 -0
- package/dist/tools/prompt-hints.js +4 -4
- package/dist/tools/prompt-hints.js.map +1 -1
- package/dist/ui/App.d.ts.map +1 -1
- package/dist/ui/App.js +72 -42
- package/dist/ui/App.js.map +1 -1
- package/dist/ui/components/ActivityIndicator.d.ts.map +1 -1
- package/dist/ui/components/ActivityIndicator.js +1 -0
- package/dist/ui/components/ActivityIndicator.js.map +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts +1 -1
- package/dist/ui/hooks/useAgentLoop.d.ts.map +1 -1
- package/dist/ui/hooks/useAgentLoop.js.map +1 -1
- package/package.json +5 -5
|
@@ -154,6 +154,111 @@ B) Just top priorities
|
|
|
154
154
|
C) Skip
|
|
155
155
|
|
|
156
156
|
Do not start fixing until the user chooses.`,
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
name: "expand",
|
|
160
|
+
aliases: [],
|
|
161
|
+
description: "Find high-value gaps by comparing this project to current alternatives",
|
|
162
|
+
prompt: `# Expand: Current Competitive Gap Review
|
|
163
|
+
|
|
164
|
+
Find high-value gaps by comparing this project to similar, adjacent, and best-in-class repositories/tools/websites/services. This command is project-agnostic: infer what THIS project is before choosing comparisons. This command is report-first: do not edit, install, or implement anything until the user chooses an option at the end.
|
|
165
|
+
|
|
166
|
+
## Phase 0: Profile this project first
|
|
167
|
+
|
|
168
|
+
Before external research, inspect the local project and write a private working profile:
|
|
169
|
+
|
|
170
|
+
- What the project does, who it serves, and how it ships/runs.
|
|
171
|
+
- Core workflows, entrypoints, packages/modules, integrations, and user-facing surfaces.
|
|
172
|
+
- Existing features, security controls, developer tooling, docs, tests, release/ops setup, and architecture patterns.
|
|
173
|
+
- The most relevant comparison categories for THIS project. Do not assume this is an AI-agent app unless the repo proves it.
|
|
174
|
+
|
|
175
|
+
Use this profile to decide what kinds of external projects are relevant. If the user passed arguments to /expand, treat them as a focus area and prioritize that lens while still validating project relevance.
|
|
176
|
+
|
|
177
|
+
## Phase 1: Parallel expansion research
|
|
178
|
+
|
|
179
|
+
Spawn exactly 5 sub-agents in parallel using the subagent tool (call the subagent tool 5 times in a single response). Give each sub-agent the project profile and a different comparison lens. Adapt the lenses to the project, but cover these defaults unless clearly irrelevant:
|
|
180
|
+
|
|
181
|
+
**Agent 1 - Direct peers & product features**: Find actively maintained projects/tools/services closest to this project. Look for user-facing capabilities, workflows, integrations, onboarding, and monetizable/retention-driving features they have that this project lacks.
|
|
182
|
+
|
|
183
|
+
**Agent 2 - Security, privacy & recent incidents**: Find recent security/privacy hardening, dependency ecosystem changes, advisories, exploit mitigations, auth/session patterns, sandboxing, supply-chain defenses, and issue/PR fixes from comparable projects that this project should consider.
|
|
184
|
+
|
|
185
|
+
**Agent 3 - Architecture, code quality & implementation shape**: Compare code organization, APIs, extensibility, agent/runtime loops, data models, concurrency, error handling, configuration, plugin systems, and maintainability patterns. Include cleaner implementation ideas only when they produce concrete user/developer value.
|
|
186
|
+
|
|
187
|
+
**Agent 4 - Developer experience, ops & release maturity**: Compare tests, CI/CD, docs, examples, templates, telemetry/observability, migrations, upgrade paths, packaging, installation, local dev, debugging, and support workflows.
|
|
188
|
+
|
|
189
|
+
**Agent 5 - Ecosystem, trends & adjacent inspiration**: Look beyond direct peers to adjacent current tools, libraries, SaaS products, standards, RFCs, framework releases, and recent commits/releases that suggest important missing directions.
|
|
190
|
+
|
|
191
|
+
Each sub-agent must:
|
|
192
|
+
|
|
193
|
+
1. Use current sources: prefer repos/releases/commits/docs/articles updated within the last 6 months. Drop old or stale sources unless they are canonical and still actively maintained.
|
|
194
|
+
2. Return only candidates that appear absent or materially weaker in this project.
|
|
195
|
+
3. Include source names/URLs, freshness date (commit/release/article/doc date), and the local search anchors they used or recommend to verify absence.
|
|
196
|
+
4. Separate findings into useful categories for the final report, such as Security, Product, Architecture, Developer Experience, Operations, or Ecosystem.
|
|
197
|
+
5. Avoid generic wishlist items. Every candidate must be grounded in an external comparison and relevant to this project profile.
|
|
198
|
+
|
|
199
|
+
## Phase 2: Main-agent validation against this repo
|
|
200
|
+
|
|
201
|
+
For every candidate from the sub-agents, validate it yourself before reporting:
|
|
202
|
+
|
|
203
|
+
1. Confirm the external source is relevant to this project and fresh enough (normally within 6 months).
|
|
204
|
+
2. Search this repo with grep/find and language-aware anchors to check whether the feature/pattern/control already exists under another name.
|
|
205
|
+
3. Check manifests, docs, configs, package exports, routes, CLI commands, tests, CI, examples, and framework conventions before calling something missing.
|
|
206
|
+
4. Use mcp__kencode-search__searchCode when code-level comparison would clarify whether the external implementation is materially cleaner or more complete. Use literal imports, functions, config keys, CLI flags, route names, or package names — not conceptual phrases.
|
|
207
|
+
5. Drop anything already present, not applicable, too vague, too stale, or unsupported by evidence.
|
|
208
|
+
6. Keep the report short: prioritize the highest-value gaps over completeness.
|
|
209
|
+
|
|
210
|
+
## What counts as a reportable gap
|
|
211
|
+
|
|
212
|
+
Report only gaps that are:
|
|
213
|
+
|
|
214
|
+
- **Missing capability**: A relevant current peer has a feature, integration, workflow, or user-facing behavior this project lacks.
|
|
215
|
+
- **Security/privacy hardening**: A current source addressed a meaningful risk this project has not addressed.
|
|
216
|
+
- **Operational maturity**: A relevant project has CI, release, observability, packaging, migration, or support practices this project lacks.
|
|
217
|
+
- **Developer experience**: A relevant project has docs, examples, tests, debugging, local dev, extension points, or generated commands that would materially improve this project.
|
|
218
|
+
- **Implementation quality**: A comparable codebase handles a shared concern more simply, safely, extensibly, or robustly, and this repo lacks that pattern.
|
|
219
|
+
- **Ecosystem alignment**: A recent framework/API/standard/release changed expectations and this project has not caught up.
|
|
220
|
+
|
|
221
|
+
Do not report:
|
|
222
|
+
|
|
223
|
+
- Ideas not tied to a real current source.
|
|
224
|
+
- Things this repo already has, even if named differently.
|
|
225
|
+
- Stale comparisons with no activity in the last 6 months unless canonical and still relevant.
|
|
226
|
+
- Pure taste or style preferences.
|
|
227
|
+
- Massive rewrites unless there is a specific incremental gap to implement.
|
|
228
|
+
- Low-confidence guesses.
|
|
229
|
+
|
|
230
|
+
## Priority levels
|
|
231
|
+
|
|
232
|
+
- **P0**: Critical gap: security exposure, data loss risk, broken compatibility, major missing core workflow, or urgent ecosystem change.
|
|
233
|
+
- **P1**: High-value gap: important feature/hardening/DX/ops improvement with strong external evidence and clear fit.
|
|
234
|
+
- **P2**: Useful gap: meaningful but not urgent, or requires a scoped design decision before implementation.
|
|
235
|
+
- **P3**: Exploratory gap: promising but lower confidence or lower immediate impact. Use sparingly.
|
|
236
|
+
|
|
237
|
+
## Final output
|
|
238
|
+
|
|
239
|
+
Output separate category sections only for categories with findings. No prose before the first section. Each section must use a table with exactly these 3 columns:
|
|
240
|
+
|
|
241
|
+
| Repo/tool/source | Feature or gap | Priority |
|
|
242
|
+
|---|---|---|
|
|
243
|
+
| name + fresh date | concise gap, evidence, and why this repo lacks it | P0/P1/P2/P3 |
|
|
244
|
+
|
|
245
|
+
Rules:
|
|
246
|
+
|
|
247
|
+
- The table must have exactly 3 columns. Put source URL/date/evidence and local absence proof inside the first two cells, not extra columns.
|
|
248
|
+
- Sort rows by priority within each category: P0, then P1, then P2, then P3.
|
|
249
|
+
- Keep each cell concise but specific enough to be actionable.
|
|
250
|
+
- If no validated gaps are found, output one table row saying no fresh validated gaps were found.
|
|
251
|
+
- Do not include implementation prose after the tables except the options below.
|
|
252
|
+
|
|
253
|
+
After the tables, ask exactly:
|
|
254
|
+
|
|
255
|
+
What should I do?
|
|
256
|
+
A) Add all P0/P1 gaps
|
|
257
|
+
B) Add only the top priority gap from each category
|
|
258
|
+
C) Create an implementation plan first
|
|
259
|
+
D) Skip
|
|
260
|
+
|
|
261
|
+
Do not start implementing until the user chooses.`,
|
|
157
262
|
},
|
|
158
263
|
{
|
|
159
264
|
name: "bullet-proof",
|
|
@@ -412,14 +517,17 @@ Write the file, then summarize what was researched.`,
|
|
|
412
517
|
name: "init",
|
|
413
518
|
aliases: [],
|
|
414
519
|
description: "Generate or update CLAUDE.md for this project",
|
|
415
|
-
prompt: `Generate or update a minimal CLAUDE.md with project
|
|
520
|
+
prompt: `Generate or update a minimal CLAUDE.md with project-specific context only: what this project is, how it is structured, and commands/workflows that are unique to it.
|
|
521
|
+
|
|
522
|
+
Do NOT add generic agent behavior already covered by the system prompt, including: read before edit/write, re-read after formatters, ask before destructive actions, no fake verification, generic code-quality advice, single-responsibility rules, one-file-per-component rules, or language-style conventions. Include only project-specific overrides or stricter local requirements.
|
|
416
523
|
|
|
417
524
|
## Step 1: Check if CLAUDE.md Exists
|
|
418
525
|
|
|
419
526
|
If CLAUDE.md exists:
|
|
420
527
|
- Read the existing file
|
|
421
528
|
- Preserve custom sections the user may have added
|
|
422
|
-
- Update
|
|
529
|
+
- Update only project-specific facts that are stale or missing
|
|
530
|
+
- Remove generic guidance that is already covered by the system prompt unless it is a deliberate project-specific override
|
|
423
531
|
|
|
424
532
|
If CLAUDE.md does NOT exist:
|
|
425
533
|
- Create a new one from scratch
|
|
@@ -437,12 +545,12 @@ Wait for all sub-agents to complete, then synthesize the information.
|
|
|
437
545
|
## Step 3: Detect Project Type & Commands
|
|
438
546
|
|
|
439
547
|
Check for config files:
|
|
440
|
-
- package.json -> JavaScript/TypeScript (extract lint, typecheck, server scripts)
|
|
548
|
+
- package.json -> JavaScript/TypeScript (extract package-manager, build, lint, typecheck, test, format, and server scripts)
|
|
441
549
|
- pyproject.toml or requirements.txt -> Python
|
|
442
550
|
- go.mod -> Go
|
|
443
551
|
- Cargo.toml -> Rust
|
|
444
552
|
|
|
445
|
-
Extract
|
|
553
|
+
Extract exact commands that are useful project facts. Do not restate generic "run checks after edits" behavior unless this project requires a stricter command sequence than the system prompt's Verification section.
|
|
446
554
|
|
|
447
555
|
## Step 4: Generate Project Tree
|
|
448
556
|
|
|
@@ -450,7 +558,15 @@ Create a concise tree structure showing key directories and files with brief des
|
|
|
450
558
|
|
|
451
559
|
## Step 5: Generate or Update CLAUDE.md
|
|
452
560
|
|
|
453
|
-
Create CLAUDE.md with
|
|
561
|
+
Create CLAUDE.md with only sections that add project-specific value. Prefer this structure:
|
|
562
|
+
|
|
563
|
+
- Project name and one-sentence purpose
|
|
564
|
+
- Key packages/apps/modules and what each owns
|
|
565
|
+
- Important project-specific architecture or workflow notes
|
|
566
|
+
- Exact local commands (install/build/check/test/dev/publish/deploy) when they are not obvious from package scripts alone
|
|
567
|
+
- Project-specific constraints that override defaults (for example required publish order, generated-file workflow, auth/secrets storage, deployment caveats)
|
|
568
|
+
|
|
569
|
+
Avoid generic sections named "Code Quality", "Organization Rules", or "How to Work" unless every bullet is specific to this project. Do not duplicate language style packs or generic verification rules.
|
|
454
570
|
|
|
455
571
|
Keep total file under 100 lines. If updating, preserve any custom sections the user added.
|
|
456
572
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt-commands.js","sourceRoot":"","sources":["../../src/core/prompt-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,CAAC,MAAM,eAAe,GAAoB;IAC9C;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+BAA+B;QAC5C,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yDA2E6C;KACtD;IACD;QACE,IAAI,EAAE,QAAQ;QACd,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yDAAyD;QACtE,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;4CAiEgC;KACzC;IACD;QACE,IAAI,EAAE,cAAc;QACpB,OAAO,EAAE,CAAC,IAAI,CAAC;QACf,WAAW,EAAE,0EAA0E;QACvF,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qEAoLyD;KAClE;IACD;QACE,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,yCAAyC;QACtD,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oDA6DwC;KACjD;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE;QACX,WAAW,EAAE,+CAA+C;QAC5D,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"prompt-commands.js","sourceRoot":"","sources":["../../src/core/prompt-commands.ts"],"names":[],"mappings":"AAAA;;;GAGG;AASH,MAAM,CAAC,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[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { describe, expect, it } from "vitest";
|
|
2
|
+
import { PROMPT_COMMANDS } from "./prompt-commands.js";
|
|
3
|
+
describe("prompt commands", () => {
|
|
4
|
+
it("defines /expand as a fresh, repo-validated comparison command", () => {
|
|
5
|
+
const expand = PROMPT_COMMANDS.find((command) => command.name === "expand");
|
|
6
|
+
expect(expand).toBeDefined();
|
|
7
|
+
expect(expand?.prompt).toContain("Spawn exactly 5 sub-agents in parallel");
|
|
8
|
+
expect(expand?.prompt).toContain("updated within the last 6 months");
|
|
9
|
+
expect(expand?.prompt).toContain("validate it yourself before reporting");
|
|
10
|
+
expect(expand?.prompt).toContain("The table must have exactly 3 columns");
|
|
11
|
+
expect(expand?.prompt).toContain("Do not start implementing until the user chooses");
|
|
12
|
+
});
|
|
13
|
+
it("keeps /init focused on project-specific CLAUDE.md content", () => {
|
|
14
|
+
const init = PROMPT_COMMANDS.find((command) => command.name === "init");
|
|
15
|
+
expect(init).toBeDefined();
|
|
16
|
+
expect(init?.prompt).toContain("project-specific context only");
|
|
17
|
+
expect(init?.prompt).toContain("Do NOT add generic agent behavior");
|
|
18
|
+
expect(init?.prompt).toContain("Remove generic guidance");
|
|
19
|
+
expect(init?.prompt).toContain("Do not duplicate language style packs or generic verification rules");
|
|
20
|
+
expect(init?.prompt).not.toContain("one file per component");
|
|
21
|
+
expect(init?.prompt).not.toContain("single responsibility");
|
|
22
|
+
expect(init?.prompt).not.toContain("zero-tolerance code quality checks");
|
|
23
|
+
});
|
|
24
|
+
});
|
|
25
|
+
//# sourceMappingURL=prompt-commands.test.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-commands.test.js","sourceRoot":"","sources":["../../src/core/prompt-commands.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,QAAQ,CAAC;AAC9C,OAAO,EAAE,eAAe,EAA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AC,SAAS,CAC5B,qEAAqE,CACtE,CAAC;QACF,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,wBAAwB,CAAC,CAAC;QAC7D,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,CAAC;QAC5D,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,oCAAoC,CAAC,CAAC;IAC3E,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/style-packs/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1D;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/core/style-packs/index.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1D;;;;;GAKG;AACH,wBAAgB,QAAQ,CAAC,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAWnE;AAED;;;;;;;;GAQG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAepF"}
|
|
@@ -43,8 +43,7 @@ export function renderStylePacksSection(active, cwd) {
|
|
|
43
43
|
if (parts.length === 0)
|
|
44
44
|
return "";
|
|
45
45
|
return (`## Language Style Packs\n\n` +
|
|
46
|
-
`Conventions for new code in
|
|
47
|
-
`illustrative — use whatever the project already imports.\n\n` +
|
|
46
|
+
`Conventions for new code in active languages. Project context and existing local patterns override these defaults; library names are illustrative.\n\n` +
|
|
48
47
|
`${AGENT_WRITTEN_CODE_PREAMBLE}\n\n` +
|
|
49
48
|
parts.join("\n\n"));
|
|
50
49
|
}
|
|
@@ -59,12 +58,12 @@ export function renderStylePacksSection(active, cwd) {
|
|
|
59
58
|
*/
|
|
60
59
|
const AGENT_WRITTEN_CODE_PREAMBLE = `### Agent-Written Code (cross-cutting)
|
|
61
60
|
|
|
62
|
-
Universal rules
|
|
61
|
+
Universal rules for agent-written code:
|
|
63
62
|
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
68
|
-
- **
|
|
69
|
-
- **
|
|
63
|
+
- **Observe boundaries.** Use structured logging at external I/O; include inputs, outcome, and elapsed time. Do not commit debug prints.
|
|
64
|
+
- **Deterministic output.** Sort observable map/set iteration; use stable IDs; inject clocks; canonicalize serialized data used for hashes, persistence, comparisons, or diffs.
|
|
65
|
+
- **Explicit state.** Avoid module-level mutables, global state containers, and implicit DI. Pass dependencies through signatures or constructors.
|
|
66
|
+
- **Locally verifiable.** Prefer small pure functions and shallow composition over deep indirection.
|
|
67
|
+
- **Behavioral tests.** Arrange-Act-Assert, no shared mutable fixtures, table-driven where natural, independent test order.
|
|
68
|
+
- **Validate at boundaries.** Validate untrusted input as it enters; inside, rely on validated types and use local error values for expected failures.`;
|
|
70
69
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/core/style-packs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,OAAO,EAAE,sBAAsB,EAAE,MAA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B,MAAM;QACpC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CACnB,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,2BAA2B,GAAG;;;;;;;;;uJASmH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAyB5C,wBAAsB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,
|
|
1
|
+
{"version":3,"file":"interactive.d.ts","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAyB5C,wBAAsB,cAAc,CAAC,MAAM,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,CAmKrE"}
|
package/dist/interactive.js
CHANGED
|
@@ -21,14 +21,18 @@ export async function runInteractive(config) {
|
|
|
21
21
|
await fs.mkdir(path.join(localGGDir, "skills"), { recursive: true });
|
|
22
22
|
await fs.mkdir(path.join(localGGDir, "commands"), { recursive: true });
|
|
23
23
|
await fs.mkdir(path.join(localGGDir, "agents"), { recursive: true });
|
|
24
|
-
// Discover skills
|
|
24
|
+
// Discover skills and create tools before building the prompt so tool names are accurate.
|
|
25
25
|
const skills = await discoverSkills({
|
|
26
26
|
globalSkillsDir: paths.skillsDir,
|
|
27
27
|
projectDir: cwd,
|
|
28
28
|
});
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
29
|
+
const { tools, processManager } = createTools(cwd, {
|
|
30
|
+
skills,
|
|
31
|
+
provider,
|
|
32
|
+
model,
|
|
33
|
+
});
|
|
34
|
+
const systemPrompt = config.systemPrompt ??
|
|
35
|
+
(await buildSystemPrompt(cwd, skills, false, undefined, tools.map((tool) => tool.name)));
|
|
32
36
|
process.on("exit", () => processManager.shutdownAll());
|
|
33
37
|
const authStorage = new AuthStorage(paths.authFile);
|
|
34
38
|
await authStorage.load();
|
package/dist/interactive.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"interactive.js","sourceRoot":"","sources":["../src/interactive.ts"],"names":[],"mappings":"AAAA,OAAO,QAAQ,MAAM,wBAAwB,CAAC;AAC9C,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,EAAE,SAAS,EAAmB,MAAM,qBAAqB,CAAC;AAGjE,OAAO,EAAE,iBAAiB,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EACL,aAAa,EACb,WAAW,EACX,oBAAoB,EACpB,cAAc,GAEf,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,WAAW,EACX,WAAW,EACX,aAAa,GACd,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAC5C,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAClC,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,gCAAgC,CAAC;AACxE,OAAO,EAAE,gBAAgB,EAAE,MAAM,0BAA0B,CAAC;AAE5D,MAAM,CAAC,KAAK,UAAU,cAAc,CAAC,MAAiB;IACpD,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,GAAG,MAAM,CAAC;IAExC,0BAA0B;IAC1B,MAAM,KAAK,GAAG,MAAM,aAAa,EAAE,CAAC;IAEpC,6CAA6C;IAC7C,MAAM,UAAU,GAAG,IAAI,CAAC,IAAI,CAAC,GA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OAAO;YACV,MAAM,CAAC,KAAK,CAAC,WAAW,CAAC,KAAK,CAAC,KAAK,CAAC,GAAG,IAAI,CAAC,CAAC;YAC9C,MAAM;IACV,CAAC;AACH,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../src/system-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../src/system-prompt.ts"],"names":[],"mappings":"AAGA,OAAO,EAAyB,KAAK,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErE,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAwK9D;;;;;;GAMG;AACH,wBAAsB,iBAAiB,CACrC,GAAG,EAAE,MAAM,EACX,MAAM,CAAC,EAAE,KAAK,EAAE,EAChB,QAAQ,CAAC,EAAE,OAAO,EAClB,gBAAgB,CAAC,EAAE,MAAM,EACzB,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,EAC7B,eAAe,CAAC,EAAE,GAAG,CAAC,UAAU,CAAC,GAChC,OAAO,CAAC,MAAM,CAAC,CAkDjB"}
|