priiisk 0.1.5 → 0.1.6

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.
@@ -10678,7 +10678,7 @@ var describeDirectToolSandbox = (sandbox2) => sandbox2.kind === DirectToolSandbo
10678
10678
 
10679
10679
  // packages/protocol/src/domain/protocolVersion.ts
10680
10680
  var PRIIISK_PROTOCOL_VERSION = "11";
10681
- var PRIIISK_PROTOCOL_PACKAGE_VERSION = "0.1.5";
10681
+ var PRIIISK_PROTOCOL_PACKAGE_VERSION = "0.1.6";
10682
10682
  var ProtocolVersionSchema = Schema_exports.String.pipe(Schema_exports.minLength(1));
10683
10683
 
10684
10684
  // packages/protocol/src/domain/protocolIdentifiers.ts
@@ -13553,7 +13553,7 @@ var CampProtocol = class extends RpcGroup_exports.make(
13553
13553
  };
13554
13554
 
13555
13555
  // packages/camp-state/src/bootstrap/campHostVersion.ts
13556
- var PRIIISK_HOST_VERSION = "0.1.5";
13556
+ var PRIIISK_HOST_VERSION = "0.1.6";
13557
13557
 
13558
13558
  // packages/surface/src/domain/surfaceModel.ts
13559
13559
  var NonEmptyString7 = Schema_exports.String.pipe(Schema_exports.minLength(1));
@@ -28,7 +28,7 @@ import {
28
28
  makePlatform,
29
29
  makeRunMain,
30
30
  stdin
31
- } from "./chunk-LIJU6Y2U.js";
31
+ } from "./chunk-3NSS6BZD.js";
32
32
  import {
33
33
  BaseProto,
34
34
  __export,
@@ -20,7 +20,7 @@ import {
20
20
  layerNet,
21
21
  makeCampSurfaceName,
22
22
  resolveProjectScopeSync
23
- } from "./chunk-LIJU6Y2U.js";
23
+ } from "./chunk-3NSS6BZD.js";
24
24
  import {
25
25
  Clock_exports,
26
26
  Config_exports,
@@ -111,7 +111,7 @@ var CliSurfaceSelectionError = class extends Data_exports.TaggedError("CliSurfac
111
111
  import { randomUUID } from "node:crypto";
112
112
 
113
113
  // packages/cli/src/domain/cliVersion.ts
114
- var PRIIISK_CLI_VERSION = "0.1.5";
114
+ var PRIIISK_CLI_VERSION = "0.1.6";
115
115
 
116
116
  // packages/cli/src/client/campRpcConnection.ts
117
117
  var PRIIISK_CONTROLLER_ID_ENV = "PRIIISK_CONTROLLER_ID";
@@ -8,13 +8,13 @@ import {
8
8
  makeDoctorReport,
9
9
  resolveCampSurface,
10
10
  withCampRpc
11
- } from "./chunk-F5HRZ52I.js";
11
+ } from "./chunk-UDDSOI3H.js";
12
12
  import {
13
13
  PI_RUNTIME_VERSION,
14
14
  PiModelCatalogIssueCode,
15
15
  inspectPiModelCatalog,
16
16
  makePiOperatorResources
17
- } from "./chunk-NBNWSCBX.js";
17
+ } from "./chunk-ZNRMKVX3.js";
18
18
  import {
19
19
  CampHealthComponentStatus,
20
20
  CampHealthOverallStatus,
@@ -48,7 +48,7 @@ import {
48
48
  resolveCredentialsPath,
49
49
  resolveProjectScope,
50
50
  resolveWorkerConfigPath
51
- } from "./chunk-LIJU6Y2U.js";
51
+ } from "./chunk-3NSS6BZD.js";
52
52
  import {
53
53
  Clock_exports,
54
54
  Effect_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-LIJU6Y2U.js";
6
+ } from "./chunk-3NSS6BZD.js";
7
7
  import {
8
8
  CampDeliveryPort,
9
9
  CampFailureCode,
@@ -4,7 +4,7 @@ const require = __priiiskCreateRequire(import.meta.url);
4
4
  import {
5
5
  NodeContext_exports,
6
6
  NodeRuntime_exports
7
- } from "./chunk-Q7YCBJEO.js";
7
+ } from "./chunk-JWVO4S72.js";
8
8
  import {
9
9
  CampUiBackendError,
10
10
  CampUiHealthStatus,
@@ -19,7 +19,7 @@ import {
19
19
  makePiTransportLayer,
20
20
  requirePiModelCatalog,
21
21
  require_undici
22
- } from "./chunk-NBNWSCBX.js";
22
+ } from "./chunk-ZNRMKVX3.js";
23
23
  import {
24
24
  AgentRole,
25
25
  AgentRoleSchema,
@@ -100,7 +100,7 @@ import {
100
100
  runningCampManifest,
101
101
  saveCampHealth,
102
102
  saveCampManifest
103
- } from "./chunk-LIJU6Y2U.js";
103
+ } from "./chunk-3NSS6BZD.js";
104
104
  import {
105
105
  CampAskRouter,
106
106
  CampCancellationCode,
@@ -22416,7 +22416,7 @@ var Client = class extends Protocol {
22416
22416
  };
22417
22417
 
22418
22418
  // packages/mcp-backend/src/connections/clientIdentity.ts
22419
- var backendVersion = "0.1.5";
22419
+ var backendVersion = "0.1.6";
22420
22420
 
22421
22421
  // packages/mcp-backend/src/connections/mcpFailure.ts
22422
22422
  var McpFailure = class extends Data_exports.TaggedError("McpFailure") {
@@ -26391,7 +26391,19 @@ var violatesFlag = (argument, denied) => {
26391
26391
  const letter = denied.charAt(1);
26392
26392
  return !name.startsWith("--") && name.slice(1).includes(letter);
26393
26393
  };
26394
- var findSubcommand = (args) => args.find((argument) => !argument.startsWith("-"));
26394
+ var findSubcommand = (args, allowed) => {
26395
+ let previousWasFlag = false;
26396
+ for (const argument of args) {
26397
+ if (argument.startsWith("-")) {
26398
+ previousWasFlag = !argument.includes("=");
26399
+ continue;
26400
+ }
26401
+ if (allowed.includes(argument)) return argument;
26402
+ if (!previousWasFlag) return argument;
26403
+ previousWasFlag = false;
26404
+ }
26405
+ return void 0;
26406
+ };
26395
26407
  var checkDirectToolArguments = (policy, args) => {
26396
26408
  const invalid = args.find((argument) => argument.includes("\0"));
26397
26409
  if (invalid !== void 0) return { reason: "invalid_argument", argument: invalid };
@@ -26400,7 +26412,7 @@ var checkDirectToolArguments = (policy, args) => {
26400
26412
  if (denied !== void 0) return { reason: "denied_flag", argument: denied };
26401
26413
  }
26402
26414
  if (policy.allowedSubcommands === void 0) return void 0;
26403
- const subcommand = findSubcommand(args);
26415
+ const subcommand = findSubcommand(args, policy.allowedSubcommands);
26404
26416
  if (subcommand === void 0) return { reason: "missing_subcommand" };
26405
26417
  return policy.allowedSubcommands.includes(subcommand) ? void 0 : { reason: "unknown_subcommand", argument: subcommand };
26406
26418
  };
package/dist/priiisk.js CHANGED
@@ -5,7 +5,7 @@ import {
5
5
  fromReadable,
6
6
  layer,
7
7
  runMain
8
- } from "./chunk-Q7YCBJEO.js";
8
+ } from "./chunk-JWVO4S72.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-F5HRZ52I.js";
26
+ } from "./chunk-UDDSOI3H.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-LIJU6Y2U.js";
61
+ } from "./chunk-3NSS6BZD.js";
62
62
  import {
63
63
  Cause_exports,
64
64
  CommitPrototype,
@@ -19976,7 +19976,7 @@ var rootCommand = Command_exports.make(
19976
19976
  ).pipe(Command_exports.withDescription("Runs and observes a camp of collaborating workers."));
19977
19977
 
19978
19978
  // packages/cli/src/commands/doctorCommand.ts
19979
- var runDoctorOnDemand = Effect_exports.promise(() => import("./chunk-2RSY5TXT.js")).pipe(
19979
+ var runDoctorOnDemand = Effect_exports.promise(() => import("./chunk-X4GVQOCR.js")).pipe(
19980
19980
  Effect_exports.flatMap((doctor) => doctor.runDoctor)
19981
19981
  );
19982
19982
  var statusLabel = {
@@ -20672,7 +20672,7 @@ var command = rootCommand.pipe(
20672
20672
  );
20673
20673
  var cli = Command_exports.run(command, {
20674
20674
  name: "priiisk camp control",
20675
- version: "0.1.5"
20675
+ version: "0.1.6"
20676
20676
  });
20677
20677
  var runCliCommand = (argumentsList) => cli(argumentsList).pipe(
20678
20678
  Effect_exports.matchEffect({
package/package.json CHANGED
@@ -1,22 +1,22 @@
1
1
  {
2
2
  "name": "priiisk",
3
- "version": "0.1.5",
3
+ "version": "0.1.6",
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-2RSY5TXT.js",
11
10
  "dist/chunk-32R4IEGS.js",
12
- "dist/chunk-F5HRZ52I.js",
11
+ "dist/chunk-3NSS6BZD.js",
12
+ "dist/chunk-3NSS6BZD.js.LEGAL.txt",
13
+ "dist/chunk-JWVO4S72.js",
13
14
  "dist/chunk-KFSFN6L5.js",
14
- "dist/chunk-LIJU6Y2U.js",
15
- "dist/chunk-LIJU6Y2U.js.LEGAL.txt",
16
- "dist/chunk-NBNWSCBX.js",
17
- "dist/chunk-NBNWSCBX.js.LEGAL.txt",
18
- "dist/chunk-Q7YCBJEO.js",
19
15
  "dist/chunk-TOVFB7H6.js",
16
+ "dist/chunk-UDDSOI3H.js",
17
+ "dist/chunk-X4GVQOCR.js",
18
+ "dist/chunk-ZNRMKVX3.js",
19
+ "dist/chunk-ZNRMKVX3.js.LEGAL.txt",
20
20
  "dist/priiisk-host.js",
21
21
  "dist/priiisk.js",
22
22
  "profiles",