@envseal/protocol 0.1.2 → 0.1.3

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/errors.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- export declare const SEP_ERROR_CODES: readonly ["SEP_UNKNOWN_KEY", "SEP_NOT_DECLARED", "SEP_NO_INTERACTIVE_SURFACE", "SEP_TICKET_EXPIRED", "SEP_TICKET_UNKNOWN", "SEP_USER_CANCELLED", "SEP_FORMAT_INVALID", "SEP_SINK_UNAVAILABLE", "SEP_SINK_WRITE_FAILED", "SEP_PROBE_NOT_APPROVED", "SEP_VALUE_IN_REQUEST", "SEP_GITIGNORE_UNSAFE", "SEP_CONFIRMATION_DENIED", "SEP_RATE_LIMITED"];
1
+ export declare const SEP_ERROR_CODES: readonly ["SEP_UNKNOWN_KEY", "SEP_NOT_DECLARED", "SEP_NO_INTERACTIVE_SURFACE", "SEP_TICKET_EXPIRED", "SEP_TICKET_UNKNOWN", "SEP_USER_CANCELLED", "SEP_FORMAT_INVALID", "SEP_SINK_UNAVAILABLE", "SEP_SINK_WRITE_FAILED", "SEP_PROBE_NOT_APPROVED", "SEP_VALUE_IN_REQUEST", "SEP_GITIGNORE_UNSAFE", "SEP_CONFIRMATION_DENIED", "SEP_RATE_LIMITED", "SEP_TARGET_CHANGED"];
2
2
  export type SepErrorCode = (typeof SEP_ERROR_CODES)[number];
3
3
  export interface SepErrorDefaults {
4
4
  retriable: boolean;
package/dist/errors.js CHANGED
@@ -13,6 +13,7 @@ export const SEP_ERROR_CODES = [
13
13
  'SEP_GITIGNORE_UNSAFE',
14
14
  'SEP_CONFIRMATION_DENIED',
15
15
  'SEP_RATE_LIMITED',
16
+ 'SEP_TARGET_CHANGED',
16
17
  ];
17
18
  export const SEP_ERROR_DEFAULTS = {
18
19
  SEP_UNKNOWN_KEY: {
@@ -71,6 +72,11 @@ export const SEP_ERROR_DEFAULTS = {
71
72
  retriable: true,
72
73
  userMessage: 'Rate limited. Please retry later.',
73
74
  },
75
+ SEP_TARGET_CHANGED: {
76
+ retriable: true,
77
+ userMessage: 'The program to run changed on disk after you approved it. Nothing was executed. ' +
78
+ 'Re-run the command to review the current content and approve it again.',
79
+ },
74
80
  };
75
81
  export class SepError extends Error {
76
82
  code;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@envseal/protocol",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "type": "module",
5
5
  "license": "Apache-2.0",
6
6
  "main": "./dist/index.js",