cngkit 1.1.15 → 1.1.17
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 +28 -22
- package/dist/{chunk-55BKHXBM.js → chunk-5ZNV3FDG.js} +3 -3
- package/dist/{chunk-IG7DJU7W.js → chunk-BL3XMLIH.js} +39 -38
- package/dist/chunk-BL3XMLIH.js.map +1 -0
- package/dist/{chunk-JX33GP2L.js → chunk-GT2MTS6E.js} +2 -2
- package/dist/{chunk-CSP6OWQH.js → chunk-HRFI2IEP.js} +15 -15
- package/dist/chunk-HRFI2IEP.js.map +1 -0
- package/dist/{chunk-TNYB67MX.js → chunk-K36DKQWH.js} +21 -13
- package/dist/chunk-K36DKQWH.js.map +1 -0
- package/dist/{chunk-MLKBG5YJ.js → chunk-VCWNKNUE.js} +2 -9
- package/dist/chunk-VCWNKNUE.js.map +1 -0
- package/dist/{chunk-Q3F7DVFP.js → chunk-WYJTGGMN.js} +86 -37
- package/dist/chunk-WYJTGGMN.js.map +1 -0
- package/dist/{chunk-QZEB4VMX.js → chunk-XQGLUQFM.js} +5 -1
- package/dist/chunk-XQGLUQFM.js.map +1 -0
- package/dist/cli.js +89 -28
- package/dist/cli.js.map +1 -1
- package/dist/commands/coderoom/index.js +4 -4
- package/dist/commands/coderoom/join.js +5 -6
- package/dist/commands/coderoom/join.js.map +1 -1
- package/dist/commands/coderoom/share.js +5 -6
- package/dist/commands/coderoom/share.js.map +1 -1
- package/dist/commands/index.js +3 -3
- package/dist/commands/knowledges/audiences.js +7 -8
- package/dist/commands/knowledges/audiences.js.map +1 -1
- package/dist/commands/knowledges/files.js +7 -8
- package/dist/commands/knowledges/files.js.map +1 -1
- package/dist/commands/knowledges/glob.js +7 -8
- package/dist/commands/knowledges/glob.js.map +1 -1
- package/dist/commands/knowledges/grep.js +7 -8
- package/dist/commands/knowledges/grep.js.map +1 -1
- package/dist/commands/knowledges/index.js +4 -4
- package/dist/commands/knowledges/list.js +7 -8
- package/dist/commands/knowledges/list.js.map +1 -1
- package/dist/commands/knowledges/read.js +7 -8
- package/dist/commands/knowledges/read.js.map +1 -1
- package/dist/commands/knowledges/search.js +8 -9
- package/dist/commands/knowledges/search.js.map +1 -1
- package/dist/commands/knowledges/status.js +7 -8
- package/dist/commands/knowledges/status.js.map +1 -1
- package/dist/commands/login.js +5 -6
- package/dist/commands/login.js.map +1 -1
- package/dist/commands/scrub.js +3 -3
- package/dist/commands/transcripts.js +9 -8
- package/dist/commands/transcripts.js.map +1 -1
- package/package.json +2 -4
- package/dist/chunk-CSP6OWQH.js.map +0 -1
- package/dist/chunk-IG7DJU7W.js.map +0 -1
- package/dist/chunk-MLKBG5YJ.js.map +0 -1
- package/dist/chunk-Q3F7DVFP.js.map +0 -1
- package/dist/chunk-QZEB4VMX.js.map +0 -1
- package/dist/chunk-TNYB67MX.js.map +0 -1
- package/dist/chunk-U6XERHCZ.js +0 -22
- package/dist/chunk-U6XERHCZ.js.map +0 -1
- /package/dist/{chunk-55BKHXBM.js.map → chunk-5ZNV3FDG.js.map} +0 -0
- /package/dist/{chunk-JX33GP2L.js.map → chunk-GT2MTS6E.js.map} +0 -0
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runJoinCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-5ZNV3FDG.js";
|
|
4
|
+
import "../../chunk-HRFI2IEP.js";
|
|
6
5
|
import {
|
|
7
6
|
GlobalOptionsSchema,
|
|
8
7
|
RequiredRoomCodeArgsSchema
|
|
9
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
10
9
|
import {
|
|
11
10
|
CommandRunner
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
12
|
+
import "../../chunk-WYJTGGMN.js";
|
|
14
13
|
import "../../chunk-PZ5AY32C.js";
|
|
15
14
|
|
|
16
15
|
// src/commands/coderoom/join.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/coderoom/join.tsx"],"sourcesContent":["import { GlobalOptionsSchema, RequiredRoomCodeArgsSchema } from \"../../cli/options.js\";\nimport { runJoinCommand } from \"../../features/coderoom/run-coderoom-command.js\";\nimport type { GlobalCommandOptions } from \"../../shared/config.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Join another developer's live room from the current directory\";\nexport const args = RequiredRoomCodeArgsSchema;\nexport const options = GlobalOptionsSchema;\n\ntype JoinCommandProps = {\n readonly args: [string];\n readonly options: GlobalCommandOptions;\n};\n\nexport default function JoinCommand({ args, options }: JoinCommandProps) {\n return <CommandRunner run={(output) => runJoinCommand(args[0], options, output)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/coderoom/join.tsx"],"sourcesContent":["import { GlobalOptionsSchema, RequiredRoomCodeArgsSchema } from \"../../cli/options.js\";\nimport { runJoinCommand } from \"../../features/coderoom/run-coderoom-command.js\";\nimport type { GlobalCommandOptions } from \"../../shared/config.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Join another developer's live room from the current directory\";\nexport const args = RequiredRoomCodeArgsSchema;\nexport const options = GlobalOptionsSchema;\n\ntype JoinCommandProps = {\n readonly args: [string];\n readonly options: GlobalCommandOptions;\n};\n\nexport default function JoinCommand({ args, options }: JoinCommandProps) {\n return <CommandRunner run={(output) => runJoinCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAeS;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,eAAeD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACnF;","names":["args","options"]}
|
|
@@ -1,16 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runShareCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-5ZNV3FDG.js";
|
|
4
|
+
import "../../chunk-HRFI2IEP.js";
|
|
6
5
|
import {
|
|
7
6
|
GlobalOptionsSchema,
|
|
8
7
|
OptionalRoomCodeArgsSchema
|
|
9
|
-
} from "../../chunk-
|
|
8
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
10
9
|
import {
|
|
11
10
|
CommandRunner
|
|
12
|
-
} from "../../chunk-
|
|
13
|
-
import "../../chunk-
|
|
11
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
12
|
+
import "../../chunk-WYJTGGMN.js";
|
|
14
13
|
import "../../chunk-PZ5AY32C.js";
|
|
15
14
|
|
|
16
15
|
// src/commands/coderoom/share.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/coderoom/share.tsx"],"sourcesContent":["import { GlobalOptionsSchema, OptionalRoomCodeArgsSchema } from \"../../cli/options.js\";\nimport { runShareCommand, type ShareCommandOptions } from \"../../features/coderoom/run-coderoom-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Start a live room from the current directory\";\nexport const args = OptionalRoomCodeArgsSchema;\nexport const options = GlobalOptionsSchema;\n\ntype ShareCommandProps = {\n readonly args: [string?];\n readonly options: ShareCommandOptions;\n};\n\nexport default function ShareCommand({ args, options }: ShareCommandProps) {\n return <CommandRunner run={(output) => runShareCommand(args[0], options, output)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/coderoom/share.tsx"],"sourcesContent":["import { GlobalOptionsSchema, OptionalRoomCodeArgsSchema } from \"../../cli/options.js\";\nimport { runShareCommand, type ShareCommandOptions } from \"../../features/coderoom/run-coderoom-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Start a live room from the current directory\";\nexport const args = OptionalRoomCodeArgsSchema;\nexport const options = GlobalOptionsSchema;\n\ntype ShareCommandProps = {\n readonly args: [string?];\n readonly options: ShareCommandOptions;\n};\n\nexport default function ShareCommand({ args, options }: ShareCommandProps) {\n return <CommandRunner run={(output) => runShareCommand(args[0], options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;AAcS;AAVF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU;AAOR,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"]}
|
package/dist/commands/index.js
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatCngkitHelp
|
|
3
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-BL3XMLIH.js";
|
|
4
4
|
import {
|
|
5
5
|
CommandRunner
|
|
6
|
-
} from "../chunk-
|
|
7
|
-
import "../chunk-
|
|
6
|
+
} from "../chunk-GT2MTS6E.js";
|
|
7
|
+
import "../chunk-WYJTGGMN.js";
|
|
8
8
|
import "../chunk-PZ5AY32C.js";
|
|
9
9
|
|
|
10
10
|
// src/commands/index.tsx
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowAudiencesCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
JsonOutputOptionsSchema
|
|
10
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
11
10
|
import {
|
|
12
11
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
13
|
+
import "../../chunk-WYJTGGMN.js";
|
|
15
14
|
import "../../chunk-PZ5AY32C.js";
|
|
16
15
|
|
|
17
16
|
// src/commands/knowledges/audiences.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/audiences.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema } from \"../../cli/options.js\";\nimport { runKnowAudiencesCommand, type KnowAudiencesCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List valid audience filters\";\nexport const options = JsonOutputOptionsSchema;\n\ntype AudiencesCommandProps = {\n readonly options: KnowAudiencesCommandOptions;\n};\n\nexport default function AudiencesCommand({ options }: AudiencesCommandProps) {\n return <CommandRunner run={(output) => runKnowAudiencesCommand(options, output)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/audiences.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema } from \"../../cli/options.js\";\nimport { runKnowAudiencesCommand, type KnowAudiencesCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List valid audience filters\";\nexport const options = JsonOutputOptionsSchema;\n\ntype AudiencesCommandProps = {\n readonly options: KnowAudiencesCommandOptions;\n};\n\nexport default function AudiencesCommand({ options }: AudiencesCommandProps) {\n return <CommandRunner run={(output) => runKnowAudiencesCommand(options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;AAYS;AARF,IAAM,cAAc;AACpB,IAAM,UAAU;AAMR,SAAR,iBAAkC,EAAE,SAAAA,SAAQ,GAA0B;AAC3E,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,wBAAwBA,UAAS,MAAM,GAAG;AACnF;","names":["options"]}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowFilesCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
JsonOutputOptionsSchema,
|
|
10
9
|
OptionalQueryArgsSchema
|
|
11
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
12
11
|
import {
|
|
13
12
|
CommandRunner
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
14
|
+
import "../../chunk-WYJTGGMN.js";
|
|
16
15
|
import "../../chunk-PZ5AY32C.js";
|
|
17
16
|
|
|
18
17
|
// src/commands/knowledges/files.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/files.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, OptionalQueryArgsSchema } from \"../../cli/options.js\";\nimport { runKnowFilesCommand, type KnowFilesCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List uploaded catalog files\";\nexport const args = OptionalQueryArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n audience: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Audience filter\",\n valueDescription: \"id\",\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 FilesCommandProps = {\n readonly args: [string?];\n readonly options: KnowFilesCommandOptions;\n};\n\nexport default function FilesCommand({ args, options }: FilesCommandProps) {\n return <CommandRunner run={(output) => runKnowFilesCommand(args[0], options, output)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/files.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { JsonOutputOptionsSchema, OptionalQueryArgsSchema } from \"../../cli/options.js\";\nimport { runKnowFilesCommand, type KnowFilesCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"List uploaded catalog files\";\nexport const args = OptionalQueryArgsSchema;\nexport const options = JsonOutputOptionsSchema.extend({\n audience: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Audience filter\",\n valueDescription: \"id\",\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 FilesCommandProps = {\n readonly args: [string?];\n readonly options: KnowFilesCommandOptions;\n};\n\nexport default function FilesCommand({ args, options }: FilesCommandProps) {\n return <CommandRunner run={(output) => runKnowFilesCommand(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,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,aAA8B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAsB;AACzE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,oBAAoBD,MAAK,CAAC,GAAGC,UAAS,MAAM,GAAG;AACxF;","names":["args","options"]}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowGlobCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
LimitOptionsSchema,
|
|
10
9
|
OptionalGlobPatternArgsSchema
|
|
11
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
12
11
|
import {
|
|
13
12
|
CommandRunner
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
14
|
+
import "../../chunk-WYJTGGMN.js";
|
|
16
15
|
import "../../chunk-PZ5AY32C.js";
|
|
17
16
|
|
|
18
17
|
// src/commands/knowledges/glob.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/glob.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { LimitOptionsSchema, OptionalGlobPatternArgsSchema } from \"../../cli/options.js\";\nimport { runKnowGlobCommand, type KnowGlobCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Claude-style file discovery\";\nexport const args = OptionalGlobPatternArgsSchema;\nexport const options = LimitOptionsSchema.extend({\n path: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Catalog path prefix\",\n valueDescription: \"path\",\n })\n ),\n});\n\ntype GlobCommandProps = {\n readonly args: string[];\n readonly options: KnowGlobCommandOptions;\n};\n\nexport default function GlobCommand({ args, options }: GlobCommandProps) {\n return <CommandRunner run={(output) => runKnowGlobCommand(args.join(\" \"), options, output)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/glob.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { LimitOptionsSchema, OptionalGlobPatternArgsSchema } from \"../../cli/options.js\";\nimport { runKnowGlobCommand, type KnowGlobCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Claude-style file discovery\";\nexport const args = OptionalGlobPatternArgsSchema;\nexport const options = LimitOptionsSchema.extend({\n path: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Catalog path prefix\",\n valueDescription: \"path\",\n })\n ),\n});\n\ntype GlobCommandProps = {\n readonly args: string[];\n readonly options: KnowGlobCommandOptions;\n};\n\nexport default function GlobCommand({ args, options }: GlobCommandProps) {\n return <CommandRunner run={(output) => runKnowGlobCommand(args.join(\" \"), 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,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,KAAK,GAAG,GAAGC,UAAS,MAAM,GAAG;AAC9F;","names":["args","options"]}
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowGrepCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
LimitOptionsSchema,
|
|
10
9
|
RequiredPatternArgsSchema
|
|
11
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
12
11
|
import {
|
|
13
12
|
CommandRunner
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
14
|
+
import "../../chunk-WYJTGGMN.js";
|
|
16
15
|
import "../../chunk-PZ5AY32C.js";
|
|
17
16
|
|
|
18
17
|
// src/commands/knowledges/grep.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/grep.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { LimitOptionsSchema, RequiredPatternArgsSchema } from \"../../cli/options.js\";\nimport { runKnowGrepCommand, type KnowGrepCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Claude-style content search\";\nexport const args = RequiredPatternArgsSchema;\nexport const options = LimitOptionsSchema.extend({\n path: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Catalog path prefix\",\n valueDescription: \"path\",\n })\n ),\n include: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Filename include filter\",\n valueDescription: \"glob\",\n })\n ),\n outputMode: z\n .enum([\"content\", \"files_with_matches\", \"count\"])\n .optional()\n .describe(\n option({\n description: \"Output mode: content, files_with_matches, count\",\n valueDescription: \"mode\",\n })\n ),\n context: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Context lines around content matches\",\n valueDescription: \"n\",\n })\n ),\n caseInsensitive: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Case-insensitive search\",\n })\n ),\n});\n\ntype GrepCommandProps = {\n readonly args: string[];\n readonly options: KnowGrepCommandOptions;\n};\n\nexport default function GrepCommand({ args, options }: GrepCommandProps) {\n return <CommandRunner run={(output) => runKnowGrepCommand(args.join(\" \"), options, output)} />;\n}\n"],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/grep.tsx"],"sourcesContent":["import { option } from \"pastel\";\nimport { z } from \"zod\";\n\nimport { LimitOptionsSchema, RequiredPatternArgsSchema } from \"../../cli/options.js\";\nimport { runKnowGrepCommand, type KnowGrepCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Claude-style content search\";\nexport const args = RequiredPatternArgsSchema;\nexport const options = LimitOptionsSchema.extend({\n path: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Catalog path prefix\",\n valueDescription: \"path\",\n })\n ),\n include: z\n .string()\n .optional()\n .describe(\n option({\n description: \"Filename include filter\",\n valueDescription: \"glob\",\n })\n ),\n outputMode: z\n .enum([\"content\", \"files_with_matches\", \"count\"])\n .optional()\n .describe(\n option({\n description: \"Output mode: content, files_with_matches, count\",\n valueDescription: \"mode\",\n })\n ),\n context: z\n .number()\n .optional()\n .describe(\n option({\n description: \"Context lines around content matches\",\n valueDescription: \"n\",\n })\n ),\n caseInsensitive: z\n .boolean()\n .optional()\n .describe(\n option({\n description: \"Case-insensitive search\",\n })\n ),\n});\n\ntype GrepCommandProps = {\n readonly args: string[];\n readonly options: KnowGrepCommandOptions;\n};\n\nexport default function GrepCommand({ args, options }: GrepCommandProps) {\n return <CommandRunner run={(output) => runKnowGrepCommand(args.join(\" \"), options, output)} />;\n}\n"],"mappings":";;;;;;;;;;;;;;;;;AAAA,SAAS,cAAc;AACvB,SAAS,SAAS;AA6DT;AAvDF,IAAM,cAAc;AACpB,IAAM,OAAO;AACb,IAAM,UAAU,mBAAmB,OAAO;AAAA,EAC/C,MAAM,EACH,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,SAAS,EACN,OAAO,EACP,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,YAAY,EACT,KAAK,CAAC,WAAW,sBAAsB,OAAO,CAAC,EAC/C,SAAS,EACT;AAAA,IACC,OAAO;AAAA,MACL,aAAa;AAAA,MACb,kBAAkB;AAAA,IACpB,CAAC;AAAA,EACH;AAAA,EACF,SAAS,EACN,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;AACJ,CAAC;AAOc,SAAR,YAA6B,EAAE,MAAAA,OAAM,SAAAC,SAAQ,GAAqB;AACvE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,mBAAmBD,MAAK,KAAK,GAAG,GAAGC,UAAS,MAAM,GAAG;AAC9F;","names":["args","options"]}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import {
|
|
2
2
|
formatKnowledgesHelp
|
|
3
|
-
} from "../../chunk-
|
|
3
|
+
} from "../../chunk-BL3XMLIH.js";
|
|
4
4
|
import {
|
|
5
5
|
GlobalOptionsSchema
|
|
6
|
-
} from "../../chunk-
|
|
6
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
7
7
|
import {
|
|
8
8
|
CommandRunner
|
|
9
|
-
} from "../../chunk-
|
|
10
|
-
import "../../chunk-
|
|
9
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
10
|
+
import "../../chunk-WYJTGGMN.js";
|
|
11
11
|
import "../../chunk-PZ5AY32C.js";
|
|
12
12
|
|
|
13
13
|
// src/commands/knowledges/index.tsx
|
|
@@ -1,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowListCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
LimitOptionsSchema,
|
|
10
9
|
OptionalQueryArgsSchema
|
|
11
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
12
11
|
import {
|
|
13
12
|
CommandRunner
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
14
|
+
import "../../chunk-WYJTGGMN.js";
|
|
16
15
|
import "../../chunk-PZ5AY32C.js";
|
|
17
16
|
|
|
18
17
|
// src/commands/knowledges/list.tsx
|
|
@@ -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 subskills\";\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":"
|
|
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 subskills\";\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,18 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowReadCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
JsonOutputOptionsSchema,
|
|
10
9
|
RequiredFilePathArgsSchema
|
|
11
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
12
11
|
import {
|
|
13
12
|
CommandRunner
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
14
|
+
import "../../chunk-WYJTGGMN.js";
|
|
16
15
|
import "../../chunk-PZ5AY32C.js";
|
|
17
16
|
|
|
18
17
|
// src/commands/knowledges/read.tsx
|
|
@@ -1 +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 \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/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":"
|
|
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 \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/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"]}
|
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowSearchCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
LimitOptionsSchema,
|
|
10
9
|
RequiredQueryArgsSchema
|
|
11
|
-
} from "../../chunk-
|
|
10
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
12
11
|
import {
|
|
13
12
|
CommandRunner
|
|
14
|
-
} from "../../chunk-
|
|
15
|
-
import "../../chunk-
|
|
13
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
14
|
+
import "../../chunk-WYJTGGMN.js";
|
|
16
15
|
import "../../chunk-PZ5AY32C.js";
|
|
17
16
|
|
|
18
17
|
// src/commands/knowledges/search.tsx
|
|
19
18
|
import { jsx } from "react/jsx-runtime";
|
|
20
|
-
var description = "
|
|
19
|
+
var description = "Search over Postgres-backed knowledges records";
|
|
21
20
|
var args = RequiredQueryArgsSchema;
|
|
22
21
|
var options = LimitOptionsSchema;
|
|
23
22
|
function SearchCommand({ args: args2, options: options2 }) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/search.tsx"],"sourcesContent":["import { RequiredQueryArgsSchema, LimitOptionsSchema } from \"../../cli/options.js\";\nimport { runKnowSearchCommand, type KnowSearchCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/search.tsx"],"sourcesContent":["import { RequiredQueryArgsSchema, LimitOptionsSchema } from \"../../cli/options.js\";\nimport { runKnowSearchCommand, type KnowSearchCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/command-runner.js\";\n\nexport const description = \"Search over Postgres-backed knowledges 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"]}
|
|
@@ -1,17 +1,16 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runKnowStatusCommand
|
|
3
|
-
} from "../../chunk-
|
|
4
|
-
import "../../chunk-
|
|
5
|
-
import "../../chunk-
|
|
6
|
-
import "../../chunk-
|
|
7
|
-
import "../../chunk-U6XERHCZ.js";
|
|
3
|
+
} from "../../chunk-K36DKQWH.js";
|
|
4
|
+
import "../../chunk-XQGLUQFM.js";
|
|
5
|
+
import "../../chunk-BL3XMLIH.js";
|
|
6
|
+
import "../../chunk-HRFI2IEP.js";
|
|
8
7
|
import {
|
|
9
8
|
JsonOutputOptionsSchema
|
|
10
|
-
} from "../../chunk-
|
|
9
|
+
} from "../../chunk-VCWNKNUE.js";
|
|
11
10
|
import {
|
|
12
11
|
CommandRunner
|
|
13
|
-
} from "../../chunk-
|
|
14
|
-
import "../../chunk-
|
|
12
|
+
} from "../../chunk-GT2MTS6E.js";
|
|
13
|
+
import "../../chunk-WYJTGGMN.js";
|
|
15
14
|
import "../../chunk-PZ5AY32C.js";
|
|
16
15
|
|
|
17
16
|
// src/commands/knowledges/status.tsx
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/commands/knowledges/status.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema } from \"../../cli/options.js\";\nimport { runKnowStatusCommand, type KnowStatusCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/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":"
|
|
1
|
+
{"version":3,"sources":["../../../src/commands/knowledges/status.tsx"],"sourcesContent":["import { JsonOutputOptionsSchema } from \"../../cli/options.js\";\nimport { runKnowStatusCommand, type KnowStatusCommandOptions } from \"../../features/knowledges/run-knowledges-command.js\";\nimport { CommandRunner } from \"../../cli/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"]}
|
package/dist/commands/login.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import {
|
|
2
|
-
resolveApiBaseUrl
|
|
3
|
-
} from "../chunk-U6XERHCZ.js";
|
|
4
1
|
import {
|
|
5
2
|
GlobalOptionsSchema
|
|
6
|
-
} from "../chunk-
|
|
3
|
+
} from "../chunk-VCWNKNUE.js";
|
|
7
4
|
import {
|
|
8
5
|
CommandRunner
|
|
9
|
-
} from "../chunk-
|
|
10
|
-
import
|
|
6
|
+
} from "../chunk-GT2MTS6E.js";
|
|
7
|
+
import {
|
|
8
|
+
resolveApiBaseUrl
|
|
9
|
+
} from "../chunk-WYJTGGMN.js";
|
|
11
10
|
import "../chunk-PZ5AY32C.js";
|
|
12
11
|
|
|
13
12
|
// src/shared/browser.ts
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/shared/browser.ts","../../src/features/login/run-login-command.ts","../../src/commands/login.tsx"],"sourcesContent":["import { spawn } from \"node:child_process\";\nimport process from \"node:process\";\n\nexport async function openBrowserUrl(url: string): Promise<boolean> {\n const command = browserOpenCommand(url);\n\n return await new Promise<boolean>((resolve, reject) => {\n const childProcess = spawn(command.command, command.args, {\n detached: true,\n stdio: \"ignore\",\n });\n\n childProcess.on(\"error\", (error: NodeJS.ErrnoException) => {\n if (error.code === \"ENOENT\") {\n resolve(false);\n return;\n }\n\n reject(error);\n });\n childProcess.on(\"spawn\", () => {\n childProcess.unref();\n resolve(true);\n });\n });\n}\n\nfunction browserOpenCommand(url: string): { command: string; args: string[] } {\n if (process.platform === \"darwin\") {\n return { command: \"open\", args: [url] };\n }\n\n if (process.platform === \"win32\") {\n return { command: \"cmd\", args: [\"/c\", \"start\", \"\", url] };\n }\n\n return { command: \"xdg-open\", args: [url] };\n}\n","import { openBrowserUrl } from \"../../shared/browser.js\";\nimport { resolveApiBaseUrl, type GlobalCommandOptions } from \"../../shared/config.js\";\nimport type { CommandOutput } from \"../../shared/output.js\";\n\nexport type LoginCommandOptions = GlobalCommandOptions;\n\nexport async function runLoginCommand(\n options: LoginCommandOptions,\n output: CommandOutput\n): Promise<void> {\n const loginUrl = new URL(\"/login\", resolveApiBaseUrl(options));\n const loginUrlString = loginUrl.toString();\n output.success(`Opening ${loginUrlString}`);\n\n const didOpenBrowser = await openBrowserUrl(loginUrlString);\n if (!didOpenBrowser) {\n output.warning(`No browser opener found. Open this URL manually: ${loginUrlString}`);\n }\n}\n","import { GlobalOptionsSchema } from \"../cli/options.js\";\nimport { runLoginCommand, type LoginCommandOptions } from \"../features/login/run-login-command.js\";\nimport { CommandRunner } from \"../cli/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":"
|
|
1
|
+
{"version":3,"sources":["../../src/shared/browser.ts","../../src/features/login/run-login-command.ts","../../src/commands/login.tsx"],"sourcesContent":["import { spawn } from \"node:child_process\";\nimport process from \"node:process\";\n\nexport async function openBrowserUrl(url: string): Promise<boolean> {\n const command = browserOpenCommand(url);\n\n return await new Promise<boolean>((resolve, reject) => {\n const childProcess = spawn(command.command, command.args, {\n detached: true,\n stdio: \"ignore\",\n });\n\n childProcess.on(\"error\", (error: NodeJS.ErrnoException) => {\n if (error.code === \"ENOENT\") {\n resolve(false);\n return;\n }\n\n reject(error);\n });\n childProcess.on(\"spawn\", () => {\n childProcess.unref();\n resolve(true);\n });\n });\n}\n\nfunction browserOpenCommand(url: string): { command: string; args: string[] } {\n if (process.platform === \"darwin\") {\n return { command: \"open\", args: [url] };\n }\n\n if (process.platform === \"win32\") {\n return { command: \"cmd\", args: [\"/c\", \"start\", \"\", url] };\n }\n\n return { command: \"xdg-open\", args: [url] };\n}\n","import { openBrowserUrl } from \"../../shared/browser.js\";\nimport { resolveApiBaseUrl, type GlobalCommandOptions } from \"../../shared/config.js\";\nimport type { CommandOutput } from \"../../shared/output.js\";\n\nexport type LoginCommandOptions = GlobalCommandOptions;\n\nexport async function runLoginCommand(\n options: LoginCommandOptions,\n output: CommandOutput\n): Promise<void> {\n const loginUrl = new URL(\"/login\", resolveApiBaseUrl(options));\n const loginUrlString = loginUrl.toString();\n output.success(`Opening ${loginUrlString}`);\n\n const didOpenBrowser = await openBrowserUrl(loginUrlString);\n if (!didOpenBrowser) {\n output.warning(`No browser opener found. Open this URL manually: ${loginUrlString}`);\n }\n}\n","import { GlobalOptionsSchema } from \"../cli/options.js\";\nimport { runLoginCommand, type LoginCommandOptions } from \"../features/login/run-login-command.js\";\nimport { CommandRunner } from \"../cli/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":";;;;;;;;;;;;AAAA,SAAS,aAAa;AACtB,OAAO,aAAa;AAEpB,eAAsB,eAAe,KAA+B;AAClE,QAAM,UAAU,mBAAmB,GAAG;AAEtC,SAAO,MAAM,IAAI,QAAiB,CAAC,SAAS,WAAW;AACrD,UAAM,eAAe,MAAM,QAAQ,SAAS,QAAQ,MAAM;AAAA,MACxD,UAAU;AAAA,MACV,OAAO;AAAA,IACT,CAAC;AAED,iBAAa,GAAG,SAAS,CAAC,UAAiC;AACzD,UAAI,MAAM,SAAS,UAAU;AAC3B,gBAAQ,KAAK;AACb;AAAA,MACF;AAEA,aAAO,KAAK;AAAA,IACd,CAAC;AACD,iBAAa,GAAG,SAAS,MAAM;AAC7B,mBAAa,MAAM;AACnB,cAAQ,IAAI;AAAA,IACd,CAAC;AAAA,EACH,CAAC;AACH;AAEA,SAAS,mBAAmB,KAAkD;AAC5E,MAAI,QAAQ,aAAa,UAAU;AACjC,WAAO,EAAE,SAAS,QAAQ,MAAM,CAAC,GAAG,EAAE;AAAA,EACxC;AAEA,MAAI,QAAQ,aAAa,SAAS;AAChC,WAAO,EAAE,SAAS,OAAO,MAAM,CAAC,MAAM,SAAS,IAAI,GAAG,EAAE;AAAA,EAC1D;AAEA,SAAO,EAAE,SAAS,YAAY,MAAM,CAAC,GAAG,EAAE;AAC5C;;;AC/BA,eAAsB,gBACpBA,UACA,QACe;AACf,QAAM,WAAW,IAAI,IAAI,UAAU,kBAAkBA,QAAO,CAAC;AAC7D,QAAM,iBAAiB,SAAS,SAAS;AACzC,SAAO,QAAQ,WAAW,cAAc,EAAE;AAE1C,QAAM,iBAAiB,MAAM,eAAe,cAAc;AAC1D,MAAI,CAAC,gBAAgB;AACnB,WAAO,QAAQ,oDAAoD,cAAc,EAAE;AAAA,EACrF;AACF;;;ACNS;AARF,IAAM,cAAc;AACpB,IAAM,UAAU;AAMR,SAAR,aAA8B,EAAE,SAAAC,SAAQ,GAAsB;AACnE,SAAO,oBAAC,iBAAc,KAAK,CAAC,WAAW,gBAAgBA,UAAS,MAAM,GAAG;AAC3E;","names":["options","options"]}
|
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-VCWNKNUE.js";
|
|
5
5
|
import {
|
|
6
6
|
CommandRunner
|
|
7
|
-
} from "../chunk-
|
|
8
|
-
import "../chunk-
|
|
7
|
+
} from "../chunk-GT2MTS6E.js";
|
|
8
|
+
import "../chunk-WYJTGGMN.js";
|
|
9
9
|
import "../chunk-PZ5AY32C.js";
|
|
10
10
|
|
|
11
11
|
// src/commands/scrub.tsx
|
|
@@ -2,19 +2,20 @@ import {
|
|
|
2
2
|
coerceLimit,
|
|
3
3
|
formatJson,
|
|
4
4
|
optionalJoinedArgument,
|
|
5
|
+
shouldPrintJson,
|
|
5
6
|
singleLine
|
|
6
|
-
} from "../chunk-
|
|
7
|
+
} from "../chunk-XQGLUQFM.js";
|
|
7
8
|
import {
|
|
8
9
|
formatCngkitHelp
|
|
9
|
-
} from "../chunk-
|
|
10
|
+
} from "../chunk-BL3XMLIH.js";
|
|
10
11
|
import {
|
|
11
12
|
GlobalOptionsSchema,
|
|
12
13
|
TranscriptArgsSchema
|
|
13
|
-
} from "../chunk-
|
|
14
|
+
} from "../chunk-VCWNKNUE.js";
|
|
14
15
|
import {
|
|
15
16
|
CommandRunner
|
|
16
|
-
} from "../chunk-
|
|
17
|
-
import "../chunk-
|
|
17
|
+
} from "../chunk-GT2MTS6E.js";
|
|
18
|
+
import "../chunk-WYJTGGMN.js";
|
|
18
19
|
import "../chunk-PZ5AY32C.js";
|
|
19
20
|
|
|
20
21
|
// src/commands/transcripts.tsx
|
|
@@ -298,7 +299,7 @@ async function runTranscriptCommand(args2, options2, output) {
|
|
|
298
299
|
return;
|
|
299
300
|
case "list": {
|
|
300
301
|
const records = await listTranscriptRecords({ source, limit });
|
|
301
|
-
if (options2
|
|
302
|
+
if (shouldPrintJson(options2)) {
|
|
302
303
|
output.raw(formatJson({ records }));
|
|
303
304
|
return;
|
|
304
305
|
}
|
|
@@ -316,7 +317,7 @@ async function runTranscriptCommand(args2, options2, output) {
|
|
|
316
317
|
limit,
|
|
317
318
|
includeInternal
|
|
318
319
|
});
|
|
319
|
-
if (options2
|
|
320
|
+
if (shouldPrintJson(options2)) {
|
|
320
321
|
output.raw(formatJson({ entries }));
|
|
321
322
|
return;
|
|
322
323
|
}
|
|
@@ -335,7 +336,7 @@ async function runTranscriptCommand(args2, options2, output) {
|
|
|
335
336
|
fileLimit: coerceLimit(options2.fileLimit, 60, 5e3),
|
|
336
337
|
includeInternal
|
|
337
338
|
});
|
|
338
|
-
if (options2
|
|
339
|
+
if (shouldPrintJson(options2)) {
|
|
339
340
|
output.raw(formatJson({ entries }));
|
|
340
341
|
return;
|
|
341
342
|
}
|