pi-soly 0.2.1 → 0.3.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.
- package/commands.ts +2 -2
- package/docs.ts +2 -2
- package/index.ts +13 -13
- package/intent.ts +2 -2
- package/iteration.ts +1 -1
- package/package.json +1 -1
- package/tools.ts +6 -6
- package/workflows/execute.ts +1 -1
- package/workflows/index.ts +7 -7
- package/workflows/pause.ts +1 -1
- package/workflows/planning.ts +1 -1
- package/workflows/quick.ts +1 -1
- package/workflows/resume.ts +1 -1
package/commands.ts
CHANGED
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
readIfExists,
|
|
29
29
|
type RuleFile,
|
|
30
30
|
type SolyState,
|
|
31
|
-
} from "./core.
|
|
32
|
-
import type { SolyConfig } from "./config.
|
|
31
|
+
} from "./core.ts";
|
|
32
|
+
import type { SolyConfig } from "./config.ts";
|
|
33
33
|
|
|
34
34
|
/** Minimum ui surface the command handlers actually need. */
|
|
35
35
|
export interface CommandUI {
|
package/docs.ts
CHANGED
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
import * as fs from "node:fs";
|
|
12
12
|
import * as path from "node:path";
|
|
13
|
-
import { estimateTokens, findMarkdownFiles, readIfExists } from "./core.
|
|
14
|
-
import { extractTitleAndPreview, stripHtml } from "./html.
|
|
13
|
+
import { estimateTokens, findMarkdownFiles, readIfExists } from "./core.ts";
|
|
14
|
+
import { extractTitleAndPreview, stripHtml } from "./html.ts";
|
|
15
15
|
|
|
16
16
|
// Re-export the stripHtml helper so existing imports of `stripHtml from
|
|
17
17
|
// "./docs.js"` (used by tools.ts) continue to work without churn.
|
package/index.ts
CHANGED
|
@@ -43,24 +43,24 @@ import {
|
|
|
43
43
|
type RuleFile,
|
|
44
44
|
type SolyState,
|
|
45
45
|
type SourceSpec,
|
|
46
|
-
} from "./core.
|
|
47
|
-
import { buildIntegrationsSection } from "./integrations.
|
|
48
|
-
import { installSolyAgents } from "./agents-install.
|
|
46
|
+
} from "./core.ts";
|
|
47
|
+
import { buildIntegrationsSection } from "./integrations.ts";
|
|
48
|
+
import { installSolyAgents } from "./agents-install.ts";
|
|
49
49
|
import {
|
|
50
50
|
DEFAULT_CONFIG,
|
|
51
51
|
loadConfig,
|
|
52
52
|
pruneOldIterations,
|
|
53
53
|
type SolyConfig,
|
|
54
|
-
} from "./config.
|
|
55
|
-
import { classifyTaskHeuristics, buildNudgeSection } from "./nudge.
|
|
56
|
-
import { registerCommands, type CommandUI } from "./commands.
|
|
57
|
-
import { registerTools } from "./tools.
|
|
58
|
-
import { registerWorkflows } from "./workflows/index.
|
|
59
|
-
import { readGitContext, buildGitSection, type GitContext } from "./git.
|
|
60
|
-
import { startHotReload, type HotReloadHandle } from "./hotreload.
|
|
61
|
-
import { detectEnv, buildEnvSection, type EnvSummary } from "./env.
|
|
62
|
-
import { buildCodeMap, buildCodeMapSection, type CodeMap } from "./codemap.
|
|
63
|
-
import { loadIntentDocs, buildIntentSection, loadInlineIntentBodies, type IntentDoc } from "./intent.
|
|
54
|
+
} from "./config.ts";
|
|
55
|
+
import { classifyTaskHeuristics, buildNudgeSection } from "./nudge.ts";
|
|
56
|
+
import { registerCommands, type CommandUI } from "./commands.ts";
|
|
57
|
+
import { registerTools } from "./tools.ts";
|
|
58
|
+
import { registerWorkflows } from "./workflows/index.ts";
|
|
59
|
+
import { readGitContext, buildGitSection, type GitContext } from "./git.ts";
|
|
60
|
+
import { startHotReload, type HotReloadHandle } from "./hotreload.ts";
|
|
61
|
+
import { detectEnv, buildEnvSection, type EnvSummary } from "./env.ts";
|
|
62
|
+
import { buildCodeMap, buildCodeMapSection, type CodeMap } from "./codemap.ts";
|
|
63
|
+
import { loadIntentDocs, buildIntentSection, loadInlineIntentBodies, type IntentDoc } from "./intent.ts";
|
|
64
64
|
|
|
65
65
|
export default function solyExtension(pi: ExtensionAPI) {
|
|
66
66
|
// ============================================================================
|
package/intent.ts
CHANGED
|
@@ -22,8 +22,8 @@
|
|
|
22
22
|
|
|
23
23
|
import * as fs from "node:fs";
|
|
24
24
|
import * as path from "node:path";
|
|
25
|
-
import { formatTok, resolveImports } from "./core.
|
|
26
|
-
import { extractTitleAndPreview, stripHtml } from "./html.
|
|
25
|
+
import { formatTok, resolveImports } from "./core.ts";
|
|
26
|
+
import { extractTitleAndPreview, stripHtml } from "./html.ts";
|
|
27
27
|
|
|
28
28
|
const DOC_EXTS = new Set([".md", ".html", ".htm"]);
|
|
29
29
|
|
package/iteration.ts
CHANGED
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
|
|
26
26
|
import * as fs from "node:fs";
|
|
27
27
|
import * as path from "node:path";
|
|
28
|
-
import { atomicWriteFileSync, readIfExists } from "./core.
|
|
28
|
+
import { atomicWriteFileSync, readIfExists } from "./core.ts";
|
|
29
29
|
|
|
30
30
|
export type IterationKind = "exec" | "plan" | "discuss" | "pause";
|
|
31
31
|
|
package/package.json
CHANGED
package/tools.ts
CHANGED
|
@@ -17,12 +17,12 @@ import { promisify } from "node:util";
|
|
|
17
17
|
import { Type } from "typebox";
|
|
18
18
|
import { StringEnum } from "@earendil-works/pi-ai";
|
|
19
19
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
20
|
-
import { readIfExists, splitFrontmatter, atomicWriteFileSync, type SolyState } from "./core.
|
|
21
|
-
import { detectEnv, type EnvSummary } from "./env.
|
|
22
|
-
import type { SolyConfig } from "./config.
|
|
23
|
-
import { buildDocIndex, searchDocs, readSnippet, stripHtml } from "./docs.
|
|
24
|
-
import { buildScratchpad, SCRATCHPAD_LIMITS } from "./scratchpad.
|
|
25
|
-
import { loadIntentDocs, buildIntentSection, type IntentDoc } from "./intent.
|
|
20
|
+
import { readIfExists, splitFrontmatter, atomicWriteFileSync, type SolyState } from "./core.ts";
|
|
21
|
+
import { detectEnv, type EnvSummary } from "./env.ts";
|
|
22
|
+
import type { SolyConfig } from "./config.ts";
|
|
23
|
+
import { buildDocIndex, searchDocs, readSnippet, stripHtml } from "./docs.ts";
|
|
24
|
+
import { buildScratchpad, SCRATCHPAD_LIMITS } from "./scratchpad.ts";
|
|
25
|
+
import { loadIntentDocs, buildIntentSection, type IntentDoc } from "./intent.ts";
|
|
26
26
|
|
|
27
27
|
const execFileAsync = promisify(execFile);
|
|
28
28
|
|
package/workflows/execute.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import * as fs from "node:fs";
|
|
20
20
|
import * as path from "node:path";
|
|
21
21
|
import { fileURLToPath } from "node:url";
|
|
22
|
-
import { describeExecuteTarget, type SolyCommand } from "./parser.
|
|
22
|
+
import { describeExecuteTarget, type SolyCommand } from "./parser.ts";
|
|
23
23
|
import type { SolyState } from "../core.js";
|
|
24
24
|
import {
|
|
25
25
|
extractPlanSummary,
|
package/workflows/index.ts
CHANGED
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
// =============================================================================
|
|
17
17
|
|
|
18
18
|
import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
|
|
19
|
-
import { parseSolyCommand, type SolyCommand } from "./parser.
|
|
20
|
-
import { buildExecuteTransform } from "./execute.
|
|
21
|
-
import { buildPauseTransform } from "./pause.
|
|
22
|
-
import { buildResumeTransform } from "./resume.
|
|
23
|
-
import { showStatus, showLog, showDiff } from "./quick.
|
|
24
|
-
import { showDoctor, showIterations, showDiffIterations, showPhaseDelete, showTodos } from "./inspect.
|
|
25
|
-
import { buildPlanTransform, buildDiscussTransform } from "./planning.
|
|
19
|
+
import { parseSolyCommand, type SolyCommand } from "./parser.ts";
|
|
20
|
+
import { buildExecuteTransform } from "./execute.ts";
|
|
21
|
+
import { buildPauseTransform } from "./pause.ts";
|
|
22
|
+
import { buildResumeTransform } from "./resume.ts";
|
|
23
|
+
import { showStatus, showLog, showDiff } from "./quick.ts";
|
|
24
|
+
import { showDoctor, showIterations, showDiffIterations, showPhaseDelete, showTodos } from "./inspect.ts";
|
|
25
|
+
import { buildPlanTransform, buildDiscussTransform } from "./planning.ts";
|
|
26
26
|
import type { SolyState } from "../core.js";
|
|
27
27
|
import type { SolyConfig } from "../config.js";
|
|
28
28
|
|
package/workflows/pause.ts
CHANGED
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
import * as fs from "node:fs";
|
|
20
20
|
import * as path from "node:path";
|
|
21
21
|
import { fileURLToPath } from "node:url";
|
|
22
|
-
import type { SolyCommand } from "./parser.
|
|
22
|
+
import type { SolyCommand } from "./parser.ts";
|
|
23
23
|
import type { SolyState } from "../core.js";
|
|
24
24
|
|
|
25
25
|
/** Resolve <extension>/workflows-data/<name>.md regardless of cwd. */
|
package/workflows/planning.ts
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
import * as fs from "node:fs";
|
|
16
16
|
import * as path from "node:path";
|
|
17
17
|
import { fileURLToPath } from "node:url";
|
|
18
|
-
import { describePlanTarget, type SolyCommand } from "./parser.
|
|
18
|
+
import { describePlanTarget, type SolyCommand } from "./parser.ts";
|
|
19
19
|
import type { SolyState } from "../core.js";
|
|
20
20
|
import {
|
|
21
21
|
extractPlanSummary,
|
package/workflows/quick.ts
CHANGED
|
@@ -16,7 +16,7 @@ import * as fs from "node:fs";
|
|
|
16
16
|
import * as path from "node:path";
|
|
17
17
|
import { readIfExists, buildProgressBar, type SolyState } from "../core.js";
|
|
18
18
|
import type { SolyConfig } from "../config.js";
|
|
19
|
-
import type { SolyCommand } from "./parser.
|
|
19
|
+
import type { SolyCommand } from "./parser.ts";
|
|
20
20
|
|
|
21
21
|
const execFileAsync = promisify(execFile);
|
|
22
22
|
|
package/workflows/resume.ts
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
|
|
17
17
|
import * as fs from "node:fs";
|
|
18
18
|
import * as path from "node:path";
|
|
19
|
-
import type { SolyCommand } from "./parser.
|
|
19
|
+
import type { SolyCommand } from "./parser.ts";
|
|
20
20
|
import type { SolyState } from "../core.js";
|
|
21
21
|
import { readIfExists } from "../core.js";
|
|
22
22
|
|