@kenkaiiii/ggcoder 5.89.0 → 5.91.0

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.
Files changed (72) hide show
  1. package/dist/app-sidecar/prompt-routes.js +3 -0
  2. package/dist/app-sidecar/prompt-routes.js.map +1 -1
  3. package/dist/app-sidecar/route-context.d.ts +4 -0
  4. package/dist/app-sidecar/run-control-routes.js +9 -2
  5. package/dist/app-sidecar/run-control-routes.js.map +1 -1
  6. package/dist/app-sidecar.js +128 -16
  7. package/dist/app-sidecar.js.map +1 -1
  8. package/dist/cli.js +2 -2
  9. package/dist/cli.js.map +1 -1
  10. package/dist/config.d.ts +8 -2
  11. package/dist/config.js +7 -3
  12. package/dist/config.js.map +1 -1
  13. package/dist/core/agent-session.d.ts +5 -4
  14. package/dist/core/agent-session.js +49 -29
  15. package/dist/core/agent-session.js.map +1 -1
  16. package/dist/core/env-delta.d.ts +3 -3
  17. package/dist/core/env-delta.js +4 -5
  18. package/dist/core/env-delta.js.map +1 -1
  19. package/dist/core/goals-store.d.ts +9 -0
  20. package/dist/core/goals-store.js +111 -50
  21. package/dist/core/goals-store.js.map +1 -1
  22. package/dist/core/language-detector.d.ts +2 -3
  23. package/dist/core/language-detector.js.map +1 -1
  24. package/dist/core/prompt-commands.js +1 -1
  25. package/dist/core/settings-manager.d.ts +5 -0
  26. package/dist/core/settings-manager.js +43 -7
  27. package/dist/core/settings-manager.js.map +1 -1
  28. package/dist/core/verify-commands.d.ts +1 -1
  29. package/dist/goals-agent/goals-agent.d.ts +1 -1
  30. package/dist/goals-agent/goals-agent.js +3 -2
  31. package/dist/goals-agent/goals-agent.js.map +1 -1
  32. package/dist/modes/json-mode.js +5 -0
  33. package/dist/modes/json-mode.js.map +1 -1
  34. package/dist/system-prompt.d.ts +4 -3
  35. package/dist/system-prompt.js +5 -8
  36. package/dist/system-prompt.js.map +1 -1
  37. package/dist/tools/bash.d.ts +7 -0
  38. package/dist/tools/bash.js +10 -3
  39. package/dist/tools/bash.js.map +1 -1
  40. package/dist/tools/index.d.ts +3 -0
  41. package/dist/tools/index.js +3 -5
  42. package/dist/tools/index.js.map +1 -1
  43. package/dist/tools/prompt-hints.d.ts +2 -0
  44. package/dist/tools/prompt-hints.js +10 -1
  45. package/dist/tools/prompt-hints.js.map +1 -1
  46. package/dist/tools/side-web-search.d.ts +30 -0
  47. package/dist/tools/side-web-search.js +86 -0
  48. package/dist/tools/side-web-search.js.map +1 -0
  49. package/dist/tools/steroids.d.ts +7 -6
  50. package/dist/tools/steroids.js +193 -74
  51. package/dist/tools/steroids.js.map +1 -1
  52. package/dist/tools/web-fetch.d.ts +8 -0
  53. package/dist/tools/web-fetch.js +123 -17
  54. package/dist/tools/web-fetch.js.map +1 -1
  55. package/dist/tools/web-search.d.ts +3 -2
  56. package/dist/tools/web-search.js +25 -1
  57. package/dist/tools/web-search.js.map +1 -1
  58. package/dist/ui/App.js +22 -20
  59. package/dist/ui/App.js.map +1 -1
  60. package/dist/ui/language-pack-update.d.ts +25 -0
  61. package/dist/ui/language-pack-update.js +19 -0
  62. package/dist/ui/language-pack-update.js.map +1 -0
  63. package/package.json +4 -4
  64. package/dist/core/setup-history.d.ts +0 -6
  65. package/dist/core/setup-history.js +0 -55
  66. package/dist/core/setup-history.js.map +0 -1
  67. package/dist/core/style-packs/index.d.ts +0 -18
  68. package/dist/core/style-packs/index.js +0 -60
  69. package/dist/core/style-packs/index.js.map +0 -1
  70. package/dist/core/style-packs/packs.d.ts +0 -8
  71. package/dist/core/style-packs/packs.js +0 -188
  72. package/dist/core/style-packs/packs.js.map +0 -1
@@ -1,55 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import os from "node:os";
4
- const HISTORY_PATH = path.join(os.homedir(), ".gg", "setup-history.json");
5
- /**
6
- * Persisted per-project UI-notification history (style-pack badge announcements).
7
- *
8
- * Stored at `~/.gg/setup-history.json`. Keys are absolute cwd paths. The file
9
- * is small (one line per project the user has ever opened with ggcoder) and
10
- * read/written on session start only — not in any hot path.
11
- */
12
- function readHistory() {
13
- try {
14
- const raw = fs.readFileSync(HISTORY_PATH, "utf-8");
15
- const parsed = JSON.parse(raw);
16
- if (parsed && typeof parsed === "object" && !Array.isArray(parsed)) {
17
- return parsed;
18
- }
19
- }
20
- catch {
21
- /* missing or unparseable \u2014 treat as empty */
22
- }
23
- return {};
24
- }
25
- function writeHistory(history) {
26
- try {
27
- fs.mkdirSync(path.dirname(HISTORY_PATH), { recursive: true });
28
- fs.writeFileSync(HISTORY_PATH, JSON.stringify(history, null, 2), "utf-8");
29
- }
30
- catch {
31
- /* best-effort \u2014 a failed write just means the auto-run will fire again
32
- next session, which is annoying but not broken. */
33
- }
34
- }
35
- /** Returns the language ids that have already been announced via the
36
- * "STYLE PACK ACTIVE" badge for this cwd. */
37
- export function getAnnouncedLanguages(cwd) {
38
- const history = readHistory();
39
- return history[cwd]?.announcedLanguages ?? [];
40
- }
41
- /** Add language ids to the announced set for this cwd. No-op if the input
42
- * is empty or adds nothing new. */
43
- export function markLanguagesAnnounced(cwd, langs) {
44
- if (langs.length === 0)
45
- return;
46
- const history = readHistory();
47
- const existing = history[cwd] ?? {};
48
- const prev = existing.announcedLanguages ?? [];
49
- const merged = Array.from(new Set([...prev, ...langs]));
50
- if (merged.length === prev.length)
51
- return;
52
- history[cwd] = { ...existing, announcedLanguages: merged };
53
- writeHistory(history);
54
- }
55
- //# sourceMappingURL=setup-history.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"setup-history.js","sourceRoot":"","sources":["../../src/core/setup-history.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,SAAS,CAAC;AACzB,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,MAAM,SAAS,CAAC;AAEzB,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,CAAC,OAAO,EAAE,EAAE,KAAK,EAAE,oBAAoB,CAAC,CAAC;AAc1E;;;;;;GAMG;AACH,SAAS,WAAW;IAClB,IAAI,CAAC;QACH,MAAM,GAAG,GAAG,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QACnD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,GAAG,CAAY,CAAC;QAC1C,IAAI,MAAM,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,CAAC;YACnE,OAAO,MAAsB,CAAC;QAChC,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,kDAAkD;IACpD,CAAC;IACD,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,YAAY,CAAC,OAAqB;IACzC,IAAI,CAAC;QACH,EAAE,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,CAAC;QAC9D,EAAE,CAAC,aAAa,CAAC,YAAY,EAAE,IAAI,CAAC,SAAS,CAAC,OAAO,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;IAAC,MAAM,CAAC;QACP;6DACqD;IACvD,CAAC;AACH,CAAC;AAED;8CAC8C;AAC9C,MAAM,UAAU,qBAAqB,CAAC,GAAW;IAC/C,MAAM,OAAO,GAAG,WAAW,EAAE,CAAC;IAC9B,OAAO,OAAO,CAAC,GAAG,CAAC,EAAE,kBAAkB,IAAI,EAAE,CAAC;AAChD,CAAC;AAED;oCACoC;AACpC,MAAM,UAAU,sBAAsB,CAAC,GAAW,EAAE,KAAwB;IAC1E,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO;IAC/B,MAAM,OAAO,GAAG,WAAW,EAAE,CAAC;IAC9B,MAAM,QAAQ,GAAG,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC;IACpC,MAAM,IAAI,GAAG,QAAQ,CAAC,kBAAkB,IAAI,EAAE,CAAC;IAC/C,MAAM,MAAM,GAAG,KAAK,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,IAAI,EAAE,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;IACxD,IAAI,MAAM,CAAC,MAAM,KAAK,IAAI,CAAC,MAAM;QAAE,OAAO;IAC1C,OAAO,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,QAAQ,EAAE,kBAAkB,EAAE,MAAM,EAAE,CAAC;IAC3D,YAAY,CAAC,OAAO,CAAC,CAAC;AACxB,CAAC"}
@@ -1,18 +0,0 @@
1
- import type { LanguageId } from "../language-detector.js";
2
- /**
3
- * Load the style-pack content for a given language. Checks for a per-project
4
- * override at `<cwd>/.gg/styles/<id>.md` first, falling back to the bundled
5
- * pack. Returns `null` if neither exists (defensive — should not happen for
6
- * any LanguageId in PACKS).
7
- */
8
- export declare function loadPack(id: LanguageId, cwd: string): string | null;
9
- /**
10
- * Render the full "Language Style Packs" section that gets spliced into the
11
- * system prompt. Returns an empty string when the active set is empty so the
12
- * caller can skip the section entirely.
13
- *
14
- * The output is intentionally compact: a single header followed by each pack
15
- * separated by a blank line. Packs already include their own \`### <Language>\`
16
- * sub-headers.
17
- */
18
- export declare function renderStylePacksSection(active: Set<LanguageId>, cwd: string): string;
@@ -1,60 +0,0 @@
1
- import fs from "node:fs";
2
- import path from "node:path";
3
- import { languagesToSortedArray } from "../language-detector.js";
4
- import { PACKS } from "./packs.js";
5
- /**
6
- * Load the style-pack content for a given language. Checks for a per-project
7
- * override at `<cwd>/.gg/styles/<id>.md` first, falling back to the bundled
8
- * pack. Returns `null` if neither exists (defensive — should not happen for
9
- * any LanguageId in PACKS).
10
- */
11
- export function loadPack(id, cwd) {
12
- const overridePath = path.join(cwd, ".gg", "styles", `${id}.md`);
13
- try {
14
- const stat = fs.statSync(overridePath);
15
- if (stat.isFile()) {
16
- return fs.readFileSync(overridePath, "utf-8").trim();
17
- }
18
- }
19
- catch {
20
- /* no override — fall through to bundled */
21
- }
22
- return PACKS[id] ?? null;
23
- }
24
- /**
25
- * Render the full "Language Style Packs" section that gets spliced into the
26
- * system prompt. Returns an empty string when the active set is empty so the
27
- * caller can skip the section entirely.
28
- *
29
- * The output is intentionally compact: a single header followed by each pack
30
- * separated by a blank line. Packs already include their own \`### <Language>\`
31
- * sub-headers.
32
- */
33
- export function renderStylePacksSection(active, cwd) {
34
- if (active.size === 0)
35
- return "";
36
- const ids = languagesToSortedArray(active);
37
- const parts = [];
38
- for (const id of ids) {
39
- const pack = loadPack(id, cwd);
40
- if (pack)
41
- parts.push(pack);
42
- }
43
- if (parts.length === 0)
44
- return "";
45
- return (`## Language Style Packs\n\n` +
46
- `Defaults for new code where the project has no convention.\n\n` +
47
- `${AGENT_WRITTEN_CODE_PREAMBLE}\n\n` +
48
- parts.join("\n\n"));
49
- }
50
- /**
51
- * Cross-cutting rules that apply to every language pack. These are agent-native
52
- * concerns (determinism, observability, no hidden state, output stability) that
53
- * matter more for code written *by* and *read by* agents than for human-only
54
- * codebases. Kept terse — every line is a load-bearing constraint, not advice.
55
- *
56
- * Lives in the system prompt above the per-language packs so the model reads
57
- * universal rules first, then specializes per language.
58
- */
59
- const AGENT_WRITTEN_CODE_PREAMBLE = `All code: deterministic output (sorted iteration, injected clocks); no module-level mutable state; no shared mutable test fixtures.`;
60
- //# sourceMappingURL=index.js.map
@@ -1 +0,0 @@
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,MAAM,yBAAyB,CAAC;AACjE,OAAO,EAAE,KAAK,EAAE,MAAM,YAAY,CAAC;AAEnC;;;;;GAKG;AACH,MAAM,UAAU,QAAQ,CAAC,EAAc,EAAE,GAAW;IAClD,MAAM,YAAY,GAAG,IAAI,CAAC,IAAI,CAAC,GAAG,EAAE,KAAK,EAAE,QAAQ,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IACjE,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,EAAE,CAAC,QAAQ,CAAC,YAAY,CAAC,CAAC;QACvC,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC;YAClB,OAAO,EAAE,CAAC,YAAY,CAAC,YAAY,EAAE,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC;QACvD,CAAC;IACH,CAAC;IAAC,MAAM,CAAC;QACP,2CAA2C;IAC7C,CAAC;IACD,OAAO,KAAK,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC;AAC3B,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,UAAU,uBAAuB,CAAC,MAAuB,EAAE,GAAW;IAC1E,IAAI,MAAM,CAAC,IAAI,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IACjC,MAAM,GAAG,GAAG,sBAAsB,CAAC,MAAM,CAAC,CAAC;IAC3C,MAAM,KAAK,GAAa,EAAE,CAAC;IAC3B,KAAK,MAAM,EAAE,IAAI,GAAG,EAAE,CAAC;QACrB,MAAM,IAAI,GAAG,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;QAC/B,IAAI,IAAI;YAAE,KAAK,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAC7B,CAAC;IACD,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,EAAE,CAAC;IAClC,OAAO,CACL,6BAA6B;QAC7B,gEAAgE;QAChE,GAAG,2BAA2B,MAAM;QACpC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CACnB,CAAC;AACJ,CAAC;AAED;;;;;;;;GAQG;AACH,MAAM,2BAA2B,GAAG,qIAAqI,CAAC"}
@@ -1,8 +0,0 @@
1
- import type { LanguageId } from "../language-detector.js";
2
- /**
3
- * Per-language style packs injected into the system prompt when the detector
4
- * sees the language is active. Keep each pack ≤ ~350 chars: tooling default,
5
- * the most bug-preventing rules, and what to avoid. No rationale or examples.
6
- * Avoid triple backticks (template literal conflict).
7
- */
8
- export declare const PACKS: Readonly<Record<LanguageId, string>>;
@@ -1,188 +0,0 @@
1
- /**
2
- * Per-language style packs injected into the system prompt when the detector
3
- * sees the language is active. Keep each pack ≤ ~350 chars: tooling default,
4
- * the most bug-preventing rules, and what to avoid. No rationale or examples.
5
- * Avoid triple backticks (template literal conflict).
6
- */
7
- export const PACKS = {
8
- typescript: `### TypeScript
9
-
10
- - \`tsc --strict\` + \`noUncheckedIndexedAccess\`; Biome for format/lint.
11
- - No \`any\`, no non-null \`!\`; prefer \`satisfies\` over \`as\`.
12
- - Validate external input (with the project's schema lib if it has one).
13
- - Result-style returns for expected failures; throw only for bugs.
14
- - Named exports only; no floating promises; pass \`AbortSignal\` to I/O.
15
- - Avoid \`enum\`, \`namespace\`, deep inheritance.`,
16
- javascript: `### JavaScript
17
-
18
- - ESM; \`const\`, \`===\`, no \`var\`.
19
- - Validate external input (with the project's schema lib if it has one); no floating promises.
20
- - Avoid default exports, prototype mutation, implicit globals.`,
21
- python: `### Python
22
-
23
- - Python 3.11+; ruff (lint + format); pyright/mypy strict.
24
- - Type hints on every public function; no bare \`Any\`.
25
- - Validate external input with Pydantic or dataclasses + checks.
26
- - Raise specific exceptions; never bare \`except:\`.
27
- - \`pathlib\` over \`os.path\`; context managers for resources.
28
- - Avoid mutable default args, star imports, global state.`,
29
- go: `### Go
30
-
31
- - \`gofmt\`, \`go vet\`, \`golangci-lint\`.
32
- - Always check errors; wrap with \`fmt.Errorf("...: %w", err)\`.
33
- - \`context.Context\` first param for I/O; respect cancellation.
34
- - Small interfaces defined at the consumer; return structs.
35
- - Every goroutine has a clear owner and exit path.
36
- - Avoid \`panic\` for expected errors, \`init()\` side effects, globals.`,
37
- rust: `### Rust
38
-
39
- - \`rustfmt\` + \`clippy -D warnings\`.
40
- - \`Result\` for fallible ops; \`thiserror\` in libs, \`anyhow\` in bins.
41
- - No \`unwrap\`/\`expect\` outside tests or proven invariants.
42
- - Newtypes for domain primitives; borrow over clone.
43
- - \`unsafe\` only with a \`// SAFETY:\` comment.
44
- - Avoid \`Rc<RefCell>\` webs and needless \`Box<dyn>\`.`,
45
- java: `### Java
46
-
47
- - Java 21+; Spotless/google-java-format; Error Prone.
48
- - Records for data; sealed interfaces for variants.
49
- - \`Optional\` for absent returns; never return \`null\` collections.
50
- - Validate input at boundaries; immutable by default (\`final\`).
51
- - try-with-resources for closeables.
52
- - Avoid checked-exception swallowing, field injection, deep inheritance.`,
53
- kotlin: `### Kotlin
54
-
55
- - ktlint/detekt; explicit API mode for libraries.
56
- - \`val\` over \`var\`; data/sealed classes for state.
57
- - No \`!!\`; handle nullability explicitly.
58
- - Structured concurrency: no \`GlobalScope\`; pass scopes.
59
- - Sealed Result types for expected failures.
60
- - Avoid \`lateinit\` abuse and platform-type leaks.`,
61
- csharp: `### C#
62
-
63
- - \`<Nullable>enable</Nullable>\`, warnings as errors; \`dotnet format\`.
64
- - Records for data; \`required\`/\`init\` properties.
65
- - \`async\` all the way; pass \`CancellationToken\`; no \`.Result\`/\`.Wait()\`.
66
- - Validate input at boundaries; \`using\` for disposables.
67
- - Avoid \`async void\`, static mutable state, catching \`Exception\` broadly.`,
68
- cpp: `### C++
69
-
70
- - C++20; clang-format + clang-tidy; \`-Wall -Wextra -Werror\`.
71
- - RAII everywhere; \`unique_ptr\` by default, no raw \`new\`/\`delete\`.
72
- - \`std::span\`/\`string_view\` for non-owning views; \`const\` by default.
73
- - \`std::expected\`/optional for expected failures.
74
- - Avoid macros, C casts, owning raw pointers, UB-prone indexing.`,
75
- c: `### C
76
-
77
- - C17; \`-Wall -Wextra -Werror\`; ASan/UBSan in tests.
78
- - Check every return value and allocation.
79
- - Pass buffer lengths explicitly; use bounded functions (\`snprintf\`).
80
- - Single cleanup path (\`goto cleanup\`) per function.
81
- - Avoid \`gets\`/\`strcpy\`/\`sprintf\`, globals, unchecked casts.`,
82
- ruby: `### Ruby
83
-
84
- - Ruby 3.2+; RuboCop/Standard; \`# frozen_string_literal: true\`.
85
- - Validate input at boundaries; explicit keyword arguments.
86
- - Raise specific error classes; never rescue \`Exception\`.
87
- - Small objects over concerns/mixins.
88
- - Avoid monkey-patching, \`method_missing\`, global state.`,
89
- php: `### PHP
90
-
91
- - PHP 8.2+; \`declare(strict_types=1);\`; PHPStan max + PHP-CS-Fixer.
92
- - Typed properties, params, returns; \`readonly\` classes for data.
93
- - Validate input at boundaries; prepared statements only.
94
- - Enums over string constants; specific exceptions.
95
- - Avoid arrays as untyped structs, globals, \`@\` suppression.`,
96
- swift: `### Swift
97
-
98
- - Swift 6 strict concurrency; SwiftFormat/SwiftLint.
99
- - Value types (\`struct\`/\`enum\`) by default; \`let\` over \`var\`.
100
- - No force unwrap \`!\` or \`try!\`; use \`guard let\`.
101
- - \`async/await\` + actors; typed throws/Result for expected failures.
102
- - Avoid singletons, implicitly unwrapped optionals, \`@unchecked Sendable\`.`,
103
- scala: `### Scala
104
-
105
- - Scala 3; scalafmt + \`-Werror\`.
106
- - Immutable case classes and enums; ADTs for state.
107
- - \`Either\`/\`Option\` for expected failures; no \`null\`.
108
- - Explicit types on public members.
109
- - Avoid implicit conversions, \`var\`, throwing in pure code.`,
110
- elixir: `### Elixir
111
-
112
- - \`mix format\`, Credo, Dialyzer.
113
- - \`{:ok, v}\` / \`{:error, r}\` returns; \`with\` for chains.
114
- - Pattern match in function heads; \`@spec\` on public functions.
115
- - Supervise every process; let it crash.
116
- - Avoid \`try/rescue\` for control flow, process dictionary, atom leaks.`,
117
- haskell: `### Haskell
118
-
119
- - GHC2021; \`-Wall -Werror\`; fourmolu + hlint.
120
- - Type signatures on all top-level bindings.
121
- - \`Either\`/\`Maybe\` for expected failures; newtypes for domain values.
122
- - Strict data fields; \`Text\` over \`String\`.
123
- - Avoid partial functions (\`head\`, \`fromJust\`), orphan instances.`,
124
- ocaml: `### OCaml
125
-
126
- - dune + ocamlformat; warnings as errors.
127
- - \`.mli\` interfaces for every public module.
128
- - \`result\` for expected failures; exhaustive matches.
129
- - Variants over booleans/strings for state.
130
- - Avoid partial functions, \`Obj.magic\`, mutable globals.`,
131
- fsharp: `### F#
132
-
133
- - Fantomas; warnings as errors.
134
- - Records and DUs for data; immutable by default.
135
- - \`Result\`/\`Option\` for expected failures; exhaustive matches.
136
- - \`task {}\` with \`CancellationToken\` for I/O.
137
- - Avoid nulls, classes for pure data, mutable globals.`,
138
- clojure: `### Clojure
139
-
140
- - clj-kondo + cljfmt.
141
- - Pure functions over immutable maps; side effects at edges.
142
- - Validate boundary data with Malli or spec.
143
- - Return \`ex-info\` with data for errors.
144
- - Avoid global atoms, dynamic vars as config, deep macros.`,
145
- dart: `### Dart
146
-
147
- - Sound null safety; \`dart format\`; strict \`analysis_options\` lints.
148
- - No \`!\` bang operator without proof; no \`dynamic\`.
149
- - Immutable models (\`final\` fields); sealed classes for state.
150
- - Await every Future; cancel subscriptions.
151
- - Avoid global mutable state and \`late\` misuse.`,
152
- lua: `### Lua
153
-
154
- - StyLua + luacheck.
155
- - \`local\` everything; no implicit globals.
156
- - Return \`nil, err\` for expected failures; \`pcall\` at boundaries.
157
- - Modules return a table; no side effects on require.
158
- - Avoid global mutation and metatable magic.`,
159
- zig: `### Zig
160
-
161
- - \`zig fmt\`; latest stable Zig.
162
- - Error unions with \`try\`; never discard errors.
163
- - Pass allocators explicitly; \`defer\`/\`errdefer\` for cleanup.
164
- - Test with \`std.testing.allocator\` for leak checks.
165
- - Avoid \`@ptrCast\` without need, \`unreachable\` for real errors, globals.`,
166
- sql: `### SQL
167
-
168
- - sqlfluff; uppercase keywords.
169
- - Parameterized queries only; never string-concat input.
170
- - Explicit column lists; no \`SELECT *\` in app code.
171
- - Constraints (NOT NULL, FK, UNIQUE) in schema; forward-only migrations.
172
- - Avoid implicit joins and unbounded queries.`,
173
- bash: `### Bash / Shell
174
-
175
- - \`set -euo pipefail\`; shellcheck + shfmt.
176
- - Quote every expansion: \`"$var"\`.
177
- - \`[[ ]]\` over \`[ ]\`; \`local\` in functions.
178
- - \`mktemp\` + \`trap\` cleanup.
179
- - Avoid parsing \`ls\`, \`eval\`, backticks.`,
180
- terraform: `### Terraform / HCL
181
-
182
- - \`terraform fmt\` + \`validate\` + tflint.
183
- - Pin provider and module versions.
184
- - Typed variables with \`validation\` blocks.
185
- - Remote state with locking; no secrets in code or state outputs.
186
- - Avoid hardcoded IDs, \`count\` for keyed resources (use \`for_each\`).`,
187
- };
188
- //# sourceMappingURL=packs.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"packs.js","sourceRoot":"","sources":["../../../src/core/style-packs/packs.ts"],"names":[],"mappings":"AAEA;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAyC;IACzD,UAAU,EAAE;;;;;;;mDAOqC;IAEjD,UAAU,EAAE;;;;+DAIiD;IAE7D,MAAM,EAAE;;;;;;;0DAOgD;IAExD,EAAE,EAAE;;;;;;;yEAOmE;IAEvE,IAAI,EAAE;;;;;;;wDAOgD;IAEtD,IAAI,EAAE;;;;;;;yEAOiE;IAEvE,MAAM,EAAE;;;;;;;oDAO0C;IAElD,MAAM,EAAE;;;;;;8EAMoE;IAE5E,GAAG,EAAE;;;;;;iEAM0D;IAE/D,CAAC,EAAE;;;;;;mEAM8D;IAEjE,IAAI,EAAE;;;;;;2DAMmD;IAEzD,GAAG,EAAE;;;;;;+DAMwD;IAE7D,KAAK,EAAE;;;;;;6EAMoE;IAE3E,KAAK,EAAE;;;;;;8DAMqD;IAE5D,MAAM,EAAE;;;;;;yEAM+D;IAEvE,OAAO,EAAE;;;;;;sEAM2D;IAEpE,KAAK,EAAE;;;;;;2DAMkD;IAEzD,MAAM,EAAE;;;;;;uDAM6C;IAErD,OAAO,EAAE;;;;;;2DAMgD;IAEzD,IAAI,EAAE;;;;;;kDAM0C;IAEhD,GAAG,EAAE;;;;;;6CAMsC;IAE3C,GAAG,EAAE;;;;;;6EAMsE;IAE3E,GAAG,EAAE;;;;;;8CAMuC;IAE5C,IAAI,EAAE;;;;;;6CAMqC;IAE3C,SAAS,EAAE;;;;;;yEAM4D;CACxE,CAAC"}