priiisk 0.1.10 → 0.1.12
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/{chunk-CJXDEUNX.js → chunk-2HT6CW56.js} +2 -2
- package/dist/{chunk-TG56CUWG.js → chunk-52IFMQA3.js} +9 -7
- package/dist/{chunk-O35MCKHY.js → chunk-6JECMSIQ.js} +1 -1
- package/dist/{chunk-NU3ROW7C.js → chunk-A2W4SB7S.js} +2 -2
- package/dist/{chunk-KG3GMS7Z.js → chunk-JAEJXLWU.js} +7 -4
- package/dist/{chunk-BXNKAII7.js → chunk-RIYKIIGA.js} +14 -69
- package/dist/{chunk-XYHO6PMA.js → chunk-UMKSDJZP.js} +4 -4
- package/dist/{chunk-RFMZNOZK.js → chunk-YYTSIIJP.js} +3 -3
- package/dist/priiisk-host.js +7 -13
- package/dist/priiisk.js +7 -7
- package/package.json +11 -11
- /package/dist/{chunk-TG56CUWG.js.LEGAL.txt → chunk-52IFMQA3.js.LEGAL.txt} +0 -0
- /package/dist/{chunk-KG3GMS7Z.js.LEGAL.txt → chunk-JAEJXLWU.js.LEGAL.txt} +0 -0
|
@@ -86,8 +86,8 @@ import {
|
|
|
86
86
|
selectCampRun,
|
|
87
87
|
styleCampUiTone,
|
|
88
88
|
uniqueCampUiNames
|
|
89
|
-
} from "./chunk-
|
|
90
|
-
import "./chunk-
|
|
89
|
+
} from "./chunk-6JECMSIQ.js";
|
|
90
|
+
import "./chunk-RIYKIIGA.js";
|
|
91
91
|
export {
|
|
92
92
|
CAMP_UI_BASH_PREVIEW_LINES,
|
|
93
93
|
CAMP_UI_DEFAULT_TOOL_PREVIEW_LINES,
|
|
@@ -366,7 +366,7 @@ import {
|
|
|
366
366
|
write,
|
|
367
367
|
zipRight,
|
|
368
368
|
zipRight2
|
|
369
|
-
} from "./chunk-
|
|
369
|
+
} from "./chunk-RIYKIIGA.js";
|
|
370
370
|
|
|
371
371
|
// node_modules/.pnpm/detect-libc@2.1.2/node_modules/detect-libc/lib/process.js
|
|
372
372
|
var require_process = __commonJS({
|
|
@@ -10317,9 +10317,6 @@ var DEFAULT_GIT_DENIED_FLAGS = [
|
|
|
10317
10317
|
"-c",
|
|
10318
10318
|
"--config",
|
|
10319
10319
|
"--exec-path",
|
|
10320
|
-
"--paginate",
|
|
10321
|
-
"-p",
|
|
10322
|
-
"--no-pager",
|
|
10323
10320
|
"--output",
|
|
10324
10321
|
"-o",
|
|
10325
10322
|
"--ext-diff",
|
|
@@ -10673,7 +10670,7 @@ var describeDirectToolSandbox = (sandbox2) => sandbox2.kind === DirectToolSandbo
|
|
|
10673
10670
|
|
|
10674
10671
|
// packages/protocol/src/domain/protocolVersion.ts
|
|
10675
10672
|
var PRIIISK_PROTOCOL_VERSION = "12";
|
|
10676
|
-
var PRIIISK_PROTOCOL_PACKAGE_VERSION = "0.1.
|
|
10673
|
+
var PRIIISK_PROTOCOL_PACKAGE_VERSION = "0.1.12";
|
|
10677
10674
|
var ProtocolVersionSchema = Schema_exports.String.pipe(Schema_exports.minLength(1));
|
|
10678
10675
|
|
|
10679
10676
|
// packages/protocol/src/domain/protocolIdentifiers.ts
|
|
@@ -13567,7 +13564,7 @@ var CampProtocol = class extends RpcGroup_exports.make(
|
|
|
13567
13564
|
};
|
|
13568
13565
|
|
|
13569
13566
|
// packages/camp-state/src/bootstrap/campHostVersion.ts
|
|
13570
|
-
var PRIIISK_HOST_VERSION = "0.1.
|
|
13567
|
+
var PRIIISK_HOST_VERSION = "0.1.12";
|
|
13571
13568
|
|
|
13572
13569
|
// packages/surface/src/domain/surfaceModel.ts
|
|
13573
13570
|
var NonEmptyString7 = Schema_exports.String.pipe(Schema_exports.minLength(1));
|
|
@@ -13756,7 +13753,12 @@ var CampManifestWorkerSchema = Schema_exports.Struct({
|
|
|
13756
13753
|
lifecycle: Schema_exports.Literal(...Object.values(CampManifestWorkerLifecycle)),
|
|
13757
13754
|
session: CampManifestSessionSchema,
|
|
13758
13755
|
equipment: CampManifestEquipmentSchema,
|
|
13759
|
-
|
|
13756
|
+
/*
|
|
13757
|
+
* Legacy: a worker used to carry a completion policy, and `immediate` ended it
|
|
13758
|
+
* on its first turn — which a long-lived session is not. Records written by an
|
|
13759
|
+
* older runtime keep the field so they still load (priiisk-nss.6.38).
|
|
13760
|
+
*/
|
|
13761
|
+
completionPolicy: Schema_exports.optional(Schema_exports.Literal("immediate", "finalizer")),
|
|
13760
13762
|
topology: CampManifestTopologySchema,
|
|
13761
13763
|
lineage: Schema_exports.optional(
|
|
13762
13764
|
Schema_exports.Struct({
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
Match_exports,
|
|
13
13
|
Stream_exports,
|
|
14
14
|
SubscriptionRef_exports
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RIYKIIGA.js";
|
|
16
16
|
|
|
17
17
|
// packages/host-ui/src/backend/campUiBackend.ts
|
|
18
18
|
var CampUiBackendError = class extends Data_exports.TaggedError("CampUiBackendError") {
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
makePlatform,
|
|
29
29
|
makeRunMain,
|
|
30
30
|
stdin
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-52IFMQA3.js";
|
|
32
32
|
import {
|
|
33
33
|
BaseProto,
|
|
34
34
|
__export,
|
|
@@ -112,7 +112,7 @@ import {
|
|
|
112
112
|
write,
|
|
113
113
|
zip,
|
|
114
114
|
zipRight
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-RIYKIIGA.js";
|
|
116
116
|
|
|
117
117
|
// node_modules/.pnpm/@effect+platform-node@0.107.0_@effect+cluster@0.59.0_@effect+platform@0.96.2_effect@3.2_9535e05eb804fa0fb275ce283b448483/node_modules/@effect/platform-node/dist/esm/NodeContext.js
|
|
118
118
|
var NodeContext_exports = {};
|
|
@@ -3,7 +3,7 @@ const require = __priiiskCreateRequire(import.meta.url);
|
|
|
3
3
|
import {
|
|
4
4
|
FileSystem_exports,
|
|
5
5
|
PRIIISK_PI_AGENT_DIR_ENV
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-52IFMQA3.js";
|
|
7
7
|
import {
|
|
8
8
|
CampDeliveryPort,
|
|
9
9
|
CampFailureCode,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
__require,
|
|
31
31
|
__toESM,
|
|
32
32
|
campScopeClosedReason
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-RIYKIIGA.js";
|
|
34
34
|
|
|
35
35
|
// node_modules/.pnpm/undici@7.28.0/node_modules/undici/lib/core/symbols.js
|
|
36
36
|
var require_symbols = __commonJS({
|
|
@@ -26017,9 +26017,12 @@ var equipmentError = (details, cause) => new CampSessionError({
|
|
|
26017
26017
|
...cause === void 0 ? {} : { cause }
|
|
26018
26018
|
});
|
|
26019
26019
|
var sameLimits = (left, right) => left === right || left !== void 0 && right !== void 0 && left.maxTurns === right.maxTurns && left.maxWallClockMs === right.maxWallClockMs && left.maxTokens === right.maxTokens && left.maxTreeDepth === right.maxTreeDepth;
|
|
26020
|
+
var IDENTITY_FIELDS = ["role", "preset", "model", "thinkingLevel", "readOnly"];
|
|
26020
26021
|
var rebuildOnlyChanges = (current, next) => {
|
|
26021
|
-
const changed = [];
|
|
26022
|
-
if (!sameLimits(current.executionLimits, next.executionLimits))
|
|
26022
|
+
const changed = IDENTITY_FIELDS.filter((field) => current[field] !== next[field]);
|
|
26023
|
+
if (!sameLimits(current.executionLimits, next.executionLimits)) {
|
|
26024
|
+
return [...changed, "executionLimits"];
|
|
26025
|
+
}
|
|
26023
26026
|
return changed;
|
|
26024
26027
|
};
|
|
26025
26028
|
var readState = (live) => Effect_exports.all([
|
|
@@ -42018,16 +42018,6 @@ var CampCommandSource = {
|
|
|
42018
42018
|
host: "host"
|
|
42019
42019
|
};
|
|
42020
42020
|
var campCompletionEpochEquals = (left3, right3) => left3.generation === right3.generation && left3.counter === right3.counter;
|
|
42021
|
-
var CampCompletionPolicyKind = {
|
|
42022
|
-
immediate: "immediate",
|
|
42023
|
-
finalizer: "finalizer"
|
|
42024
|
-
};
|
|
42025
|
-
var campImmediateCompletionPolicy = {
|
|
42026
|
-
kind: CampCompletionPolicyKind.immediate
|
|
42027
|
-
};
|
|
42028
|
-
var campFinalizerCompletionPolicy = {
|
|
42029
|
-
kind: CampCompletionPolicyKind.finalizer
|
|
42030
|
-
};
|
|
42031
42021
|
var isTerminalCampState = (state) => state === CampWorkerState.completed || state === CampWorkerState.failed || state === CampWorkerState.closed;
|
|
42032
42022
|
|
|
42033
42023
|
// packages/kernel/src/ports/campDelivery.ts
|
|
@@ -43088,12 +43078,11 @@ var commitWorkerCompletion = (runtime6, command, identity6, epoch, result) => Ef
|
|
|
43088
43078
|
if (isTerminalCampState(current2.state)) return;
|
|
43089
43079
|
const resourceState = yield* Ref_exports.get(resource.state);
|
|
43090
43080
|
const pending3 = resourceState.pendingCompletion;
|
|
43091
|
-
if (
|
|
43081
|
+
if (current2.state !== CampWorkerState.idle || current2.completionGeneration !== epoch.generation || pending3 === void 0 || !campCompletionEpochEquals(pending3.epoch, epoch)) {
|
|
43092
43082
|
return yield* Effect_exports.fail(
|
|
43093
43083
|
registryInvalid("kernel.commitCompletion", {
|
|
43094
43084
|
workerId: worker.id,
|
|
43095
43085
|
state: current2.state,
|
|
43096
|
-
policy: resource.completionPolicy.kind,
|
|
43097
43086
|
epoch,
|
|
43098
43087
|
pendingEpoch: pending3?.epoch
|
|
43099
43088
|
})
|
|
@@ -43177,7 +43166,6 @@ var rollbackOrFail = (rollback, workerId, refusal) => Effect_exports.exit(rollba
|
|
|
43177
43166
|
);
|
|
43178
43167
|
var updateWorkerEquipment = (runtime6, command, identity6, change) => Effect_exports.gen(function* () {
|
|
43179
43168
|
const [initial, sessionRef] = yield* requireKernelSession(runtime6, identity6);
|
|
43180
|
-
const equipment = yield* runtime6.equipmentResolver.reresolve(initial.equipment, change);
|
|
43181
43169
|
const resource = yield* getWorkerResource(runtime6, initial.id);
|
|
43182
43170
|
if (resource === void 0) {
|
|
43183
43171
|
return yield* Effect_exports.fail(
|
|
@@ -43193,6 +43181,7 @@ var updateWorkerEquipment = (runtime6, command, identity6, change) => Effect_exp
|
|
|
43193
43181
|
Effect_exports.flatMap(
|
|
43194
43182
|
() => Effect_exports.gen(function* () {
|
|
43195
43183
|
const worker = yield* runtime6.registry.require(workerIdIdentity(initial.id));
|
|
43184
|
+
const equipment = yield* runtime6.equipmentResolver.reresolve(worker.equipment, change);
|
|
43196
43185
|
const currentState = yield* Ref_exports.get(resource.state);
|
|
43197
43186
|
const currentMcpScope = currentState.mcpScope;
|
|
43198
43187
|
const currentMcpView = currentState.mcpView;
|
|
@@ -43280,15 +43269,14 @@ var removeWorkerResource = (runtime6, id3, resource) => Ref_exports.update(runti
|
|
|
43280
43269
|
next4.delete(id3);
|
|
43281
43270
|
return next4;
|
|
43282
43271
|
});
|
|
43283
|
-
var prepareWorkerResource = (runtime6, id3,
|
|
43272
|
+
var prepareWorkerResource = (runtime6, id3, completionGeneration) => Effect_exports.gen(function* () {
|
|
43284
43273
|
const scope5 = yield* Scope_exports.fork(runtime6.ownerScope, ExecutionStrategy_exports.sequential);
|
|
43285
43274
|
const resource = {
|
|
43286
43275
|
scope: scope5,
|
|
43287
43276
|
lock: yield* Effect_exports.makeSemaphore(1),
|
|
43288
43277
|
state: yield* Ref_exports.make({
|
|
43289
43278
|
completionEpoch: { generation: completionGeneration, counter: 0 }
|
|
43290
|
-
})
|
|
43291
|
-
completionPolicy
|
|
43279
|
+
})
|
|
43292
43280
|
};
|
|
43293
43281
|
const inserted = yield* Ref_exports.modify(
|
|
43294
43282
|
runtime6.resources,
|
|
@@ -43311,26 +43299,6 @@ var releaseWorkerResource = (runtime6, id3, resource) => Scope_exports.close(res
|
|
|
43311
43299
|
Effect_exports.uninterruptible
|
|
43312
43300
|
);
|
|
43313
43301
|
|
|
43314
|
-
// packages/kernel/src/services/campTurnCompletion.ts
|
|
43315
|
-
var interruptedTurnFinalization = (worker, outcome, code) => ({
|
|
43316
|
-
kind: "interrupted",
|
|
43317
|
-
error: { code, message: outcome.errorMessage ?? outcome.stopReason },
|
|
43318
|
-
resumeSource: worker.resumeSource ?? { value: worker.id }
|
|
43319
|
-
});
|
|
43320
|
-
var turnFinalizationByStopReason = {
|
|
43321
|
-
[CampTurnStopReason.stop]: (_worker, outcome) => ({
|
|
43322
|
-
kind: "completed",
|
|
43323
|
-
result: { text: outcome.text, completedAt: outcome.timestamp }
|
|
43324
|
-
}),
|
|
43325
|
-
[CampTurnStopReason.aborted]: () => ({
|
|
43326
|
-
kind: "closed",
|
|
43327
|
-
reason: { code: CampCancellationCode.aborted }
|
|
43328
|
-
}),
|
|
43329
|
-
[CampTurnStopReason.error]: (worker, outcome) => interruptedTurnFinalization(worker, outcome, CampFailureCode.providerError),
|
|
43330
|
-
[CampTurnStopReason.unknown]: (worker, outcome) => interruptedTurnFinalization(worker, outcome, CampFailureCode.unknown)
|
|
43331
|
-
};
|
|
43332
|
-
var finalizationForTurnOutcome = (worker, outcome) => turnFinalizationByStopReason[outcome.stopReason](worker, outcome);
|
|
43333
|
-
|
|
43334
43302
|
// packages/kernel/src/runtime/kernel/campKernelSessionEvents.ts
|
|
43335
43303
|
var transitionSessionState = (runtime6, id3, state, updatedAt) => runtime6.registry.require(workerIdIdentity(id3)).pipe(
|
|
43336
43304
|
Effect_exports.flatMap(
|
|
@@ -43414,9 +43382,7 @@ var handleSessionEvent = (runtime6, id3, event) => Effect_exports.gen(function*
|
|
|
43414
43382
|
return { kind: "status_report", worker, payload: event.payload };
|
|
43415
43383
|
}
|
|
43416
43384
|
if (event.kind === CampSessionEventKind.turnCompleted) {
|
|
43417
|
-
const continues = resource.completionPolicy.kind === CampCompletionPolicyKind.finalizer;
|
|
43418
43385
|
const epoch = yield* Ref_exports.modify(resource.state, (state) => {
|
|
43419
|
-
if (!continues) return [state.completionEpoch, state];
|
|
43420
43386
|
const nextEpoch = {
|
|
43421
43387
|
generation: state.completionEpoch.generation,
|
|
43422
43388
|
counter: state.completionEpoch.counter + 1
|
|
@@ -43433,7 +43399,7 @@ var handleSessionEvent = (runtime6, id3, event) => Effect_exports.gen(function*
|
|
|
43433
43399
|
return {
|
|
43434
43400
|
kind: "turn_completed",
|
|
43435
43401
|
worker,
|
|
43436
|
-
payload: { outcome: event.payload.outcome, epoch
|
|
43402
|
+
payload: { outcome: event.payload.outcome, epoch }
|
|
43437
43403
|
};
|
|
43438
43404
|
}
|
|
43439
43405
|
return yield* Effect_exports.die("unreachable session event");
|
|
@@ -43531,18 +43497,13 @@ var activateWorker = (runtime6, worker, resource, command, activation) => Effect
|
|
|
43531
43497
|
boundAt
|
|
43532
43498
|
) : runtime6.registry.bindSession(worker.id, session.sessionRef, session.checkpoint, boundAt);
|
|
43533
43499
|
yield* Effect_exports.acquireRelease(
|
|
43534
|
-
|
|
43535
|
-
|
|
43536
|
-
|
|
43537
|
-
|
|
43538
|
-
|
|
43539
|
-
|
|
43540
|
-
|
|
43541
|
-
finalizationForTurnOutcome(worker, event.payload.outcome)
|
|
43542
|
-
).pipe(Effect_exports.asVoid) : Effect_exports.void
|
|
43543
|
-
)
|
|
43544
|
-
)
|
|
43545
|
-
),
|
|
43500
|
+
/*
|
|
43501
|
+
* A completed turn is a boundary of work, not the end of a worker: the
|
|
43502
|
+
* session stays open and takes the next assignment. Finalizing here
|
|
43503
|
+
* turned a turn that had exhausted its provider retries into a terminal
|
|
43504
|
+
* worker and closed the session under it (priiisk-nss.6.38).
|
|
43505
|
+
*/
|
|
43506
|
+
session.subscribe((event) => handleSessionEvent(runtime6, worker.id, event)),
|
|
43546
43507
|
(unsubscribe) => unsubscribe.pipe(Effect_exports.ignore)
|
|
43547
43508
|
).pipe(Scope_exports.extend(resource.scope));
|
|
43548
43509
|
yield* Ref_exports.update(resource.state, (state) => ({ ...state, mcpScope, mcpView }));
|
|
@@ -43599,12 +43560,7 @@ var makeKernelRecover = (runtime6) => (command, request2) => Effect_exports.gen(
|
|
|
43599
43560
|
}
|
|
43600
43561
|
return yield* Effect_exports.gen(function* () {
|
|
43601
43562
|
const completionGeneration = current2.completionGeneration + 1;
|
|
43602
|
-
const resource = yield* prepareWorkerResource(
|
|
43603
|
-
runtime6,
|
|
43604
|
-
current2.id,
|
|
43605
|
-
current2.completionPolicy ?? campImmediateCompletionPolicy,
|
|
43606
|
-
completionGeneration
|
|
43607
|
-
);
|
|
43563
|
+
const resource = yield* prepareWorkerResource(runtime6, current2.id, completionGeneration);
|
|
43608
43564
|
const updatedAt = yield* Clock_exports.currentTimeMillis;
|
|
43609
43565
|
const transition = yield* Effect_exports.exit(
|
|
43610
43566
|
runtime6.registry.transition(current2.id, {
|
|
@@ -43664,7 +43620,6 @@ var makeKernelRestore = (runtime6) => (command, request2) => Effect_exports.gen(
|
|
|
43664
43620
|
const resource = yield* prepareWorkerResource(
|
|
43665
43621
|
runtime6,
|
|
43666
43622
|
registered.id,
|
|
43667
|
-
registered.completionPolicy ?? campImmediateCompletionPolicy,
|
|
43668
43623
|
registered.completionGeneration
|
|
43669
43624
|
);
|
|
43670
43625
|
return yield* activateWorker(runtime6, registered, resource, command, {
|
|
@@ -43726,7 +43681,6 @@ var makeKernelSpawn = (runtime6) => (command, request2) => Effect_exports.gen(fu
|
|
|
43726
43681
|
const equipment = yield* runtime6.equipmentResolver.resolve(request2.equipment);
|
|
43727
43682
|
const id3 = yield* makeKernelWorkerId;
|
|
43728
43683
|
const createdAt = yield* Clock_exports.currentTimeMillis;
|
|
43729
|
-
const completionPolicy = request2.completionPolicy === void 0 ? campImmediateCompletionPolicy : { ...request2.completionPolicy };
|
|
43730
43684
|
const previous2 = request2.continuation === void 0 ? void 0 : yield* runtime6.registry.require(
|
|
43731
43685
|
workerIdIdentity(request2.continuation.resumedFromWorkerId)
|
|
43732
43686
|
);
|
|
@@ -43747,12 +43701,7 @@ var makeKernelSpawn = (runtime6) => (command, request2) => Effect_exports.gen(fu
|
|
|
43747
43701
|
const effectiveEquipment = executionLimits === void 0 ? equipment : { ...equipment, executionLimits };
|
|
43748
43702
|
return yield* Effect_exports.gen(function* () {
|
|
43749
43703
|
const completionGeneration = 0;
|
|
43750
|
-
const resource = yield* prepareWorkerResource(
|
|
43751
|
-
runtime6,
|
|
43752
|
-
id3,
|
|
43753
|
-
completionPolicy,
|
|
43754
|
-
completionGeneration
|
|
43755
|
-
);
|
|
43704
|
+
const resource = yield* prepareWorkerResource(runtime6, id3, completionGeneration);
|
|
43756
43705
|
const registration = yield* Effect_exports.exit(
|
|
43757
43706
|
runtime6.registry.register({
|
|
43758
43707
|
id: id3,
|
|
@@ -43761,7 +43710,6 @@ var makeKernelSpawn = (runtime6) => (command, request2) => Effect_exports.gen(fu
|
|
|
43761
43710
|
state: CampWorkerState.queued,
|
|
43762
43711
|
sessionState: CampSessionState.pending,
|
|
43763
43712
|
equipment: effectiveEquipment,
|
|
43764
|
-
...request2.completionPolicy === void 0 ? {} : { completionPolicy },
|
|
43765
43713
|
topology,
|
|
43766
43714
|
completionGeneration,
|
|
43767
43715
|
version: 0,
|
|
@@ -44748,9 +44696,6 @@ export {
|
|
|
44748
44696
|
CampSessionState,
|
|
44749
44697
|
CampDeliveryMode,
|
|
44750
44698
|
CampCommandSource,
|
|
44751
|
-
CampCompletionPolicyKind,
|
|
44752
|
-
campImmediateCompletionPolicy,
|
|
44753
|
-
campFinalizerCompletionPolicy,
|
|
44754
44699
|
CampAskState,
|
|
44755
44700
|
CampAskRouter,
|
|
44756
44701
|
CampDeliveryPort,
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
makeDoctorReport,
|
|
9
9
|
resolveCampSurface,
|
|
10
10
|
withCampRpc
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-YYTSIIJP.js";
|
|
12
12
|
import {
|
|
13
13
|
PI_RUNTIME_VERSION,
|
|
14
14
|
PiModelCatalogIssueCode,
|
|
15
15
|
inspectPiModelCatalog,
|
|
16
16
|
makePiOperatorResources
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JAEJXLWU.js";
|
|
18
18
|
import {
|
|
19
19
|
CampHealthComponentStatus,
|
|
20
20
|
CampHealthOverallStatus,
|
|
@@ -48,13 +48,13 @@ import {
|
|
|
48
48
|
resolveCredentialsPath,
|
|
49
49
|
resolveProjectScope,
|
|
50
50
|
resolveWorkerConfigPath
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-52IFMQA3.js";
|
|
52
52
|
import {
|
|
53
53
|
Clock_exports,
|
|
54
54
|
Effect_exports,
|
|
55
55
|
Option_exports,
|
|
56
56
|
Ref_exports
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-RIYKIIGA.js";
|
|
58
58
|
|
|
59
59
|
// packages/cli/src/doctor/environmentDoctor.ts
|
|
60
60
|
import { dirname } from "node:path";
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
layerNet,
|
|
21
21
|
makeCampSurfaceName,
|
|
22
22
|
resolveProjectScopeSync
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-52IFMQA3.js";
|
|
24
24
|
import {
|
|
25
25
|
Clock_exports,
|
|
26
26
|
Config_exports,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
Schedule_exports,
|
|
39
39
|
Schema_exports,
|
|
40
40
|
Stream_exports
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-RIYKIIGA.js";
|
|
42
42
|
|
|
43
43
|
// packages/cli/src/doctor/doctorModel.ts
|
|
44
44
|
var DOCTOR_REPORT_SCHEMA_VERSION = 1;
|
|
@@ -112,7 +112,7 @@ var CliSurfaceSelectionError = class extends Data_exports.TaggedError("CliSurfac
|
|
|
112
112
|
import { randomUUID } from "node:crypto";
|
|
113
113
|
|
|
114
114
|
// packages/cli/src/domain/cliVersion.ts
|
|
115
|
-
var PRIIISK_CLI_VERSION = "0.1.
|
|
115
|
+
var PRIIISK_CLI_VERSION = "0.1.12";
|
|
116
116
|
|
|
117
117
|
// packages/cli/src/client/campRpcConnection.ts
|
|
118
118
|
var reportRetry = (options, diagnostic) => options.onRetry === void 0 ? Console_exports.error(
|
package/dist/priiisk-host.js
CHANGED
|
@@ -4,14 +4,14 @@ const require = __priiiskCreateRequire(import.meta.url);
|
|
|
4
4
|
import {
|
|
5
5
|
NodeContext_exports,
|
|
6
6
|
NodeRuntime_exports
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-A2W4SB7S.js";
|
|
8
8
|
import {
|
|
9
9
|
CampUiBackendError,
|
|
10
10
|
CampUiHealthStatus,
|
|
11
11
|
CampUiPlacement,
|
|
12
12
|
CampUiRuntimeStatus,
|
|
13
13
|
mountPiCampUi
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-6JECMSIQ.js";
|
|
15
15
|
import {
|
|
16
16
|
PiTransport,
|
|
17
17
|
makePiOperatorResources,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
makePiTransportLayer,
|
|
20
20
|
requirePiModelCatalog,
|
|
21
21
|
require_undici
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-JAEJXLWU.js";
|
|
23
23
|
import {
|
|
24
24
|
AgentRole,
|
|
25
25
|
AgentRoleSchema,
|
|
@@ -101,12 +101,11 @@ import {
|
|
|
101
101
|
runningCampManifest,
|
|
102
102
|
saveCampHealth,
|
|
103
103
|
saveCampManifest
|
|
104
|
-
} from "./chunk-
|
|
104
|
+
} from "./chunk-52IFMQA3.js";
|
|
105
105
|
import {
|
|
106
106
|
CampAskRouter,
|
|
107
107
|
CampCancellationCode,
|
|
108
108
|
CampCommandSource,
|
|
109
|
-
CampCompletionPolicyKind,
|
|
110
109
|
CampControlToolName,
|
|
111
110
|
CampDeliveryMode,
|
|
112
111
|
CampEquipmentError,
|
|
@@ -159,8 +158,6 @@ import {
|
|
|
159
158
|
addFinalizer2 as addFinalizer,
|
|
160
159
|
async,
|
|
161
160
|
campControlToolNames,
|
|
162
|
-
campFinalizerCompletionPolicy,
|
|
163
|
-
campImmediateCompletionPolicy,
|
|
164
161
|
campOrchestratorAbortReason,
|
|
165
162
|
catchAllCause,
|
|
166
163
|
close,
|
|
@@ -194,7 +191,7 @@ import {
|
|
|
194
191
|
withFiberRuntime,
|
|
195
192
|
workerAliasIdentity,
|
|
196
193
|
workerIdIdentity
|
|
197
|
-
} from "./chunk-
|
|
194
|
+
} from "./chunk-RIYKIIGA.js";
|
|
198
195
|
|
|
199
196
|
// node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/constants.js
|
|
200
197
|
var require_constants = __commonJS({
|
|
@@ -11990,7 +11987,6 @@ var manifestWorkerFromRecord = (worker, completionEpoch) => ({
|
|
|
11990
11987
|
lifecycle: workerLifecycle(worker),
|
|
11991
11988
|
session: workerSession(worker),
|
|
11992
11989
|
equipment: worker.equipment,
|
|
11993
|
-
completionPolicy: worker.completionPolicy?.kind ?? CampCompletionPolicyKind.immediate,
|
|
11994
11990
|
topology: worker.topology,
|
|
11995
11991
|
...worker.lineage === void 0 ? {} : { lineage: worker.lineage },
|
|
11996
11992
|
completionEpoch,
|
|
@@ -12428,8 +12424,7 @@ var CampHostOperationsLive = Layer_exports.effect(
|
|
|
12428
12424
|
...input.alias === void 0 ? {} : { alias: input.alias },
|
|
12429
12425
|
prompt: input.prompt,
|
|
12430
12426
|
cwd: input.cwd ?? runtime2.project.cwd,
|
|
12431
|
-
equipment: input.equipment
|
|
12432
|
-
completionPolicy: campFinalizerCompletionPolicy
|
|
12427
|
+
equipment: input.equipment
|
|
12433
12428
|
})
|
|
12434
12429
|
)
|
|
12435
12430
|
),
|
|
@@ -12601,7 +12596,6 @@ var workerRecordFromManifest = (worker, resumeSource) => {
|
|
|
12601
12596
|
sessionState: checkpoint === void 0 ? CampSessionState.pending : CampSessionState.closed,
|
|
12602
12597
|
...checkpoint === void 0 ? {} : { sessionCheckpoint: checkpoint },
|
|
12603
12598
|
equipment: equipmentFromManifest(worker.equipment),
|
|
12604
|
-
completionPolicy: worker.completionPolicy === CampCompletionPolicyKind.finalizer ? campFinalizerCompletionPolicy : campImmediateCompletionPolicy,
|
|
12605
12599
|
topology: {
|
|
12606
12600
|
...worker.topology.parentWorkerId === void 0 ? {} : { parentWorkerId: makeCampWorkerId(worker.topology.parentWorkerId) },
|
|
12607
12601
|
treeRootWorkerId: makeCampWorkerId(worker.topology.treeRootWorkerId),
|
|
@@ -22451,7 +22445,7 @@ var Client = class extends Protocol {
|
|
|
22451
22445
|
};
|
|
22452
22446
|
|
|
22453
22447
|
// packages/mcp-backend/src/connections/clientIdentity.ts
|
|
22454
|
-
var backendVersion = "0.1.
|
|
22448
|
+
var backendVersion = "0.1.12";
|
|
22455
22449
|
|
|
22456
22450
|
// packages/mcp-backend/src/connections/mcpFailure.ts
|
|
22457
22451
|
var McpFailure = class extends Data_exports.TaggedError("McpFailure") {
|
package/dist/priiisk.js
CHANGED
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
fromReadable,
|
|
6
6
|
layer,
|
|
7
7
|
runMain
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A2W4SB7S.js";
|
|
9
9
|
import {
|
|
10
10
|
CliCampLifecycleError,
|
|
11
11
|
CliEquipmentConflict,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
resolveCampSurface,
|
|
24
24
|
withCampRpc,
|
|
25
25
|
withCampRpcSession
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-YYTSIIJP.js";
|
|
27
27
|
import {
|
|
28
28
|
CampCommandFailure,
|
|
29
29
|
CampHostReadiness,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
resolveProjectScopeSync,
|
|
59
59
|
saveCampManifest,
|
|
60
60
|
startingCampManifest
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-52IFMQA3.js";
|
|
62
62
|
import {
|
|
63
63
|
Cause_exports,
|
|
64
64
|
CommitPrototype,
|
|
@@ -239,7 +239,7 @@ import {
|
|
|
239
239
|
zipLeft,
|
|
240
240
|
zipRight,
|
|
241
241
|
zipWith
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-RIYKIIGA.js";
|
|
243
243
|
|
|
244
244
|
// node_modules/.pnpm/ini@4.1.3/node_modules/ini/lib/ini.js
|
|
245
245
|
var require_ini = __commonJS({
|
|
@@ -19969,7 +19969,7 @@ var campResumeListCommand = Command_exports.make(
|
|
|
19969
19969
|
)
|
|
19970
19970
|
).pipe(Command_exports.withDescription("Lists saved runs of this project that resume can restore."));
|
|
19971
19971
|
var runIdArgument = Args_exports.text({ name: "runId" }).pipe(Args_exports.optional);
|
|
19972
|
-
var selectCampRunOnDemand = (items) => Effect_exports.promise(() => import("./chunk-
|
|
19972
|
+
var selectCampRunOnDemand = (items) => Effect_exports.promise(() => import("./chunk-2HT6CW56.js")).pipe(
|
|
19973
19973
|
Effect_exports.flatMap((ui) => ui.selectCampRun({ items }))
|
|
19974
19974
|
);
|
|
19975
19975
|
var selectAndResume = (json) => {
|
|
@@ -20042,7 +20042,7 @@ var rootCommand = Command_exports.make(
|
|
|
20042
20042
|
).pipe(Command_exports.withDescription("Runs and observes a camp of collaborating workers."));
|
|
20043
20043
|
|
|
20044
20044
|
// packages/cli/src/commands/doctorCommand.ts
|
|
20045
|
-
var runDoctorOnDemand = Effect_exports.promise(() => import("./chunk-
|
|
20045
|
+
var runDoctorOnDemand = Effect_exports.promise(() => import("./chunk-UMKSDJZP.js")).pipe(
|
|
20046
20046
|
Effect_exports.flatMap((doctor) => doctor.runDoctor)
|
|
20047
20047
|
);
|
|
20048
20048
|
var statusLabel = {
|
|
@@ -20794,7 +20794,7 @@ var command = rootCommand.pipe(
|
|
|
20794
20794
|
);
|
|
20795
20795
|
var cli = Command_exports.run(command, {
|
|
20796
20796
|
name: "priiisk camp control",
|
|
20797
|
-
version: "0.1.
|
|
20797
|
+
version: "0.1.12"
|
|
20798
20798
|
});
|
|
20799
20799
|
var quietDiagnostics = (json, effect) => json ? Console_exports.consoleWith(
|
|
20800
20800
|
(console2) => Console_exports.withConsole({ ...console2, error: () => Effect_exports.void })(effect)
|
package/package.json
CHANGED
|
@@ -1,22 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "priiisk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"description": "CLI for running and observing a camp of collaborating agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
7
7
|
"priiisk": "./dist/priiisk.js"
|
|
8
8
|
},
|
|
9
9
|
"files": [
|
|
10
|
-
"dist/chunk-
|
|
11
|
-
"dist/chunk-
|
|
12
|
-
"dist/chunk-
|
|
13
|
-
"dist/chunk-
|
|
14
|
-
"dist/chunk-
|
|
15
|
-
"dist/chunk-
|
|
16
|
-
"dist/chunk-
|
|
17
|
-
"dist/chunk-
|
|
18
|
-
"dist/chunk-
|
|
19
|
-
"dist/chunk-
|
|
10
|
+
"dist/chunk-2HT6CW56.js",
|
|
11
|
+
"dist/chunk-52IFMQA3.js",
|
|
12
|
+
"dist/chunk-52IFMQA3.js.LEGAL.txt",
|
|
13
|
+
"dist/chunk-6JECMSIQ.js",
|
|
14
|
+
"dist/chunk-A2W4SB7S.js",
|
|
15
|
+
"dist/chunk-JAEJXLWU.js",
|
|
16
|
+
"dist/chunk-JAEJXLWU.js.LEGAL.txt",
|
|
17
|
+
"dist/chunk-RIYKIIGA.js",
|
|
18
|
+
"dist/chunk-UMKSDJZP.js",
|
|
19
|
+
"dist/chunk-YYTSIIJP.js",
|
|
20
20
|
"dist/priiisk-host.js",
|
|
21
21
|
"dist/priiisk.js",
|
|
22
22
|
"profiles",
|
|
File without changes
|
|
File without changes
|