Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
20 commits
Select commit Hold shift + click to select a range
840a67b
refactor: rename AnalyticsFormat values to API enum names
jamesbroadhead Apr 29, 2026
09392bb
refactor(analytics): accept legacy "JSON"/"ARROW" format aliases
jamesbroadhead May 11, 2026
08c5486
feat: decode inline Arrow IPC + warehouse-compat fallback
jamesbroadhead Apr 29, 2026
2ef0c65
fix: address ACE multi-model review findings
jamesbroadhead May 12, 2026
2b22d56
chore(shared): align zod with appkit's 4.3.6
jamesbroadhead May 12, 2026
a37c100
Merge remote-tracking branch 'origin/main' into rebase/329-on-new-main
jamesbroadhead May 12, 2026
90ecd8a
chore: regenerate pnpm-lock.yaml after zod restoration
jamesbroadhead May 12, 2026
3d54009
style: consolidate normalizeAnalyticsFormat into the types import block
jamesbroadhead May 12, 2026
e6c2aae
fix: restore logger.error in executeStatement catch block
jamesbroadhead May 12, 2026
a7434f6
refactor(analytics): stash inline Arrow server-side, drop arrow_inlin…
jamesbroadhead May 12, 2026
f34e18e
fix: address ACE multi-model review on the inline-stash redesign
jamesbroadhead May 12, 2026
09f801f
docs(stash): correct maxBytes comment after switch to reject-on-full
jamesbroadhead May 12, 2026
698a264
style: drop unused imports and tidy stash test types
jamesbroadhead May 12, 2026
f5b9604
Merge origin/main into stack/arrow-3-inline-arrow-fix
jamesbroadhead May 15, 2026
8f0e31c
test(analytics): cover stash-full fallback to EXTERNAL_LINKS
jamesbroadhead May 15, 2026
0f5022f
feat(appkit): retry JSON_ARRAY as ARROW_STREAM on inline-arrow-only w…
jamesbroadhead May 15, 2026
4afce1f
fix(appkit): address Xavier v3 review on inline-Arrow path
jamesbroadhead May 21, 2026
28fdb92
fix(appkit): address Xavier v4 self-review on inline-Arrow path
jamesbroadhead May 21, 2026
f69e577
refactor(appkit): stash telemetry, type cleanup, format-path extraction
jamesbroadhead May 21, 2026
ed3dfeb
docs: regenerate api docs for clientMessage field
jamesbroadhead May 28, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 38 additions & 1 deletion docs/docs/api/appkit/Class.AppKitError.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ console.error(error.toJSON()); // Safe for logging, sensitive values redacted
```ts
new AppKitError(message: string, options?: {
cause?: Error;
clientMessage?: string;
context?: Record<string, unknown>;
}): AppKitError;
```
Expand All @@ -52,8 +53,9 @@ new AppKitError(message: string, options?: {
| Parameter | Type |
| ------ | ------ |
| `message` | `string` |
| `options?` | \{ `cause?`: `Error`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options?` | \{ `cause?`: `Error`; `clientMessage?`: `string`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options.cause?` | `Error` |
| `options.clientMessage?` | `string` |
| `options.context?` | `Record`\<`string`, `unknown`\> |

#### Returns
Expand All @@ -68,6 +70,24 @@ Error.constructor

## Properties

### \_clientMessage?

```ts
protected readonly optional _clientMessage: string;
```

Client-safe error message. When set, callers serializing the error to
a client (SSE, HTTP body) MUST prefer `clientMessage` over `message`
— `message` may contain raw upstream / SDK text including statement
fragments, internal object names, and correlation IDs.

Subclasses can set this in their constructor for a fixed sanitized
string. When unset, `clientMessage` defaults to a generic per-code
string (see the getter), and the raw `message` is kept server-side
only.

***

### cause?

```ts
Expand Down Expand Up @@ -122,6 +142,23 @@ abstract readonly statusCode: number;

HTTP status code suggestion (can be overridden)

## Accessors

### clientMessage

#### Get Signature

```ts
get clientMessage(): string;
```

Sanitized message safe to forward to clients. Override in subclasses
if a more specific default is appropriate.

##### Returns

`string`

## Methods

### toJSON()
Expand Down
47 changes: 46 additions & 1 deletion docs/docs/api/appkit/Class.AuthenticationError.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ throw new AuthenticationError("Failed to generate credentials", { cause: origina
```ts
new AuthenticationError(message: string, options?: {
cause?: Error;
clientMessage?: string;
context?: Record<string, unknown>;
}): AuthenticationError;
```
Expand All @@ -30,8 +31,9 @@ new AuthenticationError(message: string, options?: {
| Parameter | Type |
| ------ | ------ |
| `message` | `string` |
| `options?` | \{ `cause?`: `Error`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options?` | \{ `cause?`: `Error`; `clientMessage?`: `string`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options.cause?` | `Error` |
| `options.clientMessage?` | `string` |
| `options.context?` | `Record`\<`string`, `unknown`\> |

#### Returns
Expand All @@ -44,6 +46,28 @@ new AuthenticationError(message: string, options?: {

## Properties

### \_clientMessage?

```ts
protected readonly optional _clientMessage: string;
```

Client-safe error message. When set, callers serializing the error to
a client (SSE, HTTP body) MUST prefer `clientMessage` over `message`
— `message` may contain raw upstream / SDK text including statement
fragments, internal object names, and correlation IDs.

Subclasses can set this in their constructor for a fixed sanitized
string. When unset, `clientMessage` defaults to a generic per-code
string (see the getter), and the raw `message` is kept server-side
only.

#### Inherited from

[`AppKitError`](Class.AppKitError.md).[`_clientMessage`](Class.AppKitError.md#_clientmessage)

***

### cause?

```ts
Expand Down Expand Up @@ -112,6 +136,27 @@ HTTP status code suggestion (can be overridden)

[`AppKitError`](Class.AppKitError.md).[`statusCode`](Class.AppKitError.md#statuscode)

## Accessors

### clientMessage

#### Get Signature

```ts
get clientMessage(): string;
```

Sanitized message safe to forward to clients. Override in subclasses
if a more specific default is appropriate.

##### Returns

`string`

#### Inherited from

[`AppKitError`](Class.AppKitError.md).[`clientMessage`](Class.AppKitError.md#clientmessage)

## Methods

### toJSON()
Expand Down
47 changes: 46 additions & 1 deletion docs/docs/api/appkit/Class.ConfigurationError.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ throw new ConfigurationError("Warehouse ID not found", { context: { env: "produc
```ts
new ConfigurationError(message: string, options?: {
cause?: Error;
clientMessage?: string;
context?: Record<string, unknown>;
}): ConfigurationError;
```
Expand All @@ -30,8 +31,9 @@ new ConfigurationError(message: string, options?: {
| Parameter | Type |
| ------ | ------ |
| `message` | `string` |
| `options?` | \{ `cause?`: `Error`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options?` | \{ `cause?`: `Error`; `clientMessage?`: `string`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options.cause?` | `Error` |
| `options.clientMessage?` | `string` |
| `options.context?` | `Record`\<`string`, `unknown`\> |

#### Returns
Expand All @@ -44,6 +46,28 @@ new ConfigurationError(message: string, options?: {

## Properties

### \_clientMessage?

```ts
protected readonly optional _clientMessage: string;
```

Client-safe error message. When set, callers serializing the error to
a client (SSE, HTTP body) MUST prefer `clientMessage` over `message`
— `message` may contain raw upstream / SDK text including statement
fragments, internal object names, and correlation IDs.

Subclasses can set this in their constructor for a fixed sanitized
string. When unset, `clientMessage` defaults to a generic per-code
string (see the getter), and the raw `message` is kept server-side
only.

#### Inherited from

[`AppKitError`](Class.AppKitError.md).[`_clientMessage`](Class.AppKitError.md#_clientmessage)

***

### cause?

```ts
Expand Down Expand Up @@ -112,6 +136,27 @@ HTTP status code suggestion (can be overridden)

[`AppKitError`](Class.AppKitError.md).[`statusCode`](Class.AppKitError.md#statuscode)

## Accessors

### clientMessage

#### Get Signature

```ts
get clientMessage(): string;
```

Sanitized message safe to forward to clients. Override in subclasses
if a more specific default is appropriate.

##### Returns

`string`

#### Inherited from

[`AppKitError`](Class.AppKitError.md).[`clientMessage`](Class.AppKitError.md#clientmessage)

## Methods

### toJSON()
Expand Down
47 changes: 46 additions & 1 deletion docs/docs/api/appkit/Class.ConnectionError.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ throw new ConnectionError("No response received from SQL Warehouse API");
```ts
new ConnectionError(message: string, options?: {
cause?: Error;
clientMessage?: string;
context?: Record<string, unknown>;
}): ConnectionError;
```
Expand All @@ -30,8 +31,9 @@ new ConnectionError(message: string, options?: {
| Parameter | Type |
| ------ | ------ |
| `message` | `string` |
| `options?` | \{ `cause?`: `Error`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options?` | \{ `cause?`: `Error`; `clientMessage?`: `string`; `context?`: `Record`\<`string`, `unknown`\>; \} |
| `options.cause?` | `Error` |
| `options.clientMessage?` | `string` |
| `options.context?` | `Record`\<`string`, `unknown`\> |

#### Returns
Expand All @@ -44,6 +46,28 @@ new ConnectionError(message: string, options?: {

## Properties

### \_clientMessage?

```ts
protected readonly optional _clientMessage: string;
```

Client-safe error message. When set, callers serializing the error to
a client (SSE, HTTP body) MUST prefer `clientMessage` over `message`
— `message` may contain raw upstream / SDK text including statement
fragments, internal object names, and correlation IDs.

Subclasses can set this in their constructor for a fixed sanitized
string. When unset, `clientMessage` defaults to a generic per-code
string (see the getter), and the raw `message` is kept server-side
only.

#### Inherited from

[`AppKitError`](Class.AppKitError.md).[`_clientMessage`](Class.AppKitError.md#_clientmessage)

***

### cause?

```ts
Expand Down Expand Up @@ -112,6 +136,27 @@ HTTP status code suggestion (can be overridden)

[`AppKitError`](Class.AppKitError.md).[`statusCode`](Class.AppKitError.md#statuscode)

## Accessors

### clientMessage

#### Get Signature

```ts
get clientMessage(): string;
```

Sanitized message safe to forward to clients. Override in subclasses
if a more specific default is appropriate.

##### Returns

`string`

#### Inherited from

[`AppKitError`](Class.AppKitError.md).[`clientMessage`](Class.AppKitError.md#clientmessage)

## Methods

### toJSON()
Expand Down
Loading
Loading