@fragno-dev/cli 0.1.13 → 0.1.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/.turbo/turbo-build.log +7 -7
- package/CHANGELOG.md +44 -0
- package/dist/cli.d.ts +52 -1
- package/dist/cli.d.ts.map +1 -1
- package/dist/cli.js +573 -51
- package/dist/cli.js.map +1 -1
- package/package.json +6 -3
- package/src/cli.ts +95 -76
- package/src/commands/corpus.ts +581 -0
- package/src/commands/search.ts +105 -0
- package/src/utils/format-search-results.ts +121 -0
package/.turbo/turbo-build.log
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
|
|
2
|
-
> @fragno-dev/cli@0.1.
|
|
2
|
+
> @fragno-dev/cli@0.1.15 build /home/runner/work/fragno/fragno/apps/fragno-cli
|
|
3
3
|
> tsdown
|
|
4
4
|
|
|
5
5
|
[34mℹ[39m tsdown [2mv0.15.12[22m powered by rolldown [2mv1.0.0-beta.45[22m
|
|
@@ -10,9 +10,9 @@
|
|
|
10
10
|
[34mℹ[39m Build start
|
|
11
11
|
[34mℹ[39m Granting execute permission to [4mdist/cli.d.ts[24m
|
|
12
12
|
[34mℹ[39m Granting execute permission to [4mdist/cli.js[24m
|
|
13
|
-
[34mℹ[39m [2mdist/[22m[1mcli.js[22m [
|
|
14
|
-
[34mℹ[39m [2mdist/[22mcli.js.map [
|
|
15
|
-
[34mℹ[39m [2mdist/[22mcli.d.ts.map [2m 0.
|
|
16
|
-
[34mℹ[39m [2mdist/[22m[32m[1mcli.d.ts[22m[39m [2m
|
|
17
|
-
[34mℹ[39m 4 files, total:
|
|
18
|
-
[32m✔[39m Build complete in [
|
|
13
|
+
[34mℹ[39m [2mdist/[22m[1mcli.js[22m [2m33.97 kB[22m [2m│ gzip: 8.15 kB[22m
|
|
14
|
+
[34mℹ[39m [2mdist/[22mcli.js.map [2m69.21 kB[22m [2m│ gzip: 16.57 kB[22m
|
|
15
|
+
[34mℹ[39m [2mdist/[22mcli.d.ts.map [2m 0.82 kB[22m [2m│ gzip: 0.34 kB[22m
|
|
16
|
+
[34mℹ[39m [2mdist/[22m[32m[1mcli.d.ts[22m[39m [2m 1.88 kB[22m [2m│ gzip: 0.44 kB[22m
|
|
17
|
+
[34mℹ[39m 4 files, total: 105.88 kB
|
|
18
|
+
[32m✔[39m Build complete in [32m8884ms[39m
|
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,49 @@
|
|
|
1
1
|
# @fragno-dev/cli
|
|
2
2
|
|
|
3
|
+
## 0.1.15
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- c3d52b8: feat: add `--start`, `--end`, `--headings`, and `--id` flags to corpus command
|
|
8
|
+
- c74bf81: fix: `corpus` command now shows full examples
|
|
9
|
+
- a2c6228: feat: properly render Markdown output in terminal (syntax highlighting etc)
|
|
10
|
+
- Updated dependencies [be537b1]
|
|
11
|
+
- Updated dependencies [b54ff8b]
|
|
12
|
+
- Updated dependencies [c3d52b8]
|
|
13
|
+
- Updated dependencies [c74bf81]
|
|
14
|
+
- @fragno-dev/corpus@0.0.3
|
|
15
|
+
- @fragno-dev/db@0.1.13
|
|
16
|
+
|
|
17
|
+
## 0.1.14
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- 4ec7e78: feat: add search command for documentation lookup
|
|
22
|
+
|
|
23
|
+
Add a new `search` command to fragno-cli that searches the Fragno documentation directly from the
|
|
24
|
+
command line. Results are automatically grouped by page URL with all relevant sections displayed
|
|
25
|
+
together.
|
|
26
|
+
|
|
27
|
+
- 4ec7e78: feat: add corpus command to view code examples and documentation
|
|
28
|
+
|
|
29
|
+
The new `corpus` command allows users and LLMs to access tested, type-checked code examples
|
|
30
|
+
organized by subject. Examples include route definition, database querying, and adapter setup. Use
|
|
31
|
+
`fragno-cli corpus [topic...]` to view one or more topics.
|
|
32
|
+
|
|
33
|
+
- 27cc540: fix: Corpus dependency issue
|
|
34
|
+
- Updated dependencies [be1a630]
|
|
35
|
+
- Updated dependencies [b2a88aa]
|
|
36
|
+
- Updated dependencies [2900bfa]
|
|
37
|
+
- Updated dependencies [27cc540]
|
|
38
|
+
- Updated dependencies [059a249]
|
|
39
|
+
- Updated dependencies [f3f7bc2]
|
|
40
|
+
- Updated dependencies [a9f8159]
|
|
41
|
+
- Updated dependencies [9d4cd3a]
|
|
42
|
+
- Updated dependencies [fdb5aaf]
|
|
43
|
+
- @fragno-dev/core@0.1.6
|
|
44
|
+
- @fragno-dev/db@0.1.12
|
|
45
|
+
- @fragno-dev/corpus@0.0.2
|
|
46
|
+
|
|
3
47
|
## 0.1.13
|
|
4
48
|
|
|
5
49
|
### Patch Changes
|
package/dist/cli.d.ts
CHANGED
|
@@ -31,9 +31,60 @@ declare const migrateCommand: gunshi4.Command<{}>;
|
|
|
31
31
|
//#region src/commands/db/info.d.ts
|
|
32
32
|
declare const infoCommand: gunshi4.Command<{}>;
|
|
33
33
|
//#endregion
|
|
34
|
+
//#region src/commands/search.d.ts
|
|
35
|
+
declare const searchCommand: gunshi4.Command<{
|
|
36
|
+
limit: {
|
|
37
|
+
type: "number";
|
|
38
|
+
description: string;
|
|
39
|
+
default: number;
|
|
40
|
+
};
|
|
41
|
+
json: {
|
|
42
|
+
type: "boolean";
|
|
43
|
+
description: string;
|
|
44
|
+
default: false;
|
|
45
|
+
};
|
|
46
|
+
markdown: {
|
|
47
|
+
type: "boolean";
|
|
48
|
+
description: string;
|
|
49
|
+
default: true;
|
|
50
|
+
};
|
|
51
|
+
"base-url": {
|
|
52
|
+
type: "string";
|
|
53
|
+
description: string;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
}>;
|
|
57
|
+
//#endregion
|
|
58
|
+
//#region src/commands/corpus.d.ts
|
|
59
|
+
declare const corpusCommand: gunshi4.Command<{
|
|
60
|
+
"no-line-numbers": {
|
|
61
|
+
type: "boolean";
|
|
62
|
+
short: string;
|
|
63
|
+
description: string;
|
|
64
|
+
};
|
|
65
|
+
start: {
|
|
66
|
+
type: "number";
|
|
67
|
+
short: string;
|
|
68
|
+
description: string;
|
|
69
|
+
};
|
|
70
|
+
end: {
|
|
71
|
+
type: "number";
|
|
72
|
+
short: string;
|
|
73
|
+
description: string;
|
|
74
|
+
};
|
|
75
|
+
headings: {
|
|
76
|
+
type: "boolean";
|
|
77
|
+
description: string;
|
|
78
|
+
};
|
|
79
|
+
id: {
|
|
80
|
+
type: "string";
|
|
81
|
+
description: string;
|
|
82
|
+
};
|
|
83
|
+
}>;
|
|
84
|
+
//#endregion
|
|
34
85
|
//#region src/cli.d.ts
|
|
35
86
|
declare const dbCommand: gunshi4.Command<gunshi4.Args>;
|
|
36
87
|
declare const mainCommand: gunshi4.Command<gunshi4.Args>;
|
|
37
88
|
//#endregion
|
|
38
|
-
export { dbCommand, generateCommand, infoCommand, mainCommand, migrateCommand };
|
|
89
|
+
export { corpusCommand, dbCommand, generateCommand, infoCommand, mainCommand, migrateCommand, searchCommand };
|
|
39
90
|
//# sourceMappingURL=cli.d.ts.map
|
package/dist/cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.ts","names":[],"sources":["../src/commands/db/generate.ts","../src/commands/db/migrate.ts","../src/commands/db/info.ts","../src/cli.ts"],"sourcesContent":[],"mappings":";;;;cAOa,iBAyGX,OAAA,CAzG0B;;;;IAAf,WAAA,EAAA,MAyGX;;;;IC3GW,KAAA,EAAA,MAqEX;;;;ICtEW,IAAA,EAAA,QA4HX;;;;
|
|
1
|
+
{"version":3,"file":"cli.d.ts","names":[],"sources":["../src/commands/db/generate.ts","../src/commands/db/migrate.ts","../src/commands/db/info.ts","../src/commands/search.ts","../src/commands/corpus.ts","../src/cli.ts"],"sourcesContent":[],"mappings":";;;;cAOa,iBAyGX,OAAA,CAzG0B;;;;IAAf,WAAA,EAAA,MAyGX;;;;IC3GW,KAAA,EAAA,MAqEX;;;;ICtEW,IAAA,EAAA,QA4HX;;;;EC5GW,MAAA,EAAA;;;;EC0eA,CAAA;;;;cHzfA,gBAqEX,OAAA,CArEyB;;;cCDd,aA4HX,OAAA,CA5HsB;;;cCgBX,eAoFX,OAAA,CApFwB;;;;IHbb,OAAA,EAAA,MAyGX;;;;IC3GW,WAAA,EAqEX,MAAA;;;;ICtEW,IAAA,EAAA,SA4HX;;;;EC5GW,UAAA,EAAA;;;;EC0eA,CAAA;;;;cAAA,eAsEX,OAAA,CAtEwB;;;;IJvfb,WAAA,EAAA,MAyGX;;;;IC3GW,KAAA,EAAA,MAqEX;;;;ICtEW,IAAA,EAAA,QA4HX;;;;EC5GW,QAAA,EAAA;;;;EC0eA,EAAA,EAAA;;;;ACveb,CAAA,CAAA;;;cAAa,WAAS,OAAA,CAAA,QAGpB,OAAA,CAHoB,IAAA;cAMT,aAAW,OAAA,CAAA,QAGtB,OAAA,CAHsB,IAAA"}
|