@octonodes/cli 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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@octonodes/cli",
3
- "version": "0.1.10",
3
+ "version": "0.1.12",
4
4
  "description": "Octonode API and plugin development CLI.",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -21,7 +21,7 @@
21
21
  "prepack": "tsc -b"
22
22
  },
23
23
  "dependencies": {
24
- "@octonodes/sdk": "0.1.10",
24
+ "@octonodes/sdk": "0.1.12",
25
25
  "@supabase/supabase-js": "2.107.0",
26
26
  "esbuild": "0.28.1",
27
27
  "tar": "7.5.22",
@@ -2222,8 +2222,10 @@ var require_collaboration = __commonJS({
2222
2222
  projectId: zod_1.z.string().trim().min(1).max(128),
2223
2223
  projectIds: zod_1.z.array(zod_1.z.string().trim().min(1).max(128)).min(1).max(100).refine((ids) => new Set(ids).size === ids.length, "projectIds must be unique").optional(),
2224
2224
  name: zod_1.z.string().trim().min(1).max(80).optional(),
2225
+ worktreeId: zod_1.z.string().uuid().optional(),
2226
+ mode: zod_1.z.enum(["full", "quick"]).optional(),
2225
2227
  clientMutationId: exports2.idempotencyKeySchema
2226
- }).strict().refine(({ projectId, projectIds }) => !projectIds || projectIds[0] === projectId, "projectId must be the first projectIds entry");
2228
+ }).strict().refine(({ projectId, projectIds, worktreeId }) => (!projectIds || projectIds[0] === projectId) && (!worktreeId || !projectIds || projectIds.length === 1), "projectId must be first and checkout sessions require one project");
2227
2229
  exports2.assistantSessionSortSchema = zod_1.z.enum(["activity", "created", "name"]);
2228
2230
  exports2.assistantSessionOrderSchema = zod_1.z.enum(["asc", "desc"]);
2229
2231
  exports2.assistantSessionListQuerySchema = zod_1.z.object({
@@ -11893,15 +11895,6 @@ var require_runner = __commonJS({
11893
11895
  }
11894
11896
  });
11895
11897
 
11896
- // packages/common/environment.cjs
11897
- var require_environment = __commonJS({
11898
- "packages/common/environment.cjs"(exports2) {
11899
- "use strict";
11900
- exports2.PROCESS_ENV = process.env;
11901
- exports2.NODE_ENV = process.env.NODE_ENV;
11902
- }
11903
- });
11904
-
11905
11898
  // packages/plugin-runtime/dist/plugin.js
11906
11899
  var require_plugin2 = __commonJS({
11907
11900
  "packages/plugin-runtime/dist/plugin.js"(exports2) {
@@ -11909,7 +11902,6 @@ var require_plugin2 = __commonJS({
11909
11902
  Object.defineProperty(exports2, "__esModule", { value: true });
11910
11903
  exports2.definePlugin = definePlugin;
11911
11904
  exports2.startPlugin = startPlugin;
11912
- var environment_cjs_1 = require_environment();
11913
11905
  var schema_1 = require_dist();
11914
11906
  var define_node_1 = require_define_node();
11915
11907
  var runner_1 = require_runner();
@@ -11957,7 +11949,7 @@ var require_plugin2 = __commonJS({
11957
11949
  (0, define_node_1.defineNode)({
11958
11950
  ...node,
11959
11951
  run: (inputs, context) => {
11960
- const missing = fields.filter(([name, field]) => field.required && !environment_cjs_1.PROCESS_ENV[name]).map(([name]) => name);
11952
+ const missing = fields.filter(([name, field]) => field.required && !process.env[name]).map(([name]) => name);
11961
11953
  if (missing.length)
11962
11954
  throw new runner_1.NodeError(`Missing connection credentials: ${missing.join(", ")}`);
11963
11955
  return nodeHandlers[node.id](inputs, context);