cngkit 1.1.17 → 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 +100 -7
- package/dist/chunk-3A6GRNEV.js +1590 -0
- package/dist/chunk-3A6GRNEV.js.map +1 -0
- package/dist/{chunk-HRFI2IEP.js → chunk-7SO75QXJ.js} +886 -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-5ZNV3FDG.js → chunk-GBONV6XP.js} +16 -4
- package/dist/chunk-GBONV6XP.js.map +1 -0
- package/dist/chunk-L6ZVQRSY.js +569 -0
- package/dist/chunk-L6ZVQRSY.js.map +1 -0
- package/dist/{chunk-VCWNKNUE.js → chunk-NGEWD4BW.js} +10 -1
- package/dist/chunk-NGEWD4BW.js.map +1 -0
- package/dist/chunk-TYDIBWZV.js +35 -0
- package/dist/chunk-TYDIBWZV.js.map +1 -0
- package/dist/{chunk-GT2MTS6E.js → chunk-X4E7NAN4.js} +2 -2
- package/dist/cli.js +82 -16
- 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 +25 -0
- package/dist/commands/hookify/index.js.map +1 -0
- package/dist/commands/hookify/ingest.js +127 -0
- package/dist/commands/hookify/ingest.js.map +1 -0
- 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 +40 -0
- package/dist/commands/knowledges/ls.js.map +1 -0
- 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-5ZNV3FDG.js.map +0 -1
- package/dist/chunk-BL3XMLIH.js +0 -573
- package/dist/chunk-BL3XMLIH.js.map +0 -1
- package/dist/chunk-HRFI2IEP.js.map +0 -1
- package/dist/chunk-K36DKQWH.js +0 -327
- package/dist/chunk-K36DKQWH.js.map +0 -1
- package/dist/chunk-VCWNKNUE.js.map +0 -1
- package/dist/chunk-WYJTGGMN.js +0 -222
- package/dist/chunk-WYJTGGMN.js.map +0 -1
- /package/dist/{chunk-GT2MTS6E.js.map → chunk-X4E7NAN4.js.map} +0 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
hookToolIds,
|
|
3
|
+
runHooksUninstallCommand
|
|
4
|
+
} from "../../chunk-DBA3BZXP.js";
|
|
5
|
+
import {
|
|
6
|
+
GlobalOptionsSchema
|
|
7
|
+
} from "../../chunk-NGEWD4BW.js";
|
|
8
|
+
import {
|
|
9
|
+
CommandRunner
|
|
10
|
+
} from "../../chunk-X4E7NAN4.js";
|
|
11
|
+
import "../../chunk-7SO75QXJ.js";
|
|
12
|
+
import "../../chunk-PZ5AY32C.js";
|
|
13
|
+
|
|
14
|
+
// src/commands/hooks/uninstall.tsx
|
|
15
|
+
import { option } from "pastel";
|
|
16
|
+
import { z } from "zod";
|
|
17
|
+
import { jsx } from "react/jsx-runtime";
|
|
18
|
+
var description = "Remove cngkit Hookify forwarding hooks from supported AI coding tools";
|
|
19
|
+
var options = GlobalOptionsSchema.extend({
|
|
20
|
+
dryRun: z.boolean().optional().describe(
|
|
21
|
+
option({
|
|
22
|
+
description: "Print what would be removed without writing files"
|
|
23
|
+
})
|
|
24
|
+
),
|
|
25
|
+
tool: z.enum(hookToolIds).optional().describe(
|
|
26
|
+
option({
|
|
27
|
+
description: "Tool to configure",
|
|
28
|
+
valueDescription: "all|claude|codex"
|
|
29
|
+
})
|
|
30
|
+
)
|
|
31
|
+
});
|
|
32
|
+
function HooksUninstallCommand({ options: options2 }) {
|
|
33
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runHooksUninstallCommand(options2, output) });
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
HooksUninstallCommand as default,
|
|
37
|
+
description,
|
|
38
|
+
options
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=uninstall.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/hooks/uninstall.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { GlobalOptionsSchema } from \"../../cli/options.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\nimport {\n hookToolIds,\n runHooksUninstallCommand,\n type HookToolId,\n type HooksUninstallCommandOptions,\n} from \"../../features/hooks/run-hooks-install-command.js\";\n\nexport const description = \"Remove cngkit Hookify forwarding hooks from supported AI coding tools\";\nexport const options = GlobalOptionsSchema.extend({\n dryRun: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Print what would be removed without writing files\",\n })\n ),\n tool: z\n .enum(hookToolIds)\n .optional()\n .describe(\n option({\n description: \"Tool to configure\",\n valueDescription: \"all|claude|codex\",\n })\n ),\n});\n\ntype HooksUninstallCommandProps = {\n readonly options: HooksUninstallCommandOptions & {\n readonly tool?: HookToolId;\n };\n};\n\nexport default function HooksUninstallCommand({ options }: HooksUninstallCommandProps) {\n return <CommandRunner run={(output) => runHooksUninstallCommand(options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AAuCT;AA5BF,IAAM,cAAc;AACpB,IAAM,UAAU,oBAAoB,OAAO;AAAA,EAChD,QAAQ,EACL,QAAQ,EACR,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AAAA,EACF,MAAM,EACH,KAAK,WAAW,EAChB,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AACJ,CAAC;AAQc,SAAR,sBAAuC,EAAE,SAAAA,SAAQ,GAA+B;AACrF,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,yBAAyBA,UAAS,MAAM,GAAG;AACpF;","names":["options"]}
|
package/dist/commands/index.js
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
|
-
|
|
3
|
-
} from "../chunk-
|
|
2
|
+
renderCngkitHelp
|
|
3
|
+
} from "../chunk-3A6GRNEV.js";
|
|
4
4
|
import {
|
|
5
5
|
CommandRunner
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-X4E7NAN4.js";
|
|
7
|
+
import "../chunk-7SO75QXJ.js";
|
|
8
8
|
import "../chunk-PZ5AY32C.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/index.tsx
|
|
11
11
|
import { jsx } from "react/jsx-runtime";
|
|
12
12
|
var description = "Show cngkit help";
|
|
13
13
|
function IndexCommand() {
|
|
14
|
-
return /* @__PURE__ */ jsx(CommandRunner, { run: async (output) => output.
|
|
14
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: async (output) => output.component(renderCngkitHelp()) });
|
|
15
15
|
}
|
|
16
16
|
export {
|
|
17
17
|
IndexCommand as default,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/commands/index.tsx"],"sourcesContent":["import { CommandRunner } from \"../cli/command-runner.js\";\nimport {
|
|
1
|
+
{"version":3,"sources":["../../src/commands/index.tsx"],"sourcesContent":["import { CommandRunner } from \"../cli/command-runner.js\";\nimport { renderCngkitHelp } from \"../cli/help-specs.js\";\n\nexport const description = \"Show cngkit help\";\n\nexport default function IndexCommand() {\n return <CommandRunner run={async (output) => output.component(renderCngkitHelp())} />;\n}\n"],"mappings":";;;;;;;;;;AAMS;AAHF,IAAM,cAAc;AAEZ,SAAR,eAAgC;AACrC,SAAO,oBAAC,iBAAc,KAAK,OAAO,WAAW,OAAO,UAAU,iBAAiB,CAAC,GAAG;AACrF;","names":[]}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowAudiencesCommand
|
|
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/audiences.tsx
|
|
@@ -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"]}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowLsCommand
|
|
3
|
+
} from "../../chunk-L6ZVQRSY.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-3A6GRNEV.js";
|
|
6
|
+
import "../../chunk-TYDIBWZV.js";
|
|
7
|
+
import {
|
|
8
|
+
LimitOptionsSchema,
|
|
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/ls.tsx
|
|
18
|
+
import { option } from "pastel";
|
|
19
|
+
import { z } from "zod";
|
|
20
|
+
import { jsx } from "react/jsx-runtime";
|
|
21
|
+
var description = "List remote catalog directory entries";
|
|
22
|
+
var args = OptionalPathArgsSchema;
|
|
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
|
+
});
|
|
31
|
+
function LsCommand({ args: args2, options: options2 }) {
|
|
32
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowLsCommand(args2[0], options2, output) });
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
args,
|
|
36
|
+
LsCommand as default,
|
|
37
|
+
description,
|
|
38
|
+
options
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=ls.js.map
|
|
@@ -0,0 +1 @@
|
|
|
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
|