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.
- package/dist/args.d.ts +14 -0
- package/dist/baseline.d.ts +2 -8
- package/dist/bin.js +1656 -475
- package/dist/dev-server-owner.d.ts +3 -4
- package/dist/explore.d.ts +5 -13
- package/dist/help.d.ts +2 -0
- package/dist/ignore.d.ts +3 -6
- package/dist/index.d.ts +3 -0
- package/dist/index.js +1665 -502
- package/dist/keep.d.ts +3 -10
- package/dist/new.d.ts +3 -4
- package/dist/resolve-title.d.ts +4 -8
- package/dist/rules.d.ts +41 -0
- package/dist/run-classify.d.ts +3 -5
- package/dist/run-explore-build.d.ts +3 -6
- package/dist/run-explore.d.ts +3 -6
- package/dist/run-init.d.ts +3 -4
- package/dist/run-link.d.ts +18 -0
- package/dist/run-log.d.ts +3 -7
- package/dist/run-new.d.ts +4 -7
- package/dist/run-previews.d.ts +4 -4
- package/dist/run-remove.d.ts +17 -0
- package/dist/run-share.d.ts +10 -10
- package/dist/run-show.d.ts +3 -5
- package/dist/run-watch.d.ts +3 -9
- package/dist/run.d.ts +3 -6
- package/dist/running.d.ts +24 -7
- package/dist/shell/assets/index-CXz1BSV1.js +14 -0
- package/dist/shell/index.html +1 -1
- package/dist/show.d.ts +7 -16
- package/dist/shutdown.d.ts +7 -22
- package/dist/test-helpers.d.ts +2 -0
- package/package.json +1 -1
- package/dist/shell/assets/index-CcHf_UOb.js +0 -14
|
@@ -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
|
-
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
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
|
-
*
|
|
5
|
-
*
|
|
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
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
|
|
5
|
-
*
|
|
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";
|