hinacode 0.3.0-alpha.6 → 0.3.0-alpha.8
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/out/server/chunks/{remote-DE8gPkc-.js → remote-Cc8fvZ8_.js} +216 -213
- package/out/server/chunks/sdk-DZclv7I1.js +33693 -0
- package/out/server/cli.js +1 -1
- package/out/server/daemon.js +958 -294
- package/package.json +1 -1
- package/out/server/chunks/sdk-BjcPK2t_.js +0 -30502
|
@@ -3,7 +3,7 @@ globalThis.require ??= __createRequire(import.meta.url);
|
|
|
3
3
|
import * as crypto from "node:crypto";
|
|
4
4
|
import { createHash } from "node:crypto";
|
|
5
5
|
import * as NFS from "node:fs";
|
|
6
|
-
import * as
|
|
6
|
+
import * as NL from "node:os";
|
|
7
7
|
import { tmpdir, userInfo } from "node:os";
|
|
8
8
|
import * as path from "node:path";
|
|
9
9
|
import { join as join$1 } from "node:path";
|
|
@@ -12215,7 +12215,7 @@ const makeTempDirectoryFactory = (method) => {
|
|
|
12215
12215
|
const nodeMkdtemp = effectify(NFS.mkdtemp, handleErrnoException("FileSystem", method), handleBadArgument(method));
|
|
12216
12216
|
return (options) => suspend$2(() => {
|
|
12217
12217
|
const prefix = options?.prefix ?? "";
|
|
12218
|
-
const directory = typeof options?.directory === "string" ? path.join(options.directory, ".") :
|
|
12218
|
+
const directory = typeof options?.directory === "string" ? path.join(options.directory, ".") : NL.tmpdir();
|
|
12219
12219
|
return nodeMkdtemp(prefix ? path.join(directory, prefix) : directory + "/");
|
|
12220
12220
|
});
|
|
12221
12221
|
};
|
|
@@ -15759,6 +15759,8 @@ const SubagentStatus = Literals(["running", "completed", "failed", "stopped"]);
|
|
|
15759
15759
|
const Subagent = Struct({
|
|
15760
15760
|
id: String$1,
|
|
15761
15761
|
provider: optionalKey(ProviderId),
|
|
15762
|
+
model: optionalKey(String$1),
|
|
15763
|
+
effort: optionalKey(String$1),
|
|
15762
15764
|
label: String$1,
|
|
15763
15765
|
callId: NullOr(String$1),
|
|
15764
15766
|
status: SubagentStatus,
|
|
@@ -15834,7 +15836,8 @@ const AgentEvent = Union2([
|
|
|
15834
15836
|
message: String$1,
|
|
15835
15837
|
stopped: optional(Boolean$1),
|
|
15836
15838
|
signedOut: optional(Boolean$1),
|
|
15837
|
-
loginCommand: optional(String$1)
|
|
15839
|
+
loginCommand: optional(String$1),
|
|
15840
|
+
sessionLost: optional(Boolean$1)
|
|
15838
15841
|
}),
|
|
15839
15842
|
Struct({ type: Literal2("turn_limited"), limit: UsageLimit })
|
|
15840
15843
|
]);
|
|
@@ -22130,24 +22133,24 @@ export {
|
|
|
22130
22133
|
toArray as e7,
|
|
22131
22134
|
cachedWithTTL as e8,
|
|
22132
22135
|
minutes as e9,
|
|
22133
|
-
|
|
22134
|
-
|
|
22135
|
-
|
|
22136
|
-
|
|
22137
|
-
|
|
22138
|
-
|
|
22139
|
-
|
|
22140
|
-
|
|
22141
|
-
|
|
22142
|
-
|
|
22143
|
-
|
|
22144
|
-
|
|
22145
|
-
|
|
22146
|
-
|
|
22147
|
-
|
|
22148
|
-
|
|
22149
|
-
|
|
22150
|
-
make$
|
|
22136
|
+
interruptWhen as eA,
|
|
22137
|
+
concat as eB,
|
|
22138
|
+
fromEffectDrain as eC,
|
|
22139
|
+
fromEffect as eD,
|
|
22140
|
+
fromIterableEffect as eE,
|
|
22141
|
+
suspend as eF,
|
|
22142
|
+
unlistedModel as eG,
|
|
22143
|
+
make$e as eH,
|
|
22144
|
+
tap as eI,
|
|
22145
|
+
tick as eJ,
|
|
22146
|
+
map$1 as eK,
|
|
22147
|
+
drop as eL,
|
|
22148
|
+
merge as eM,
|
|
22149
|
+
onInterrupt as eN,
|
|
22150
|
+
format as eO,
|
|
22151
|
+
getOrNull as eP,
|
|
22152
|
+
Record as eQ,
|
|
22153
|
+
make$h as eR,
|
|
22151
22154
|
join as eS,
|
|
22152
22155
|
end as eT,
|
|
22153
22156
|
forkScoped as eU,
|
|
@@ -22165,24 +22168,24 @@ export {
|
|
|
22165
22168
|
withPermit as ef,
|
|
22166
22169
|
acquireUseRelease as eg,
|
|
22167
22170
|
shutdownUnsafe as eh,
|
|
22168
|
-
|
|
22169
|
-
|
|
22170
|
-
|
|
22171
|
-
|
|
22171
|
+
make$q as ei,
|
|
22172
|
+
forkIn as ej,
|
|
22173
|
+
fromAsyncIterable as ek,
|
|
22174
|
+
runForEach as el,
|
|
22172
22175
|
CLAUDE_EFFORT_LEVELS as em,
|
|
22173
22176
|
ensuring as en,
|
|
22174
22177
|
currentTimeMillis as eo,
|
|
22175
22178
|
sum as ep,
|
|
22176
|
-
|
|
22177
|
-
|
|
22178
|
-
|
|
22179
|
-
|
|
22180
|
-
|
|
22181
|
-
|
|
22182
|
-
|
|
22183
|
-
|
|
22184
|
-
|
|
22185
|
-
|
|
22179
|
+
race as eq,
|
|
22180
|
+
publishedArtifactId as er,
|
|
22181
|
+
PUBLISH_DOCUMENT_TOOL as es,
|
|
22182
|
+
PUBLISH_ARTIFACT_TOOL as et,
|
|
22183
|
+
PUBLISH_WHITEBOARD_TOOL as eu,
|
|
22184
|
+
isDone as ev,
|
|
22185
|
+
empty as ew,
|
|
22186
|
+
succeed$1 as ex,
|
|
22187
|
+
fromIterable as ey,
|
|
22188
|
+
flatMap as ez,
|
|
22186
22189
|
optionalKey as f,
|
|
22187
22190
|
UsageLimit as f$,
|
|
22188
22191
|
flatMapNullishOr$1 as f0,
|
|
@@ -22204,15 +22207,15 @@ export {
|
|
|
22204
22207
|
MessagePart as fG,
|
|
22205
22208
|
Message as fH,
|
|
22206
22209
|
sliding as fI,
|
|
22207
|
-
|
|
22208
|
-
|
|
22209
|
-
|
|
22210
|
-
|
|
22211
|
-
|
|
22212
|
-
|
|
22213
|
-
|
|
22214
|
-
|
|
22215
|
-
|
|
22210
|
+
parseGitHubPullRequestUrl as fJ,
|
|
22211
|
+
PullRequestReviewer as fK,
|
|
22212
|
+
PullRequestLabel as fL,
|
|
22213
|
+
PullRequestComment as fM,
|
|
22214
|
+
DiffSide as fN,
|
|
22215
|
+
omit as fO,
|
|
22216
|
+
subtract as fP,
|
|
22217
|
+
PULL_REQUEST_REFRESH as fQ,
|
|
22218
|
+
parseGitHubRepository as fR,
|
|
22216
22219
|
request as fS,
|
|
22217
22220
|
Class$1 as fT,
|
|
22218
22221
|
ProjectAction as fU,
|
|
@@ -22249,7 +22252,7 @@ export {
|
|
|
22249
22252
|
never$1 as fy,
|
|
22250
22253
|
min$1 as fz,
|
|
22251
22254
|
format$1 as g,
|
|
22252
|
-
|
|
22255
|
+
fromReadable as g$,
|
|
22253
22256
|
getOrThrow$1 as g0,
|
|
22254
22257
|
PullRequestWatch as g1,
|
|
22255
22258
|
PullRequestLink as g2,
|
|
@@ -22260,33 +22263,33 @@ export {
|
|
|
22260
22263
|
resumeGraceMs as g7,
|
|
22261
22264
|
fail$2 as g8,
|
|
22262
22265
|
WAIT_AGENT_TOOL as g9,
|
|
22263
|
-
|
|
22264
|
-
|
|
22265
|
-
|
|
22266
|
-
|
|
22267
|
-
|
|
22268
|
-
|
|
22269
|
-
|
|
22270
|
-
|
|
22271
|
-
|
|
22272
|
-
|
|
22273
|
-
|
|
22274
|
-
|
|
22275
|
-
|
|
22276
|
-
|
|
22277
|
-
|
|
22278
|
-
|
|
22279
|
-
|
|
22280
|
-
|
|
22281
|
-
|
|
22282
|
-
|
|
22283
|
-
|
|
22284
|
-
|
|
22285
|
-
|
|
22286
|
-
|
|
22287
|
-
|
|
22288
|
-
|
|
22289
|
-
|
|
22266
|
+
updateContext as gA,
|
|
22267
|
+
makeUnsafe$2 as gB,
|
|
22268
|
+
tag as gC,
|
|
22269
|
+
Error$1 as gD,
|
|
22270
|
+
fromInputUnsafe as gE,
|
|
22271
|
+
Path as gF,
|
|
22272
|
+
run$1 as gG,
|
|
22273
|
+
mebibytes as gH,
|
|
22274
|
+
Class$3 as gI,
|
|
22275
|
+
constFalse as gJ,
|
|
22276
|
+
withLogSpan as gK,
|
|
22277
|
+
log as gL,
|
|
22278
|
+
Tracer as gM,
|
|
22279
|
+
nativeTracer as gN,
|
|
22280
|
+
hasInterrupts$1 as gO,
|
|
22281
|
+
succeed$6 as gP,
|
|
22282
|
+
setStackTraceLimit as gQ,
|
|
22283
|
+
fail$3 as gR,
|
|
22284
|
+
getStackTraceLimit as gS,
|
|
22285
|
+
fiberEnterUninterruptibleUnsafe as gT,
|
|
22286
|
+
contA as gU,
|
|
22287
|
+
effectIsExit as gV,
|
|
22288
|
+
closeUnsafe as gW,
|
|
22289
|
+
contE as gX,
|
|
22290
|
+
reportCauseUnsafe as gY,
|
|
22291
|
+
matchCauseEffectEager as gZ,
|
|
22292
|
+
flatMapEager as g_,
|
|
22290
22293
|
filter$2 as ga,
|
|
22291
22294
|
isMaxLength as gb,
|
|
22292
22295
|
schedule as gc,
|
|
@@ -22300,150 +22303,150 @@ export {
|
|
|
22300
22303
|
relayWebSocketUrl as gk,
|
|
22301
22304
|
remoteWebSocketUrl as gl,
|
|
22302
22305
|
CHALLENGE_WAIT_MS as gm,
|
|
22303
|
-
|
|
22304
|
-
|
|
22305
|
-
|
|
22306
|
-
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22315
|
-
|
|
22306
|
+
dialPlan as gn,
|
|
22307
|
+
REMOTE_PROTOCOL_VERSION as go,
|
|
22308
|
+
DIRECT_CHECK_INTERVAL_MS as gp,
|
|
22309
|
+
DIRECT_CHECK_TIMEOUT_MS as gq,
|
|
22310
|
+
LinearIssue as gr,
|
|
22311
|
+
externalSpan as gs,
|
|
22312
|
+
zero as gt,
|
|
22313
|
+
fromInput as gu,
|
|
22314
|
+
badArgument as gv,
|
|
22315
|
+
isSchemaError$1 as gw,
|
|
22316
|
+
isNoSuchElementError as gx,
|
|
22317
|
+
StackTrace as gy,
|
|
22318
|
+
mapEager as gz,
|
|
22316
22319
|
hasInterruptsOnly as h,
|
|
22317
|
-
|
|
22318
|
-
|
|
22319
|
-
|
|
22320
|
-
|
|
22321
|
-
|
|
22322
|
-
|
|
22323
|
-
|
|
22324
|
-
|
|
22325
|
-
|
|
22326
|
-
|
|
22327
|
-
|
|
22328
|
-
|
|
22329
|
-
|
|
22330
|
-
|
|
22331
|
-
|
|
22332
|
-
|
|
22333
|
-
|
|
22334
|
-
|
|
22335
|
-
|
|
22336
|
-
|
|
22337
|
-
|
|
22338
|
-
|
|
22339
|
-
|
|
22340
|
-
|
|
22341
|
-
|
|
22342
|
-
|
|
22343
|
-
|
|
22344
|
-
|
|
22345
|
-
|
|
22346
|
-
|
|
22347
|
-
|
|
22348
|
-
|
|
22349
|
-
|
|
22350
|
-
|
|
22351
|
-
|
|
22352
|
-
|
|
22353
|
-
|
|
22354
|
-
|
|
22355
|
-
|
|
22356
|
-
|
|
22357
|
-
|
|
22358
|
-
|
|
22359
|
-
|
|
22360
|
-
|
|
22361
|
-
|
|
22362
|
-
|
|
22363
|
-
|
|
22364
|
-
|
|
22365
|
-
|
|
22366
|
-
|
|
22367
|
-
|
|
22368
|
-
|
|
22369
|
-
|
|
22370
|
-
|
|
22371
|
-
|
|
22372
|
-
|
|
22373
|
-
|
|
22374
|
-
|
|
22375
|
-
|
|
22376
|
-
|
|
22377
|
-
|
|
22378
|
-
|
|
22379
|
-
|
|
22380
|
-
|
|
22320
|
+
Json as h$,
|
|
22321
|
+
toArrayBuffer as h0,
|
|
22322
|
+
layer$7 as h1,
|
|
22323
|
+
pipeThroughDuplex as h2,
|
|
22324
|
+
toUint8Array as h3,
|
|
22325
|
+
WebSocketServer as h4,
|
|
22326
|
+
orDie as h5,
|
|
22327
|
+
runForEachArray as h6,
|
|
22328
|
+
interruptible as h7,
|
|
22329
|
+
die$4 as h8,
|
|
22330
|
+
merge$2 as h9,
|
|
22331
|
+
forkChild as hA,
|
|
22332
|
+
catch_ as hB,
|
|
22333
|
+
isSchemaError as hC,
|
|
22334
|
+
failCause as hD,
|
|
22335
|
+
mapEffect as hE,
|
|
22336
|
+
onEnd as hF,
|
|
22337
|
+
isSchema as hG,
|
|
22338
|
+
annotate$1 as hH,
|
|
22339
|
+
fail$4 as hI,
|
|
22340
|
+
make$2 as hJ,
|
|
22341
|
+
declare as hK,
|
|
22342
|
+
isStream as hL,
|
|
22343
|
+
Class3 as hM,
|
|
22344
|
+
Exit as hN,
|
|
22345
|
+
provideContext as hO,
|
|
22346
|
+
StructWithRest as hP,
|
|
22347
|
+
JsonObject as hQ,
|
|
22348
|
+
Opaque as hR,
|
|
22349
|
+
decodeTo as hS,
|
|
22350
|
+
transformOptional as hT,
|
|
22351
|
+
flatMap$7 as hU,
|
|
22352
|
+
toType as hV,
|
|
22353
|
+
Any2 as hW,
|
|
22354
|
+
UndefinedOr as hX,
|
|
22355
|
+
Finite as hY,
|
|
22356
|
+
passthrough$1 as hZ,
|
|
22357
|
+
Uint8ArrayFromBase64 as h_,
|
|
22358
|
+
succeedContext as ha,
|
|
22359
|
+
unwrap$3 as hb,
|
|
22360
|
+
withFiberSucceed as hc,
|
|
22361
|
+
reverse as hd,
|
|
22362
|
+
getOrUndefinedUnsafe as he,
|
|
22363
|
+
CurrentMemoMap as hf,
|
|
22364
|
+
fiberEnterInterruptibleUnsafe as hg,
|
|
22365
|
+
compose as hh,
|
|
22366
|
+
Timestamp as hi,
|
|
22367
|
+
AutomationTrigger as hj,
|
|
22368
|
+
AutomationRun as hk,
|
|
22369
|
+
isPolledTrigger as hl,
|
|
22370
|
+
launch as hm,
|
|
22371
|
+
Duration as hn,
|
|
22372
|
+
DateTimeUtc as ho,
|
|
22373
|
+
withConstructorDefault as hp,
|
|
22374
|
+
withDecodingDefault as hq,
|
|
22375
|
+
Redacted as hr,
|
|
22376
|
+
Tuple as hs,
|
|
22377
|
+
isRedacted as ht,
|
|
22378
|
+
MutableJson as hu,
|
|
22379
|
+
Never2 as hv,
|
|
22380
|
+
toJsonSchemaDocument as hw,
|
|
22381
|
+
annotateCurrentSpan as hx,
|
|
22382
|
+
isUndefined as hy,
|
|
22383
|
+
failCause$2 as hz,
|
|
22381
22384
|
isEffect as i,
|
|
22382
|
-
|
|
22383
|
-
|
|
22384
|
-
|
|
22385
|
-
|
|
22386
|
-
|
|
22387
|
-
|
|
22388
|
-
|
|
22389
|
-
|
|
22390
|
-
|
|
22391
|
-
|
|
22392
|
-
|
|
22393
|
-
|
|
22394
|
-
|
|
22395
|
-
|
|
22396
|
-
|
|
22397
|
-
|
|
22398
|
-
|
|
22399
|
-
|
|
22400
|
-
|
|
22401
|
-
|
|
22402
|
-
|
|
22403
|
-
|
|
22404
|
-
|
|
22405
|
-
|
|
22406
|
-
|
|
22407
|
-
|
|
22408
|
-
|
|
22409
|
-
|
|
22410
|
-
|
|
22411
|
-
|
|
22412
|
-
|
|
22413
|
-
|
|
22414
|
-
|
|
22415
|
-
|
|
22416
|
-
|
|
22417
|
-
|
|
22418
|
-
|
|
22419
|
-
|
|
22420
|
-
|
|
22421
|
-
|
|
22422
|
-
|
|
22423
|
-
|
|
22424
|
-
|
|
22425
|
-
|
|
22426
|
-
|
|
22427
|
-
|
|
22428
|
-
|
|
22429
|
-
|
|
22430
|
-
|
|
22431
|
-
|
|
22432
|
-
|
|
22433
|
-
|
|
22434
|
-
|
|
22435
|
-
|
|
22436
|
-
|
|
22437
|
-
|
|
22438
|
-
|
|
22439
|
-
|
|
22440
|
-
|
|
22441
|
-
|
|
22442
|
-
|
|
22443
|
-
|
|
22385
|
+
flatten$4 as i$,
|
|
22386
|
+
TemplateLiteral2 as i0,
|
|
22387
|
+
decode as i1,
|
|
22388
|
+
withDefault$1 as i2,
|
|
22389
|
+
isBetween as i3,
|
|
22390
|
+
take$4 as i4,
|
|
22391
|
+
toCodecJson as i5,
|
|
22392
|
+
isNullish as i6,
|
|
22393
|
+
isString as i7,
|
|
22394
|
+
bounded as i8,
|
|
22395
|
+
withParentSpan as i9,
|
|
22396
|
+
hasDies as iA,
|
|
22397
|
+
shutdown as iB,
|
|
22398
|
+
Scheduler as iC,
|
|
22399
|
+
CurrentLogLevel as iD,
|
|
22400
|
+
decodeEffect as iE,
|
|
22401
|
+
UnknownFromJsonString as iF,
|
|
22402
|
+
ignoreCause as iG,
|
|
22403
|
+
Class$2 as iH,
|
|
22404
|
+
TaggedStruct as iI,
|
|
22405
|
+
toEncoded as iJ,
|
|
22406
|
+
when as iK,
|
|
22407
|
+
threadDeviceId as iL,
|
|
22408
|
+
devicePlatformOf as iM,
|
|
22409
|
+
runLast as iN,
|
|
22410
|
+
fromOption as iO,
|
|
22411
|
+
RUN_AGENT_TOOL as iP,
|
|
22412
|
+
ARTIFACT_THEME_GUIDE as iQ,
|
|
22413
|
+
DeviceUrl as iR,
|
|
22414
|
+
DeviceApp as iS,
|
|
22415
|
+
DeviceButton as iT,
|
|
22416
|
+
WatchEventKind as iU,
|
|
22417
|
+
isPattern as iV,
|
|
22418
|
+
RelayHostList as iW,
|
|
22419
|
+
RelayMachineList as iX,
|
|
22420
|
+
GuideGroup as iY,
|
|
22421
|
+
PullRequestGuide as iZ,
|
|
22422
|
+
uninterruptible as i_,
|
|
22423
|
+
die$3 as ia,
|
|
22424
|
+
offerAll as ib,
|
|
22425
|
+
interrupt$2 as ic,
|
|
22426
|
+
interruptors as id,
|
|
22427
|
+
decodeSync as ie,
|
|
22428
|
+
catchCauseIf as ig,
|
|
22429
|
+
NonEmptyArray as ih,
|
|
22430
|
+
decode$1 as ii,
|
|
22431
|
+
decodeUnknownResult as ij,
|
|
22432
|
+
fn as ik,
|
|
22433
|
+
isTagged as il,
|
|
22434
|
+
isReadonlyObject as im,
|
|
22435
|
+
IllegalArgumentError2 as io,
|
|
22436
|
+
encode as ip,
|
|
22437
|
+
collect as iq,
|
|
22438
|
+
catchDone as ir,
|
|
22439
|
+
takeAll as is,
|
|
22440
|
+
fromArray as it,
|
|
22441
|
+
whileLoop as iu,
|
|
22442
|
+
isExit as iv,
|
|
22443
|
+
matchEffect as iw,
|
|
22444
|
+
defaultFormatter as ix,
|
|
22445
|
+
logFatal as iy,
|
|
22446
|
+
isDeferred as iz,
|
|
22444
22447
|
toCodecStringTree as j,
|
|
22445
|
-
|
|
22446
|
-
|
|
22448
|
+
diskFullness as j0,
|
|
22449
|
+
pretty as j1,
|
|
22447
22450
|
startingProvider as j2,
|
|
22448
22451
|
min as j3,
|
|
22449
22452
|
exponential as j4,
|