leglas 1.3.0 → 1.4.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.
@@ -7,10 +7,9 @@ export declare function localDevServerPort(origin: string): number | null;
7
7
  export declare function parseListeningPids(output: string): number[];
8
8
  export declare function parseOwnerCwds(output: string): DevServerOwner[];
9
9
  /**
10
- * Read the working directory of the process listening on a local dev-server
11
- * port. This is best-effort by design: unsupported platforms, missing lsof,
12
- * permissions and a process exiting mid-read all mean "no evidence", not a
13
- * failed Leglas startup.
10
+ * The working directory of the process on a local dev-server port. Best effort:
11
+ * no lsof, no permission or a process exiting mid-read all mean no evidence,
12
+ * never a failed start.
14
13
  */
15
14
  export declare function inspectLocalDevServer(origin: string): Promise<DevServerOwner[]>;
16
15
  /** A short, actionable warning only when every discovered owner is unrelated. */
package/dist/explore.d.ts CHANGED
@@ -1,18 +1,10 @@
1
1
  /**
2
- * What leglas explore hands an agent.
2
+ * What leglas explore hands an agent: how a set registers here, what it's for
3
+ * and the trap each kind of set falls into. No prewritten angles; taste is the
4
+ * agent's, since a shared deck makes every project converge.
3
5
  *
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.
6
+ * Directions are chosen between, so they must disagree. Variants pick within a
7
+ * chosen direction, so they must not.
16
8
  */
17
9
  export type ExplorePlan = {
18
10
  surface: string;
package/dist/help.d.ts ADDED
@@ -0,0 +1,2 @@
1
+ /** The whole of `leglas --help`, and of `leglas <command> --help`. */
2
+ export declare const HELP: string;
package/dist/ignore.d.ts CHANGED
@@ -1,11 +1,8 @@
1
1
  /** Everything Leglas writes into a project lives here, and none of it is shared. */
2
2
  export declare const IGNORED = ".leglas/";
3
3
  /**
4
- * The .gitignore contents needed to ignore Leglas's working directory, or null
5
- * when nothing needs to change.
6
- *
7
- * Any command that writes into `.leglas/` calls this, because the moment the
8
- * directory exists un-ignored, someone's exploration is one `git add -A` away
9
- * from a commit.
4
+ * The .gitignore contents that ignore `.leglas/`, or null when nothing needs to
5
+ * change. Every command that writes there calls this; un-ignored, an
6
+ * exploration is one `git add -A` from a commit.
10
7
  */
11
8
  export declare function ignoreEntry(current: string | null): string | null;
package/dist/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  export { parseArgs } from "./args.js";
2
+ export { DEFAULT_EXPLORE_COUNT, DEFAULT_SHARE_REACH, MAX_PORT, MAX_SHOW_WIDTH, MIN_SHOW_WIDTH, addRefusal, fromRefusal, shareRefusal, showRefusal, } from "./rules.js";
2
3
  export { planExplore } from "./explore.js";
3
4
  export { runExplore } from "./run-explore.js";
4
5
  export { detectFramework, planNew, surfaceSlug } from "./new.js";
@@ -12,6 +13,8 @@ export { runAdd, runList, runRequests } from "./run-previews.js";
12
13
  export { planShow } from "./show.js";
13
14
  export { runShow } from "./run-show.js";
14
15
  export { runShare } from "./run-share.js";
16
+ export { runLink } from "./run-link.js";
17
+ export { runRemove } from "./run-remove.js";
15
18
  export { installShutdown } from "./shutdown.js";
16
19
  export { PROMPT_TOKEN, WATCH_PATH, commandFor, nextRequest, parseTemplate } from "./watch.js";
17
20
  export { runWatch } from "./run-watch.js";