perchai-cli 2.4.41 → 2.4.42
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/dist/perch.mjs +40 -1
- package/package.json +1 -1
package/dist/perch.mjs
CHANGED
|
@@ -75566,6 +75566,7 @@ var init_payroll = __esm({
|
|
|
75566
75566
|
// lib/perchBusinessTools/index.ts
|
|
75567
75567
|
var init_perchBusinessTools = __esm({
|
|
75568
75568
|
"lib/perchBusinessTools/index.ts"() {
|
|
75569
|
+
"use strict";
|
|
75569
75570
|
init_generateAPAuditPacket();
|
|
75570
75571
|
init_inventoryFolder();
|
|
75571
75572
|
init_loadBusinessTables();
|
|
@@ -75917,7 +75918,6 @@ function isTurnAbortedError(error) {
|
|
|
75917
75918
|
var TURN_STOPPED_BY_USER_MESSAGE;
|
|
75918
75919
|
var init_turnAbort = __esm({
|
|
75919
75920
|
"features/perchTerminal/runtime/turnAbort.ts"() {
|
|
75920
|
-
"use strict";
|
|
75921
75921
|
TURN_STOPPED_BY_USER_MESSAGE = "Turn stopped by user.";
|
|
75922
75922
|
}
|
|
75923
75923
|
});
|
|
@@ -76218,6 +76218,7 @@ function getToolDisplayName(toolName) {
|
|
|
76218
76218
|
var NON_MODULE_TOOL_OWNERS, TOOL_RISK, TOOL_DISPLAY_NAMES;
|
|
76219
76219
|
var init_catalog = __esm({
|
|
76220
76220
|
"features/perchTerminal/runtime/toolSystem/catalog.ts"() {
|
|
76221
|
+
"use strict";
|
|
76221
76222
|
init_toolNames();
|
|
76222
76223
|
NON_MODULE_TOOL_OWNERS = {
|
|
76223
76224
|
[TOOL_NAMES.listSources]: "lane",
|
|
@@ -92918,6 +92919,39 @@ var init_agentSkillRegistry = __esm({
|
|
|
92918
92919
|
"readLocalFile"
|
|
92919
92920
|
]
|
|
92920
92921
|
},
|
|
92922
|
+
{
|
|
92923
|
+
"id": "release",
|
|
92924
|
+
"name": "release",
|
|
92925
|
+
"description": "Prepare and ship a Perch release \u2014 bump, build, pack, commit, tag, and push the CLI up to the publish handoff, or trigger the desktop release workflow, with strict permission gates.",
|
|
92926
|
+
"path": "features/perchTerminal/agentPlatform/skills/release/SKILL.md",
|
|
92927
|
+
"body": "\n# release\n\nUse this skill when the user asks Perch to cut a release: ship a new `perchai-cli` version, repackage the CLI, bump the version, or trigger a desktop build. This runs on any surface with a local shell (the field CLI and the desktop app); a hosted-only surface cannot release.\n\n## CLI release\n\nThe CLI release is a single audited command \u2014 do not improvise raw `git`/`npm` sequences. Use `npm run cli:release`.\n\n1. Always start with a dry run: `npm run cli:release` (or `npm run cli:release -- --minor` / `-- --set X.Y.Z`). It prints the ordered plan and runs read-only preflight (clean tree, unused tag, test gate) without changing anything.\n2. Show the user the planned version, tag, and steps. Get an explicit yes before mutating.\n3. Execute with `npm run cli:release -- --execute`. It bumps `packages/cli/package.json`, rebuilds the bundle, packs the tarball, commits, tags `cli-vX.Y.Z`, and pushes \u2014 then STOPS.\n4. It never publishes. Hand the publish back to the user verbatim: `cd packages/cli && npm publish`, run with their own npm token. State the prepared version, the commit, the tag, and the tarball path.\n\nUse `-- --no-push` to keep the commit and tag local; `-- --skip-tests` only when the user explicitly accepts skipping the gate.\n\n## Desktop release\n\nThe desktop installers build in CI, not locally. Use `npm run desktop:release` (optionally with a version and channel). It triggers the desktop release workflow through the GitHub CLI, which builds the macOS and Windows installers and publishes them to the configured download bucket. This requires the GitHub CLI to be installed and authenticated; if it is missing, say so and stop rather than guessing.\n\nPair this with `wait-operator` when the user wants to watch the workflow to completion: poll bounded status, read the failing job logs when available, and report the final result with the run URL.\n\n## Permission and verification\n\n- Protect unrelated work. The CLI release refuses to run with a dirty tree on purpose, so only the bump, bundle, and tarball land in the release commit. Never stage or sweep unrelated changes to satisfy it \u2014 commit or stash those first.\n- Treat push and publish as irreversible. Confirm before push; never publish on the user's behalf.\n- Before finishing, report the resolved version, commit SHA, tag, push target, tarball path, the exact publish command left for the user, and any workflow or run URL when a desktop release was triggered.",
|
|
92928
|
+
"surface": {
|
|
92929
|
+
"gui": "supported",
|
|
92930
|
+
"cli": "supported"
|
|
92931
|
+
},
|
|
92932
|
+
"triggerHints": [
|
|
92933
|
+
"release the cli",
|
|
92934
|
+
"ship the cli",
|
|
92935
|
+
"publish the cli",
|
|
92936
|
+
"cut a release",
|
|
92937
|
+
"bump version",
|
|
92938
|
+
"package the cli",
|
|
92939
|
+
"desktop release",
|
|
92940
|
+
"tag and push"
|
|
92941
|
+
],
|
|
92942
|
+
"companionSkills": [
|
|
92943
|
+
"github",
|
|
92944
|
+
"wait-operator",
|
|
92945
|
+
"workspace"
|
|
92946
|
+
],
|
|
92947
|
+
"preferredTools": [
|
|
92948
|
+
"bash",
|
|
92949
|
+
"runBashTerminalCommand",
|
|
92950
|
+
"grep",
|
|
92951
|
+
"readLocalFile",
|
|
92952
|
+
"writeLocalFile"
|
|
92953
|
+
]
|
|
92954
|
+
},
|
|
92921
92955
|
{
|
|
92922
92956
|
"id": "research",
|
|
92923
92957
|
"name": "research",
|
|
@@ -93262,6 +93296,7 @@ var init_skillSelector = __esm({
|
|
|
93262
93296
|
]);
|
|
93263
93297
|
CORE_PRIORITY = [
|
|
93264
93298
|
"wait-operator",
|
|
93299
|
+
"release",
|
|
93265
93300
|
"github",
|
|
93266
93301
|
"data-quality",
|
|
93267
93302
|
"presentations",
|
|
@@ -93302,6 +93337,10 @@ var init_skillSelector = __esm({
|
|
|
93302
93337
|
/\b(github|git\s+(?:status|diff|log|show|commit|push|pull|branch)|commit\s+(?:these|changes|and\s+push)|push\s+(?:this|the|branch)|pull\s+request|pr\s+#?\d*|review\s+commits?|github\s+checks?|ci\s+(?:failure|checks?|run)|release\s+branch)\b/i,
|
|
93303
93338
|
/\b(stage|commit|push)\b.{0,56}\b(changes?|branch|repo|github)\b/i
|
|
93304
93339
|
],
|
|
93340
|
+
release: [
|
|
93341
|
+
/\b(release|ship|publish|repackage)\b.{0,32}\b(cli|perch|desktop|app|version|build|package|installer)\b/i,
|
|
93342
|
+
/\b(cut\s+a\s+release|bump\s+(?:the\s+)?version|tag\s+and\s+push|new\s+(?:cli\s+)?version)\b/i
|
|
93343
|
+
],
|
|
93305
93344
|
"wait-operator": [
|
|
93306
93345
|
/\b(wait\s+(?:for|until)|watch\s+(?:the|this)?|poll\s+(?:status|until|for)|keep\s+checking|check\s+(?:until|back|again)|monitor\s+(?:progress|status|deploy)|long[-\s]?running\s+task|deployment\s+status|wake\s+when\s+done)\b/i,
|
|
93307
93346
|
/\b(vercel|deploy(?:ment)?|github\s+actions?|ci|checks?|background\s+job|server|localhost)\b.{0,64}\b(ready|done|finish(?:ed)?|complete|succeed(?:ed)?|fail(?:ed)?|status)\b/i
|