@stacksjs/types 0.75.389 → 0.75.397
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 +6 -0
- package/dist/cli.d.ts +2 -0
- package/dist/desktop.d.ts +83 -0
- package/dist/index.d.ts +1 -0
- package/package.json +5 -5
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,83 @@
|
|
|
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
|
+
}
|
|
37
|
+
export declare interface MacosDesktopConfig {
|
|
38
|
+
appName: string
|
|
39
|
+
bundleId: string
|
|
40
|
+
teamId?: string
|
|
41
|
+
version?: string
|
|
42
|
+
buildNumber?: string
|
|
43
|
+
minimumSystemVersion?: string
|
|
44
|
+
category?: string
|
|
45
|
+
url?: string
|
|
46
|
+
nativeScreens: string[] | Record<string, string>
|
|
47
|
+
nativeScreensDir?: string
|
|
48
|
+
initialScreen?: string
|
|
49
|
+
nativeApp?: string
|
|
50
|
+
shareStorage?: Record<string, string>
|
|
51
|
+
window?: MacosWindowConfig
|
|
52
|
+
urlSchemes?: string[]
|
|
53
|
+
icon?: string
|
|
54
|
+
sandbox?: boolean
|
|
55
|
+
entitlements?: Record<string, boolean | string | string[]>
|
|
56
|
+
usageDescriptions?: Record<string, string>
|
|
57
|
+
infoPlist?: Record<string, unknown>
|
|
58
|
+
privacy?: MobilePrivacyManifest
|
|
59
|
+
output?: string
|
|
60
|
+
agent?: boolean | MacosAgentConfig
|
|
61
|
+
webkit?: boolean
|
|
62
|
+
defaultBrowser?: boolean
|
|
63
|
+
permissions?: MacosPermissions
|
|
64
|
+
dockMenu?: MacosDockMenuItem[]
|
|
65
|
+
}
|
|
66
|
+
export declare interface MacosAgentConfig {
|
|
67
|
+
port?: number
|
|
68
|
+
entry?: string
|
|
69
|
+
appRoutes?: boolean
|
|
70
|
+
staticDir?: string
|
|
71
|
+
}
|
|
72
|
+
export declare interface MacosPermissions {
|
|
73
|
+
network?: boolean
|
|
74
|
+
camera?: boolean | string
|
|
75
|
+
microphone?: boolean | string
|
|
76
|
+
location?: boolean | string
|
|
77
|
+
downloads?: boolean | 'read-only'
|
|
78
|
+
printing?: boolean
|
|
79
|
+
}
|
|
80
|
+
export declare interface MacosDockMenuItem {
|
|
81
|
+
title: string
|
|
82
|
+
action: string
|
|
83
|
+
}
|
package/dist/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@stacksjs/types",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.75.
|
|
4
|
+
"version": "0.75.397",
|
|
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.
|
|
68
|
-
"@stacksjs/strings": "0.75.
|
|
69
|
-
"@stacksjs/stx": "0.2.
|
|
67
|
+
"@stacksjs/events": "0.75.397",
|
|
68
|
+
"@stacksjs/strings": "0.75.397",
|
|
69
|
+
"@stacksjs/stx": "0.2.769",
|
|
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.
|
|
82
|
+
"@stacksjs/validation": "0.75.397",
|
|
83
83
|
"better-dx": "^0.2.24",
|
|
84
84
|
"meilisearch": "^0.62.0"
|
|
85
85
|
},
|