apple-llm 0.1.0

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/index.js ADDED
@@ -0,0 +1,80 @@
1
+ import {
2
+ AppleLLM,
3
+ AppleLLMError,
4
+ CLOUD_CONTEXT_TOKENS,
5
+ CLOUD_SHORTCUT_NAME,
6
+ CLOUD_SHORTCUT_NAME_WEB,
7
+ CloudClient,
8
+ ContextLengthError,
9
+ Conversation,
10
+ DEFAULT_MAX_TOKENS,
11
+ DEFAULT_TEMPERATURE,
12
+ DeviceClient,
13
+ ModelUnavailableError,
14
+ QuotaError,
15
+ RefusalError,
16
+ SchemaRejectedError,
17
+ SetupRequiredError,
18
+ TimeoutError,
19
+ assertTools,
20
+ cacheDir,
21
+ captureScreenshot,
22
+ cloudSetupHint,
23
+ ensureBinary,
24
+ extractJsonSpan,
25
+ fingerprint,
26
+ helperSource,
27
+ hostTarget,
28
+ installCloudShortcut,
29
+ isAppleSiliconMac,
30
+ parseImageFlag,
31
+ parseLlmJson,
32
+ probe,
33
+ probeCloud,
34
+ probeDevice,
35
+ shortcutDefinition,
36
+ stripCodeFences,
37
+ targetTripleFrom,
38
+ toAppleSchema,
39
+ withDocuments
40
+ } from "./chunk-FQTRQ3KP.js";
41
+ export {
42
+ AppleLLM,
43
+ AppleLLMError,
44
+ CLOUD_CONTEXT_TOKENS,
45
+ CLOUD_SHORTCUT_NAME,
46
+ CLOUD_SHORTCUT_NAME_WEB,
47
+ CloudClient,
48
+ ContextLengthError,
49
+ Conversation,
50
+ DEFAULT_MAX_TOKENS,
51
+ DEFAULT_TEMPERATURE,
52
+ DeviceClient,
53
+ ModelUnavailableError,
54
+ QuotaError,
55
+ RefusalError,
56
+ SchemaRejectedError,
57
+ SetupRequiredError,
58
+ TimeoutError,
59
+ assertTools,
60
+ cacheDir,
61
+ captureScreenshot,
62
+ cloudSetupHint,
63
+ ensureBinary,
64
+ extractJsonSpan,
65
+ fingerprint,
66
+ helperSource,
67
+ hostTarget,
68
+ installCloudShortcut,
69
+ isAppleSiliconMac,
70
+ parseImageFlag,
71
+ parseLlmJson,
72
+ probe,
73
+ probeCloud,
74
+ probeDevice,
75
+ shortcutDefinition,
76
+ stripCodeFences,
77
+ targetTripleFrom,
78
+ toAppleSchema,
79
+ withDocuments
80
+ };
package/package.json ADDED
@@ -0,0 +1,61 @@
1
+ {
2
+ "name": "apple-llm",
3
+ "version": "0.1.0",
4
+ "description": "Apple's on-device (Foundation Models) and Private Cloud Compute LLMs from Node. No API key, no account, macOS 26+ on Apple Silicon.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/jagdishpal02000/apple-llm.git",
9
+ "directory": "packages/node"
10
+ },
11
+ "homepage": "https://github.com/jagdishpal02000/apple-llm#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/jagdishpal02000/apple-llm/issues"
14
+ },
15
+ "type": "module",
16
+ "main": "./dist/index.cjs",
17
+ "module": "./dist/index.js",
18
+ "types": "./dist/index.d.ts",
19
+ "exports": {
20
+ ".": {
21
+ "types": "./dist/index.d.ts",
22
+ "import": "./dist/index.js",
23
+ "require": "./dist/index.cjs"
24
+ }
25
+ },
26
+ "bin": {
27
+ "apple-llm": "dist/cli.js"
28
+ },
29
+ "files": [
30
+ "dist",
31
+ "swift",
32
+ "README.md",
33
+ "LICENSE"
34
+ ],
35
+ "engines": {
36
+ "node": ">=18"
37
+ },
38
+ "keywords": [
39
+ "apple",
40
+ "llm",
41
+ "foundation-models",
42
+ "on-device",
43
+ "private-cloud-compute",
44
+ "apple-intelligence",
45
+ "macos",
46
+ "local-llm",
47
+ "structured-output"
48
+ ],
49
+ "scripts": {
50
+ "build": "node ../../scripts/embed-helper.mjs && tsup",
51
+ "test": "vitest run",
52
+ "test:live": "APPLE_LLM_LIVE=1 vitest run",
53
+ "typecheck": "tsc --noEmit"
54
+ },
55
+ "devDependencies": {
56
+ "@types/node": "^22.10.2",
57
+ "tsup": "^8.3.5",
58
+ "typescript": "^5.7.2",
59
+ "vitest": "^2.1.8"
60
+ }
61
+ }