@limno/core 0.1.2 → 0.1.4
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/index.cjs +522 -43
- package/dist/index.d.cts +46 -1
- package/dist/index.d.ts +46 -1
- package/dist/index.js +521 -43
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -71,4 +71,49 @@ declare const SOURCE_FILES: RegExp;
|
|
|
71
71
|
/** True for files that should be stamped: JSX/TSX outside node_modules. */
|
|
72
72
|
declare function shouldStamp(file: string, include?: RegExp): boolean;
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Runs the user's own coding agent in the background when they click Send, so there's nothing to
|
|
76
|
+
* connect and no session to restart. The agent gets Limno's MCP tools for that run only (nothing is
|
|
77
|
+
* written to its config), may read and edit files in the project, and can't run shell commands
|
|
78
|
+
* (Claude Code) or runs them in Codex's workspace sandbox.
|
|
79
|
+
*/
|
|
80
|
+
type RunnerAgentId = "claude" | "codex";
|
|
81
|
+
interface RunnerAgent {
|
|
82
|
+
id: RunnerAgentId;
|
|
83
|
+
name: string;
|
|
84
|
+
installed: boolean;
|
|
85
|
+
signedIn: boolean;
|
|
86
|
+
/** What to run in a terminal to sign in, when installed but signed out. */
|
|
87
|
+
signIn: string;
|
|
88
|
+
}
|
|
89
|
+
interface RunnerLogEntry {
|
|
90
|
+
at: number;
|
|
91
|
+
kind: "read" | "edit" | "search" | "limno" | "message" | "error";
|
|
92
|
+
text: string;
|
|
93
|
+
file?: string;
|
|
94
|
+
}
|
|
95
|
+
interface RunnerState {
|
|
96
|
+
status: "idle" | "starting" | "running" | "done" | "failed" | "stopped";
|
|
97
|
+
agent: RunnerAgentId | null;
|
|
98
|
+
startedAt: number | null;
|
|
99
|
+
endedAt: number | null;
|
|
100
|
+
log: RunnerLogEntry[];
|
|
101
|
+
/** Project-relative files the agent edited in this run. */
|
|
102
|
+
files: string[];
|
|
103
|
+
error?: string;
|
|
104
|
+
}
|
|
105
|
+
interface RunnerInfo {
|
|
106
|
+
agents: RunnerAgent[];
|
|
107
|
+
/** The agent this user allowed Limno to run on this project, if any. */
|
|
108
|
+
allowed: RunnerAgentId | null;
|
|
109
|
+
state: RunnerState;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Starting an agent edits files on this machine, so only the user's own browser may ask: the
|
|
113
|
+
* request must come from this computer, to a localhost address, from a localhost page. That stops
|
|
114
|
+
* other devices on the network (a dev server started with --host) and other websites (which can
|
|
115
|
+
* send requests to localhost but always carry their own Origin).
|
|
116
|
+
*/
|
|
117
|
+
declare function isLocalRequest(req: IncomingMessage): boolean;
|
|
118
|
+
|
|
119
|
+
export { type AgentStatus, type LimnoServer, type LimnoService, type LimnoServiceOptions, ROUTE, type RunnerAgent, type RunnerAgentId, type RunnerInfo, type RunnerLogEntry, type RunnerState, SOURCE_FILES, TEMPLATE_FILES, createLimnoService, isLocalRequest, overlayFile, shouldStamp, stampSource, stampTemplate, startServer };
|
package/dist/index.d.ts
CHANGED
|
@@ -71,4 +71,49 @@ declare const SOURCE_FILES: RegExp;
|
|
|
71
71
|
/** True for files that should be stamped: JSX/TSX outside node_modules. */
|
|
72
72
|
declare function shouldStamp(file: string, include?: RegExp): boolean;
|
|
73
73
|
|
|
74
|
-
|
|
74
|
+
/**
|
|
75
|
+
* Runs the user's own coding agent in the background when they click Send, so there's nothing to
|
|
76
|
+
* connect and no session to restart. The agent gets Limno's MCP tools for that run only (nothing is
|
|
77
|
+
* written to its config), may read and edit files in the project, and can't run shell commands
|
|
78
|
+
* (Claude Code) or runs them in Codex's workspace sandbox.
|
|
79
|
+
*/
|
|
80
|
+
type RunnerAgentId = "claude" | "codex";
|
|
81
|
+
interface RunnerAgent {
|
|
82
|
+
id: RunnerAgentId;
|
|
83
|
+
name: string;
|
|
84
|
+
installed: boolean;
|
|
85
|
+
signedIn: boolean;
|
|
86
|
+
/** What to run in a terminal to sign in, when installed but signed out. */
|
|
87
|
+
signIn: string;
|
|
88
|
+
}
|
|
89
|
+
interface RunnerLogEntry {
|
|
90
|
+
at: number;
|
|
91
|
+
kind: "read" | "edit" | "search" | "limno" | "message" | "error";
|
|
92
|
+
text: string;
|
|
93
|
+
file?: string;
|
|
94
|
+
}
|
|
95
|
+
interface RunnerState {
|
|
96
|
+
status: "idle" | "starting" | "running" | "done" | "failed" | "stopped";
|
|
97
|
+
agent: RunnerAgentId | null;
|
|
98
|
+
startedAt: number | null;
|
|
99
|
+
endedAt: number | null;
|
|
100
|
+
log: RunnerLogEntry[];
|
|
101
|
+
/** Project-relative files the agent edited in this run. */
|
|
102
|
+
files: string[];
|
|
103
|
+
error?: string;
|
|
104
|
+
}
|
|
105
|
+
interface RunnerInfo {
|
|
106
|
+
agents: RunnerAgent[];
|
|
107
|
+
/** The agent this user allowed Limno to run on this project, if any. */
|
|
108
|
+
allowed: RunnerAgentId | null;
|
|
109
|
+
state: RunnerState;
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Starting an agent edits files on this machine, so only the user's own browser may ask: the
|
|
113
|
+
* request must come from this computer, to a localhost address, from a localhost page. That stops
|
|
114
|
+
* other devices on the network (a dev server started with --host) and other websites (which can
|
|
115
|
+
* send requests to localhost but always carry their own Origin).
|
|
116
|
+
*/
|
|
117
|
+
declare function isLocalRequest(req: IncomingMessage): boolean;
|
|
118
|
+
|
|
119
|
+
export { type AgentStatus, type LimnoServer, type LimnoService, type LimnoServiceOptions, ROUTE, type RunnerAgent, type RunnerAgentId, type RunnerInfo, type RunnerLogEntry, type RunnerState, SOURCE_FILES, TEMPLATE_FILES, createLimnoService, isLocalRequest, overlayFile, shouldStamp, stampSource, stampTemplate, startServer };
|