@code-yeongyu/senpi 2026.11.13 → 2026.11.15-2
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 +45 -0
- package/dist/bundle/chunks/{args-H56W53X6.js → args-JWBI5LNO.js} +1 -1
- package/dist/bundle/chunks/{azure-openai-responses-MNN2TINI.js → azure-openai-responses-PEMLRPJ5.js} +1 -1
- package/dist/bundle/chunks/{chunk-HZQHA4PA.js → chunk-3RILB2OD.js} +1 -1
- package/dist/bundle/chunks/{chunk-BKDXY6EM.js → chunk-5NECOJNK.js} +1 -1
- package/dist/bundle/chunks/{chunk-Y4PFEXFN.js → chunk-64FJ4QQJ.js} +1 -1
- package/dist/bundle/chunks/chunk-6QQL3SKM.js +2 -0
- package/dist/bundle/chunks/{chunk-7T2LAWZ4.js → chunk-73HGQTJN.js} +1 -1
- package/dist/bundle/chunks/{chunk-U4FAWC6C.js → chunk-74HCKLRH.js} +1 -1
- package/dist/bundle/chunks/chunk-75O3CWR5.js +2 -0
- package/dist/bundle/chunks/{chunk-AZ27TE3H.js → chunk-7BX3JQ7F.js} +1 -1
- package/dist/bundle/chunks/{chunk-NDI6N4NJ.js → chunk-7CXLNKEH.js} +1 -1
- package/dist/bundle/chunks/{chunk-E6ZBTSC6.js → chunk-A3LGSX7Z.js} +1 -1
- package/dist/bundle/chunks/chunk-AH2YAO7R.js +2 -0
- package/dist/bundle/chunks/{chunk-6FE42M54.js → chunk-BMADOJHZ.js} +2 -2
- package/dist/bundle/chunks/{chunk-7GD2EO6T.js → chunk-FYVQEZYN.js} +1 -1
- package/dist/bundle/chunks/{chunk-EQT4WNCW.js → chunk-HTWWKJJI.js} +2 -2
- package/dist/bundle/chunks/{chunk-SFACYIB6.js → chunk-IK3S2NDB.js} +1 -1
- package/dist/bundle/chunks/{chunk-V4VDIV3U.js → chunk-PWA75RQU.js} +1 -1
- package/dist/bundle/chunks/{chunk-IREUIMFE.js → chunk-PWTXZXHH.js} +1 -1
- package/dist/bundle/chunks/{chunk-KKB3K5CV.js → chunk-Q4RJ4WLE.js} +1 -1
- package/dist/bundle/chunks/{chunk-NXGSYUMV.js → chunk-QSU2456D.js} +2 -2
- package/dist/bundle/chunks/chunk-QVG5SUSV.js +2 -0
- package/dist/bundle/chunks/chunk-RLIY3AUC.js +2 -0
- package/dist/bundle/chunks/{chunk-I4N2OIY4.js → chunk-RRFDLGX6.js} +26 -26
- package/dist/bundle/chunks/{chunk-JLCZIEBC.js → chunk-THYIV26N.js} +1 -1
- package/dist/bundle/chunks/{chunk-NI2AOYP6.js → chunk-TPLEPLEB.js} +3 -2
- package/dist/bundle/chunks/{chunk-CU6HUYL7.js → chunk-WAGFTIT4.js} +1 -1
- package/dist/bundle/chunks/{chunk-UYPH6RHY.js → chunk-Z4PN2MDA.js} +2 -2
- package/dist/bundle/chunks/{chunk-JJYN347Z.js → chunk-ZJUL5ODW.js} +1 -1
- package/dist/bundle/chunks/{cli-main-MY53RXU3.js → cli-main-GNQY2LTU.js} +1 -1
- package/dist/bundle/chunks/credential-accounts-RXZIUKFM.js +2 -0
- package/dist/bundle/chunks/github-copilot.js +1 -1
- package/dist/bundle/chunks/{hand-entry-AXTVMVJK.js → hand-entry-D3DNH6XL.js} +1 -1
- package/dist/bundle/chunks/{headless-host-SU5O2KZ2.js → headless-host-OEK6W65T.js} +1 -1
- package/dist/bundle/chunks/{health-write-TN7EXGLI.js → health-write-44JERGEJ.js} +1 -1
- package/dist/bundle/chunks/{help-fast-path-TFQ4HJNO.js → help-fast-path-JWHUCE4E.js} +1 -1
- package/dist/bundle/chunks/{host-command-FG56Y53E.js → host-command-O2K2WIPO.js} +1 -1
- package/dist/bundle/chunks/{host-session-command-UFEOW7EP.js → host-session-command-K3MR6RJY.js} +1 -1
- package/dist/bundle/chunks/interactive-mode-ATBPY4M5.js +2 -0
- package/dist/bundle/chunks/{login-health-XBTIORM4.js → login-health-V4B6LSCP.js} +1 -1
- package/dist/bundle/chunks/main-OMFVSMUR.js +2 -0
- package/dist/bundle/chunks/{multi-session-host-Q6SHI22A.js → multi-session-host-ACQ5N4UB.js} +6 -6
- package/dist/bundle/chunks/openai-codex-responses-G7ZXJBU6.js +10 -0
- package/dist/bundle/chunks/openai-responses-3TAF7WQF.js +5 -0
- package/dist/bundle/chunks/{package-manager-cli-LILAWI3Q.js → package-manager-cli-2VMRV4HL.js} +3 -3
- package/dist/bundle/chunks/{role-KODRTWH5.js → role-BTH5PVME.js} +1 -1
- package/dist/bundle/chunks/{rotation-stream-2KNROTYB.js → rotation-stream-ZGPXLY62.js} +1 -1
- package/dist/bundle/chunks/rpc-mode-XUK5SYKH.js +2 -0
- package/dist/bundle/chunks/{run-attached-tui-OEFHV5CZ.js → run-attached-tui-RVVYEINN.js} +1 -1
- package/dist/bundle/chunks/{schedule-command-VO4RP2KX.js → schedule-command-6TAAG2KU.js} +1 -1
- package/dist/bundle/chunks/{session-control-endpoint-CCVRJHSC.js → session-control-endpoint-Y5EIFFPY.js} +1 -1
- package/dist/bundle/chunks/{session-picker-VN5I2ZDI.js → session-picker-PRSZJYY4.js} +1 -1
- package/dist/bundle/chunks/session-slot-N4E4OSCX.js +2 -0
- package/dist/bundle/chunks/session-worker.js +74 -72
- package/dist/bundle/chunks/{state-store-7RVODZJU.js → state-store-I6MUHET3.js} +1 -1
- package/dist/bundle/cli.js +2 -2
- package/dist/bundle/index.js +1 -1
- package/dist/bundle/rpc-entry.js +1 -1
- package/dist/bundle/runtime-manifest.json +1 -1
- package/dist/core/agent-session-runtime.js +3 -3
- package/dist/core/agent-session.d.ts +5 -3
- package/dist/core/agent-session.js +20 -8
- package/dist/core/credential-accounts.d.ts +5 -3
- package/dist/core/credential-accounts.js +8 -6
- package/dist/core/credential-pool/classify.js +5 -1
- package/dist/core/extensions/builtin/anthropic-subscription/content-blocks.d.ts +6 -0
- package/dist/core/extensions/builtin/anthropic-subscription/content-blocks.js +14 -0
- package/dist/core/extensions/builtin/anthropic-subscription/prompt-bridge.js +3 -1
- package/dist/core/extensions/builtin/anthropic-subscription/session-sync.js +4 -1
- package/dist/core/extensions/builtin/permission-system/index.js +6 -1
- package/dist/core/extensions/loader.js +17 -1
- package/dist/core/extensions/runner.js +16 -2
- package/dist/core/extensions/tool-call-signal.d.ts +8 -0
- package/dist/core/extensions/tool-call-signal.js +14 -0
- package/dist/core/extensions/two-sided-forwarding.d.ts +6 -0
- package/dist/core/extensions/types.d.ts +26 -1
- package/dist/core/extensions/types.js +10 -0
- package/dist/core/reasoning-baseline.d.ts +8 -1
- package/dist/core/reasoning-baseline.js +24 -0
- package/dist/core/retry-fallback/chains.js +5 -1
- package/dist/core/retry-fallback/controller.d.ts +6 -1
- package/dist/core/retry-fallback/controller.js +11 -3
- package/dist/core/retry-fallback/expansion.js +18 -4
- package/dist/core/retry-fallback/settings.d.ts +7 -6
- package/dist/core/retry-fallback/settings.js +9 -8
- package/dist/core/runtime/bootstrap.d.ts +3 -0
- package/dist/core/runtime/bootstrap.js +1 -0
- package/dist/core/session-cwd.d.ts +15 -1
- package/dist/core/session-cwd.js +22 -1
- package/dist/core/tools/bash.d.ts +12 -0
- package/dist/core/tools/bash.js +30 -1
- package/dist/index.d.ts +4 -0
- package/dist/index.js +3 -0
- package/dist/modes/rpc/connection-handler.js +4 -0
- package/dist/modes/rpc/method-classes-schema-session.d.ts +3 -0
- package/dist/modes/rpc/method-classes-schema-session.js +6 -2
- package/dist/modes/rpc/method-classes-schema.d.ts +3 -0
- package/dist/modes/rpc/project-expected-cwd.d.ts +29 -0
- package/dist/modes/rpc/project-expected-cwd.js +45 -0
- package/dist/modes/rpc/rpc-error-types.d.ts +7 -1
- package/dist/modes/rpc/rpc-error-types.js +6 -0
- package/dist/modes/rpc/rpc-session-command-types.d.ts +3 -0
- package/dist/modes/rpc/session-router-close.js +6 -1
- package/dist/modes/rpc/session-router-open.js +5 -0
- package/dist/modes/rpc/session-status.d.ts +1 -1
- package/dist/modes/rpc/session-status.js +2 -0
- package/dist/package-manager-cli.d.ts +14 -0
- package/dist/package-manager-cli.js +20 -4
- package/dist/utils/version-check.d.ts +10 -7
- package/dist/utils/version-check.js +24 -5
- package/docs/extensions.md +12 -0
- package/docs/rpc.md +28 -13
- package/docs/settings.md +1 -1
- package/package.json +7 -7
- package/dist/bundle/chunks/chunk-GLTOBXZY.js +0 -2
- package/dist/bundle/chunks/chunk-PBUV2Z3R.js +0 -2
- package/dist/bundle/chunks/chunk-WRBOKYPS.js +0 -2
- package/dist/bundle/chunks/chunk-YT2ZSZOY.js +0 -2
- package/dist/bundle/chunks/credential-accounts-ZB5IXHIG.js +0 -2
- package/dist/bundle/chunks/interactive-mode-PHES47E3.js +0 -2
- package/dist/bundle/chunks/main-PR4FI6HQ.js +0 -2
- package/dist/bundle/chunks/openai-codex-responses-VRGOAFEG.js +0 -10
- package/dist/bundle/chunks/openai-responses-I7PXRWCM.js +0 -4
- package/dist/bundle/chunks/rpc-mode-CGVK4SSA.js +0 -2
- package/dist/bundle/chunks/session-slot-GHJVOSG7.js +0 -2
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url); { const __piWorkerThreads = require("node:worker_threads"); if (typeof __piWorkerThreads.markAsUncloneable !== "function") { __piWorkerThreads.markAsUncloneable = () => {}; } }
|
|
2
|
-
import{CONTEXT_PROVENANCE_FIELD,contextProvenanceFingerprint,getContextProvenance}from"./chunk-
|
|
2
|
+
import{CONTEXT_PROVENANCE_FIELD,contextProvenanceFingerprint,getContextProvenance}from"./chunk-PWTXZXHH.js";function isUserWord(value){return typeof value=="object"&&value!==null&&"label"in value&&typeof value.label=="string"&&"text"in value&&typeof value.text=="string"}function toolResultUserWords(message){let details=message.details;return typeof details!="object"||details===null||!("userWords"in details)?[]:Array.isArray(details.userWords)?details.userWords.filter(isUserWord):[]}function userWordBlocks(words){return words.flatMap(word=>[{type:"text",text:`[${word.label}]`},{type:"text",text:word.text}])}function appendToolResultUserWords(messages){if(!messages.some(message=>message.role==="toolResult"&&toolResultUserWords(message).length>0))return messages;let result=[],pending=[],source,flush=next=>{source&&!startsWithBlocks(next,pending)&&result.push(wordMessage(pending,source)),pending=[],source=void 0};for(let message of messages){if(message.role!=="toolResult"&&flush(message),result.push(message),message.role!=="toolResult")continue;let blocks=userWordBlocks(toolResultUserWords(message));blocks.length!==0&&(pending.push(...blocks),source=message)}return flush(void 0),result}function wordMessage(content,source){let message={role:"user",content,timestamp:source.timestamp},provenance=getContextProvenance(source);if(!provenance)return message;let{integrity,...owned}=provenance;if(!(integrity===void 0||integrity===contextProvenanceFingerprint(source)))return message;let sealed=integrity===void 0?owned:{...owned,integrity:contextProvenanceFingerprint(message)};return Object.assign(message,{[CONTEXT_PROVENANCE_FIELD]:sealed})}function startsWithBlocks(message,blocks){if(message?.role!=="user"||typeof message.content=="string")return!1;let content=message.content;return blocks.every((block,index)=>{let candidate=content[index];return candidate?.type==="text"&&candidate.text===block.text})}export{toolResultUserWords,userWordBlocks,appendToolResultUserWords};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __piCreateRequire } from "node:module"; const require = __piCreateRequire(import.meta.url); { const __piWorkerThreads = require("node:worker_threads"); if (typeof __piWorkerThreads.markAsUncloneable !== "function") { __piWorkerThreads.markAsUncloneable = () => {}; } }
|
|
2
|
+
var SHARED_SUBSCRIPTION_ITEM_LIMIT_MARKER="User subscription sharing currently supports only";function isSharedSubscriptionItemLimitMessage(message){return message.includes(SHARED_SUBSCRIPTION_ITEM_LIMIT_MARKER)}function sharedSubscriptionItemLimitMessage(provider,original){return`${original} (${provider} rejected the tool-call items this session replays under subscription sharing; switch this session to a model whose route accepts tool calls)`}var DEFAULT_WEBSOCKET_LIVENESS_POLICY={pingIntervalMs:3e4,pongTimeoutMs:2e4,maxUnansweredPings:2};function formatWebSocketLivenessFailure(silentMs,unansweredPings){return`WebSocket liveness timeout after ${silentMs}ms (${unansweredPings} pings unanswered)`}var WebSocketLivenessError=class extends Error{constructor(silentMs,unansweredPings,options){super(formatWebSocketLivenessFailure(silentMs,unansweredPings),options),this.name="WebSocketLivenessError",this.silentMs=silentMs,this.unansweredPings=unansweredPings}},INERT_MONITOR={noteActivity(){},stop(){}};function startWebSocketLiveness(socket,onDead,policy=DEFAULT_WEBSOCKET_LIVENESS_POLICY){let ping=socket.ping;if(typeof ping!="function")return INERT_MONITOR;let sendPing=ping.bind(socket),timer,silentSince=Date.now(),unansweredPings=0,stopped=!1,onFrame=()=>noteActivity();socket.addEventListener("pong",onFrame),socket.addEventListener("ping",onFrame);let stop=()=>{stopped||(stopped=!0,timer!==void 0&&clearTimeout(timer),timer=void 0,socket.removeEventListener("pong",onFrame),socket.removeEventListener("ping",onFrame))},declareDead=cause=>{let error=new WebSocketLivenessError(Date.now()-silentSince,unansweredPings,cause===void 0?void 0:{cause});stop(),onDead(error)},arm=delayMs=>{timer!==void 0&&clearTimeout(timer),timer=setTimeout(onDeadline,delayMs)},onDeadline=()=>{if(timer=void 0,!stopped){if(unansweredPings>=policy.maxUnansweredPings){declareDead();return}unansweredPings++;try{sendPing("liveness")}catch(cause){declareDead(cause);return}arm(policy.pongTimeoutMs)}},noteActivity=()=>{stopped||(silentSince=Date.now(),unansweredPings=0,arm(policy.pingIntervalMs))};return arm(policy.pingIntervalMs),{noteActivity,stop}}var WebSocketCloseError=class extends Error{constructor(message,options){super(message),this.name="WebSocketCloseError",this.code=options?.code,this.reason=options?.reason,this.wasClean=options?.wasClean}};function nonEmptyString(value){return typeof value=="string"&&value.length>0?value:void 0}function extractWebSocketErrorMessage(event){if(!event||typeof event!="object")return;let message=nonEmptyString(event.message);if(message!==void 0)return new Error(message);let nested=event.error;if(nested instanceof Error&&nested.message.length>0)return nested;if(nested&&typeof nested=="object"){let nestedMessage=nonEmptyString(nested.message);if(nestedMessage!==void 0)return new Error(nestedMessage)}}function genericWebSocketError(){return new Error("WebSocket error")}function extractWebSocketCloseError(event){if(!event||typeof event!="object")return new Error("WebSocket closed");let code=event.code,reason=nonEmptyString(event.reason),wasClean=event.wasClean,codeText=typeof code=="number"?` ${code}`:"",reasonText=reason!==void 0?` ${reason}`:code===1009?" message too big":"";return new WebSocketCloseError(`WebSocket closed${codeText}${reasonText}`.trim(),{code:typeof code=="number"?code:void 0,reason,wasClean:typeof wasClean=="boolean"?wasClean:void 0})}function createWebSocketTransportFailure(fail,graceMs=250){let grace,reported=!1,report=error=>{reported||(reported=!0,dispose(),fail(error))},dispose=()=>{grace!==void 0&&(clearTimeout(grace),grace=void 0)};return{onError(event){let error=extractWebSocketErrorMessage(event);if(error!==void 0){report(error);return}reported||grace!==void 0||(grace=setTimeout(()=>{grace=void 0,report(genericWebSocketError())},graceMs))},onClose(event){report(extractWebSocketCloseError(event))},dispose}}export{isSharedSubscriptionItemLimitMessage,sharedSubscriptionItemLimitMessage,startWebSocketLiveness,createWebSocketTransportFailure};
|