cngkit 1.1.18 → 1.1.19
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 +86 -11
- package/dist/chunk-3A6GRNEV.js +1590 -0
- package/dist/chunk-3A6GRNEV.js.map +1 -0
- package/dist/{chunk-FJ34NVQ4.js → chunk-7SO75QXJ.js} +538 -68
- package/dist/chunk-7SO75QXJ.js.map +1 -0
- package/dist/chunk-DBA3BZXP.js +231 -0
- package/dist/chunk-DBA3BZXP.js.map +1 -0
- package/dist/{chunk-IB5B3BLY.js → chunk-GBONV6XP.js} +16 -4
- package/dist/chunk-GBONV6XP.js.map +1 -0
- package/dist/{chunk-C7HFDK4S.js → chunk-L6ZVQRSY.js} +207 -31
- package/dist/chunk-L6ZVQRSY.js.map +1 -0
- package/dist/{chunk-ZA4YOWPB.js → chunk-NGEWD4BW.js} +2 -1
- package/dist/chunk-TYDIBWZV.js +35 -0
- package/dist/chunk-TYDIBWZV.js.map +1 -0
- package/dist/{chunk-TWQDLZ6F.js → chunk-X4E7NAN4.js} +2 -2
- package/dist/cli.js +55 -14
- package/dist/cli.js.map +1 -1
- package/dist/commands/coderoom/index.js +6 -6
- package/dist/commands/coderoom/index.js.map +1 -1
- package/dist/commands/coderoom/join.js +5 -5
- package/dist/commands/coderoom/share.js +5 -5
- package/dist/commands/hookify/index.js +6 -6
- package/dist/commands/hookify/index.js.map +1 -1
- package/dist/commands/hookify/ingest.js +52 -13
- package/dist/commands/hookify/ingest.js.map +1 -1
- package/dist/commands/hooks/index.js +25 -0
- package/dist/commands/hooks/index.js.map +1 -0
- package/dist/commands/hooks/install.js +40 -0
- package/dist/commands/hooks/install.js.map +1 -0
- package/dist/commands/hooks/uninstall.js +40 -0
- package/dist/commands/hooks/uninstall.js.map +1 -0
- package/dist/commands/index.js +5 -5
- package/dist/commands/index.js.map +1 -1
- package/dist/commands/knowledges/audiences.js +6 -6
- package/dist/commands/knowledges/cat.js +31 -0
- package/dist/commands/knowledges/cat.js.map +1 -0
- package/dist/commands/knowledges/files.js +6 -6
- package/dist/commands/knowledges/find.js +66 -0
- package/dist/commands/knowledges/find.js.map +1 -0
- package/dist/commands/knowledges/glob.js +6 -6
- package/dist/commands/knowledges/grep.js +6 -6
- package/dist/commands/knowledges/head.js +41 -0
- package/dist/commands/knowledges/head.js.map +1 -0
- package/dist/commands/knowledges/index.js +6 -6
- package/dist/commands/knowledges/index.js.map +1 -1
- package/dist/commands/knowledges/list.js +7 -7
- package/dist/commands/knowledges/list.js.map +1 -1
- package/dist/commands/knowledges/ls.js +16 -7
- package/dist/commands/knowledges/ls.js.map +1 -1
- package/dist/commands/knowledges/read.js +6 -6
- package/dist/commands/knowledges/realpath.js +31 -0
- package/dist/commands/knowledges/realpath.js.map +1 -0
- package/dist/commands/knowledges/search.js +6 -6
- package/dist/commands/knowledges/stat.js +31 -0
- package/dist/commands/knowledges/stat.js.map +1 -0
- package/dist/commands/knowledges/status.js +6 -6
- package/dist/commands/knowledges/tail.js +41 -0
- package/dist/commands/knowledges/tail.js.map +1 -0
- package/dist/commands/knowledges/tree.js +46 -0
- package/dist/commands/knowledges/tree.js.map +1 -0
- package/dist/commands/login.js +3 -3
- package/dist/commands/scrub.js +3 -3
- package/dist/commands/transcripts.js +6 -6
- package/dist/commands/transcripts.js.map +1 -1
- package/package.json +2 -2
- package/dist/chunk-C7HFDK4S.js.map +0 -1
- package/dist/chunk-CBIVTEZP.js +0 -222
- package/dist/chunk-CBIVTEZP.js.map +0 -1
- package/dist/chunk-FJ34NVQ4.js.map +0 -1
- package/dist/chunk-IB5B3BLY.js.map +0 -1
- package/dist/chunk-KSW6QT5Q.js +0 -628
- package/dist/chunk-KSW6QT5Q.js.map +0 -1
- /package/dist/{chunk-ZA4YOWPB.js.map → chunk-NGEWD4BW.js.map} +0 -0
- /package/dist/{chunk-TWQDLZ6F.js.map → chunk-X4E7NAN4.js.map} +0 -0
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowCatCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
RequiredFilePathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/cat.tsx
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var description = "Print a remote catalog file as raw text";
|
|
20
|
+
var args = RequiredFilePathArgsSchema;
|
|
21
|
+
var options = JsonOutputOptionsSchema;
|
|
22
|
+
function CatCommand({ args: args2, options: options2 }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowCatCommand(args2[0], options2, output) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
args,
|
|
27
|
+
CatCommand as default,
|
|
28
|
+
description,
|
|
29
|
+
options
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=cat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/cat.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema, RequiredFilePathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowCatCommand, type KnowCatCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Print a remote catalog file as raw text\";\nexport const args = RequiredFilePathArgsSchema;\nexport const options = JsonOutputOptionsSchema;\n\ntype CatCommandProps = {\n readonly args: [string];\n readonly options: KnowCatCommandOptions;\n};\n\nexport default function CatCommand({ args, options }: CatCommandProps) {\n return <CommandRunner run={(output) => runKnowCatCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAcS;AAVF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU;AAOR,SAAR,WAA4B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAoB;AACrE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,kBAAkBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACtF;","names":["args","options"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowFilesCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
JsonOutputOptionsSchema,
|
|
9
9
|
OptionalQueryArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/files.tsx
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowFindCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
OptionalPathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/find.tsx
|
|
18
|
+
import { option } from "pastel";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var description = "Find remote catalog paths";
|
|
22
|
+
var args = OptionalPathArgsSchema;
|
|
23
|
+
var options = JsonOutputOptionsSchema.extend({
|
|
24
|
+
name: z.string().optional().describe(
|
|
25
|
+
option({
|
|
26
|
+
description: "Basename wildcard pattern",
|
|
27
|
+
valueDescription: "pattern"
|
|
28
|
+
})
|
|
29
|
+
),
|
|
30
|
+
type: z.enum(["file", "directory", "f", "d"]).transform((value) => {
|
|
31
|
+
if (value === "f") {
|
|
32
|
+
return "file";
|
|
33
|
+
}
|
|
34
|
+
if (value === "d") {
|
|
35
|
+
return "directory";
|
|
36
|
+
}
|
|
37
|
+
return value;
|
|
38
|
+
}).optional().describe(
|
|
39
|
+
option({
|
|
40
|
+
description: "Path type: file or directory",
|
|
41
|
+
valueDescription: "type"
|
|
42
|
+
})
|
|
43
|
+
),
|
|
44
|
+
maxDepth: z.number().optional().describe(
|
|
45
|
+
option({
|
|
46
|
+
description: "Maximum descendant depth",
|
|
47
|
+
valueDescription: "n"
|
|
48
|
+
})
|
|
49
|
+
),
|
|
50
|
+
limit: z.number().optional().describe(
|
|
51
|
+
option({
|
|
52
|
+
description: "Maximum results",
|
|
53
|
+
valueDescription: "n"
|
|
54
|
+
})
|
|
55
|
+
)
|
|
56
|
+
});
|
|
57
|
+
function FindCommand({ args: args2, options: options2 }) {
|
|
58
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowFindCommand(args2[0], options2, output) });
|
|
59
|
+
}
|
|
60
|
+
export {
|
|
61
|
+
args,
|
|
62
|
+
FindCommand as default,
|
|
63
|
+
description,
|
|
64
|
+
options
|
|
65
|
+
};
|
|
66
|
+
//# sourceMappingURL=find.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/find.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, OptionalPathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowFindCommand, type KnowFindCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Find remote catalog paths\";\nexport const args = OptionalPathArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n name: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Basename wildcard pattern\",\n valueDescription: \"pattern\",\n })\n ),\n type: z\n .enum([\"file\", \"directory\", \"f\", \"d\"])\n .transform((value) => {\n if (value === \"f\") {\n return \"file\";\n }\n\n if (value === \"d\") {\n return \"directory\";\n }\n\n return value;\n })\n .optional()\n .describe(\n option({\n description: \"Path type: file or directory\",\n valueDescription: \"type\",\n })\n ),\n maxDepth: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum descendant depth\",\n valueDescription: \"n\",\n })\n ),\n limit: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum results\",\n valueDescription: \"n\",\n })\n ),\n});\n\ntype FindCommandProps = {\n readonly args: [string?];\n readonly options: KnowFindCommandOptions;\n};\n\nexport default function FindCommand({ args, options }: FindCommandProps) {\n return <CommandRunner run={(output) => runKnowFindCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AAgET;AA1DF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,wBAAwB,OAAO;AAAA,EACpD,MAAM,EACH,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,MAAM,EACH,KAAK,CAAC,QAAQ,aAAa,KAAK,GAAG,CAAC,EACpC,UAAU,CAAC,UAAU;AACpB,QAAI,UAAU,KAAK;AACjB,aAAO;AAAA,IACT;AAEA,QAAI,UAAU,KAAK;AACjB,aAAO;AAAA,IACT;AAEA,WAAO;AAAA,EACT,CAAC,EACA,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,UAAU,EACP,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACvF;","names":["args","options"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowGlobCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
LimitOptionsSchema,
|
|
9
9
|
OptionalGlobPatternArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/glob.tsx
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowGrepCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
LimitOptionsSchema,
|
|
9
9
|
RequiredPatternArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/grep.tsx
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowHeadCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
RequiredFilePathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/head.tsx
|
|
18
|
+
import { option } from "pastel";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var description = "Print the first lines of a remote catalog file";
|
|
22
|
+
var args = RequiredFilePathArgsSchema;
|
|
23
|
+
var options = JsonOutputOptionsSchema.extend({
|
|
24
|
+
lines: z.number().optional().describe(
|
|
25
|
+
option({
|
|
26
|
+
alias: "n",
|
|
27
|
+
description: "Number of lines",
|
|
28
|
+
valueDescription: "n"
|
|
29
|
+
})
|
|
30
|
+
)
|
|
31
|
+
});
|
|
32
|
+
function HeadCommand({ args: args2, options: options2 }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowHeadCommand(args2[0], options2, output) });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
args,
|
|
37
|
+
HeadCommand as default,
|
|
38
|
+
description,
|
|
39
|
+
options
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=head.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/head.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, RequiredFilePathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowHeadCommand, type KnowHeadCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Print the first lines of a remote catalog file\";\nexport const args = RequiredFilePathArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n lines: z\n .number()\n .optional()\n .describe(\n option({\n alias: \"n\",\n description: \"Number of lines\",\n valueDescription: \"n\",\n })\n ),\n});\n\ntype HeadCommandProps = {\n readonly args: [string];\n readonly options: KnowHeadCommandOptions;\n};\n\nexport default function HeadCommand({ args, options }: HeadCommandProps) {\n return <CommandRunner run={(output) => runKnowHeadCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AA2BT;AArBF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,wBAAwB,OAAO;AAAA,EACpD,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,OAAO;AAAA,MACP,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACvF;","names":["args","options"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../../chunk-
|
|
2
|
+
renderKnowledgesHelp
|
|
3
|
+
} from "../../chunk-3A6GRNEV.js";
|
|
4
4
|
import {
|
|
5
5
|
GlobalOptionsSchema
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
7
7
|
import {
|
|
8
8
|
CommandRunner
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
10
|
+
import "../../chunk-7SO75QXJ.js";
|
|
11
11
|
import "../../chunk-PZ5AY32C.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/knowledges/index.tsx
|
|
@@ -15,7 +15,7 @@ import { jsx } from "react/jsx-runtime";
|
|
|
15
15
|
var description = "Use the Cloudflare-backed Harness knowledges catalog";
|
|
16
16
|
var options = GlobalOptionsSchema;
|
|
17
17
|
function KnowledgesCommand() {
|
|
18
|
-
return /* @__PURE__ */ jsx(CommandRunner, { run: async (output) => output.
|
|
18
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: async (output) => output.component(renderKnowledgesHelp()) });
|
|
19
19
|
}
|
|
20
20
|
export {
|
|
21
21
|
KnowledgesCommand as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/index.tsx"],"sourcesContent":["import { GlobalOptionsSchema } from \"../../cli/options.js\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/index.tsx"],"sourcesContent":["import { GlobalOptionsSchema } from \"../../cli/options.js\";\nimport { renderKnowledgesHelp } from \"../../cli/help-specs.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Use the Cloudflare-backed Harness knowledges catalog\";\nexport const options = GlobalOptionsSchema;\n\nexport default function KnowledgesCommand() {\n return <CommandRunner run={async (output) => output.component(renderKnowledgesHelp())} />;\n}\n"],"mappings":";;;;;;;;;;;;;AAQS;AAJF,IAAM,cAAc;AACpB,IAAM,UAAU;AAER,SAAR,oBAAqC;AAC1C,SAAO,oBAAC,iBAAc,KAAK,OAAO,WAAW,OAAO,UAAU,qBAAqB,CAAC,GAAG;AACzF;","names":[]}
|
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowListCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
LimitOptionsSchema,
|
|
9
9
|
OptionalQueryArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/list.tsx
|
|
18
18
|
import { jsx } from "react/jsx-runtime";
|
|
19
|
-
var description = "List known
|
|
19
|
+
var description = "List known topics";
|
|
20
20
|
var args = OptionalQueryArgsSchema;
|
|
21
21
|
var options = LimitOptionsSchema;
|
|
22
22
|
function ListCommand({ args: args2, options: options2 }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/list.tsx"],"sourcesContent":["import { LimitOptionsSchema, OptionalQueryArgsSchema } from \"../../cli/options.js\";\nimport { runKnowListCommand, type KnowListCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List known
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/list.tsx"],"sourcesContent":["import { LimitOptionsSchema, OptionalQueryArgsSchema } from \"../../cli/options.js\";\nimport { runKnowListCommand, type KnowListCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List known topics\";\nexport const args = OptionalQueryArgsSchema;\nexport const options = LimitOptionsSchema;\n\ntype ListCommandProps = {\n readonly args: [string?];\n readonly options: KnowListCommandOptions;\n};\n\nexport default function ListCommand({ args, options }: ListCommandProps) {\n return <CommandRunner run={(output) => runKnowListCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAcS;AAVF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU;AAOR,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACvF;","names":["args","options"]}
|
|
@@ -1,24 +1,33 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowLsCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
LimitOptionsSchema,
|
|
9
9
|
OptionalPathArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/ls.tsx
|
|
18
|
+
import { option } from "pastel";
|
|
19
|
+
import { z } from "zod";
|
|
18
20
|
import { jsx } from "react/jsx-runtime";
|
|
19
21
|
var description = "List remote catalog directory entries";
|
|
20
22
|
var args = OptionalPathArgsSchema;
|
|
21
|
-
var options = LimitOptionsSchema
|
|
23
|
+
var options = LimitOptionsSchema.extend({
|
|
24
|
+
long: z.boolean().optional().describe(
|
|
25
|
+
option({
|
|
26
|
+
alias: "l",
|
|
27
|
+
description: "Print type, path, and metadata fields"
|
|
28
|
+
})
|
|
29
|
+
)
|
|
30
|
+
});
|
|
22
31
|
function LsCommand({ args: args2, options: options2 }) {
|
|
23
32
|
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowLsCommand(args2[0], options2, output) });
|
|
24
33
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/ls.tsx"],"sourcesContent":["import { LimitOptionsSchema, OptionalPathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowLsCommand, type KnowLsCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List remote catalog directory entries\";\nexport const args = OptionalPathArgsSchema;\nexport const options = LimitOptionsSchema;\n\ntype LsCommandProps = {\n readonly args: [string?];\n readonly options: KnowLsCommandOptions;\n};\n\nexport default function LsCommand({ args, options }: LsCommandProps) {\n return <CommandRunner run={(output) => runKnowLsCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/ls.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { LimitOptionsSchema, OptionalPathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowLsCommand, type KnowLsCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List remote catalog directory entries\";\nexport const args = OptionalPathArgsSchema;\nexport const options = LimitOptionsSchema.extend({\n long: z\n .boolean()\n .optional()\n .describe(\n option({\n alias: \"l\",\n description: \"Print type, path, and metadata fields\",\n })\n ),\n});\n\ntype LsCommandProps = {\n readonly args: [string?];\n readonly options: KnowLsCommandOptions;\n};\n\nexport default function LsCommand({ args, options }: LsCommandProps) {\n return <CommandRunner run={(output) => runKnowLsCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AA0BT;AApBF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,mBAAmB,OAAO;AAAA,EAC/C,MAAM,EACH,QAAQ,EACR,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,OAAO;AAAA,MACP,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,UAA2B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAmB;AACnE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,iBAAiBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACrF;","names":["args","options"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowReadCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
JsonOutputOptionsSchema,
|
|
9
9
|
RequiredFilePathArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/read.tsx
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowRealpathCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
RequiredCatalogPathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/realpath.tsx
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var description = "Resolve a catalog path shortcut";
|
|
20
|
+
var args = RequiredCatalogPathArgsSchema;
|
|
21
|
+
var options = JsonOutputOptionsSchema;
|
|
22
|
+
function RealpathCommand({ args: args2, options: options2 }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowRealpathCommand(args2[0], options2, output) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
args,
|
|
27
|
+
RealpathCommand as default,
|
|
28
|
+
description,
|
|
29
|
+
options
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=realpath.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/realpath.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema, RequiredCatalogPathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowRealpathCommand, type KnowRealpathCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Resolve a catalog path shortcut\";\nexport const args = RequiredCatalogPathArgsSchema;\nexport const options = JsonOutputOptionsSchema;\n\ntype RealpathCommandProps = {\n readonly args: [string];\n readonly options: KnowRealpathCommandOptions;\n};\n\nexport default function RealpathCommand({ args, options }: RealpathCommandProps) {\n return <CommandRunner run={(output) => runKnowRealpathCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAcS;AAVF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU;AAOR,SAAR,gBAAiC,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAyB;AAC/E,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,uBAAuBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AAC3F;","names":["args","options"]}
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowSearchCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
LimitOptionsSchema,
|
|
9
9
|
RequiredQueryArgsSchema
|
|
10
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
11
|
import {
|
|
12
12
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
15
|
import "../../chunk-PZ5AY32C.js";
|
|
16
16
|
|
|
17
17
|
// src/commands/knowledges/search.tsx
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowStatCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
RequiredCatalogPathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/stat.tsx
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var description = "Print remote catalog path metadata";
|
|
20
|
+
var args = RequiredCatalogPathArgsSchema;
|
|
21
|
+
var options = JsonOutputOptionsSchema;
|
|
22
|
+
function StatCommand({ args: args2, options: options2 }) {
|
|
23
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowStatCommand(args2[0], options2, output) });
|
|
24
|
+
}
|
|
25
|
+
export {
|
|
26
|
+
args,
|
|
27
|
+
StatCommand as default,
|
|
28
|
+
description,
|
|
29
|
+
options
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=stat.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/stat.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema, RequiredCatalogPathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowStatCommand, type KnowStatCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Print remote catalog path metadata\";\nexport const args = RequiredCatalogPathArgsSchema;\nexport const options = JsonOutputOptionsSchema;\n\ntype StatCommandProps = {\n readonly args: [string];\n readonly options: KnowStatCommandOptions;\n};\n\nexport default function StatCommand({ args, options }: StatCommandProps) {\n return <CommandRunner run={(output) => runKnowStatCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAcS;AAVF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU;AAOR,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACvF;","names":["args","options"]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowStatusCommand
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
4
|
import "../../chunk-XQGLUQFM.js";
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
7
|
import {
|
|
8
8
|
JsonOutputOptionsSchema
|
|
9
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
10
10
|
import {
|
|
11
11
|
CommandRunner
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
13
|
+
import "../../chunk-7SO75QXJ.js";
|
|
14
14
|
import "../../chunk-PZ5AY32C.js";
|
|
15
15
|
|
|
16
16
|
// src/commands/knowledges/status.tsx
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowTailCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
RequiredFilePathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/tail.tsx
|
|
18
|
+
import { option } from "pastel";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var description = "Print the last lines of a remote catalog file";
|
|
22
|
+
var args = RequiredFilePathArgsSchema;
|
|
23
|
+
var options = JsonOutputOptionsSchema.extend({
|
|
24
|
+
lines: z.number().optional().describe(
|
|
25
|
+
option({
|
|
26
|
+
alias: "n",
|
|
27
|
+
description: "Number of lines",
|
|
28
|
+
valueDescription: "n"
|
|
29
|
+
})
|
|
30
|
+
)
|
|
31
|
+
});
|
|
32
|
+
function TailCommand({ args: args2, options: options2 }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowTailCommand(args2[0], options2, output) });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
args,
|
|
37
|
+
TailCommand as default,
|
|
38
|
+
description,
|
|
39
|
+
options
|
|
40
|
+
};
|
|
41
|
+
//# sourceMappingURL=tail.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/tail.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, RequiredFilePathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowTailCommand, type KnowTailCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Print the last lines of a remote catalog file\";\nexport const args = RequiredFilePathArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n lines: z\n .number()\n .optional()\n .describe(\n option({\n alias: \"n\",\n description: \"Number of lines\",\n valueDescription: \"n\",\n })\n ),\n});\n\ntype TailCommandProps = {\n readonly args: [string];\n readonly options: KnowTailCommandOptions;\n};\n\nexport default function TailCommand({ args, options }: TailCommandProps) {\n return <CommandRunner run={(output) => runKnowTailCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AA2BT;AArBF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,wBAAwB,OAAO;AAAA,EACpD,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,OAAO;AAAA,MACP,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACvF;","names":["args","options"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowTreeCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
JsonOutputOptionsSchema,
|
|
9
|
+
OptionalPathArgsSchema
|
|
10
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
11
|
+
import {
|
|
12
|
+
CommandRunner
|
|
13
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
14
|
+
import "../../chunk-7SO75QXJ.js";
|
|
15
|
+
import "../../chunk-PZ5AY32C.js";
|
|
16
|
+
|
|
17
|
+
// src/commands/knowledges/tree.tsx
|
|
18
|
+
import { option } from "pastel";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var description = "Print a remote catalog directory tree";
|
|
22
|
+
var args = OptionalPathArgsSchema;
|
|
23
|
+
var options = JsonOutputOptionsSchema.extend({
|
|
24
|
+
depth: z.number().optional().describe(
|
|
25
|
+
option({
|
|
26
|
+
description: "Maximum tree depth",
|
|
27
|
+
valueDescription: "n"
|
|
28
|
+
})
|
|
29
|
+
),
|
|
30
|
+
limit: z.number().optional().describe(
|
|
31
|
+
option({
|
|
32
|
+
description: "Maximum entries",
|
|
33
|
+
valueDescription: "n"
|
|
34
|
+
})
|
|
35
|
+
)
|
|
36
|
+
});
|
|
37
|
+
function TreeCommand({ args: args2, options: options2 }) {
|
|
38
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowTreeCommand(args2[0], options2, output) });
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
args,
|
|
42
|
+
TreeCommand as default,
|
|
43
|
+
description,
|
|
44
|
+
options
|
|
45
|
+
};
|
|
46
|
+
//# sourceMappingURL=tree.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/tree.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, OptionalPathArgsSchema } from \"../../cli/options.js\";\nimport { runKnowTreeCommand, type KnowTreeCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Print a remote catalog directory tree\";\nexport const args = OptionalPathArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n depth: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum tree depth\",\n valueDescription: \"n\",\n })\n ),\n limit: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum entries\",\n valueDescription: \"n\",\n })\n ),\n});\n\ntype TreeCommandProps = {\n readonly args: [string?];\n readonly options: KnowTreeCommandOptions;\n};\n\nexport default function TreeCommand({ args, options }: TreeCommandProps) {\n return <CommandRunner run={(output) => runKnowTreeCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AAmCT;AA7BF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,wBAAwB,OAAO;AAAA,EACpD,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,OAAO,EACJ,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACvF;","names":["args","options"]}
|
package/dist/commands/login.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GlobalOptionsSchema
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-NGEWD4BW.js";
|
|
4
4
|
import {
|
|
5
5
|
CommandRunner
|
|
6
|
-
} from "../chunk-
|
|
6
|
+
} from "../chunk-X4E7NAN4.js";
|
|
7
7
|
import {
|
|
8
8
|
resolveApiBaseUrl
|
|
9
|
-
} from "../chunk-
|
|
9
|
+
} from "../chunk-7SO75QXJ.js";
|
|
10
10
|
import "../chunk-PZ5AY32C.js";
|
|
11
11
|
|
|
12
12
|
// src/shared/browser.ts
|
package/dist/commands/scrub.js
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GlobalOptionsSchema,
|
|
3
3
|
OptionalPathArgsSchema
|
|
4
|
-
} from "../chunk-
|
|
4
|
+
} from "../chunk-NGEWD4BW.js";
|
|
5
5
|
import {
|
|
6
6
|
CommandRunner
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-X4E7NAN4.js";
|
|
8
|
+
import "../chunk-7SO75QXJ.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/scrub.tsx
|