@felipefontoura/paperclip-adapter-hermes-local-plus 0.1.13 → 0.1.15
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/CHANGELOG.md +6 -0
- package/dist/index.js +6 -18
- package/dist/index.js.map +1 -1
- package/dist/server/index.js +3 -15
- package/dist/server/index.js.map +1 -1
- package/dist/ui/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/).
|
|
6
6
|
This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## [0.1.14] - 2026-06-12
|
|
9
|
+
|
|
10
|
+
### Fixed
|
|
11
|
+
|
|
12
|
+
- Stale UI labels / hint for `heartbeatTemplateMode`. The "Auto (smart pick from AGENTS.md)" option was describing the v0.1.7-v0.1.11 behaviour that v0.1.12 reverted — Auto now always picks Full unless an explicit Prompt template is set. Updated the option labels and the hint accordingly so the dropdown matches actual runtime behaviour.
|
|
13
|
+
|
|
8
14
|
## [0.1.13] - 2026-06-12
|
|
9
15
|
|
|
10
16
|
### Changed
|
package/dist/index.js
CHANGED
|
@@ -3008,8 +3008,7 @@ async function runChildProcess(runId, command, args, opts) {
|
|
|
3008
3008
|
// src/shared/constants.ts
|
|
3009
3009
|
var ADAPTER_TYPE = "hermes_local";
|
|
3010
3010
|
var ADAPTER_LABEL = "Hermes Agent";
|
|
3011
|
-
var HERMES_CLI_DEFAULT = "/
|
|
3012
|
-
var HERMES_CLI_FALLBACK = "hermes";
|
|
3011
|
+
var HERMES_CLI_DEFAULT = "/opt/hermes/bin/hermes";
|
|
3013
3012
|
var HERMES_CLI = HERMES_CLI_DEFAULT;
|
|
3014
3013
|
var DEFAULT_TIMEOUT_SEC = 1800;
|
|
3015
3014
|
var DEFAULT_GRACE_SEC = 10;
|
|
@@ -3139,18 +3138,7 @@ function cfgStringArray(v) {
|
|
|
3139
3138
|
return Array.isArray(v) && v.every((i) => typeof i === "string") ? v : void 0;
|
|
3140
3139
|
}
|
|
3141
3140
|
function resolveHermesCommand(config) {
|
|
3142
|
-
|
|
3143
|
-
if (explicit) return explicit;
|
|
3144
|
-
if (canExecute(HERMES_CLI_DEFAULT)) return HERMES_CLI_DEFAULT;
|
|
3145
|
-
return HERMES_CLI_FALLBACK;
|
|
3146
|
-
}
|
|
3147
|
-
function canExecute(p) {
|
|
3148
|
-
try {
|
|
3149
|
-
fs4.accessSync(p, fs4.constants.X_OK);
|
|
3150
|
-
return true;
|
|
3151
|
-
} catch {
|
|
3152
|
-
return false;
|
|
3153
|
-
}
|
|
3141
|
+
return cfgString(config.hermesCommand) || process.env.PAPERCLIP_HERMES_CLI || HERMES_CLI_DEFAULT;
|
|
3154
3142
|
}
|
|
3155
3143
|
async function fetchSessionUsage(hermesCmd, sessionId, env, cwd) {
|
|
3156
3144
|
return new Promise((resolve) => {
|
|
@@ -3913,7 +3901,7 @@ async function checkProviderConsistency(config) {
|
|
|
3913
3901
|
}
|
|
3914
3902
|
async function testEnvironment(ctx) {
|
|
3915
3903
|
const config = ctx.config ?? {};
|
|
3916
|
-
const command = asString2(config.hermesCommand) || HERMES_CLI;
|
|
3904
|
+
const command = asString2(config.hermesCommand) || process.env.PAPERCLIP_HERMES_CLI || HERMES_CLI;
|
|
3917
3905
|
const checks = [];
|
|
3918
3906
|
const cliCheck = await checkCliInstalled(command);
|
|
3919
3907
|
if (cliCheck) {
|
|
@@ -4433,12 +4421,12 @@ async function getConfigSchema() {
|
|
|
4433
4421
|
type: "select",
|
|
4434
4422
|
default: "auto",
|
|
4435
4423
|
options: [
|
|
4436
|
-
{ value: "auto", label: "Auto (
|
|
4437
|
-
{ value: "light", label: "Light (persona drives)" },
|
|
4424
|
+
{ value: "auto", label: "Auto (Full Paperclip workflow)" },
|
|
4425
|
+
{ value: "light", label: "Light (persona drives, no API workflow)" },
|
|
4438
4426
|
{ value: "full", label: "Full (Paperclip workflow)" },
|
|
4439
4427
|
{ value: "custom", label: "Custom (use Prompt template field)" }
|
|
4440
4428
|
],
|
|
4441
|
-
hint: "How the plugin chooses the system prompt template. Auto =
|
|
4429
|
+
hint: "How the plugin chooses the system prompt template. Auto = Full unless the Prompt template field is set. Light strips the Paperclip API workflow boilerplate (issue listing, comment, close) \u2014 the agent then relies purely on AGENTS.md to know what to do, saving ~13k input tokens per wake at the cost of autonomous issue handling. Full always injects the workflow. Custom uses the Prompt template field verbatim. v0.1.7-v0.1.11 had an auto-switch to Light when AGENTS.md was substantive; v0.1.12 reverted that because it silently capped agent autonomy."
|
|
4442
4430
|
},
|
|
4443
4431
|
{
|
|
4444
4432
|
key: "promptTemplate",
|