@lore-co/cli 0.2.13 → 0.2.15
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/README.md +84 -11
- package/dist/capture-scope.d.ts +12 -0
- package/dist/capture-scope.d.ts.map +1 -0
- package/dist/capture-scope.js +45 -0
- package/dist/capture-scope.js.map +1 -0
- package/dist/cli.d.ts +7 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +118 -36
- package/dist/cli.js.map +1 -1
- package/dist/command-help.d.ts +2 -1
- package/dist/command-help.d.ts.map +1 -1
- package/dist/command-help.js +4 -1
- package/dist/command-help.js.map +1 -1
- package/dist/connect-project.d.ts +15 -0
- package/dist/connect-project.d.ts.map +1 -0
- package/dist/connect-project.js +87 -0
- package/dist/connect-project.js.map +1 -0
- package/dist/connections.d.ts +3 -1
- package/dist/connections.d.ts.map +1 -1
- package/dist/connections.js +6 -1
- package/dist/connections.js.map +1 -1
- package/dist/devin-cli.d.ts.map +1 -1
- package/dist/devin-cli.js +14 -6
- package/dist/devin-cli.js.map +1 -1
- package/dist/devin.d.ts.map +1 -1
- package/dist/devin.js +5 -2
- package/dist/devin.js.map +1 -1
- package/dist/generated-assets.d.ts +7 -6
- package/dist/generated-assets.d.ts.map +1 -1
- package/dist/generated-assets.js +6 -5
- package/dist/generated-assets.js.map +1 -1
- package/dist/host.d.ts.map +1 -1
- package/dist/host.js +5 -5
- package/dist/host.js.map +1 -1
- package/dist/recovery-cloud.js +1 -1
- package/dist/recovery-cloud.js.map +1 -1
- package/dist/recovery-remote.d.ts +1 -1
- package/dist/recovery-remote.d.ts.map +1 -1
- package/dist/recovery-remote.js +4 -2
- package/dist/recovery-remote.js.map +1 -1
- package/dist/recovery-state.d.ts.map +1 -1
- package/dist/recovery-state.js +5 -0
- package/dist/recovery-state.js.map +1 -1
- package/dist/recovery.d.ts.map +1 -1
- package/dist/recovery.js +3 -3
- package/dist/recovery.js.map +1 -1
- package/dist/reliability-store.d.ts.map +1 -1
- package/dist/reliability-store.js +4 -1
- package/dist/reliability-store.js.map +1 -1
- package/dist/remember.d.ts.map +1 -1
- package/dist/remember.js +8 -1
- package/dist/remember.js.map +1 -1
- package/dist/retrieval-task.d.ts +20 -0
- package/dist/retrieval-task.d.ts.map +1 -0
- package/dist/retrieval-task.js +78 -0
- package/dist/retrieval-task.js.map +1 -0
- package/dist/runtime-redaction.d.ts +2 -0
- package/dist/runtime-redaction.d.ts.map +1 -0
- package/dist/runtime-redaction.js +69 -0
- package/dist/runtime-redaction.js.map +1 -0
- package/dist/runtime.d.ts +2 -2
- package/dist/runtime.d.ts.map +1 -1
- package/dist/runtime.js +45 -70
- package/dist/runtime.js.map +1 -1
- package/dist/self-host.d.ts +2 -1
- package/dist/self-host.d.ts.map +1 -1
- package/dist/self-host.js +6 -4
- package/dist/self-host.js.map +1 -1
- package/dist/signed-snapshot.d.ts.map +1 -1
- package/dist/signed-snapshot.js +2 -0
- package/dist/signed-snapshot.js.map +1 -1
- package/dist/skill-command.d.ts +20 -0
- package/dist/skill-command.d.ts.map +1 -0
- package/dist/skill-command.js +215 -0
- package/dist/skill-command.js.map +1 -0
- package/dist/skill-guidance.d.ts +2 -0
- package/dist/skill-guidance.d.ts.map +1 -0
- package/dist/skill-guidance.js +7 -0
- package/dist/skill-guidance.js.map +1 -0
- package/dist/skills.d.ts +16 -0
- package/dist/skills.d.ts.map +1 -0
- package/dist/skills.js +126 -0
- package/dist/skills.js.map +1 -0
- package/dist/update.js +3 -3
- package/package.json +7 -3
package/README.md
CHANGED
|
@@ -13,6 +13,7 @@ do not block the agent.
|
|
|
13
13
|
pnpm install --global @lore-co/cli
|
|
14
14
|
|
|
15
15
|
lore connect \
|
|
16
|
+
--folder . \
|
|
16
17
|
--login \
|
|
17
18
|
--agent claude \
|
|
18
19
|
--agent codex \
|
|
@@ -25,6 +26,10 @@ lore doctor
|
|
|
25
26
|
|
|
26
27
|
The package requires Node.js 22 or newer and installs the `lore` command.
|
|
27
28
|
|
|
29
|
+
In Connect, **This project** asks your agent to confirm the current folder. **Choose another project** offers a native folder picker, GitHub selection, and manual path entry. The CLI also supports `--current-project` (interactive confirmation), `--choose-folder` (a picker on this machine), and `--repository github.com/owner/repo` alongside a folder choice to verify its Git origin. Cancelling or choosing a mismatched checkout stops setup before recording. GitHub selection does not change workspace policy.
|
|
30
|
+
|
|
31
|
+
Run setup from the project you want to record: `--folder .` includes that folder and its subfolders. Repeat `--folder <path>` for additional folders, or choose `--all-projects` explicitly. New connections stay paused without a capture choice; reconnecting without one preserves your existing rules. Existing exclusions remain in effect. Use `lore scope check <folder>` to verify. Learning repository scope controls where knowledge applies and is separate from capture scope.
|
|
32
|
+
|
|
28
33
|
### Windows
|
|
29
34
|
|
|
30
35
|
Native Windows support is available in Lore 0.2.0 and newer.
|
|
@@ -34,7 +39,7 @@ The npm package uses the same commands as macOS and Linux:
|
|
|
34
39
|
|
|
35
40
|
```powershell
|
|
36
41
|
npm.cmd install --global @lore-co/cli
|
|
37
|
-
lore.cmd connect --login --agent claude --agent codex
|
|
42
|
+
lore.cmd connect --login --agent claude --agent codex --folder .
|
|
38
43
|
lore.cmd doctor
|
|
39
44
|
```
|
|
40
45
|
|
|
@@ -112,6 +117,7 @@ dashboard:
|
|
|
112
117
|
|
|
113
118
|
```sh
|
|
114
119
|
lore connect \
|
|
120
|
+
--folder . \
|
|
115
121
|
--token "your_workspace_token" \
|
|
116
122
|
--agent claude
|
|
117
123
|
```
|
|
@@ -126,6 +132,7 @@ credential internal while connecting agents:
|
|
|
126
132
|
|
|
127
133
|
```sh
|
|
128
134
|
lore self-host up --headless --connect --agent claude --agent codex
|
|
135
|
+
lore connect --folder .
|
|
129
136
|
```
|
|
130
137
|
|
|
131
138
|
Dashboard self-hosting uses `lore self-host up`, human signup, then:
|
|
@@ -172,6 +179,34 @@ excerpts. `--repo` and
|
|
|
172
179
|
response. Requires a connected workspace (`lore connect`) and a server that
|
|
173
180
|
exposes `POST /v1/ask`.
|
|
174
181
|
|
|
182
|
+
## Use Lore with your agent
|
|
183
|
+
|
|
184
|
+
Choose **lore** in your agent's skills to find shared knowledge or save what you
|
|
185
|
+
learned. For example:
|
|
186
|
+
|
|
187
|
+
- “Ask Lore what we decided about authentication.”
|
|
188
|
+
- “Remember this session for acme/app.”
|
|
189
|
+
- “Save only the design decisions in Lore.”
|
|
190
|
+
|
|
191
|
+
When asked to remember, the skill saves confirmed decisions and their reasoning,
|
|
192
|
+
checks existing learnings, and uses the current repository's connection. Saving
|
|
193
|
+
requires write access and may need workspace review; it does not make a learning
|
|
194
|
+
a Required rule.
|
|
195
|
+
|
|
196
|
+
After updating the CLI, run `lore connect` and restart your agent. Setup replaces
|
|
197
|
+
the previous `lore-remember` skill with `lore`, preserving customer-edited files.
|
|
198
|
+
Claude Code also supports `/lore`; Codex supports `$lore`.
|
|
199
|
+
|
|
200
|
+
The skill is installed in `~/.agents/skills/lore` for Codex, Cursor, Copilot and
|
|
201
|
+
OpenCode, and in the configured Claude directory's `skills/lore`. Cowork and
|
|
202
|
+
Copilot bundles include it too. Polytoken does not receive a skill installation.
|
|
203
|
+
|
|
204
|
+
Installation paths follow the official [Codex](https://developers.openai.com/codex/skills),
|
|
205
|
+
[Claude Code](https://code.claude.com/docs/en/skills),
|
|
206
|
+
[Copilot](https://docs.github.com/en/copilot/concepts/agents/about-agent-skills),
|
|
207
|
+
[Cursor](https://cursor.com/docs/skills), and [OpenCode](https://opencode.ai/docs/skills/)
|
|
208
|
+
skill conventions.
|
|
209
|
+
|
|
175
210
|
## Save knowledge manually
|
|
176
211
|
|
|
177
212
|
```sh
|
|
@@ -188,7 +223,8 @@ workspace-wide; the current repository is not inferred. The connected workspace
|
|
|
188
223
|
determines the organization.
|
|
189
224
|
|
|
190
225
|
`--category` defaults to `other`; run `lore remember --help` for the supported
|
|
191
|
-
categories. `--agent` identifies the source and defaults to `human
|
|
226
|
+
categories. `--agent` identifies the source and defaults to `human`; `--session`
|
|
227
|
+
preserves its actual session ID when known. The command
|
|
192
228
|
prints the saved learning's ID, content, scope, category, and status, and reports
|
|
193
229
|
an existing learning when the server deduplicates it. `--json` returns the full
|
|
194
230
|
`{ memory, inserted }` response for scripts. Use `--` before statement text that
|
|
@@ -207,8 +243,46 @@ an updated CLI and API. MCP hosts can use the equivalent tools with writes
|
|
|
207
243
|
enabled. See [Make this repeatable](../../docs/guides/repeatable-work.md) for the
|
|
208
244
|
workflow and its limits.
|
|
209
245
|
|
|
246
|
+
## Repository skills
|
|
247
|
+
|
|
248
|
+
Use **Learnings → Skills** to add selected `SKILL.md` files and enable or disable
|
|
249
|
+
them for a repository. Product discipline is included for all repositories by default.
|
|
250
|
+
|
|
251
|
+
```sh
|
|
252
|
+
lore skill list
|
|
253
|
+
lore skill show llm-product-discipline
|
|
254
|
+
lore skill discover --folder ./my-project
|
|
255
|
+
lore skill import --file .agents/skills/my-skill/SKILL.md
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
Discovery is local. CLI imports propose skills for a workspace member to review
|
|
259
|
+
and enable. Use `--all-repositories` when importing to propose a workspace-wide
|
|
260
|
+
skill; an owner or admin must enable it. Skills guide agents under their existing permissions; supporting
|
|
261
|
+
scripts and assets stay in the source repository. See
|
|
262
|
+
[Repository skills](../../docs/guides/skills.md) for imports and MCP tools.
|
|
263
|
+
|
|
210
264
|
## Context Guard
|
|
211
265
|
|
|
266
|
+
In Learnings, select a rule template for pushes, edits to a file or folder,
|
|
267
|
+
deployments, commits, or terminal commands. Push rules can cover **selected
|
|
268
|
+
branches** (for example `main` and `release/v1`) or **all branches**. Settings
|
|
269
|
+
are saved separately from your explanation; changing the wording does not
|
|
270
|
+
silently change the check. An owner or admin enables **Ask before conflicting
|
|
271
|
+
actions**, and Enforce mode pauses conflicting actions for approval in supported
|
|
272
|
+
pre-action integrations.
|
|
273
|
+
|
|
274
|
+
Branch checks use the remote destination, including `HEAD:main`, multiple
|
|
275
|
+
refspecs and branch deletion. Native hooks can read local Git configuration to
|
|
276
|
+
resolve a simple implicit push or a source-only refspec. Unknown destinations,
|
|
277
|
+
wildcard pushes and broad operations such as `--mirror` require approval. A
|
|
278
|
+
known push to another branch is unaffected by this rule. This is a check of
|
|
279
|
+
reported agent actions, not a replacement for server-side branch protection;
|
|
280
|
+
arbitrary scripts and tools without pre-action support are not covered.
|
|
281
|
+
|
|
282
|
+
Update connected clients before enabling the new templates. An older client
|
|
283
|
+
cannot evaluate a structured saved policy offline and will pause until it can
|
|
284
|
+
verify enforcement again. Existing supported written rules remain valid.
|
|
285
|
+
|
|
212
286
|
```sh
|
|
213
287
|
lore guard status # effective mode here, and why
|
|
214
288
|
lore guard assist # set the workspace default
|
|
@@ -237,7 +311,7 @@ content-free `guard_check` audit event.
|
|
|
237
311
|
|
|
238
312
|
```sh
|
|
239
313
|
lore update
|
|
240
|
-
lore update --version v0.2.
|
|
314
|
+
lore update --version v0.2.15
|
|
241
315
|
```
|
|
242
316
|
|
|
243
317
|
`update` resolves the latest release to an exact tag, or uses the exact
|
|
@@ -430,13 +504,12 @@ default to repository scope and follow the workspace learning policy. In
|
|
|
430
504
|
retrieved or injected until dashboard review activates it. Rejected,
|
|
431
505
|
suppressed, superseded, and deleted learnings are also excluded. Dirty files
|
|
432
506
|
and the current directory remain task relevance evidence and do not narrow
|
|
433
|
-
every learning.
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
lifecycle and never runs through the command-hook parser.
|
|
507
|
+
every learning. Only an explicit correction with clear team-, company,
|
|
508
|
+
organization-, or all-repositories evidence may become organization-only and
|
|
509
|
+
apply across repositories. Native retrieval still requires a strong lexical,
|
|
510
|
+
structural, symbol, or semantic match. Observations, paired turns, OpenCode
|
|
511
|
+
plugin events, and deliveries are visible through Lore activity. OpenCode
|
|
512
|
+
uses its plugin lifecycle and never runs through the command-hook parser.
|
|
440
513
|
|
|
441
514
|
## External hosts
|
|
442
515
|
|
|
@@ -583,7 +656,7 @@ same-repository, non-draft pull requests bearing the corresponding
|
|
|
583
656
|
`lore:codex-review` or `lore:devin-review` label.
|
|
584
657
|
|
|
585
658
|
Generated jobs require a published standalone binary release and default to
|
|
586
|
-
`treadiehq/lore-releases` at `v0.2.
|
|
659
|
+
`treadiehq/lore-releases` at `v0.2.15`. Set `LORE_CLI_REPOSITORY` to the publicly
|
|
587
660
|
readable `owner/repository` and `LORE_CLI_VERSION` to an existing release tag
|
|
588
661
|
when using another release source.
|
|
589
662
|
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { DirectoryRules } from "./directory-policy.js";
|
|
2
|
+
export interface CaptureScopeOptions {
|
|
3
|
+
folders?: readonly string[];
|
|
4
|
+
allProjects?: boolean;
|
|
5
|
+
repository?: string;
|
|
6
|
+
}
|
|
7
|
+
/** Validate the choice on the recording machine before installing any hooks. */
|
|
8
|
+
export declare function captureDirectories(options: CaptureScopeOptions, home: string, cwd?: string): Promise<DirectoryRules | null | undefined>;
|
|
9
|
+
/** Ignore inherited Git location overrides: inspect the selected folder itself. */
|
|
10
|
+
export declare function captureGit(folder: string, args: string[]): Promise<string>;
|
|
11
|
+
export declare function verifyCaptureRepository(folder: string, repository: string): Promise<void>;
|
|
12
|
+
//# sourceMappingURL=capture-scope.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture-scope.d.ts","sourceRoot":"","sources":["../src/capture-scope.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAE5D,MAAM,WAAW,mBAAmB;IAAG,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;IAAC,WAAW,CAAC,EAAE,OAAO,CAAC;IAAC,UAAU,CAAC,EAAE,MAAM,CAAA;CAAE;AAEhH,gFAAgF;AAChF,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,mBAAmB,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,SAAgB,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,GAAG,SAAS,CAAC,CAgBpJ;AAID,mFAAmF;AACnF,wBAAsB,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAIhF;AAED,wBAAsB,uBAAuB,CAAC,MAAM,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAI/F"}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { realpath, stat } from "node:fs/promises";
|
|
2
|
+
import { resolve } from "node:path";
|
|
3
|
+
import { execFile } from "node:child_process";
|
|
4
|
+
import { promisify } from "node:util";
|
|
5
|
+
import { repositoryIdentity } from "@lore-co/core";
|
|
6
|
+
/** Validate the choice on the recording machine before installing any hooks. */
|
|
7
|
+
export async function captureDirectories(options, home, cwd = process.cwd()) {
|
|
8
|
+
if (options.repository !== undefined && (!/^github\.com\/[^/]+\/[^/]+$/u.test(repositoryIdentity(options.repository) ?? "") || options.allProjects || !options.folders?.length))
|
|
9
|
+
throw new Error("--repository needs a GitHub repository and a local --folder or --choose-folder selection.");
|
|
10
|
+
if (options.allProjects && options.folders !== undefined)
|
|
11
|
+
throw new Error("Use --folder or --all-projects, not both.");
|
|
12
|
+
if (options.allProjects)
|
|
13
|
+
return null;
|
|
14
|
+
if (options.folders === undefined)
|
|
15
|
+
return undefined;
|
|
16
|
+
if (!options.folders.length || options.folders.length > 100)
|
|
17
|
+
throw new Error("Choose between 1 and 100 folders with --folder.");
|
|
18
|
+
const include = [];
|
|
19
|
+
for (const folder of options.folders) {
|
|
20
|
+
if (!folder.trim() || folder.length > 2000 || /[\[\]{}!*?\x00-\x1f]/u.test(folder))
|
|
21
|
+
throw new Error("--folder needs a folder path, without wildcards or control characters.");
|
|
22
|
+
const expanded = folder.startsWith("~/") || folder.startsWith("~\\") ? resolve(home, folder.slice(2)) : resolve(cwd, folder);
|
|
23
|
+
const path = await realpath(expanded).catch(() => { throw new Error(`Folder does not exist: ${folder}`); });
|
|
24
|
+
if (!(await stat(path)).isDirectory())
|
|
25
|
+
throw new Error(`Not a folder: ${folder}`);
|
|
26
|
+
if (options.repository !== undefined)
|
|
27
|
+
await verifyCaptureRepository(path, options.repository);
|
|
28
|
+
include.push(path);
|
|
29
|
+
}
|
|
30
|
+
return { include: [...new Set(include)], exclude: [] };
|
|
31
|
+
}
|
|
32
|
+
const runGit = promisify(execFile);
|
|
33
|
+
/** Ignore inherited Git location overrides: inspect the selected folder itself. */
|
|
34
|
+
export async function captureGit(folder, args) {
|
|
35
|
+
const env = Object.fromEntries(Object.entries(process.env).filter(([key]) => !key.startsWith("GIT_")));
|
|
36
|
+
const { stdout } = await runGit("git", ["-C", folder, "-c", "core.fsmonitor=false", ...args], { env, encoding: "utf8", timeout: 5000, maxBuffer: 16_384, windowsHide: true });
|
|
37
|
+
return stdout.trim();
|
|
38
|
+
}
|
|
39
|
+
export async function verifyCaptureRepository(folder, repository) {
|
|
40
|
+
const expected = repositoryIdentity(repository);
|
|
41
|
+
const remote = await captureGit(folder, ["config", "--local", "--get", "remote.origin.url"]).catch(() => "");
|
|
42
|
+
if (!expected || repositoryIdentity(remote) !== expected)
|
|
43
|
+
throw new Error(`This folder does not match ${repository}. Choose its local checkout; capture settings were not changed.`);
|
|
44
|
+
}
|
|
45
|
+
//# sourceMappingURL=capture-scope.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capture-scope.js","sourceRoot":"","sources":["../src/capture-scope.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AACtC,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAC;AAKnD,gFAAgF;AAChF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,EAAE,WAAW,EAAE,IAAI,EAAE,CAAC,CAAC;IAC9K,OAAO,MAAM,CAAC,IAAI,EAAE,CAAC;AACvB,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,uBAAuB,CAAC,MAAc,EAAE,UAAkB;IAC9E,MAAM,QAAQ,GAAG,kBAAkB,CAAC,UAAU,CAAC,CAAC;IAChD,MAAM,MAAM,GAAG,MAAM,UAAU,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,SAAS,EAAE,OAAO,EAAE,mBAAmB,CAAC,CAAC,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;IAC7G,IAAI,CAAC,QAAQ,IAAI,kBAAkB,CAAC,MAAM,CAAC,KAAK,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,8BAA8B,UAAU,iEAAiE,CAAC,CAAC;AACvL,CAAC"}
|
package/dist/cli.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { type DirectoryRules } from "./directory-policy.js";
|
|
3
|
+
import { type CaptureScopeOptions } from "./capture-scope.js";
|
|
3
4
|
import { type ConnectionReference } from "./directory-policy.js";
|
|
4
5
|
import { type WorkspaceIdentityResponse } from "@lore-co/core";
|
|
5
6
|
import { type CommandHookAgentName } from "./runtime.js";
|
|
@@ -86,7 +87,7 @@ export interface AgentInstallation {
|
|
|
86
87
|
configPath: string;
|
|
87
88
|
}
|
|
88
89
|
export declare function t3CodeProviderInstallations(settings: unknown, paths: LorePaths): AgentInstallation[];
|
|
89
|
-
export interface ConnectWithCredentialOptions {
|
|
90
|
+
export interface ConnectWithCredentialOptions extends CaptureScopeOptions {
|
|
90
91
|
connectionName?: string;
|
|
91
92
|
fallback?: string;
|
|
92
93
|
/** CLI setup opts in automatically; embedded callers can choose explicitly. */
|
|
@@ -102,6 +103,11 @@ export interface ConnectWithCredentialOptions {
|
|
|
102
103
|
timeoutMs?: number;
|
|
103
104
|
}
|
|
104
105
|
export interface ConnectResult {
|
|
106
|
+
capture: {
|
|
107
|
+
folders: string[] | null;
|
|
108
|
+
excludedFolders: string[];
|
|
109
|
+
};
|
|
110
|
+
skillFiles: string[];
|
|
105
111
|
recoveryNotice?: string;
|
|
106
112
|
connected: true;
|
|
107
113
|
apiUrl: string;
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAwD,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMlH,OAAO,EAAgD,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA0B/G,OAAO,EAwBL,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","sourceRoot":"","sources":["../src/cli.ts"],"names":[],"mappings":";AACA,OAAO,EAAwD,KAAK,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAMlH,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAElF,OAAO,EAAgD,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AA0B/G,OAAO,EAwBL,KAAK,yBAAyB,EAC/B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,KAAK,oBAAoB,EAE1B,MAAM,cAAc,CAAC;AAoCtB,eAAO,MAAM,oBAAoB,sBAAsB,CAAC;AACxD,eAAO,MAAM,sBAAsB,2BAA2B,CAAC;AAC/D,eAAO,MAAM,4BAA4B,uBAAuB,CAAC;AACjE,QAAA,MAAM,sBAAsB,kGAA4B,CAAC;AACzD,MAAM,MAAM,mBAAmB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAC1E,MAAM,MAAM,gBAAgB,GACxB,mBAAmB,GACnB,SAAS,GAC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