cngkit 1.1.2 → 1.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +1 -1
- package/README.md +47 -10
- package/dist/chunk-HBBUFPJG.js +4585 -0
- package/dist/chunk-HBBUFPJG.js.map +1 -0
- package/dist/chunk-PZ5AY32C.js +10 -0
- package/dist/chunk-PZ5AY32C.js.map +1 -0
- package/dist/chunk-SNTLRTQ2.js +34 -0
- package/dist/chunk-SNTLRTQ2.js.map +1 -0
- package/dist/chunk-SSRUN6G5.js +524 -0
- package/dist/chunk-SSRUN6G5.js.map +1 -0
- package/dist/chunk-XWVFKUUD.js +22 -0
- package/dist/chunk-XWVFKUUD.js.map +1 -0
- package/dist/chunk-YY2VGJ5N.js +114 -0
- package/dist/chunk-YY2VGJ5N.js.map +1 -0
- package/dist/cli.js +88 -0
- package/dist/cli.js.map +1 -0
- package/dist/commands/_app.js +11 -0
- package/dist/commands/_app.js.map +1 -0
- package/dist/commands/coderoom/index.js +24 -0
- package/dist/commands/coderoom/index.js.map +1 -0
- package/dist/commands/coderoom/join.js +29 -0
- package/dist/commands/coderoom/join.js.map +1 -0
- package/dist/commands/coderoom/share.js +29 -0
- package/dist/commands/coderoom/share.js.map +1 -0
- package/dist/commands/index.js +19 -0
- package/dist/commands/index.js.map +1 -0
- package/dist/commands/knowledges/audiences.js +26 -0
- package/dist/commands/knowledges/audiences.js.map +1 -0
- package/dist/commands/knowledges/files.js +44 -0
- package/dist/commands/knowledges/files.js.map +1 -0
- package/dist/commands/knowledges/glob.js +38 -0
- package/dist/commands/knowledges/glob.js.map +1 -0
- package/dist/commands/knowledges/grep.js +61 -0
- package/dist/commands/knowledges/grep.js.map +1 -0
- package/dist/commands/knowledges/index.js +24 -0
- package/dist/commands/knowledges/index.js.map +1 -0
- package/dist/commands/knowledges/list.js +29 -0
- package/dist/commands/knowledges/list.js.map +1 -0
- package/dist/commands/knowledges/read.js +44 -0
- package/dist/commands/knowledges/read.js.map +1 -0
- package/dist/commands/knowledges/search.js +29 -0
- package/dist/commands/knowledges/search.js.map +1 -0
- package/dist/commands/knowledges/status.js +26 -0
- package/dist/commands/knowledges/status.js.map +1 -0
- package/dist/commands/login.js +26 -0
- package/dist/commands/login.js.map +1 -0
- package/dist/commands/scrub.js +42 -0
- package/dist/commands/scrub.js.map +1 -0
- package/dist/commands/transcripts.js +60 -0
- package/dist/commands/transcripts.js.map +1 -0
- package/package.json +28 -21
- package/dist/cli.cjs +0 -25240
- package/dist/cli.cjs.map +0 -1
- package/dist/cli.d.cts +0 -1
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowReadCommand
|
|
3
|
+
} from "../../chunk-HBBUFPJG.js";
|
|
4
|
+
import "../../chunk-XWVFKUUD.js";
|
|
5
|
+
import {
|
|
6
|
+
JsonOutputOptionsSchema,
|
|
7
|
+
RequiredFilePathArgsSchema
|
|
8
|
+
} from "../../chunk-YY2VGJ5N.js";
|
|
9
|
+
import {
|
|
10
|
+
CommandRunner
|
|
11
|
+
} from "../../chunk-SNTLRTQ2.js";
|
|
12
|
+
import "../../chunk-SSRUN6G5.js";
|
|
13
|
+
import "../../chunk-PZ5AY32C.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/knowledges/read.tsx
|
|
16
|
+
import { option } from "pastel";
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var description = "Claude-style file read";
|
|
20
|
+
var args = RequiredFilePathArgsSchema;
|
|
21
|
+
var options = JsonOutputOptionsSchema.extend({
|
|
22
|
+
offset: z.number().optional().describe(
|
|
23
|
+
option({
|
|
24
|
+
description: "Starting line offset",
|
|
25
|
+
valueDescription: "n"
|
|
26
|
+
})
|
|
27
|
+
),
|
|
28
|
+
limit: z.number().optional().describe(
|
|
29
|
+
option({
|
|
30
|
+
description: "Maximum lines",
|
|
31
|
+
valueDescription: "n"
|
|
32
|
+
})
|
|
33
|
+
)
|
|
34
|
+
});
|
|
35
|
+
function ReadCommand({ args: args2, options: options2 }) {
|
|
36
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowReadCommand(args2[0], options2, output) });
|
|
37
|
+
}
|
|
38
|
+
export {
|
|
39
|
+
args,
|
|
40
|
+
ReadCommand as default,
|
|
41
|
+
description,
|
|
42
|
+
options
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=read.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/read.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, RequiredFilePathArgsSchema } from \"../../cli-options.js\";\nimport { runKnowReadCommand, type KnowReadCommandOptions } from \"../../command-actions.js\";\nimport { CommandRunner } from \"../../ink/command-runner.js\";\n\nexport const description = \"Claude-style file read\";\nexport const args = RequiredFilePathArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n offset: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Starting line offset\",\n valueDescription: \"n\",\n })\n ),\n limit: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum lines\",\n valueDescription: \"n\",\n })\n ),\n});\n\ntype ReadCommandProps = {\n readonly args: [string];\n readonly options: KnowReadCommandOptions;\n};\n\nexport default function ReadCommand({ args, options }: ReadCommandProps) {\n return <CommandRunner run={(output) => runKnowReadCommand(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,QAAQ,EACL,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"]}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowSearchCommand
|
|
3
|
+
} from "../../chunk-HBBUFPJG.js";
|
|
4
|
+
import "../../chunk-XWVFKUUD.js";
|
|
5
|
+
import {
|
|
6
|
+
LimitOptionsSchema,
|
|
7
|
+
RequiredQueryArgsSchema
|
|
8
|
+
} from "../../chunk-YY2VGJ5N.js";
|
|
9
|
+
import {
|
|
10
|
+
CommandRunner
|
|
11
|
+
} from "../../chunk-SNTLRTQ2.js";
|
|
12
|
+
import "../../chunk-SSRUN6G5.js";
|
|
13
|
+
import "../../chunk-PZ5AY32C.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/knowledges/search.tsx
|
|
16
|
+
import { jsx } from "react/jsx-runtime";
|
|
17
|
+
var description = "Semantic search over Cloudflare Vectorize-backed records";
|
|
18
|
+
var args = RequiredQueryArgsSchema;
|
|
19
|
+
var options = LimitOptionsSchema;
|
|
20
|
+
function SearchCommand({ args: args2, options: options2 }) {
|
|
21
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowSearchCommand(args2.join(" "), options2, output) });
|
|
22
|
+
}
|
|
23
|
+
export {
|
|
24
|
+
args,
|
|
25
|
+
SearchCommand as default,
|
|
26
|
+
description,
|
|
27
|
+
options
|
|
28
|
+
};
|
|
29
|
+
//# sourceMappingURL=search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/search.tsx"],"sourcesContent":["import { RequiredQueryArgsSchema, LimitOptionsSchema } from \"../../cli-options.js\";\nimport { runKnowSearchCommand, type KnowSearchCommandOptions } from \"../../command-actions.js\";\nimport { CommandRunner } from \"../../ink/command-runner.js\";\n\nexport const description = \"Semantic search over Cloudflare Vectorize-backed records\";\nexport const args = RequiredQueryArgsSchema;\nexport const options = LimitOptionsSchema;\n\ntype SearchCommandProps = {\n readonly args: string[];\n readonly options: KnowSearchCommandOptions;\n};\n\nexport default function SearchCommand({ args, options }: SearchCommandProps) {\n return <CommandRunner run={(output) => runKnowSearchCommand(args.join(\" \"), options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAcS;AAVF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU;AAOR,SAAR,cAA+B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAuB;AAC3E,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,qBAAqBD,MAAK,KAAK,GAAG,GAAGC,UAAS,MAAM,GAAG;AAChG;","names":["args","options"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runKnowStatusCommand
|
|
3
|
+
} from "../../chunk-HBBUFPJG.js";
|
|
4
|
+
import "../../chunk-XWVFKUUD.js";
|
|
5
|
+
import {
|
|
6
|
+
JsonOutputOptionsSchema
|
|
7
|
+
} from "../../chunk-YY2VGJ5N.js";
|
|
8
|
+
import {
|
|
9
|
+
CommandRunner
|
|
10
|
+
} from "../../chunk-SNTLRTQ2.js";
|
|
11
|
+
import "../../chunk-SSRUN6G5.js";
|
|
12
|
+
import "../../chunk-PZ5AY32C.js";
|
|
13
|
+
|
|
14
|
+
// src/commands/knowledges/status.tsx
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
var description = "Print remote catalog state";
|
|
17
|
+
var options = JsonOutputOptionsSchema;
|
|
18
|
+
function StatusCommand({ options: options2 }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runKnowStatusCommand(options2, output) });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
StatusCommand as default,
|
|
23
|
+
description,
|
|
24
|
+
options
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=status.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/status.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema } from \"../../cli-options.js\";\nimport { runKnowStatusCommand, type KnowStatusCommandOptions } from \"../../command-actions.js\";\nimport { CommandRunner } from \"../../ink/command-runner.js\";\n\nexport const description = \"Print remote catalog state\";\nexport const options = JsonOutputOptionsSchema;\n\ntype StatusCommandProps = {\n readonly options: KnowStatusCommandOptions;\n};\n\nexport default function StatusCommand({ options }: StatusCommandProps) {\n return <CommandRunner run={(output) => runKnowStatusCommand(options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;AAYS;AARF,IAAM,cAAc;AACpB,IAAM,UAAU;AAMR,SAAR,cAA+B,EAAE,SAAAA,SAAQ,GAAuB;AACrE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,qBAAqBA,UAAS,MAAM,GAAG;AAChF;","names":["options"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runLoginCommand
|
|
3
|
+
} from "../chunk-HBBUFPJG.js";
|
|
4
|
+
import "../chunk-XWVFKUUD.js";
|
|
5
|
+
import {
|
|
6
|
+
GlobalOptionsSchema
|
|
7
|
+
} from "../chunk-YY2VGJ5N.js";
|
|
8
|
+
import {
|
|
9
|
+
CommandRunner
|
|
10
|
+
} from "../chunk-SNTLRTQ2.js";
|
|
11
|
+
import "../chunk-SSRUN6G5.js";
|
|
12
|
+
import "../chunk-PZ5AY32C.js";
|
|
13
|
+
|
|
14
|
+
// src/commands/login.tsx
|
|
15
|
+
import { jsx } from "react/jsx-runtime";
|
|
16
|
+
var description = "Open Curly login in your browser";
|
|
17
|
+
var options = GlobalOptionsSchema;
|
|
18
|
+
function LoginCommand({ options: options2 }) {
|
|
19
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runLoginCommand(options2, output) });
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
LoginCommand as default,
|
|
23
|
+
description,
|
|
24
|
+
options
|
|
25
|
+
};
|
|
26
|
+
//# sourceMappingURL=login.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/login.tsx"],"sourcesContent":["import { GlobalOptionsSchema } from \"../cli-options.js\";\nimport { runLoginCommand, type LoginCommandOptions } from \"../command-actions.js\";\nimport { CommandRunner } from \"../ink/command-runner.js\";\n\nexport const description = \"Open Curly login in your browser\";\nexport const options = GlobalOptionsSchema;\n\ntype LoginCommandProps = {\n readonly options: LoginCommandOptions;\n};\n\nexport default function LoginCommand({ options }: LoginCommandProps) {\n return <CommandRunner run={(output) => runLoginCommand(options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;AAYS;AARF,IAAM,cAAc;AACpB,IAAM,UAAU;AAMR,SAAR,aAA8B,EAAE,SAAAA,SAAQ,GAAsB;AACnE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,gBAAgBA,UAAS,MAAM,GAAG;AAC3E;","names":["options"]}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runScrubCommand
|
|
3
|
+
} from "../chunk-HBBUFPJG.js";
|
|
4
|
+
import "../chunk-XWVFKUUD.js";
|
|
5
|
+
import {
|
|
6
|
+
GlobalOptionsSchema,
|
|
7
|
+
OptionalPathArgsSchema
|
|
8
|
+
} from "../chunk-YY2VGJ5N.js";
|
|
9
|
+
import {
|
|
10
|
+
CommandRunner
|
|
11
|
+
} from "../chunk-SNTLRTQ2.js";
|
|
12
|
+
import "../chunk-SSRUN6G5.js";
|
|
13
|
+
import "../chunk-PZ5AY32C.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/scrub.tsx
|
|
16
|
+
import { option } from "pastel";
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var description = "Scan for secrets with TruffleHog and optionally mask them inline";
|
|
20
|
+
var args = OptionalPathArgsSchema;
|
|
21
|
+
var options = GlobalOptionsSchema.extend({
|
|
22
|
+
mask: z.boolean().optional().describe(
|
|
23
|
+
option({
|
|
24
|
+
description: "Compatibility alias for inline scrubbing; --yes is still required"
|
|
25
|
+
})
|
|
26
|
+
),
|
|
27
|
+
yes: z.boolean().optional().describe(
|
|
28
|
+
option({
|
|
29
|
+
description: "Confirm and run inline scrubbing"
|
|
30
|
+
})
|
|
31
|
+
)
|
|
32
|
+
});
|
|
33
|
+
function ScrubCommand({ args: args2, options: options2 }) {
|
|
34
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runScrubCommand(args2[0], options2, output) });
|
|
35
|
+
}
|
|
36
|
+
export {
|
|
37
|
+
args,
|
|
38
|
+
ScrubCommand as default,
|
|
39
|
+
description,
|
|
40
|
+
options
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=scrub.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/scrub.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { GlobalOptionsSchema, OptionalPathArgsSchema } from \"../cli-options.js\";\nimport { runScrubCommand, type ScrubCommandOptions } from \"../command-actions.js\";\nimport { CommandRunner } from \"../ink/command-runner.js\";\n\nexport const description = \"Scan for secrets with TruffleHog and optionally mask them inline\";\nexport const args = OptionalPathArgsSchema;\nexport const options = GlobalOptionsSchema.extend({\n mask: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Compatibility alias for inline scrubbing; --yes is still required\",\n })\n ),\n yes: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Confirm and run inline scrubbing\",\n })\n ),\n});\n\ntype ScrubCommandProps = {\n readonly args: z.infer<typeof args>;\n readonly options: ScrubCommandOptions;\n};\n\nexport default function ScrubCommand({ args, options }: ScrubCommandProps) {\n return <CommandRunner run={(output) => runScrubCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AAiCT;AA3BF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,oBAAoB,OAAO;AAAA,EAChD,MAAM,EACH,QAAQ,EACR,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AAAA,EACF,KAAK,EACF,QAAQ,EACR,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,aAA8B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAsB;AACzE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,gBAAgBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACpF;","names":["args","options"]}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import {
|
|
2
|
+
runTranscriptCommand
|
|
3
|
+
} from "../chunk-HBBUFPJG.js";
|
|
4
|
+
import "../chunk-XWVFKUUD.js";
|
|
5
|
+
import {
|
|
6
|
+
GlobalOptionsSchema,
|
|
7
|
+
TranscriptArgsSchema
|
|
8
|
+
} from "../chunk-YY2VGJ5N.js";
|
|
9
|
+
import {
|
|
10
|
+
CommandRunner
|
|
11
|
+
} from "../chunk-SNTLRTQ2.js";
|
|
12
|
+
import "../chunk-SSRUN6G5.js";
|
|
13
|
+
import "../chunk-PZ5AY32C.js";
|
|
14
|
+
|
|
15
|
+
// src/commands/transcripts.tsx
|
|
16
|
+
import { option } from "pastel";
|
|
17
|
+
import { z } from "zod";
|
|
18
|
+
import { jsx } from "react/jsx-runtime";
|
|
19
|
+
var description = "List, read, and grep local Claude/Codex transcript JSONL files";
|
|
20
|
+
var args = TranscriptArgsSchema;
|
|
21
|
+
var options = GlobalOptionsSchema.extend({
|
|
22
|
+
source: z.enum(["all", "codex", "claude"]).optional().describe(
|
|
23
|
+
option({
|
|
24
|
+
description: "Transcript source. Default: all",
|
|
25
|
+
valueDescription: "all|codex|claude"
|
|
26
|
+
})
|
|
27
|
+
),
|
|
28
|
+
limit: z.number().optional().describe(
|
|
29
|
+
option({
|
|
30
|
+
description: "Maximum records or entries",
|
|
31
|
+
valueDescription: "n"
|
|
32
|
+
})
|
|
33
|
+
),
|
|
34
|
+
fileLimit: z.number().optional().describe(
|
|
35
|
+
option({
|
|
36
|
+
description: "Maximum recent files to scan for grep",
|
|
37
|
+
valueDescription: "n"
|
|
38
|
+
})
|
|
39
|
+
),
|
|
40
|
+
includeInternal: z.boolean().optional().describe(
|
|
41
|
+
option({
|
|
42
|
+
description: "Include developer/system/internal transcript entries"
|
|
43
|
+
})
|
|
44
|
+
),
|
|
45
|
+
json: z.boolean().optional().describe(
|
|
46
|
+
option({
|
|
47
|
+
description: "Print raw JSON"
|
|
48
|
+
})
|
|
49
|
+
)
|
|
50
|
+
});
|
|
51
|
+
function TranscriptsCommand({ args: args2, options: options2 }) {
|
|
52
|
+
return /* @__PURE__ */ jsx(CommandRunner, { run: (output) => runTranscriptCommand(args2, options2, output) });
|
|
53
|
+
}
|
|
54
|
+
export {
|
|
55
|
+
args,
|
|
56
|
+
TranscriptsCommand as default,
|
|
57
|
+
description,
|
|
58
|
+
options
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=transcripts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../src/commands/transcripts.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { GlobalOptionsSchema, TranscriptArgsSchema } from \"../cli-options.js\";\nimport { runTranscriptCommand, type TranscriptCommandOptions } from \"../command-actions.js\";\nimport { CommandRunner } from \"../ink/command-runner.js\";\n\nexport const description = \"List, read, and grep local Claude/Codex transcript JSONL files\";\nexport const args = TranscriptArgsSchema;\nexport const options = GlobalOptionsSchema.extend({\n source: z\n .enum([\"all\", \"codex\", \"claude\"])\n .optional()\n .describe(\n option({\n description: \"Transcript source. Default: all\",\n valueDescription: \"all|codex|claude\",\n })\n ),\n limit: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum records or entries\",\n valueDescription: \"n\",\n })\n ),\n fileLimit: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Maximum recent files to scan for grep\",\n valueDescription: \"n\",\n })\n ),\n includeInternal: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Include developer/system/internal transcript entries\",\n })\n ),\n json: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Print raw JSON\",\n })\n ),\n});\n\ntype TranscriptsCommandProps = {\n readonly args: string[];\n readonly options: TranscriptCommandOptions;\n};\n\nexport default function TranscriptsCommand({ args, options }: TranscriptsCommandProps) {\n return <CommandRunner run={(output) => runTranscriptCommand(args, options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AA4DT;AAtDF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,oBAAoB,OAAO;AAAA,EAChD,QAAQ,EACL,KAAK,CAAC,OAAO,SAAS,QAAQ,CAAC,EAC/B,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;AAAA,EACF,WAAW,EACR,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,iBAAiB,EACd,QAAQ,EACR,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AAAA,EACF,MAAM,EACH,QAAQ,EACR,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,IACf,CAAC;AAAA,EACH;AACJ,CAAC;AAOc,SAAR,mBAAoC,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAA4B;AACrF,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,qBAAqBD,OAAMC,UAAS,MAAM,GAAG;AACtF;","names":["args","options"]}
|
package/package.json
CHANGED
|
@@ -1,20 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cngkit",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.4",
|
|
4
4
|
"description": "Opinionated Curly.ng CLI kit for Coderoom collaboration and website tooling.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
|
-
"cngkit": "dist/cli.
|
|
7
|
+
"cngkit": "dist/cli.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
10
|
"dist",
|
|
11
11
|
"LICENSE",
|
|
12
12
|
"README.md"
|
|
13
13
|
],
|
|
14
|
-
"homepage": "https://curly.ng/
|
|
14
|
+
"homepage": "https://curly.ng/support",
|
|
15
15
|
"funding": {
|
|
16
16
|
"type": "custom",
|
|
17
|
-
"url": "https://curly.ng/
|
|
17
|
+
"url": "https://curly.ng/support"
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "tsup --config tsup.config.ts && chmod +x dist/cli.js",
|
|
21
|
+
"clean": "rm -rf dist *.tsbuildinfo",
|
|
22
|
+
"dev": "tsx src/cli.ts",
|
|
23
|
+
"format": "prettier --write README.md src tsconfig.json tsup.config.ts package.json",
|
|
24
|
+
"lint": "eslint src",
|
|
25
|
+
"prepublishOnly": "pnpm run build && pnpm run smoke",
|
|
26
|
+
"smoke": "node dist/cli.js --help && node dist/cli.js --version && node dist/cli.js help && node dist/cli.js help knowledges && node dist/cli.js help coderoom && node dist/cli.js help transcripts && node dist/cli.js login --help && node dist/cli.js coderoom --help && node dist/cli.js coderoom share --help && node dist/cli.js coderoom join --help && node dist/cli.js scrub --help && node dist/cli.js transcripts --help && node dist/cli.js knowledges --help && node dist/cli.js knowledges audiences --help && node dist/cli.js knowledges search --help && node dist/cli.js knowledges read --help && node dist/cli.js knowledges grep --help && node dist/cli.js knowledges glob --help && node dist/cli.js knowledges list --help && node dist/cli.js knowledges files --help && node dist/cli.js knowledges status --help",
|
|
27
|
+
"smoke:docker": "bash scripts/smoke-docker.sh",
|
|
28
|
+
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
18
29
|
},
|
|
19
30
|
"publishConfig": {
|
|
20
31
|
"access": "public"
|
|
@@ -23,28 +34,24 @@
|
|
|
23
34
|
"node": ">=20"
|
|
24
35
|
},
|
|
25
36
|
"license": "Beerware",
|
|
37
|
+
"dependencies": {
|
|
38
|
+
"chokidar": "^4.0.3",
|
|
39
|
+
"ink": "^6.8.0",
|
|
40
|
+
"pastel": "^4.0.1",
|
|
41
|
+
"react": "^19.2.7",
|
|
42
|
+
"react-devtools-core": "^6.1.5",
|
|
43
|
+
"ws": "^8.20.1",
|
|
44
|
+
"zod": "^4.4.3"
|
|
45
|
+
},
|
|
26
46
|
"devDependencies": {
|
|
47
|
+
"@cng/client": "workspace:*",
|
|
27
48
|
"@types/node": "^20",
|
|
49
|
+
"@types/react": "^19.2.17",
|
|
28
50
|
"@types/ws": "^8.18.1",
|
|
29
|
-
"cac": "^6.7.14",
|
|
30
|
-
"chokidar": "^4.0.3",
|
|
31
51
|
"eslint": "^9.15.0",
|
|
32
52
|
"prettier": "^3.8.1",
|
|
33
53
|
"tsup": "^8.5.0",
|
|
34
54
|
"tsx": "^4.21.0",
|
|
35
|
-
"typescript": "5.9.3"
|
|
36
|
-
"ws": "^8.18.3",
|
|
37
|
-
"zod": "^4.3.6",
|
|
38
|
-
"@cng/client": "0.1.0"
|
|
39
|
-
},
|
|
40
|
-
"scripts": {
|
|
41
|
-
"build": "tsup --config tsup.config.ts && chmod +x dist/cli.cjs",
|
|
42
|
-
"clean": "rm -rf dist *.tsbuildinfo",
|
|
43
|
-
"dev": "tsx src/cli.ts",
|
|
44
|
-
"format": "prettier --write README.md src tsconfig.json tsup.config.ts package.json",
|
|
45
|
-
"lint": "eslint src",
|
|
46
|
-
"smoke": "node dist/cli.cjs --help && node dist/cli.cjs --version && node dist/cli.cjs login --help && node dist/cli.cjs coderoom --help && node dist/cli.cjs coderoom share --help && node dist/cli.cjs coderoom join --help && node dist/cli.cjs scrub --help && node dist/cli.cjs knowledges --help && node dist/cli.cjs knowledges audiences --help && node dist/cli.cjs knowledges search --help && node dist/cli.cjs knowledges read --help && node dist/cli.cjs knowledges grep --help && node dist/cli.cjs knowledges glob --help",
|
|
47
|
-
"smoke:docker": "bash scripts/smoke-docker.sh",
|
|
48
|
-
"typecheck": "tsc -p tsconfig.json --noEmit"
|
|
55
|
+
"typescript": "5.9.3"
|
|
49
56
|
}
|
|
50
|
-
}
|
|
57
|
+
}
|