@stacksjs/types 0.75.390 → 0.75.398

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/ai.d.ts CHANGED
@@ -25,6 +25,12 @@ export declare interface AiOptions {
25
25
  default: 'anthropic' | 'openai' | 'ollama' | 'bedrock' | AiModel
26
26
  models: AiModel[]
27
27
  deploy: boolean
28
+ completion?: {
29
+ enabled?: boolean
30
+ driver?: 'anthropic' | 'openai' | 'ollama' | 'bedrock'
31
+ model?: string
32
+ maxTokens?: number
33
+ }
28
34
  drivers?: {
29
35
  anthropic?: {
30
36
  apiKey?: string
package/dist/cli.d.ts CHANGED
@@ -246,6 +246,8 @@ export type DevOption = | 'components'
246
246
  | 'systemTray'
247
247
  /** `buddy dev dashboard`, which the handler dispatches on. */
248
248
  | 'dashboard'
249
+ /** `--detach`: let the dev servers outlive the process that started them. */
250
+ | 'detach'
249
251
  | 'interactive'
250
252
  | 'browser'
251
253
  | 'site'
@@ -0,0 +1,84 @@
1
+ import type { MobilePrivacyManifest } from './mobile';
2
+ /**
3
+ * `config/desktop.ts`: the desktop apps a Stacks project builds, the way
4
+ * `config/mobile.ts` declares its phone apps. Today the one target is a
5
+ * native macOS app: the project's stx screens drawn by Craft's AppKit host
6
+ * (no web view), signed and packaged by `buddy build:desktop` and
7
+ * `buddy desktop:apple:package`.
8
+ *
9
+ * ```ts
10
+ * export default {
11
+ * macos: {
12
+ * appName: 'Library',
13
+ * bundleId: 'com.example.library',
14
+ * teamId: 'ABCDE12345',
15
+ * url: env.DESKTOP_API_URL ?? 'http://127.0.0.1:3000',
16
+ * nativeScreens: ['Main', 'Settings'],
17
+ * shareStorage: { auth_token: 'auth.token' },
18
+ * },
19
+ * } satisfies DesktopConfig
20
+ * ```
21
+ *
22
+ * A local-first app (a browser, an inbox) runs its API inside the app instead
23
+ * of talking to a hosted one: `agent: true` starts the project's routes on
24
+ * 127.0.0.1 and points the host at them (`buddy new <name> --desktop`
25
+ * scaffolds that).
26
+ */
27
+ export declare interface DesktopConfig {
28
+ macos?: MacosDesktopConfig
29
+ }
30
+ export declare interface MacosWindowConfig {
31
+ width?: number
32
+ height?: number
33
+ minWidth?: number
34
+ minHeight?: number
35
+ titlebarStyle?: 'standard' | 'transparent'
36
+ trafficLights?: [number, number]
37
+ }
38
+ export declare interface MacosDesktopConfig {
39
+ appName: string
40
+ bundleId: string
41
+ teamId?: string
42
+ version?: string
43
+ buildNumber?: string
44
+ minimumSystemVersion?: string
45
+ category?: string
46
+ url?: string
47
+ nativeScreens: string[] | Record<string, string>
48
+ nativeScreensDir?: string
49
+ initialScreen?: string
50
+ nativeApp?: string
51
+ shareStorage?: Record<string, string>
52
+ window?: MacosWindowConfig
53
+ urlSchemes?: string[]
54
+ icon?: string
55
+ sandbox?: boolean
56
+ entitlements?: Record<string, boolean | string | string[]>
57
+ usageDescriptions?: Record<string, string>
58
+ infoPlist?: Record<string, unknown>
59
+ privacy?: MobilePrivacyManifest
60
+ output?: string
61
+ agent?: boolean | MacosAgentConfig
62
+ webkit?: boolean
63
+ defaultBrowser?: boolean
64
+ permissions?: MacosPermissions
65
+ dockMenu?: MacosDockMenuItem[]
66
+ }
67
+ export declare interface MacosAgentConfig {
68
+ port?: number
69
+ entry?: string
70
+ appRoutes?: boolean
71
+ staticDir?: string
72
+ }
73
+ export declare interface MacosPermissions {
74
+ network?: boolean
75
+ camera?: boolean | string
76
+ microphone?: boolean | string
77
+ location?: boolean | string
78
+ downloads?: boolean | 'read-only'
79
+ printing?: boolean
80
+ }
81
+ export declare interface MacosDockMenuItem {
82
+ title: string
83
+ action: string
84
+ }
package/dist/index.d.ts CHANGED
@@ -53,6 +53,7 @@ export * from './marketing';
53
53
  export * from './model';
54
54
  export * from './model-names';
55
55
  export * from './monitoring';
56
+ export * from './desktop';
56
57
  export * from './mobile';
57
58
  export * from './notifications';
58
59
  export * from './pages';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@stacksjs/types",
3
3
  "type": "module",
4
- "version": "0.75.390",
4
+ "version": "0.75.398",
5
5
  "description": "The Stacks framework types.",
6
6
  "author": "Chris Breuer",
7
7
  "contributors": [
@@ -64,9 +64,9 @@
64
64
  "dependencies": {
65
65
  "@stacksjs/bunpress": "^0.2.15",
66
66
  "@stacksjs/clapp": "^0.2.12",
67
- "@stacksjs/events": "0.75.390",
68
- "@stacksjs/strings": "0.75.390",
69
- "@stacksjs/stx": "0.2.752",
67
+ "@stacksjs/events": "0.75.398",
68
+ "@stacksjs/strings": "0.75.398",
69
+ "@stacksjs/stx": "0.2.775",
70
70
  "@stacksjs/ts-validation": "^0.5.6",
71
71
  "bun-query-builder": "^0.3.32"
72
72
  },
@@ -79,7 +79,7 @@
79
79
  }
80
80
  },
81
81
  "devDependencies": {
82
- "@stacksjs/validation": "0.75.390",
82
+ "@stacksjs/validation": "0.75.398",
83
83
  "better-dx": "^0.2.24",
84
84
  "meilisearch": "^0.62.0"
85
85
  },