@plurnk/plurnk-service 3.0.0 → 3.2.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/.env.defaults +38 -21
- package/INSTALL.md +38 -1
- package/README.md +3 -0
- package/SPEC.md +681 -268
- package/dist/build-info.json +1 -1
- package/dist/completions/_plurnk-service +13 -0
- package/dist/completions/plurnk-service.bash +19 -0
- package/dist/completions/plurnk-service.fish +94 -0
- package/dist/content/path-mimetype.d.ts.map +1 -1
- package/dist/content/path-mimetype.js +2 -8
- package/dist/content/path-mimetype.js.map +1 -1
- package/dist/core/AdmittedTurnExecutor.d.ts +2 -2
- package/dist/core/AdmittedTurnExecutor.d.ts.map +1 -1
- package/dist/core/AdmittedTurnExecutor.js +36 -32
- package/dist/core/AdmittedTurnExecutor.js.map +1 -1
- package/dist/core/BudgetReadout.d.ts +7 -2
- package/dist/core/BudgetReadout.d.ts.map +1 -1
- package/dist/core/BudgetReadout.js +36 -5
- package/dist/core/BudgetReadout.js.map +1 -1
- package/dist/{schemes/_derivation-use.d.ts → core/ContentUse.d.ts} +3 -3
- package/dist/core/ContentUse.d.ts.map +1 -0
- package/dist/{schemes/_derivation-use.js → core/ContentUse.js} +8 -7
- package/dist/core/ContentUse.js.map +1 -0
- package/dist/core/DataStatementRunner.d.ts.map +1 -1
- package/dist/core/DataStatementRunner.js +8 -20
- package/dist/core/DataStatementRunner.js.map +1 -1
- package/dist/core/Dispatcher.d.ts +11 -3
- package/dist/core/Dispatcher.d.ts.map +1 -1
- package/dist/core/Dispatcher.js +186 -109
- package/dist/core/Dispatcher.js.map +1 -1
- package/dist/core/EditMutations.js +1 -1
- package/dist/core/EditMutations.js.map +1 -1
- package/dist/core/Engine.d.ts +1 -1
- package/dist/core/Engine.d.ts.map +1 -1
- package/dist/core/Engine.js +4 -7
- package/dist/core/Engine.js.map +1 -1
- package/dist/core/EnvFlags.js +1 -1
- package/dist/core/EnvFlags.js.map +1 -1
- package/dist/core/FabricatedLog.d.ts +1 -0
- package/dist/core/FabricatedLog.d.ts.map +1 -1
- package/dist/core/FabricatedLog.js +8 -0
- package/dist/core/FabricatedLog.js.map +1 -1
- package/dist/core/FileAddress.d.ts +12 -0
- package/dist/core/FileAddress.d.ts.map +1 -0
- package/dist/core/FileAddress.js +73 -0
- package/dist/core/FileAddress.js.map +1 -0
- package/dist/core/FilePublication.d.ts +15 -0
- package/dist/core/FilePublication.d.ts.map +1 -0
- package/dist/core/FilePublication.js +143 -0
- package/dist/core/FilePublication.js.map +1 -0
- package/dist/core/FileSnapshot.d.ts +26 -0
- package/dist/core/FileSnapshot.d.ts.map +1 -0
- package/dist/core/FileSnapshot.js +179 -0
- package/dist/core/FileSnapshot.js.map +1 -0
- package/dist/core/KillHandler.d.ts.map +1 -1
- package/dist/core/KillHandler.js +4 -1
- package/dist/core/KillHandler.js.map +1 -1
- package/dist/core/LiveSubscription.d.ts.map +1 -1
- package/dist/core/LiveSubscription.js +14 -2
- package/dist/core/LiveSubscription.js.map +1 -1
- package/dist/core/LiveSubscriptions.d.ts +3 -1
- package/dist/core/LiveSubscriptions.d.ts.map +1 -1
- package/dist/core/LiveSubscriptions.js +16 -1
- package/dist/core/LiveSubscriptions.js.map +1 -1
- package/dist/core/LogBody.d.ts.map +1 -1
- package/dist/core/LogBody.js +3 -1
- package/dist/core/LogBody.js.map +1 -1
- package/dist/core/LoopDriver.d.ts.map +1 -1
- package/dist/core/LoopDriver.js +3 -0
- package/dist/core/LoopDriver.js.map +1 -1
- package/dist/core/LoopLifecycle.sql +1 -0
- package/dist/core/MembershipMaterialization.d.ts.map +1 -1
- package/dist/core/MembershipMaterialization.js +87 -143
- package/dist/core/MembershipMaterialization.js.map +1 -1
- package/dist/core/MessageResources.sql +31 -0
- package/dist/core/MutationEffects.d.ts +2 -1
- package/dist/core/MutationEffects.d.ts.map +1 -1
- package/dist/core/MutationEffects.js +14 -1
- package/dist/core/MutationEffects.js.map +1 -1
- package/dist/core/PacketBuilder.d.ts +2 -2
- package/dist/core/PacketBuilder.d.ts.map +1 -1
- package/dist/core/PacketBuilder.js +123 -51
- package/dist/core/PacketBuilder.js.map +1 -1
- package/dist/core/PacketBuilder.sql +21 -14
- package/dist/core/PathGlob.d.ts +6 -0
- package/dist/core/PathGlob.d.ts.map +1 -0
- package/dist/core/PathGlob.js +24 -0
- package/dist/core/PathGlob.js.map +1 -0
- package/dist/core/ProposalLifecycle.d.ts +2 -1
- package/dist/core/ProposalLifecycle.d.ts.map +1 -1
- package/dist/core/ProposalLifecycle.js +45 -33
- package/dist/core/ProposalLifecycle.js.map +1 -1
- package/dist/core/ProposalLifecycle.sql +4 -0
- package/dist/core/ReplyMetadata.d.ts +10 -0
- package/dist/core/ReplyMetadata.d.ts.map +1 -0
- package/dist/core/ReplyMetadata.js +20 -0
- package/dist/core/ReplyMetadata.js.map +1 -0
- package/dist/core/ResourceBindings.d.ts.map +1 -1
- package/dist/core/ResourceBindings.js +4 -3
- package/dist/core/ResourceBindings.js.map +1 -1
- package/dist/core/ResourceSelector.d.ts +1 -2
- package/dist/core/ResourceSelector.d.ts.map +1 -1
- package/dist/core/ResourceSelector.js +30 -9
- package/dist/core/ResourceSelector.js.map +1 -1
- package/dist/core/ResourceTransfers.d.ts +1 -1
- package/dist/core/ResourceTransfers.d.ts.map +1 -1
- package/dist/core/ResourceTransfers.js +26 -11
- package/dist/core/ResourceTransfers.js.map +1 -1
- package/dist/core/ServiceHelp.d.ts +6 -0
- package/dist/core/ServiceHelp.d.ts.map +1 -0
- package/dist/core/ServiceHelp.js +35 -0
- package/dist/core/ServiceHelp.js.map +1 -0
- package/dist/core/StoredPacket.d.ts +1 -0
- package/dist/core/StoredPacket.d.ts.map +1 -1
- package/dist/core/StoredPacket.js +4 -1
- package/dist/core/StoredPacket.js.map +1 -1
- package/dist/core/StrikeRail.d.ts.map +1 -1
- package/dist/core/StrikeRail.js +2 -2
- package/dist/core/StrikeRail.js.map +1 -1
- package/dist/core/TokenCalibration.d.ts +2 -2
- package/dist/core/TokenCalibration.d.ts.map +1 -1
- package/dist/core/TokenCalibration.js +12 -16
- package/dist/core/TokenCalibration.js.map +1 -1
- package/dist/core/TokenCalibration.sql +29 -6
- package/dist/core/TurnDispositionHandler.d.ts +1 -2
- package/dist/core/TurnDispositionHandler.d.ts.map +1 -1
- package/dist/core/TurnDispositionHandler.js +30 -26
- package/dist/core/TurnDispositionHandler.js.map +1 -1
- package/dist/core/TurnMaterialization.d.ts.map +1 -1
- package/dist/core/TurnMaterialization.js +11 -1
- package/dist/core/TurnMaterialization.js.map +1 -1
- package/dist/core/TurnOps.d.ts +5 -1
- package/dist/core/TurnOps.d.ts.map +1 -1
- package/dist/core/TurnOps.js +29 -2
- package/dist/core/TurnOps.js.map +1 -1
- package/dist/core/TurnRunner.d.ts.map +1 -1
- package/dist/core/TurnRunner.js +122 -56
- package/dist/core/TurnRunner.js.map +1 -1
- package/dist/core/TurnSources.sql +2 -2
- package/dist/core/caps/SchemeCtxImpl.d.ts +1 -0
- package/dist/core/caps/SchemeCtxImpl.d.ts.map +1 -1
- package/dist/core/caps/SchemeCtxImpl.js +5 -0
- package/dist/core/caps/SchemeCtxImpl.js.map +1 -1
- package/dist/core/git-membership.d.ts +1 -0
- package/dist/core/git-membership.d.ts.map +1 -1
- package/dist/core/git-membership.js +9 -11
- package/dist/core/git-membership.js.map +1 -1
- package/dist/core/glob_match.js +3 -3
- package/dist/core/glob_match.js.map +1 -1
- package/dist/core/mutation-types.d.ts +3 -0
- package/dist/core/mutation-types.d.ts.map +1 -1
- package/dist/core/namespace.d.ts +4 -1
- package/dist/core/namespace.d.ts.map +1 -1
- package/dist/core/namespace.js +14 -3
- package/dist/core/namespace.js.map +1 -1
- package/dist/core/packet-wire.d.ts +7 -1
- package/dist/core/packet-wire.d.ts.map +1 -1
- package/dist/core/packet-wire.js +98 -36
- package/dist/core/packet-wire.js.map +1 -1
- package/dist/core/plurnk-uri.d.ts +3 -2
- package/dist/core/plurnk-uri.d.ts.map +1 -1
- package/dist/core/plurnk-uri.js +23 -11
- package/dist/core/plurnk-uri.js.map +1 -1
- package/dist/core/recap-lines.d.ts +4 -0
- package/dist/core/recap-lines.d.ts.map +1 -0
- package/dist/core/recap-lines.js +11 -0
- package/dist/core/recap-lines.js.map +1 -0
- package/dist/core/scheme-types.d.ts +1 -0
- package/dist/core/scheme-types.d.ts.map +1 -1
- package/dist/core/sql-functions.d.ts +2 -0
- package/dist/core/sql-functions.d.ts.map +1 -0
- package/dist/core/sql-functions.js +5 -0
- package/dist/core/sql-functions.js.map +1 -0
- package/dist/core/sqlite-synchronous.d.ts +2 -0
- package/dist/core/sqlite-synchronous.d.ts.map +1 -0
- package/dist/core/sqlite-synchronous.js +4 -0
- package/dist/core/sqlite-synchronous.js.map +1 -0
- package/dist/core/turn-scheduler.d.ts.map +1 -1
- package/dist/core/turn-scheduler.js +1 -1
- package/dist/core/turn-scheduler.js.map +1 -1
- package/dist/evidence/EvidenceReader.d.ts.map +1 -1
- package/dist/evidence/EvidenceReader.js +23 -3
- package/dist/evidence/EvidenceReader.js.map +1 -1
- package/dist/evidence/digest.sql +7 -1
- package/dist/man/plurnk-service.1 +499 -0
- package/dist/schemes/Env.d.ts +26 -0
- package/dist/schemes/Env.d.ts.map +1 -0
- package/dist/schemes/Env.js +133 -0
- package/dist/schemes/Env.js.map +1 -0
- package/dist/schemes/Exec.d.ts.map +1 -1
- package/dist/schemes/Exec.js +15 -15
- package/dist/schemes/Exec.js.map +1 -1
- package/dist/schemes/ExecOutputScheme.d.ts +3 -2
- package/dist/schemes/ExecOutputScheme.d.ts.map +1 -1
- package/dist/schemes/ExecOutputScheme.js +9 -0
- package/dist/schemes/ExecOutputScheme.js.map +1 -1
- package/dist/schemes/File.d.ts +1 -0
- package/dist/schemes/File.d.ts.map +1 -1
- package/dist/schemes/File.js +233 -268
- package/dist/schemes/File.js.map +1 -1
- package/dist/schemes/Log.d.ts.map +1 -1
- package/dist/schemes/Log.js +97 -17
- package/dist/schemes/Log.js.map +1 -1
- package/dist/schemes/Log.sql +9 -0
- package/dist/schemes/Worker.js +1 -1
- package/dist/schemes/Worker.js.map +1 -1
- package/dist/schemes/_entry-crud.d.ts +2 -0
- package/dist/schemes/_entry-crud.d.ts.map +1 -1
- package/dist/schemes/_entry-crud.js +8 -5
- package/dist/schemes/_entry-crud.js.map +1 -1
- package/dist/schemes/_entry-crud.sql +15 -15
- package/dist/schemes/_entry-find.d.ts +2 -1
- package/dist/schemes/_entry-find.d.ts.map +1 -1
- package/dist/schemes/_entry-find.js +31 -19
- package/dist/schemes/_entry-find.js.map +1 -1
- package/dist/schemes/_entry-manifest.d.ts +2 -2
- package/dist/schemes/_entry-manifest.d.ts.map +1 -1
- package/dist/schemes/_entry-manifest.js +10 -8
- package/dist/schemes/_entry-manifest.js.map +1 -1
- package/dist/schemes/_entry-ops.d.ts.map +1 -1
- package/dist/schemes/_entry-ops.js +9 -7
- package/dist/schemes/_entry-ops.js.map +1 -1
- package/dist/schemes/_path-scope.d.ts.map +1 -1
- package/dist/schemes/_path-scope.js +12 -4
- package/dist/schemes/_path-scope.js.map +1 -1
- package/dist/schemes/_search-index.js +3 -3
- package/dist/schemes/_search-index.js.map +1 -1
- package/dist/schemes/exec-abort.js +2 -2
- package/dist/schemes/exec-abort.js.map +1 -1
- package/dist/schemes/exec-env.d.ts.map +1 -1
- package/dist/schemes/exec-env.js +7 -22
- package/dist/schemes/exec-env.js.map +1 -1
- package/dist/server/Daemon.d.ts +1 -0
- package/dist/server/Daemon.d.ts.map +1 -1
- package/dist/server/Daemon.js +45 -68
- package/dist/server/Daemon.js.map +1 -1
- package/dist/server/DrainSupervisor.d.ts +2 -3
- package/dist/server/DrainSupervisor.d.ts.map +1 -1
- package/dist/server/DrainSupervisor.js +34 -6
- package/dist/server/DrainSupervisor.js.map +1 -1
- package/dist/server/EnvFunctionality.d.ts +4 -2
- package/dist/server/EnvFunctionality.d.ts.map +1 -1
- package/dist/server/EnvFunctionality.js +23 -12
- package/dist/server/EnvFunctionality.js.map +1 -1
- package/dist/server/Functionality.d.ts.map +1 -1
- package/dist/server/Functionality.js +15 -8
- package/dist/server/Functionality.js.map +1 -1
- package/dist/server/FunctionalityManager.d.ts +1 -1
- package/dist/server/FunctionalityManager.d.ts.map +1 -1
- package/dist/server/FunctionalityManager.js +5 -1
- package/dist/server/FunctionalityManager.js.map +1 -1
- package/dist/server/MembersFunctionality.d.ts.map +1 -1
- package/dist/server/MembersFunctionality.js +12 -12
- package/dist/server/MembersFunctionality.js.map +1 -1
- package/dist/server/Retention.d.ts.map +1 -1
- package/dist/server/Retention.js +5 -5
- package/dist/server/Retention.js.map +1 -1
- package/dist/server/Retention.sql +49 -23
- package/dist/server/client-input.d.ts.map +1 -1
- package/dist/server/client-input.js +12 -3
- package/dist/server/client-input.js.map +1 -1
- package/dist/server/drain.sql +10 -9
- package/dist/server/lifecycle-recovery.sql +4 -1
- package/dist/service.d.ts.map +1 -1
- package/dist/service.js +9 -31
- package/dist/service.js.map +1 -1
- package/docs/copy-move.md +3 -0
- package/docs/env.md +32 -4
- package/docs/members.md +16 -1
- package/migrations/018_worker_owners.sql +1 -0
- package/migrations/019_interactive_owners.sql +1 -0
- package/migrations/020_log_projection.sql +1 -0
- package/migrations/021_packet_roles.sql +86 -0
- package/migrations/022_message_completion.sql +24 -0
- package/migrations/023_file_revisions.sql +54 -0
- package/migrations/024_proposal_decisions.sql +34 -0
- package/migrations/025_response_retention.sql +30 -0
- package/package.json +38 -34
- package/dist/schemes/_derivation-use.d.ts.map +0 -1
- package/dist/schemes/_derivation-use.js.map +0 -1
package/.env.defaults
CHANGED
|
@@ -20,8 +20,11 @@ PLURNK_SERVICE_SHARE_FOLDER=
|
|
|
20
20
|
# The listener's address, PLURNK_HOST and PLURNK_PORT, is shared with every client and so is
|
|
21
21
|
# declared by @plurnk/plurnk-contracts; --host and --port still spell it for one invocation.
|
|
22
22
|
|
|
23
|
-
# --- SQLite
|
|
24
|
-
#
|
|
23
|
+
# --- SQLite ---
|
|
24
|
+
# WAL durability ({§db-durability}): FULL syncs every commit; NORMAL may lose recent commits
|
|
25
|
+
# on power loss; OFF may corrupt the database; EXTRA equals FULL in WAL. Applied before migration.
|
|
26
|
+
PLURNK_SERVICE_SQLITE_SYNCHRONOUS=FULL
|
|
27
|
+
# Lock wait, ms; 0 = immediate failure. Unset = sqlrite's default.
|
|
25
28
|
# PLURNK_SERVICE_SQLITE_TIMEOUT=5000
|
|
26
29
|
# Page cache: positive = pages; negative = KiB. Unset = SQLite default.
|
|
27
30
|
# PLURNK_SERVICE_SQLITE_CACHE_SIZE=-16000
|
|
@@ -69,7 +72,7 @@ PLURNK_SERVICE_FILE_MATERIALIZE_MAX_BYTES=104857600
|
|
|
69
72
|
# Opt-in model-call ceiling shared by the worker tree, including BARE and resumes; -1 = uncapped.
|
|
70
73
|
# Runtime (_plurnk) ancestry supplies no ceiling. Clients may tighten the model tree's limit.
|
|
71
74
|
PLURNK_SERVICE_MAX_TURNS=-1
|
|
72
|
-
#
|
|
75
|
+
# Resolved actions per emission, including glob targets; -1 = unlimited. WAIT remains exempt.
|
|
73
76
|
PLURNK_SERVICE_MAX_COMMANDS=-1
|
|
74
77
|
# Concurrent live workers per workspace; -1 = unlimited. Excess spawns return 508, not a queue.
|
|
75
78
|
PLURNK_SERVICE_WORKSPACE_WORKERS_MAX_ACTIVE=-1
|
|
@@ -128,14 +131,14 @@ PLURNK_SERVICE_EFFECT_READ=auto
|
|
|
128
131
|
PLURNK_SERVICE_EFFECT_PURE=auto
|
|
129
132
|
# Brief settlement wait for new streams/completing siblings, ms; 0 = off; quiescence ends it early.
|
|
130
133
|
PLURNK_SERVICE_OPTIMISTIC_WAIT_MS=5000
|
|
131
|
-
# Maximum park before reassessing live work, positive seconds; WAIT
|
|
134
|
+
# Maximum park before reassessing live work, positive seconds; WAIT [seconds] overrides one park.
|
|
132
135
|
PLURNK_SERVICE_WAIT_SEC=300
|
|
133
136
|
# Ambient environment an EXEC subprocess may inherit from the host: exact names, or one
|
|
134
|
-
# trailing-* prefix glob. This
|
|
135
|
-
#
|
|
136
|
-
#
|
|
137
|
+
# trailing-* prefix glob. This bounds inherited host values, not explicit non-reserved values.
|
|
138
|
+
# PLURNK_* and provider credential names remain excluded regardless of these selectors.
|
|
139
|
+
# Module-owned launches and explicit MCP bindings follow their own launch contract.
|
|
137
140
|
# The shipped list is what a shell, git, node and python need to run at all. An operator
|
|
138
|
-
# who wants a tool
|
|
141
|
+
# who wants a non-reserved tool credential inherited by commands adds its name.
|
|
139
142
|
PLURNK_SERVICE_EXEC_ENV_INHERIT=PATH,HOME,USER,LOGNAME,SHELL,PWD,TMPDIR,TERM,TZ,LANG,LC_*,PAGER,GIT_PAGER,NO_COLOR,CI
|
|
140
143
|
# Names removed after INHERIT, same shapes; narrows without rewriting the list above.
|
|
141
144
|
PLURNK_SERVICE_EXEC_ENV_EXCLUDE=
|
|
@@ -151,20 +154,29 @@ PLURNK_SERVICE_EDIT_RECEIPT_CONTEXT_LINES=4
|
|
|
151
154
|
PLURNK_SERVICE_EDIT_RECEIPT_REMOVED_LINES=40
|
|
152
155
|
# Paths named per class in the packet's git status; the rest are counted.
|
|
153
156
|
PLURNK_SERVICE_GIT_STATUS_PATHS=8
|
|
154
|
-
#
|
|
157
|
+
# Above this share of the budget, measured before adding either, the Context gauge names its largest rows
|
|
158
|
+
# and a packet within its budget carries the budget_pressure notice ({§context-pressure-notice}).
|
|
159
|
+
PLURNK_SERVICE_BUDGET_PRESSURE=80%
|
|
160
|
+
# Heaviest retained log rows the pressured Context gauge names, as {path, tokens}; 0 names none.
|
|
155
161
|
PLURNK_SERVICE_BUDGET_LARGEST_ITEMS=5
|
|
156
162
|
# First page of everything that comes back unasked in size: a READ or FIND without a scope, a stream's
|
|
157
163
|
# delivery, a peer worker's message, a receipt the model did not author ({§markerless-first-page}).
|
|
158
|
-
# Lines of text, bytes of a byte view, results of a FIND; explicit scopes stay exact.
|
|
164
|
+
# Lines of text, bytes of a byte view, results of a FIND; explicit scopes stay exact. 100 is a page for
|
|
165
|
+
# the million-token windows hosted models have; a deployment with a small room tunes it down.
|
|
159
166
|
PLURNK_SERVICE_PREVIEW_LINES=100
|
|
160
167
|
# Independent bound on the same page, Unicode code points; CRLF counts as one separator.
|
|
161
168
|
PLURNK_SERVICE_PREVIEW_CHARS=16000
|
|
169
|
+
# Assistant replay ({§emission-history}): none, latest, or all eligible turns from this loop, each as the
|
|
170
|
+
# NOTEs it wrote, in the model's voice; every other operation is omitted. The context wall may omit
|
|
171
|
+
# the whole section; source evidence never changes.
|
|
172
|
+
PLURNK_SERVICE_EMISSION_HISTORY=all
|
|
162
173
|
# Optional reasoning memory ({§reasoning-row}): 1 adds the turn's preview before its emission or results,
|
|
163
174
|
# only when room remains after all requested results and diagnostics. Otherwise omit it silently. 0 disables it.
|
|
164
|
-
PLURNK_SERVICE_REASONING_ROWS=
|
|
175
|
+
PLURNK_SERVICE_REASONING_ROWS=0
|
|
165
176
|
# The row's page ({§reasoning-row}): reasoning that fits it lands whole; longer reasoning lands as its last page,
|
|
166
177
|
# this many lines within PLURNK_SERVICE_PREVIEW_CHARS, because a turn's conclusions and plan sit at its end; the
|
|
167
|
-
# rest stays readable at reasoning://.
|
|
178
|
+
# rest stays readable at reasoning://. -1 returns the complete reasoning without either preview bound,
|
|
179
|
+
# still only if it fits. Unset/empty = the shared page, PLURNK_SERVICE_PREVIEW_LINES; 0 is invalid.
|
|
168
180
|
# PLURNK_SERVICE_REASONING_TRAILING_LINES=40
|
|
169
181
|
# Code points of an entry's prose summary the catalog shows whole.
|
|
170
182
|
PLURNK_SERVICE_CATALOG_SUMMARY_CHARS=256
|
|
@@ -193,6 +205,10 @@ PLURNK_SERVICE_ROOTS=project,plurnk,global
|
|
|
193
205
|
# PLURNK_SERVICE_POLICY=
|
|
194
206
|
# Recap file, relative to the package root; unset = packaged recap.md; empty file omits the section.
|
|
195
207
|
# PLURNK_SERVICE_RECAP=
|
|
208
|
+
# Recap lines, one per key: PLURNK_SERVICE_RECAP_LINE_<alias>=<line> ({§recap-lines}). Each opens with YOU MUST,
|
|
209
|
+
# YOU MUST NOT, YOU MUST ONLY, YOU SHOULD, YOU SHOULD NOT or YOU MAY and renders as one callout, in alias order,
|
|
210
|
+
# ahead of the Recap source. An empty value turns a shipped line off.
|
|
211
|
+
# PLURNK_SERVICE_RECAP_LINE_<alias>=
|
|
196
212
|
|
|
197
213
|
# --- Search indexing ---
|
|
198
214
|
# Comma-separated globs excluded from derivation, not READ. No slash = basename; slash = pathname.
|
|
@@ -207,23 +223,24 @@ PLURNK_SERVICE_DERIVE_STORE_BATCH=1024
|
|
|
207
223
|
# Progress heartbeat, ms; starts, failures, and completion are immediate; no-op passes stay silent.
|
|
208
224
|
PLURNK_SERVICE_DERIVE_PROGRESS_HEARTBEAT_MS=15000
|
|
209
225
|
|
|
210
|
-
# --- Retention:
|
|
211
|
-
# Packet compositions kept per loop, newest first; -1
|
|
226
|
+
# --- Retention: packet/response bodies and unreferenced content ({§retention-policy}) ---
|
|
227
|
+
# Packet compositions kept per loop, newest first; -1 disables the count limit, not the age limit.
|
|
212
228
|
PLURNK_SERVICE_RETAIN_PACKET_TURNS=-1
|
|
213
|
-
# Packet compositions kept by age, ms since the turn completed; -1
|
|
214
|
-
# no worker reads its own packets back that late, and a daemon left running for months stops growing.
|
|
229
|
+
# Packet compositions kept by age, ms since the turn completed; -1 disables the age limit.
|
|
215
230
|
PLURNK_SERVICE_RETAIN_PACKET_MS=2592000000
|
|
216
|
-
#
|
|
217
|
-
#
|
|
231
|
+
# Calls with captured payloads kept per loop, newest first; -1 disables the count limit.
|
|
232
|
+
# These controls do not retire messages, turn sources, operations, approval decisions or accounting.
|
|
218
233
|
PLURNK_SERVICE_RETAIN_RESPONSE_TURNS=-1
|
|
219
|
-
#
|
|
234
|
+
# Call payloads kept by age, ms since the turn completed; -1 disables the age limit.
|
|
235
|
+
# Covers normalized responses and all physical-request payloads, including failed retries.
|
|
236
|
+
# Identities, status, usage and cost remain; retirement is timestamped on the logical call.
|
|
220
237
|
PLURNK_SERVICE_RETAIN_RESPONSE_MS=2592000000
|
|
221
238
|
# Collect packet items no turn's composition references (1), or keep them (0).
|
|
222
239
|
PLURNK_SERVICE_COLLECT_PACKET_ITEMS=1
|
|
223
240
|
# Collect derivations no channel, turn source, or log row cites (1), or keep them (0).
|
|
224
241
|
PLURNK_SERVICE_COLLECT_DERIVATIONS=1
|
|
225
|
-
# Collect
|
|
226
|
-
# ({§content-
|
|
242
|
+
# Collect unreferenced text and native bodies (1), or keep them (0).
|
|
243
|
+
# Retained messages, operations and packet attachments pin native bytes ({§native-content-lifetime}).
|
|
227
244
|
PLURNK_SERVICE_COLLECT_CONTENTS=1
|
|
228
245
|
# Retention cadence while the daemon runs, ms; 0 = at shutdown only.
|
|
229
246
|
PLURNK_SERVICE_RETENTION_INTERVAL_MS=3600000
|
package/INSTALL.md
CHANGED
|
@@ -79,6 +79,25 @@ sidecars together. Copy the backup to a fresh working path, select that path wit
|
|
|
79
79
|
`PLURNK_SERVICE_DB_PATH`, and start the same or a newer compatible service version.
|
|
80
80
|
Do not overwrite a live database or pair a restored file with old sidecars.
|
|
81
81
|
|
|
82
|
+
| Restored input | Startup behaviour |
|
|
83
|
+
| --- | --- |
|
|
84
|
+
| Database | Retained history, approval decisions, attachments and workspace/worker configuration return. Interrupted work is settled without replaying uncertain effects ({§worker-lifecycle-restart-recovery}). |
|
|
85
|
+
| Project files and service configuration | Restore separately. Current files remain authoritative; startup reads the current configuration, not an earlier ambient environment captured in history. |
|
|
86
|
+
| Schedules | Enabled definitions rearm from the present; missed occurrences are not replayed ({§schedule-residency}, {§schedule-first-arming}). |
|
|
87
|
+
| Interactive MCP authorization | Reauthorize. Tokens and pending sign-ins are process-local, not part of the database backup ({§oauth-lifetime}). |
|
|
88
|
+
|
|
89
|
+
Retention controls expire packet compositions and call payloads, including physical-request
|
|
90
|
+
captures. Messages, turn sources, operation receipts, approval decisions and request accounting
|
|
91
|
+
remain with their containing history ({§retention-policy}); referenced attachment bytes remain
|
|
92
|
+
too ({§native-content-lifetime}). This is not content erasure. A share contains only what remains
|
|
93
|
+
when it is taken.
|
|
94
|
+
|
|
95
|
+
`PLURNK_SERVICE_SQLITE_SYNCHRONOUS` selects the database's WAL durability before migrations
|
|
96
|
+
or startup writes. Its shipped setting is in `.env.defaults`. `FULL` synchronizes every commit
|
|
97
|
+
to storage; selecting `NORMAL` explicitly trades power-loss durability for fewer synchronizations.
|
|
98
|
+
The guarantees and storage assumptions are defined in {§db-durability}. Neither setting makes
|
|
99
|
+
project-file writes transactional or replaces backups.
|
|
100
|
+
|
|
82
101
|
## Precedence
|
|
83
102
|
|
|
84
103
|
Highest priority first ({§operator-config-precedence}):
|
|
@@ -101,13 +120,31 @@ Extension settings remain environment/configuration values; they do not extend t
|
|
|
101
120
|
service CLI. Boolean flags use `1` and `0`. An empty value is not an unset value;
|
|
102
121
|
the owning declaration specifies its meaning.
|
|
103
122
|
|
|
123
|
+
## Manual and shell completions
|
|
124
|
+
|
|
125
|
+
The installed package includes a generated manual and static completions. They
|
|
126
|
+
require no running daemon. Find the global npm package at
|
|
127
|
+
`$(npm root -g)/@plurnk/plurnk-service`; the paths below are relative to it.
|
|
128
|
+
|
|
129
|
+
| Artifact | Use |
|
|
130
|
+
| --- | --- |
|
|
131
|
+
| `dist/man/plurnk-service.1` | Open with `man /path/to/plurnk-service.1`, or copy into a directory on `MANPATH` (commonly `~/.local/share/man/man1/`). |
|
|
132
|
+
| `dist/completions/plurnk-service.bash` | Source from your Bash configuration. |
|
|
133
|
+
| `dist/completions/_plurnk-service` | Copy into a directory on Zsh's `fpath` before `compinit`. |
|
|
134
|
+
| `dist/completions/plurnk-service.fish` | Copy into `~/.config/fish/completions/`, or the corresponding `XDG_CONFIG_HOME` location. |
|
|
135
|
+
|
|
136
|
+
Completion offers command names, long options and filenames. Configuration
|
|
137
|
+
values remain in `plurnk-service config defaults`, not a separate static catalog.
|
|
138
|
+
Package installation does not edit shell configuration or install these files
|
|
139
|
+
outside the package.
|
|
140
|
+
|
|
104
141
|
## Choose the right scope
|
|
105
142
|
|
|
106
143
|
| Change | Owner and effect |
|
|
107
144
|
| --- | --- |
|
|
108
145
|
| Startup defaults or installed extension configuration | The daemon's environment cascade. A remote client's shell does not change it. |
|
|
109
146
|
| Model, reasoning, child model | Worker selections persist. Set them through client controls; changing a startup default does not retarget an existing Worker. |
|
|
110
|
-
| MCPs, skills, outbound agents, schedules, membership | Workspace Functionality: list, discover, add, enable, disable, remove. Workers share the workspace's current selection. |
|
|
147
|
+
| MCPs, skills, outbound agents, schedules, membership | Workspace Functionality: list, discover, add, replace, enable, disable, remove. Workers share the workspace's current selection. |
|
|
111
148
|
| Command environment | `env` manages worker overrides or workspace defaults. It does not reconfigure the daemon; running processes keep their launch environment. |
|
|
112
149
|
| External capabilities | Service policy is a ceiling; workspace policy can narrow it for every worker. Hiding a doc does not grant or revoke authority. |
|
|
113
150
|
| Proposal review / YOLO | Decides who accepts or rejects an admitted operation. Automatic acceptance never overrides capability or resource permissions. |
|
package/README.md
CHANGED
|
@@ -5,6 +5,9 @@ operation dispatch. Its client surface is AG-UI over HTTP/SSE through
|
|
|
5
5
|
`@plurnk/plurnk-agui`. The user-facing CLI lives in
|
|
6
6
|
[plurnk](https://github.com/plurnk/plurnk).
|
|
7
7
|
|
|
8
|
+
See [installation and configuration](INSTALL.md), including the packaged
|
|
9
|
+
[manual and shell completions](INSTALL.md#manual-and-shell-completions).
|
|
10
|
+
|
|
8
11
|
## What an agent can do
|
|
9
12
|
|
|
10
13
|
The exact model-facing language and operation set are owned by
|