orbitmap 0.4.2 → 0.4.4

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.
Files changed (164) hide show
  1. package/README.md +112 -18
  2. package/dist/adapters/cloud.d.ts +63 -21
  3. package/dist/adapters/cloud.js +108 -29
  4. package/dist/adapters/cloud.js.map +1 -1
  5. package/dist/adapters/factory.d.ts +3 -0
  6. package/dist/adapters/factory.js +8 -1
  7. package/dist/adapters/factory.js.map +1 -1
  8. package/dist/adapters/local/adapter.d.ts +17 -20
  9. package/dist/adapters/local/adapter.js +28 -21
  10. package/dist/adapters/local/adapter.js.map +1 -1
  11. package/dist/adapters/local/context.d.ts +1 -1
  12. package/dist/adapters/local/context.js +10 -2
  13. package/dist/adapters/local/context.js.map +1 -1
  14. package/dist/adapters/local/entities/planning.d.ts +5 -1
  15. package/dist/adapters/local/entities/planning.js +16 -3
  16. package/dist/adapters/local/entities/planning.js.map +1 -1
  17. package/dist/adapters/local/entities/tasks.d.ts +9 -1
  18. package/dist/adapters/local/entities/tasks.js +47 -5
  19. package/dist/adapters/local/entities/tasks.js.map +1 -1
  20. package/dist/adapters/local/entities/work-items.d.ts +14 -30
  21. package/dist/adapters/local/entities/work-items.js +63 -47
  22. package/dist/adapters/local/entities/work-items.js.map +1 -1
  23. package/dist/adapters/local/rules.d.ts +4 -4
  24. package/dist/adapters/local/rules.js +4 -19
  25. package/dist/adapters/local/rules.js.map +1 -1
  26. package/dist/adapters/local/shapes.d.ts +27 -7
  27. package/dist/adapters/local/shapes.js +41 -5
  28. package/dist/adapters/local/shapes.js.map +1 -1
  29. package/dist/adapters/local/store.d.ts +55 -6
  30. package/dist/adapters/local/store.js +122 -8
  31. package/dist/adapters/local/store.js.map +1 -1
  32. package/dist/adapters/local/types.d.ts +11 -2
  33. package/dist/adapters/local/types.js +9 -2
  34. package/dist/adapters/local/types.js.map +1 -1
  35. package/dist/adapters/types.d.ts +30 -20
  36. package/dist/agent-instructions.d.ts +43 -12
  37. package/dist/agent-instructions.js +1133 -170
  38. package/dist/agent-instructions.js.map +1 -1
  39. package/dist/area-directories.d.ts +75 -0
  40. package/dist/area-directories.js +162 -0
  41. package/dist/area-directories.js.map +1 -0
  42. package/dist/area-grouping.d.ts +55 -0
  43. package/dist/area-grouping.js +72 -0
  44. package/dist/area-grouping.js.map +1 -0
  45. package/dist/commands/areas.js +30 -2
  46. package/dist/commands/areas.js.map +1 -1
  47. package/dist/commands/assign.d.ts +1 -0
  48. package/dist/commands/assign.js +2 -0
  49. package/dist/commands/assign.js.map +1 -1
  50. package/dist/commands/context.d.ts +95 -0
  51. package/dist/commands/context.js +104 -2
  52. package/dist/commands/context.js.map +1 -1
  53. package/dist/commands/create.d.ts +1 -0
  54. package/dist/commands/create.js +19 -14
  55. package/dist/commands/create.js.map +1 -1
  56. package/dist/commands/dep.js +5 -8
  57. package/dist/commands/dep.js.map +1 -1
  58. package/dist/commands/doc-import.d.ts +1 -0
  59. package/dist/commands/doc-import.js +8 -26
  60. package/dist/commands/doc-import.js.map +1 -1
  61. package/dist/commands/doc-patch.js +16 -52
  62. package/dist/commands/doc-patch.js.map +1 -1
  63. package/dist/commands/doc-share.js +4 -0
  64. package/dist/commands/doc-share.js.map +1 -1
  65. package/dist/commands/doc-update.js +4 -8
  66. package/dist/commands/doc-update.js.map +1 -1
  67. package/dist/commands/doc.js +7 -12
  68. package/dist/commands/doc.js.map +1 -1
  69. package/dist/commands/docs-cache.js +23 -10
  70. package/dist/commands/docs-cache.js.map +1 -1
  71. package/dist/commands/docs.js +29 -10
  72. package/dist/commands/docs.js.map +1 -1
  73. package/dist/commands/get.js +8 -10
  74. package/dist/commands/get.js.map +1 -1
  75. package/dist/commands/ideas.d.ts +3 -1
  76. package/dist/commands/ideas.js +26 -49
  77. package/dist/commands/ideas.js.map +1 -1
  78. package/dist/commands/init.d.ts +24 -1
  79. package/dist/commands/init.js +0 -0
  80. package/dist/commands/init.js.map +1 -1
  81. package/dist/commands/intent.d.ts +16 -0
  82. package/dist/commands/intent.js +61 -18
  83. package/dist/commands/intent.js.map +1 -1
  84. package/dist/commands/issues.d.ts +3 -1
  85. package/dist/commands/issues.js +47 -72
  86. package/dist/commands/issues.js.map +1 -1
  87. package/dist/commands/log.d.ts +14 -2
  88. package/dist/commands/log.js +35 -20
  89. package/dist/commands/log.js.map +1 -1
  90. package/dist/commands/mission.d.ts +8 -0
  91. package/dist/commands/mission.js +58 -18
  92. package/dist/commands/mission.js.map +1 -1
  93. package/dist/commands/orbit.d.ts +7 -1
  94. package/dist/commands/orbit.js +13 -24
  95. package/dist/commands/orbit.js.map +1 -1
  96. package/dist/commands/setup-agent.d.ts +97 -4
  97. package/dist/commands/setup-agent.js +273 -40
  98. package/dist/commands/setup-agent.js.map +1 -1
  99. package/dist/commands/setup-mcp.d.ts +2 -0
  100. package/dist/commands/setup-mcp.js +17 -40
  101. package/dist/commands/setup-mcp.js.map +1 -1
  102. package/dist/commands/start.d.ts +43 -0
  103. package/dist/commands/start.js +158 -3
  104. package/dist/commands/start.js.map +1 -1
  105. package/dist/commands/status.d.ts +1 -0
  106. package/dist/commands/status.js +5 -15
  107. package/dist/commands/status.js.map +1 -1
  108. package/dist/commands/subtask.d.ts +1 -0
  109. package/dist/commands/subtask.js +9 -2
  110. package/dist/commands/subtask.js.map +1 -1
  111. package/dist/commands/task-edit-content.js +4 -8
  112. package/dist/commands/task-edit-content.js.map +1 -1
  113. package/dist/commands/task.d.ts +7 -0
  114. package/dist/commands/task.js +5 -2
  115. package/dist/commands/task.js.map +1 -1
  116. package/dist/commands/tasks.d.ts +35 -0
  117. package/dist/commands/tasks.js +45 -9
  118. package/dist/commands/tasks.js.map +1 -1
  119. package/dist/commands/vibes.d.ts +3 -1
  120. package/dist/commands/vibes.js +41 -31
  121. package/dist/commands/vibes.js.map +1 -1
  122. package/dist/config.d.ts +11 -0
  123. package/dist/config.js +14 -1
  124. package/dist/config.js.map +1 -1
  125. package/dist/doc-cache.d.ts +74 -5
  126. package/dist/doc-cache.js +106 -22
  127. package/dist/doc-cache.js.map +1 -1
  128. package/dist/enums.d.ts +26 -0
  129. package/dist/enums.js +53 -0
  130. package/dist/enums.js.map +1 -0
  131. package/dist/errors.d.ts +67 -0
  132. package/dist/errors.js +82 -0
  133. package/dist/errors.js.map +1 -1
  134. package/dist/index.js +169 -60
  135. package/dist/index.js.map +1 -1
  136. package/dist/mcp-config.d.ts +42 -1
  137. package/dist/mcp-config.js +82 -2
  138. package/dist/mcp-config.js.map +1 -1
  139. package/dist/oauth.js +10 -10
  140. package/dist/output.d.ts +12 -0
  141. package/dist/output.js +39 -1
  142. package/dist/output.js.map +1 -1
  143. package/dist/paths.d.ts +40 -0
  144. package/dist/paths.js +174 -9
  145. package/dist/paths.js.map +1 -1
  146. package/dist/project-config.d.ts +42 -1
  147. package/dist/project-config.js +51 -0
  148. package/dist/project-config.js.map +1 -1
  149. package/dist/work-log.d.ts +104 -0
  150. package/dist/work-log.js +181 -0
  151. package/dist/work-log.js.map +1 -0
  152. package/dist/workspace-resolve.d.ts +179 -9
  153. package/dist/workspace-resolve.js +288 -20
  154. package/dist/workspace-resolve.js.map +1 -1
  155. package/dist/write-target.d.ts +56 -0
  156. package/dist/write-target.js +170 -0
  157. package/dist/write-target.js.map +1 -0
  158. package/package.json +3 -2
  159. package/dist/commands/create-project.d.ts +0 -6
  160. package/dist/commands/create-project.js +0 -28
  161. package/dist/commands/create-project.js.map +0 -1
  162. package/dist/commands/projects.d.ts +0 -3
  163. package/dist/commands/projects.js +0 -28
  164. package/dist/commands/projects.js.map +0 -1
package/dist/errors.d.ts CHANGED
@@ -17,16 +17,83 @@ export interface FlatApiErrorBody {
17
17
  }
18
18
  /** No local workspace directory could be resolved (see workspace-resolve.ts). */
19
19
  export declare const WORKSPACE_NOT_FOUND = "WORKSPACE_NOT_FOUND";
20
+ /**
21
+ * Code every *client-side* argument rejection carries — the same code and status the API
22
+ * uses for a validation failure, so a `--json` consumer can branch on `error.code` without
23
+ * caring whether the CLI or the server rejected the call.
24
+ */
25
+ export declare const VALIDATION_ERROR = "VALIDATION_ERROR";
26
+ /** HTTP status the API uses for validation failures. */
27
+ export declare const VALIDATION_STATUS = 422;
20
28
  /** The command needs an area but none could be resolved (same code the API uses). */
21
29
  export declare const AREA_CONTEXT_REQUIRED = "AREA_CONTEXT_REQUIRED";
30
+ /**
31
+ * The API could not resolve a workspace: no `X-Orbitmap-Workspace`, no area to derive one
32
+ * from, and no unique workspace to auto-detect. Raised server-side only.
33
+ */
34
+ export declare const WORKSPACE_CONTEXT_REQUIRED = "WORKSPACE_CONTEXT_REQUIRED";
35
+ /**
36
+ * `X-Orbitmap-Workspace` and `X-Orbitmap-Area` named different workspaces (422). Raised
37
+ * server-side only.
38
+ */
39
+ export declare const AREA_WORKSPACE_MISMATCH = "AREA_WORKSPACE_MISMATCH";
40
+ /** The caller's agent has no access to the area (same code the API uses). */
41
+ export declare const NO_AREA_ACCESS = "NO_AREA_ACCESS";
42
+ /** The caller's role in the area is too low for the operation (same code the API uses). */
43
+ export declare const INSUFFICIENT_AREA_ROLE = "INSUFFICIENT_AREA_ROLE";
44
+ /** The agent's owner is not a member of the area (403). Raised server-side only. */
45
+ export declare const OWNER_NO_AREA_ACCESS = "OWNER_NO_AREA_ACCESS";
46
+ /** A referenced agent is not assigned to the area (422). Raised server-side only. */
47
+ export declare const AGENT_NOT_IN_AREA = "AGENT_NOT_IN_AREA";
48
+ /** A referenced user is not a member of the area (422). Raised server-side only. */
49
+ export declare const USER_NOT_IN_AREA = "USER_NOT_IN_AREA";
50
+ /**
51
+ * Legacy → canonical error-code aliases, in ONE place.
52
+ *
53
+ * The API is renaming its `PROJECT_*` codes to `AREA_*`. Both spellings mean exactly the
54
+ * same thing, and a client that understands only one of them breaks the moment the server
55
+ * flips: an old CLI would stop recognising the new codes, a new CLI would stop recognising
56
+ * the ones still in flight. Every site that *dispatches* on an error code must therefore
57
+ * compare against {@link OrbitMapAPIError.canonicalCode} (or use {@link isErrorCode}), never
58
+ * against the raw wire code.
59
+ *
60
+ * This map is read-only in one direction on purpose — `AREA_*` is canonical; the `PROJECT_*`
61
+ * spellings are accepted, never produced. The wire code itself is preserved verbatim on the
62
+ * error (and in `--json` output), so user-facing messages and exit codes do not change for
63
+ * either spelling.
64
+ */
65
+ export declare const ERROR_CODE_ALIASES: Readonly<Record<string, string>>;
66
+ /**
67
+ * The canonical spelling of an error code: legacy `PROJECT_*` codes map to their `AREA_*`
68
+ * equivalent, everything else is returned unchanged.
69
+ */
70
+ export declare function normalizeErrorCode(code: string): string;
71
+ /**
72
+ * `true` when `code` is the given canonical code or any of its accepted aliases. Use this
73
+ * instead of `error.code === SOME_CODE` at dispatch sites.
74
+ */
75
+ export declare function isErrorCode(code: string, canonical: string): boolean;
22
76
  export declare class OrbitMapAPIError extends Error {
77
+ /** The code exactly as it arrived on the wire — what gets printed and JSON-serialised. */
23
78
  readonly code: string;
79
+ /**
80
+ * {@link code} normalised through {@link ERROR_CODE_ALIASES}. Compare against this (never
81
+ * against {@link code}) when branching on an error code, so the CLI keeps working across
82
+ * the API's `PROJECT_*` → `AREA_*` rename.
83
+ */
84
+ readonly canonicalCode: string;
24
85
  readonly status: number;
25
86
  readonly details?: Record<string, unknown>;
26
87
  constructor(message: string, code: string, status: number, details?: Record<string, unknown>);
27
88
  static fromResponse(body: ApiErrorBody): OrbitMapAPIError;
28
89
  static fromFlatResponse(body: FlatApiErrorBody, httpStatus: number): OrbitMapAPIError;
29
90
  static workspaceNotFound(message?: string): OrbitMapAPIError;
91
+ /**
92
+ * A client-side argument rejection (bad enum value, missing required input, unparsable
93
+ * JSON, …), shaped exactly like a server validation error so `--json` consumers see one
94
+ * envelope with `code`/`status`/`details` no matter who rejected the call.
95
+ */
96
+ static validation(message: string, details?: Record<string, unknown>): OrbitMapAPIError;
30
97
  static areaContextRequired(message?: string, details?: Record<string, unknown>): OrbitMapAPIError;
31
98
  static isApiErrorBody(body: unknown): body is ApiErrorBody;
32
99
  static isFlatApiErrorBody(body: unknown): body is FlatApiErrorBody;
package/dist/errors.js CHANGED
@@ -1,19 +1,93 @@
1
1
  /** No local workspace directory could be resolved (see workspace-resolve.ts). */
2
2
  export const WORKSPACE_NOT_FOUND = 'WORKSPACE_NOT_FOUND';
3
+ /**
4
+ * Code every *client-side* argument rejection carries — the same code and status the API
5
+ * uses for a validation failure, so a `--json` consumer can branch on `error.code` without
6
+ * caring whether the CLI or the server rejected the call.
7
+ */
8
+ export const VALIDATION_ERROR = 'VALIDATION_ERROR';
9
+ /** HTTP status the API uses for validation failures. */
10
+ export const VALIDATION_STATUS = 422;
3
11
  /** The command needs an area but none could be resolved (same code the API uses). */
4
12
  export const AREA_CONTEXT_REQUIRED = 'AREA_CONTEXT_REQUIRED';
13
+ /**
14
+ * The API could not resolve a workspace: no `X-Orbitmap-Workspace`, no area to derive one
15
+ * from, and no unique workspace to auto-detect. Raised server-side only.
16
+ */
17
+ export const WORKSPACE_CONTEXT_REQUIRED = 'WORKSPACE_CONTEXT_REQUIRED';
18
+ /**
19
+ * `X-Orbitmap-Workspace` and `X-Orbitmap-Area` named different workspaces (422). Raised
20
+ * server-side only.
21
+ */
22
+ export const AREA_WORKSPACE_MISMATCH = 'AREA_WORKSPACE_MISMATCH';
23
+ /** The caller's agent has no access to the area (same code the API uses). */
24
+ export const NO_AREA_ACCESS = 'NO_AREA_ACCESS';
25
+ /** The caller's role in the area is too low for the operation (same code the API uses). */
26
+ export const INSUFFICIENT_AREA_ROLE = 'INSUFFICIENT_AREA_ROLE';
27
+ /** The agent's owner is not a member of the area (403). Raised server-side only. */
28
+ export const OWNER_NO_AREA_ACCESS = 'OWNER_NO_AREA_ACCESS';
29
+ /** A referenced agent is not assigned to the area (422). Raised server-side only. */
30
+ export const AGENT_NOT_IN_AREA = 'AGENT_NOT_IN_AREA';
31
+ /** A referenced user is not a member of the area (422). Raised server-side only. */
32
+ export const USER_NOT_IN_AREA = 'USER_NOT_IN_AREA';
33
+ /**
34
+ * Legacy → canonical error-code aliases, in ONE place.
35
+ *
36
+ * The API is renaming its `PROJECT_*` codes to `AREA_*`. Both spellings mean exactly the
37
+ * same thing, and a client that understands only one of them breaks the moment the server
38
+ * flips: an old CLI would stop recognising the new codes, a new CLI would stop recognising
39
+ * the ones still in flight. Every site that *dispatches* on an error code must therefore
40
+ * compare against {@link OrbitMapAPIError.canonicalCode} (or use {@link isErrorCode}), never
41
+ * against the raw wire code.
42
+ *
43
+ * This map is read-only in one direction on purpose — `AREA_*` is canonical; the `PROJECT_*`
44
+ * spellings are accepted, never produced. The wire code itself is preserved verbatim on the
45
+ * error (and in `--json` output), so user-facing messages and exit codes do not change for
46
+ * either spelling.
47
+ */
48
+ export const ERROR_CODE_ALIASES = Object.freeze({
49
+ PROJECT_CONTEXT_REQUIRED: AREA_CONTEXT_REQUIRED,
50
+ NO_PROJECT_ACCESS: NO_AREA_ACCESS,
51
+ INSUFFICIENT_PROJECT_ROLE: INSUFFICIENT_AREA_ROLE,
52
+ PROJECT_WORKSPACE_MISMATCH: AREA_WORKSPACE_MISMATCH,
53
+ OWNER_NO_PROJECT_ACCESS: OWNER_NO_AREA_ACCESS,
54
+ AGENT_NOT_IN_PROJECT: AGENT_NOT_IN_AREA,
55
+ USER_NOT_IN_PROJECT: USER_NOT_IN_AREA,
56
+ });
57
+ /**
58
+ * The canonical spelling of an error code: legacy `PROJECT_*` codes map to their `AREA_*`
59
+ * equivalent, everything else is returned unchanged.
60
+ */
61
+ export function normalizeErrorCode(code) {
62
+ return ERROR_CODE_ALIASES[code] ?? code;
63
+ }
64
+ /**
65
+ * `true` when `code` is the given canonical code or any of its accepted aliases. Use this
66
+ * instead of `error.code === SOME_CODE` at dispatch sites.
67
+ */
68
+ export function isErrorCode(code, canonical) {
69
+ return normalizeErrorCode(code) === normalizeErrorCode(canonical);
70
+ }
5
71
  const FLAT_ERROR_CODES = {
6
72
  402: 'PAYMENT_REQUIRED',
7
73
  429: 'RATE_LIMITED',
8
74
  };
9
75
  export class OrbitMapAPIError extends Error {
76
+ /** The code exactly as it arrived on the wire — what gets printed and JSON-serialised. */
10
77
  code;
78
+ /**
79
+ * {@link code} normalised through {@link ERROR_CODE_ALIASES}. Compare against this (never
80
+ * against {@link code}) when branching on an error code, so the CLI keeps working across
81
+ * the API's `PROJECT_*` → `AREA_*` rename.
82
+ */
83
+ canonicalCode;
11
84
  status;
12
85
  details;
13
86
  constructor(message, code, status, details) {
14
87
  super(message);
15
88
  this.name = 'OrbitMapAPIError';
16
89
  this.code = code;
90
+ this.canonicalCode = normalizeErrorCode(code);
17
91
  this.status = status;
18
92
  this.details = details;
19
93
  }
@@ -36,6 +110,14 @@ export class OrbitMapAPIError extends Error {
36
110
  'No OrbitMap workspace found. Run `orbitmap init` to create one, or point at an ' +
37
111
  'existing workspace with --workspace <path> or ORBITMAP_WORKSPACE.', WORKSPACE_NOT_FOUND, 404);
38
112
  }
113
+ /**
114
+ * A client-side argument rejection (bad enum value, missing required input, unparsable
115
+ * JSON, …), shaped exactly like a server validation error so `--json` consumers see one
116
+ * envelope with `code`/`status`/`details` no matter who rejected the call.
117
+ */
118
+ static validation(message, details) {
119
+ return new OrbitMapAPIError(message, VALIDATION_ERROR, VALIDATION_STATUS, details);
120
+ }
39
121
  static areaContextRequired(message, details) {
40
122
  return new OrbitMapAPIError(message ||
41
123
  'Area context is required. Pass --area <slug>, set ORBITMAP_AREA, or set a default ' +
@@ -1 +1 @@
1
- {"version":3,"file":"errors.js","sourceRoot":"","sources":["../src/errors.ts"],"names":[],"mappings":"AAmBA,iFAAiF;AACjF,MAAM,CAAC,MAAM,mBAAmB,GAAG,qBAAqB,CAAC;AAEzD,qFAAqF;AACrF,MAAM,CAAC,MAAM,qBAAqB,GAAG,uBAAuB,CAAC;AAE7D,MAAM,gBAAgB,GAA2B;IAC/C,GAAG,EAAE,kBAAkB;IACvB,GAAG,EAAE,cAAc;CACpB,CAAC;AAEF,MAAM,OAAO,gBAAiB,SAAQ,KAAK;IAChC,IAAI,CAAS;IACb,MAAM,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