priiisk 0.1.20 → 0.1.22

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.
@@ -2,11 +2,10 @@ import { createRequire as __priiiskCreateRequire } from "node:module";
2
2
  const require = __priiiskCreateRequire(import.meta.url);
3
3
  import {
4
4
  CliAlreadyReported,
5
- TypeId2 as TypeId,
6
- directToolBin,
5
+ TypeId,
7
6
  error,
8
7
  log
9
- } from "./chunk-QDIMBK33.js";
8
+ } from "./chunk-GBEORC3T.js";
10
9
  import {
11
10
  _void,
12
11
  cached,
@@ -15,7 +14,8 @@ import {
15
14
  dieMessage,
16
15
  dual,
17
16
  equals,
18
- flatMap4 as flatMap,
17
+ equipmentDescriptionLines,
18
+ flatMap3 as flatMap,
19
19
  fromIterable,
20
20
  gen,
21
21
  getSomes,
@@ -24,25 +24,25 @@ import {
24
24
  isNonEmptyReadonlyArray,
25
25
  isSome,
26
26
  join,
27
- map3 as map,
28
- map6 as map2,
27
+ map2 as map,
28
+ map3 as map2,
29
29
  match,
30
30
  matchRight,
31
31
  none,
32
32
  of,
33
- of3 as of2,
33
+ of2,
34
34
  pipe,
35
35
  pipeArguments,
36
36
  reduceRight,
37
37
  runSync,
38
38
  some,
39
39
  string,
40
- succeed4 as succeed,
41
- suspend2 as suspend,
40
+ succeed3 as succeed,
41
+ suspend,
42
42
  symbol,
43
43
  symbol2,
44
- sync2 as sync
45
- } from "./chunk-26WAMIP2.js";
44
+ sync
45
+ } from "./chunk-DPNPQG2D.js";
46
46
 
47
47
  // node_modules/.pnpm/@effect+typeclass@0.40.0_effect@3.21.4/node_modules/@effect/typeclass/dist/esm/internal/Iterable.js
48
48
  function reduce(b, f) {
@@ -1592,30 +1592,7 @@ var toAnsiText2 = toAnsiText;
1592
1592
  var printValue = (json, human) => (effect) => effect.pipe(
1593
1593
  flatMap((value) => log(json ? JSON.stringify(value) : human(value)))
1594
1594
  );
1595
- var names = (values) => values.length === 0 ? "none" : values.join(", ");
1596
- var mcpGrants = (mcp) => names(
1597
- mcp.serverNames.map((serverName) => {
1598
- const toolNames = mcp.toolNamesByServer?.[serverName];
1599
- return toolNames === void 0 ? serverName : `${serverName} (${names([...toolNames])})`;
1600
- })
1601
- );
1602
- var equipmentLines = (equipment, revision) => [
1603
- ` equipment r${String(revision)}: ${equipment.role ?? equipment.preset ?? "worker"}, ${equipment.readOnly ? "read-only" : "read/write"}`,
1604
- ` model: ${equipment.model ?? "default"}${equipment.thinkingLevel === void 0 ? "" : `, thinking ${equipment.thinkingLevel}`}`,
1605
- ` tools: ${names(
1606
- [
1607
- .../* @__PURE__ */ new Set([
1608
- ...equipment.builtinTools,
1609
- ...equipment.customToolNames.filter((name) => directToolBin(name) === void 0)
1610
- ])
1611
- ].sort()
1612
- )}`,
1613
- ` direct: ${names(
1614
- equipment.customToolNames.map((name) => directToolBin(name)).filter((bin) => bin !== void 0).sort()
1615
- )}`,
1616
- ` mcp: ${mcpGrants(equipment.mcp)}`,
1617
- ` skills: ${names([...equipment.skillNames])}`
1618
- ];
1595
+ var equipmentLines = (equipment, revision) => equipmentDescriptionLines(equipment, revision).map((line5) => ` ${line5}`);
1619
1596
  var usageLines = (usage) => {
1620
1597
  const context = usage.context === void 0 || usage.context.tokens === null ? "unknown" : `${String(usage.context.tokens)}/${String(usage.context.contextWindow)}${usage.context.percent === null ? "" : ` (${usage.context.percent.toFixed(1)}%)`}`;
1621
1598
  const cache = usage.latestCacheHitRate === void 0 ? "not reported" : `${usage.latestCacheHitRate.toFixed(1)}%`;
@@ -3,28 +3,28 @@ const require = __priiiskCreateRequire(import.meta.url);
3
3
  import {
4
4
  errorPayload,
5
5
  makeCapturedConsole
6
- } from "./chunk-FBRFN62A.js";
6
+ } from "./chunk-2YPHJHIX.js";
7
7
  import {
8
8
  withCampRpcSession,
9
9
  withConsole
10
- } from "./chunk-QDIMBK33.js";
10
+ } from "./chunk-GBEORC3T.js";
11
11
  import {
12
12
  PRIIISK_CLI_VERSION
13
- } from "./chunk-XLZHFINK.js";
13
+ } from "./chunk-YNTHXLFG.js";
14
14
  import {
15
15
  _await2 as _await,
16
16
  addFinalizer2 as addFinalizer,
17
17
  gen,
18
18
  make7 as make,
19
- map6 as map,
19
+ map3 as map,
20
20
  promise,
21
21
  runPromise,
22
22
  runSync2 as runSync,
23
23
  runtime,
24
24
  scoped,
25
- succeed3 as succeed,
26
- suspend2 as suspend
27
- } from "./chunk-26WAMIP2.js";
25
+ succeed2 as succeed,
26
+ suspend
27
+ } from "./chunk-DPNPQG2D.js";
28
28
  import {
29
29
  __commonJS,
30
30
  __export,
@@ -3,32 +3,30 @@ const require = __priiiskCreateRequire(import.meta.url);
3
3
  import {
4
4
  CampSessionError,
5
5
  CampSessionErrorCode
6
- } from "./chunk-S4NILFPX.js";
6
+ } from "./chunk-U2FODXMR.js";
7
7
  import {
8
8
  CAMP_HEALTH_SCHEMA_VERSION,
9
9
  CampHealthComponentCategory,
10
10
  CampHealthComponentStatus,
11
11
  CampHealthSnapshotSchema,
12
- CliSurfaceSelectionError,
12
+ CliSurfaceSelectionError
13
+ } from "./chunk-GBEORC3T.js";
14
+ import {
15
+ Array$,
16
+ Boolean$,
13
17
  CommandExecutor_exports,
14
18
  Command_exports,
19
+ Literal,
20
+ NullOr,
21
+ Number$,
15
22
  PRIIISK_CACHE_ROOT_ENV,
16
23
  PRIIISK_CONFIG_PATH_ENV,
17
24
  PRIIISK_CREDENTIALS_PATH_ENV,
18
25
  PRIIISK_PI_AGENT_DIR_ENV,
19
26
  PRIIISK_RUNTIME_DIR_ENV,
20
27
  PRIIISK_STATE_ROOT_ENV,
21
- StateIoError,
22
- campRunPaths,
23
- prepareCampRunStorage
24
- } from "./chunk-QDIMBK33.js";
25
- import {
26
- Array$,
27
- Boolean$,
28
- Literal,
29
- NullOr,
30
- Number$,
31
28
  Record,
29
+ StateIoError,
32
30
  String$,
33
31
  Struct,
34
32
  Tag,
@@ -38,8 +36,9 @@ import {
38
36
  _void,
39
37
  all,
40
38
  andThen,
41
- as2 as as,
39
+ as,
42
40
  asVoid2 as asVoid,
41
+ campRunPaths,
43
42
  catchAll,
44
43
  catchTag,
45
44
  currentTimeMillis,
@@ -47,11 +46,11 @@ import {
47
46
  die2 as die,
48
47
  effect,
49
48
  either,
50
- ensuring2 as ensuring,
49
+ ensuring,
51
50
  exponential,
52
51
  fail4 as fail,
53
52
  filterOrFail,
54
- flatMap4 as flatMap,
53
+ flatMap3 as flatMap,
55
54
  forEach,
56
55
  gen,
57
56
  get4 as get,
@@ -65,7 +64,7 @@ import {
65
64
  isRight,
66
65
  isSome,
67
66
  make6 as make,
68
- map6 as map,
67
+ map3 as map,
69
68
  mapError,
70
69
  match,
71
70
  matchEffect,
@@ -78,20 +77,21 @@ import {
78
77
  orDie,
79
78
  orElseSucceed,
80
79
  positive,
80
+ prepareCampRunStorage,
81
81
  recurs,
82
82
  retry,
83
83
  runForEach,
84
84
  scoped,
85
85
  some,
86
86
  string3 as string,
87
- succeed4 as succeed,
88
- tap2 as tap,
87
+ succeed3 as succeed,
88
+ tap,
89
89
  timeoutFail,
90
90
  try_,
91
91
  update,
92
92
  withDefault,
93
- zipRight2 as zipRight
94
- } from "./chunk-26WAMIP2.js";
93
+ zipRight
94
+ } from "./chunk-DPNPQG2D.js";
95
95
 
96
96
  // packages/cli/src/doctor/doctorModel.ts
97
97
  var DOCTOR_REPORT_SCHEMA_VERSION = 1;
@@ -135,7 +135,7 @@ var makeDoctorReport = (checks, checkedAt, projectHash) => ({
135
135
  var doctorErrorMessage = (cause) => (cause instanceof Error ? cause.message : String(cause)).slice(-2048);
136
136
 
137
137
  // packages/camp-state/src/bootstrap/campHostVersion.ts
138
- var PRIIISK_HOST_VERSION = "0.1.20";
138
+ var PRIIISK_HOST_VERSION = "0.1.22";
139
139
 
140
140
  // packages/surface/src/domain/surfaceModel.ts
141
141
  var NonEmptyString = String$.pipe(minLength(1));
@@ -21,55 +21,55 @@ import {
21
21
  loadCampManifest,
22
22
  makeDoctorReport,
23
23
  resolveCampSurface
24
- } from "./chunk-ZG6EM6OD.js";
24
+ } from "./chunk-7HDRDMQU.js";
25
25
  import {
26
26
  CampSessionError,
27
27
  CampTurnStopReason
28
- } from "./chunk-S4NILFPX.js";
28
+ } from "./chunk-U2FODXMR.js";
29
29
  import {
30
30
  CampHealthComponentStatus,
31
31
  CampHealthOverallStatus,
32
32
  CampHostReadiness,
33
- DirectToolSandboxKind,
34
- FileSystem_exports,
35
- PRIIISK_PI_AGENT_DIR_ENV,
36
33
  PRIIISK_PROTOCOL_PACKAGE_VERSION,
37
34
  PRIIISK_PROTOCOL_VERSION,
38
- campProjectPaths,
39
- currentDirectToolSandbox,
40
- describeDirectToolSandbox,
41
- describeProjectConfigOverrides,
42
- listWorkerModelCatalogEntries,
43
- loadProjectWorkerConfig,
44
- loadWorkerConfig,
45
- projectConfigPath,
46
- resolveCredentialsPath,
47
- resolveProjectScope,
48
- resolveWorkerConfigPath,
49
35
  withCampRpc
50
- } from "./chunk-QDIMBK33.js";
51
- import "./chunk-XLZHFINK.js";
36
+ } from "./chunk-GBEORC3T.js";
37
+ import "./chunk-YNTHXLFG.js";
52
38
  import {
39
+ DirectToolSandboxKind,
40
+ FileSystem_exports,
53
41
  Literal,
42
+ PRIIISK_PI_AGENT_DIR_ENV,
54
43
  Tag,
55
44
  TaggedError,
56
45
  all,
46
+ campProjectPaths,
57
47
  catchAll,
48
+ currentDirectToolSandbox,
58
49
  currentTimeMillis,
50
+ describeDirectToolSandbox,
51
+ describeProjectConfigOverrides,
59
52
  either,
60
- flatMap4 as flatMap,
53
+ flatMap3 as flatMap,
61
54
  forEach,
62
55
  gen,
63
56
  get4 as get,
64
57
  isNone,
58
+ listWorkerModelCatalogEntries,
59
+ loadProjectWorkerConfig,
60
+ loadWorkerConfig,
65
61
  make6 as make,
66
- map6 as map,
62
+ map3 as map,
67
63
  match,
68
- succeed4 as succeed,
69
- sync2 as sync,
64
+ projectConfigPath,
65
+ resolveCredentialsPath,
66
+ resolveProjectScope,
67
+ resolveWorkerConfigPath,
68
+ succeed3 as succeed,
69
+ sync,
70
70
  try_,
71
71
  update
72
- } from "./chunk-26WAMIP2.js";
72
+ } from "./chunk-DPNPQG2D.js";
73
73
  import {
74
74
  __commonJS,
75
75
  __require,