raindrop-cli 0.1.0 → 0.1.1
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 +66 -31
- package/dist/cli/context.d.ts +52 -0
- package/dist/cli/context.d.ts.map +1 -0
- package/dist/cli/index.d.ts +3 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/program.d.ts +20 -0
- package/dist/cli/program.d.ts.map +1 -0
- package/dist/cli-main.d.ts +24 -0
- package/dist/cli-main.d.ts.map +1 -0
- package/dist/cli.d.ts +14 -0
- package/dist/cli.d.ts.map +1 -0
- package/dist/cli.js +29577 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/index.d.ts +11 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -0
- package/dist/run.d.ts +18 -0
- package/dist/run.d.ts.map +1 -0
- package/dist/utils/output-streams.d.ts +8 -0
- package/dist/utils/output-streams.d.ts.map +1 -1
- package/package.json +10 -6
package/dist/config.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../src/config.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IACzC,iBAAiB,CAAC,EAAE,MAAM,CAAC;CAC5B;AAED,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,WAAW,EAAE,KAAK,GAAG,QAAQ,GAAG,IAAI,CAAC;IACrC,aAAa,EAAE,MAAM,GAAG,OAAO,GAAG,KAAK,CAAC;IACxC,iBAAiB,EAAE,MAAM,CAAC;CAC3B;AA0CD;;GAEG;AACH,wBAAgB,cAAc,IAAI,MAAM,GAAG,IAAI,CAG9C;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAIlD;AAED;;GAEG;AACH,wBAAgB,gBAAgB,IAAI,IAAI,CAIvC;AAED;;GAEG;AACH,wBAAgB,QAAQ,IAAI,OAAO,CAElC;AAED;;GAEG;AACH,wBAAgB,cAAc,IAAI,KAAK,GAAG,QAAQ,GAAG,IAAI,CAQxD;AAID;;GAEG;AACH,wBAAgB,SAAS,IAAI,cAAc,CA2B1C;AAED;;GAEG;AACH,wBAAgB,WAAW,IAAI,IAAI,CAElC;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Library exports for raindrop-cli.
|
|
3
|
+
*
|
|
4
|
+
* CLI entry point is now src/cli.ts.
|
|
5
|
+
* This file exports types and utilities for programmatic use.
|
|
6
|
+
*/
|
|
7
|
+
export { getClient } from "./client.js";
|
|
8
|
+
export type { CliContext, OutputConfig } from "./cli/context.js";
|
|
9
|
+
export { createContext } from "./cli/context.js";
|
|
10
|
+
export type { OutputFormat, GlobalOptions } from "./types/index.js";
|
|
11
|
+
export { OUTPUT_FORMATS } from "./types/index.js";
|
|
2
12
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AACjE,OAAO,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACjD,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACpE,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
|
package/dist/index.js
CHANGED
|
File without changes
|
package/dist/run.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core CLI logic - Commander program execution.
|
|
3
|
+
*
|
|
4
|
+
* This layer:
|
|
5
|
+
* - Creates the CLI context
|
|
6
|
+
* - Sets up the Commander program
|
|
7
|
+
* - Parses arguments and executes commands
|
|
8
|
+
* - Handles Commander-specific errors (help/version display)
|
|
9
|
+
*
|
|
10
|
+
* This is the primary entry point for unit testing with mocked streams.
|
|
11
|
+
*/
|
|
12
|
+
export type RunEnv = {
|
|
13
|
+
env: Record<string, string | undefined>;
|
|
14
|
+
stdout: NodeJS.WritableStream;
|
|
15
|
+
stderr: NodeJS.WritableStream;
|
|
16
|
+
};
|
|
17
|
+
export declare function runCli(argv: string[], { env, stdout, stderr }: RunEnv): Promise<void>;
|
|
18
|
+
//# sourceMappingURL=run.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../src/run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAOH,MAAM,MAAM,MAAM,GAAG;IACnB,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;IACxC,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;IAC9B,MAAM,EAAE,MAAM,CAAC,cAAc,CAAC;CAC/B,CAAC;AAwBF,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAqB3F"}
|
|
@@ -7,6 +7,14 @@
|
|
|
7
7
|
*
|
|
8
8
|
* This enables proper piping (e.g., `rd raindrops list | jq`).
|
|
9
9
|
*/
|
|
10
|
+
/**
|
|
11
|
+
* Override output streams. Use in tests to capture output.
|
|
12
|
+
*/
|
|
13
|
+
export declare function setOutputStream(stdout: NodeJS.WritableStream, stderr: NodeJS.WritableStream): void;
|
|
14
|
+
/**
|
|
15
|
+
* Reset output streams to defaults. Call in test cleanup.
|
|
16
|
+
*/
|
|
17
|
+
export declare function resetOutputStream(): void;
|
|
10
18
|
/**
|
|
11
19
|
* Output data to stdout. Use for primary output that may be piped.
|
|
12
20
|
* Examples: JSON data, table output, IDs in quiet mode
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"output-streams.d.ts","sourceRoot":"","sources":["../../src/utils/output-streams.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"output-streams.d.ts","sourceRoot":"","sources":["../../src/utils/output-streams.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;GAEG;AACH,wBAAgB,eAAe,CAC7B,MAAM,EAAE,MAAM,CAAC,cAAc,EAC7B,MAAM,EAAE,MAAM,CAAC,cAAc,GAC5B,IAAI,CAGN;AAED;;GAEG;AACH,wBAAgB,iBAAiB,IAAI,IAAI,CAGxC;AAED;;;GAGG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEhD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEnD;AAED;;;GAGG;AACH,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEjD;AAED;;;GAGG;AACH,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEnD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAEtD"}
|
package/package.json
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "raindrop-cli",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "A TypeScript CLI for Raindrop.io built for AI agent integration and personal productivity workflows",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
7
7
|
"module": "dist/index.js",
|
|
8
8
|
"types": "dist/index.d.ts",
|
|
9
9
|
"bin": {
|
|
10
|
-
"rd": "dist/
|
|
11
|
-
"rdcli": "dist/
|
|
12
|
-
"raindrop-cli": "dist/
|
|
10
|
+
"rd": "dist/cli.js",
|
|
11
|
+
"rdcli": "dist/cli.js",
|
|
12
|
+
"raindrop-cli": "dist/cli.js"
|
|
13
13
|
},
|
|
14
14
|
"files": [
|
|
15
15
|
"dist/**/*.js",
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
"LICENSE"
|
|
23
23
|
],
|
|
24
24
|
"scripts": {
|
|
25
|
-
"build": "bun build src/
|
|
25
|
+
"build": "bun build src/cli.ts --outdir dist --target node --format esm && echo '#!/usr/bin/env node' | cat - dist/cli.js > dist/temp && mv dist/temp dist/cli.js && bun run build:dts",
|
|
26
26
|
"build:dts": "tsc --emitDeclarationOnly --declaration --outDir dist",
|
|
27
27
|
"dev": "bun src/index.ts",
|
|
28
28
|
"test": "bash scripts/check.sh test",
|
|
@@ -43,7 +43,9 @@
|
|
|
43
43
|
"verify": "bun scripts/verify.ts",
|
|
44
44
|
"verify:verbose": "VERBOSE=1 bun scripts/verify.ts",
|
|
45
45
|
"prepare": "lefthook install || true",
|
|
46
|
-
"prepublishOnly": "
|
|
46
|
+
"prepublishOnly": "ggshield secret scan path . -r --use-gitignore -y && ggshield secret scan path dist -r -y",
|
|
47
|
+
"release": "release-it",
|
|
48
|
+
"release:dry": "release-it --dry-run"
|
|
47
49
|
},
|
|
48
50
|
"keywords": [
|
|
49
51
|
"raindrop",
|
|
@@ -73,6 +75,7 @@
|
|
|
73
75
|
"picocolors": "^1.1.1"
|
|
74
76
|
},
|
|
75
77
|
"devDependencies": {
|
|
78
|
+
"@release-it/keep-a-changelog": "^7.0.0",
|
|
76
79
|
"@types/bun": "latest",
|
|
77
80
|
"@types/nock": "^11.1.0",
|
|
78
81
|
"@types/node": "^22",
|
|
@@ -81,6 +84,7 @@
|
|
|
81
84
|
"oxlint": "^1.36.0",
|
|
82
85
|
"oxlint-tsgolint": "^0.10.1",
|
|
83
86
|
"prettier": "^3.7.4",
|
|
87
|
+
"release-it": "^19.2.3",
|
|
84
88
|
"tasuku": "^2.0.5",
|
|
85
89
|
"typescript": "^5.9.3"
|
|
86
90
|
}
|