leglas 0.1.1 → 0.2.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.
@@ -0,0 +1,25 @@
1
+ /**
2
+ * What leglas explore hands an agent.
3
+ *
4
+ * It used to hand out ten prewritten angles, each with an avoid line. Retired
5
+ * deliberately: prewritten taste is generic where the agent's is contextual,
6
+ * and every project drawing on one deck converges across projects, which is
7
+ * the failure this command exists to fight, one level up. What survives is
8
+ * what the agent cannot supply itself: the mechanics of registering a set
9
+ * here, the purpose that makes the set worth building, and the one trap each
10
+ * kind of set has been seen to fall into. Which designs to build, and what
11
+ * counts as different, belong to the agent that knows the product.
12
+ *
13
+ * Two kinds of set, opposite goals. Directions exist to be chosen between, so
14
+ * they only work if they genuinely disagree. Variants pick within a direction
15
+ * already chosen, so they only work if they do not.
16
+ */
17
+ export type ExplorePlan = {
18
+ surface: string;
19
+ slug: string;
20
+ count: number;
21
+ /** The direction being varied, or null when exploring for spread. */
22
+ basedOn: string | null;
23
+ instructions: string;
24
+ };
25
+ export declare function planExplore(surface: string, count: number, basedOn?: string | null): ExplorePlan;
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  export { parseArgs } from "./args.js";
2
- export { ALL_BRIEFS, briefsFor, planBriefs } from "./briefs.js";
2
+ export { planExplore } from "./explore.js";
3
3
  export { runExplore } from "./run-explore.js";
4
4
  export { detectFramework, planNew, surfaceSlug } from "./new.js";
5
5
  export { AGENTS_MARKER_END, AGENTS_MARKER_START, planInit } from "./init.js";
@@ -9,9 +9,18 @@ export { runInit } from "./run-init.js";
9
9
  export { runKeep } from "./run-keep.js";
10
10
  export { runNew } from "./run-new.js";
11
11
  export { runAdd, runList, runRequests } from "./run-previews.js";
12
+ export { planShow } from "./show.js";
13
+ export { runShow } from "./run-show.js";
14
+ export { PROMPT_TOKEN, WATCH_PATH, commandFor, nextRequest, parseTemplate } from "./watch.js";
15
+ export { runWatch } from "./run-watch.js";
16
+ export type { TemplateResult, WatchTemplate } from "./watch.js";
17
+ export type { WatchDeps } from "./run-watch.js";
18
+ export { readRequests } from "@leglas/server";
19
+ export type { PendingRequest } from "@leglas/server";
12
20
  export { runClassify } from "./run-classify.js";
13
21
  export { run } from "./run.js";
14
22
  export type { ParseResult, RunOptions } from "./args.js";
15
23
  export type { Framework, NewPlan, Write } from "./new.js";
24
+ export type { ShowDirection, ShowPlan } from "./show.js";
16
25
  export type { NewDeps, NewResult } from "./run-new.js";
17
26
  export type { RunDeps, RunResult } from "./run.js";