@briangershon/publishable 0.1.0
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 +21 -0
- package/README.md +39 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +19 -0
- package/package.json +32 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Brian Gershon
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
# @briangershon/publishable
|
|
2
|
+
|
|
3
|
+
A tool for creating and managing content for publication.
|
|
4
|
+
|
|
5
|
+
## Installation
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm install -g @briangershon/publishable
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
## Usage
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx @briangershon/publishable --help
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
## Local Development
|
|
18
|
+
|
|
19
|
+
Run directly from source without a build step (requires Node 22.6+):
|
|
20
|
+
|
|
21
|
+
```bash
|
|
22
|
+
npm run dev -- --help
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Publishing package to npm
|
|
26
|
+
|
|
27
|
+
After merging latest code to main branch:
|
|
28
|
+
|
|
29
|
+
1. `git checkout main && git pull`
|
|
30
|
+
2. `npm version patch` # or `minor`, or `major`
|
|
31
|
+
3. `git push --follow-tags`
|
|
32
|
+
|
|
33
|
+
A GitHub release is automatically written and published to NPM.
|
|
34
|
+
|
|
35
|
+
**First-time setup:** Add `NPM_TOKEN` and `OPENROUTER_API_KEY` secrets in GitHub repo Settings → Secrets and variables → Actions. Also run `npm login` locally and ensure you have access to the `@briangershon` scope.
|
|
36
|
+
|
|
37
|
+
## License
|
|
38
|
+
|
|
39
|
+
MIT
|
package/dist/index.d.ts
ADDED
package/dist/index.js
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { parseArgs } from 'node:util';
|
|
3
|
+
const { values } = parseArgs({
|
|
4
|
+
options: {
|
|
5
|
+
help: { type: 'boolean', short: 'h' },
|
|
6
|
+
},
|
|
7
|
+
});
|
|
8
|
+
if (values.help) {
|
|
9
|
+
console.log(`Usage: publishable [OPTIONS]
|
|
10
|
+
|
|
11
|
+
A tool for agents to manage blog and other publishable content.
|
|
12
|
+
|
|
13
|
+
Options:
|
|
14
|
+
-h, --help Show this message and exit
|
|
15
|
+
|
|
16
|
+
Examples:
|
|
17
|
+
publishable --help`);
|
|
18
|
+
process.exit(0);
|
|
19
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@briangershon/publishable",
|
|
3
|
+
"version": "0.1.0",
|
|
4
|
+
"description": "A tool for creating and managing content for publication.",
|
|
5
|
+
"type": "module",
|
|
6
|
+
"bin": {
|
|
7
|
+
"publishable": "dist/index.js"
|
|
8
|
+
},
|
|
9
|
+
"files": [
|
|
10
|
+
"dist"
|
|
11
|
+
],
|
|
12
|
+
"scripts": {
|
|
13
|
+
"build": "tsc",
|
|
14
|
+
"dev": "node --experimental-strip-types src/index.ts",
|
|
15
|
+
"start": "node dist/index.js"
|
|
16
|
+
},
|
|
17
|
+
"keywords": [
|
|
18
|
+
"cli",
|
|
19
|
+
"publishing",
|
|
20
|
+
"agents",
|
|
21
|
+
"blog"
|
|
22
|
+
],
|
|
23
|
+
"author": "Brian Gershon",
|
|
24
|
+
"license": "MIT",
|
|
25
|
+
"engines": {
|
|
26
|
+
"node": ">=v22.22.2"
|
|
27
|
+
},
|
|
28
|
+
"devDependencies": {
|
|
29
|
+
"@types/node": "^24.0.0",
|
|
30
|
+
"typescript": "^5.8.0"
|
|
31
|
+
}
|
|
32
|
+
}
|