@bernierllc/braingrid-cli-wrapper 0.5.0 → 0.6.0

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.
@@ -0,0 +1,11 @@
1
+ export type BraingridCliWrapperErrorCode = 'BRAINGRID_CLI_WRAPPER_ERROR' | 'INVALID_INPUT' | 'OPERATION_FAILED';
2
+ export interface BraingridCliWrapperErrorOptions {
3
+ cause?: Error;
4
+ code?: BraingridCliWrapperErrorCode;
5
+ context?: Record<string, unknown>;
6
+ }
7
+ export declare class BraingridCliWrapperError extends Error {
8
+ readonly code: BraingridCliWrapperErrorCode;
9
+ readonly context?: Record<string, unknown>;
10
+ constructor(message: string, options?: BraingridCliWrapperErrorOptions);
11
+ }
package/dist/errors.js ADDED
@@ -0,0 +1,24 @@
1
+ "use strict";
2
+ /*
3
+ Copyright (c) 2025 Bernier LLC
4
+
5
+ This file is licensed to the client under a limited-use license.
6
+ The client may use and modify this code only within the scope of the project it was delivered for.
7
+ Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
8
+ */
9
+ Object.defineProperty(exports, "__esModule", { value: true });
10
+ exports.BraingridCliWrapperError = void 0;
11
+ class BraingridCliWrapperError extends Error {
12
+ code;
13
+ context;
14
+ constructor(message, options) {
15
+ super(message, options?.cause ? { cause: options.cause } : undefined);
16
+ this.name = 'BraingridCliWrapperError';
17
+ this.code = options?.code ?? 'BRAINGRID_CLI_WRAPPER_ERROR';
18
+ if (options?.context !== undefined) {
19
+ this.context = options.context;
20
+ }
21
+ Error.captureStackTrace?.(this, this.constructor);
22
+ }
23
+ }
24
+ exports.BraingridCliWrapperError = BraingridCliWrapperError;
package/dist/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export { updateRequirementStatus } from './commands/updateRequirementStatus';
8
8
  export { createTask, CreateTaskOptions } from './commands/createTask';
9
9
  export { updateTaskStatus, UpdateTaskOptions } from './commands/updateTaskStatus';
10
10
  export { listTasks, ListTasksOptions } from './commands/listTasks';
11
+ export { BraingridCliWrapperError, type BraingridCliWrapperErrorCode, type BraingridCliWrapperErrorOptions } from './errors';
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ The client may use and modify this code *only within the scope of the project it
7
7
  Redistribution or use in other products or commercial offerings is not permitted without written consent from Bernier LLC.
8
8
  */
9
9
  Object.defineProperty(exports, "__esModule", { value: true });
10
- exports.listTasks = exports.updateTaskStatus = exports.createTask = exports.updateRequirementStatus = exports.listRequirements = exports.createProject = exports.listProjects = exports.createIdea = exports.BrainGridCliError = exports.BrainGridTaskSchema = exports.BrainGridRequirementSchema = exports.BrainGridProjectSchema = void 0;
10
+ exports.BraingridCliWrapperError = exports.listTasks = exports.updateTaskStatus = exports.createTask = exports.updateRequirementStatus = exports.listRequirements = exports.createProject = exports.listProjects = exports.createIdea = exports.BrainGridCliError = exports.BrainGridTaskSchema = exports.BrainGridRequirementSchema = exports.BrainGridProjectSchema = void 0;
11
11
  // BrainGrid CLI Wrapper - Type-safe wrapper for BrainGrid CLI
12
12
  // Export types and schemas
13
13
  var models_1 = require("./models");
@@ -32,3 +32,6 @@ var updateTaskStatus_1 = require("./commands/updateTaskStatus");
32
32
  Object.defineProperty(exports, "updateTaskStatus", { enumerable: true, get: function () { return updateTaskStatus_1.updateTaskStatus; } });
33
33
  var listTasks_1 = require("./commands/listTasks");
34
34
  Object.defineProperty(exports, "listTasks", { enumerable: true, get: function () { return listTasks_1.listTasks; } });
35
+ // Error types
36
+ var errors_1 = require("./errors");
37
+ Object.defineProperty(exports, "BraingridCliWrapperError", { enumerable: true, get: function () { return errors_1.BraingridCliWrapperError; } });
package/package.json CHANGED
@@ -1,13 +1,12 @@
1
1
  {
2
2
  "name": "@bernierllc/braingrid-cli-wrapper",
3
- "version": "0.5.0",
3
+ "version": "0.6.0",
4
4
  "description": "Type-safe wrapper for BrainGrid CLI",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
7
7
  "files": [
8
- "dist",
9
- "README.md",
10
- "LICENSE"
8
+ "dist/**/*",
9
+ "README.md"
11
10
  ],
12
11
  "keywords": [
13
12
  "braingrid",