Files
gitroomhq__postiz-agent/package.json
Gilad Resisi 4babb3afd7 feat: auto-update the CLI and skill
CLI: every command lazily checks npm at most once every 2 days (marker in
~/.postiz/update-check.json). Verified global installs (npm, pnpm, yarn, bun)
update automatically and transparently re-run the original command on the new
version; re-exec only happens for a target proven to be the new version, so
recursion is impossible. npx runs skip entirely. Unidentifiable installs
(Windows, project-local, unknown) get a recommendation on stderr printed after
the command output, never an install. All failures fall through silently to
running the user's command; stdout and exit codes are untouched. A postiz
update command runs the same logic on demand, ignoring the 2-day gate.

Skill: SKILL.md now instructs agents to run postiz update at session start and
to keep the skill itself fresh from GitHub by comparing the installed
.claude-plugin/plugin.json version against main (own marker, same 2-day gate),
notifying the user that a refreshed skill applies to the next session.

Version 2.3.0 (2.1.0 was already published to npm out of sequence in April and
can't be reused; 2.2.0 is reserved for the publish-guard change).

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-14 14:46:46 +07:00

64 lines
1.3 KiB
JSON

{
"name": "postiz",
"version": "2.3.0",
"description": "Postiz CLI - Command line interface for the Postiz social media scheduling API",
"main": "dist/index.js",
"bin": {
"postiz": "./dist/index.js"
},
"scripts": {
"dev": "tsup --watch",
"build": "tsup",
"start": "node ./dist/index.js",
"prepublishOnly": "pnpm run build",
"publish": "tsup && pnpm publish --access public --no-git-checks"
},
"files": [
"dist",
"README.md",
"SKILL.md",
"CHANGELOG.md",
"LICENSE"
],
"keywords": [
"postiz",
"cli",
"social-media",
"scheduling",
"automation",
"ai-agent",
"command-line",
"twitter",
"linkedin",
"facebook",
"instagram",
"tiktok",
"youtube",
"reddit"
],
"author": "Nevo David",
"license": "AGPL-3.0",
"repository": {
"type": "git",
"url": "https://github.com/gitroomhq/postiz-agent.git"
},
"homepage": "https://github.com/gitroomhq/postiz-agent#readme",
"bugs": {
"url": "https://github.com/gitroomhq/postiz-agent/issues"
},
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"@types/pg": "^8.20.0",
"node-fetch": "^3.3.2",
"yargs": "^17.7.2"
},
"devDependencies": {
"@types/node": "^20.11.19",
"@types/yargs": "^17.0.32",
"tsup": "^8.5.1",
"typescript": "^5.3.3"
}
}