You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Improve error handling from 3P requests on interceptor (#238)
* refactor: replace undefined return with ExecutionResult in execute()
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
* test: update execute() tests for ExecutionResult and add AppKitError subclass coverage
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
* chore: docs update
* chore: preserve upstream HTTP status codes in execute() for non-AppKitError errors
* docs: regenerate ExecutionResult API docs with error handling details
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
* refactor: use HTTP status code descriptions in files plugin (#258)
* refactor: use HTTP status code descriptions instead of hardcoded error strings
Replace hardcoded error messages like "List failed" with standard HTTP
status descriptions from node:http STATUS_CODES for consistent error responses.
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
* chore: dry status error responses in files plugin
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
* fix: standardize stream error to use _sendStatusError helper
Addresses Copilot review comment about mixed error formats in the
read/download stream handler.
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
---------
Signed-off-by: Atila Fassina <atila@fassina.eu>
* fix: correct test assertions for 404/409 status text in files plugin
The _sendStatusError() helper returns STATUS_CODES[status] (e.g., "Not Found"
for 404, "Conflict" for 409), but tests incorrectly expected "Internal Server
Error" for all error status codes.
Co-authored-by: Isaac
Signed-off-by: Atila Fassina <atila@fassina.eu>
---------
Signed-off-by: Atila Fassina <atila@fassina.eu>
Copy file name to clipboardExpand all lines: docs/docs/api/appkit/index.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -54,6 +54,7 @@ plugin architecture, and React integration.
54
54
| Type Alias | Description |
55
55
| ------ | ------ |
56
56
|[ConfigSchema](TypeAlias.ConfigSchema.md)| Configuration schema definition for plugin config. Re-exported from the standard JSON Schema Draft 7 types. |
57
+
|[ExecutionResult](TypeAlias.ExecutionResult.md)| Discriminated union for plugin execution results. |
57
58
|[IAppRouter](TypeAlias.IAppRouter.md)| Express router type for plugin route registration |
58
59
|[PluginData](TypeAlias.PluginData.md)| Tuple of plugin class, config, and name. Created by `toPlugin()` and passed to `createApp()`. |
59
60
|[ResourcePermission](TypeAlias.ResourcePermission.md)| Union of all possible permission levels across all resource types. |
0 commit comments