@daf-sdk/runtime 1.0.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/chunk-4H6PEYL7.mjs +1221 -0
- package/dist/chunk-HGSJ2UZZ.mjs +625 -0
- package/dist/chunk-HT5X5ZSB.mjs +7231 -0
- package/dist/encryption-5J2VZDSY.mjs +11 -0
- package/dist/index.d.mts +5 -0
- package/dist/index.d.ts +5 -0
- package/dist/index.js +9336 -0
- package/dist/index.mjs +318 -0
- package/dist/mongodbService-PJCZZWQ3.mjs +23 -0
- package/dist/notion-3VBQFXSQ.mjs +52 -0
- package/dist/protocol/index.d.mts +589 -0
- package/dist/protocol/index.d.ts +589 -0
- package/dist/protocol/index.js +735 -0
- package/dist/protocol/index.mjs +174 -0
- package/dist/runtime/index.d.mts +957 -0
- package/dist/runtime/index.d.ts +957 -0
- package/dist/runtime/index.js +8628 -0
- package/dist/runtime/index.mjs +146 -0
- package/package.json +64 -0
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
import {
|
|
2
|
+
GENERIC_VARIABLES,
|
|
3
|
+
MODEL_PRICING,
|
|
4
|
+
TIER_TOKEN_LIMITS,
|
|
5
|
+
appendGoogleDoc,
|
|
6
|
+
buildTokenUsage,
|
|
7
|
+
calculateTokenCost,
|
|
8
|
+
canUserAffordApiCall,
|
|
9
|
+
checkAndUpdateCostLimit,
|
|
10
|
+
createGoogleDocInFolder,
|
|
11
|
+
createGoogleDriveFolder,
|
|
12
|
+
deleteGoogleDoc,
|
|
13
|
+
deleteGoogleDriveFolder,
|
|
14
|
+
duplicateGoogleDoc,
|
|
15
|
+
exchangeGoogleCode,
|
|
16
|
+
executeAction,
|
|
17
|
+
executeChatTurn,
|
|
18
|
+
executeProcess,
|
|
19
|
+
executeProcessInRun,
|
|
20
|
+
extractActionsFromMessage,
|
|
21
|
+
extractDocIdFromUrl,
|
|
22
|
+
extractFolderIdFromUrl,
|
|
23
|
+
formatActionResult,
|
|
24
|
+
formatGoogleDoc,
|
|
25
|
+
getDescAllActions,
|
|
26
|
+
getDescChatActions,
|
|
27
|
+
getDescEditorActions,
|
|
28
|
+
getGenericVariable,
|
|
29
|
+
getGenericVariableNames,
|
|
30
|
+
getGenericVariables,
|
|
31
|
+
getGoogleAccessToken,
|
|
32
|
+
getGoogleAuthUrl,
|
|
33
|
+
getGoogleOAuth2Client,
|
|
34
|
+
getModelProvider,
|
|
35
|
+
getProviderFromModel,
|
|
36
|
+
isGenericVariable,
|
|
37
|
+
listGoogleDriveFolderContents,
|
|
38
|
+
mergeVariables,
|
|
39
|
+
processMessageActions,
|
|
40
|
+
readGoogleDoc,
|
|
41
|
+
refreshGoogleToken,
|
|
42
|
+
renameGoogleDoc,
|
|
43
|
+
renameGoogleDriveFolder,
|
|
44
|
+
resumeProcessExecution,
|
|
45
|
+
selectiveUpdateGoogleDoc,
|
|
46
|
+
substituteVariables,
|
|
47
|
+
writeGoogleDoc
|
|
48
|
+
} from "../chunk-HT5X5ZSB.mjs";
|
|
49
|
+
import {
|
|
50
|
+
appendNotionPage,
|
|
51
|
+
createNotionDatabase,
|
|
52
|
+
createNotionDatabasePage,
|
|
53
|
+
createNotionSubpage,
|
|
54
|
+
deleteNotionDatabase,
|
|
55
|
+
deleteNotionPage,
|
|
56
|
+
duplicateNotionDatabase,
|
|
57
|
+
duplicateNotionPage,
|
|
58
|
+
exchangeNotionCode,
|
|
59
|
+
extractDatabaseIdFromUrl,
|
|
60
|
+
extractPageIdFromUrl,
|
|
61
|
+
getNotionAccessToken,
|
|
62
|
+
getNotionAuthUrl,
|
|
63
|
+
getNotionDatabase,
|
|
64
|
+
getNotionPageTitle,
|
|
65
|
+
listNotionPageChildren,
|
|
66
|
+
queryNotionDatabase,
|
|
67
|
+
readNotionDatabase,
|
|
68
|
+
readNotionPage,
|
|
69
|
+
renameNotionPage,
|
|
70
|
+
selectiveUpdateNotionPage,
|
|
71
|
+
updateNotionDatabase,
|
|
72
|
+
updateNotionDatabasePage,
|
|
73
|
+
writeNotionPage
|
|
74
|
+
} from "../chunk-4H6PEYL7.mjs";
|
|
75
|
+
export {
|
|
76
|
+
GENERIC_VARIABLES,
|
|
77
|
+
MODEL_PRICING,
|
|
78
|
+
TIER_TOKEN_LIMITS,
|
|
79
|
+
appendGoogleDoc,
|
|
80
|
+
appendNotionPage,
|
|
81
|
+
buildTokenUsage,
|
|
82
|
+
calculateTokenCost,
|
|
83
|
+
canUserAffordApiCall,
|
|
84
|
+
checkAndUpdateCostLimit,
|
|
85
|
+
createGoogleDocInFolder,
|
|
86
|
+
createGoogleDriveFolder,
|
|
87
|
+
createNotionDatabase,
|
|
88
|
+
createNotionDatabasePage,
|
|
89
|
+
createNotionSubpage,
|
|
90
|
+
deleteGoogleDoc,
|
|
91
|
+
deleteGoogleDriveFolder,
|
|
92
|
+
deleteNotionDatabase,
|
|
93
|
+
deleteNotionPage,
|
|
94
|
+
duplicateGoogleDoc,
|
|
95
|
+
duplicateNotionDatabase,
|
|
96
|
+
duplicateNotionPage,
|
|
97
|
+
exchangeGoogleCode,
|
|
98
|
+
exchangeNotionCode,
|
|
99
|
+
executeAction,
|
|
100
|
+
executeChatTurn,
|
|
101
|
+
executeProcess,
|
|
102
|
+
executeProcessInRun,
|
|
103
|
+
extractActionsFromMessage,
|
|
104
|
+
extractDatabaseIdFromUrl,
|
|
105
|
+
extractDocIdFromUrl,
|
|
106
|
+
extractFolderIdFromUrl,
|
|
107
|
+
extractPageIdFromUrl,
|
|
108
|
+
formatActionResult,
|
|
109
|
+
formatGoogleDoc,
|
|
110
|
+
getDescAllActions,
|
|
111
|
+
getDescChatActions,
|
|
112
|
+
getDescEditorActions,
|
|
113
|
+
getGenericVariable,
|
|
114
|
+
getGenericVariableNames,
|
|
115
|
+
getGenericVariables,
|
|
116
|
+
getGoogleAccessToken,
|
|
117
|
+
getGoogleAuthUrl,
|
|
118
|
+
getGoogleOAuth2Client,
|
|
119
|
+
getModelProvider,
|
|
120
|
+
getNotionAccessToken,
|
|
121
|
+
getNotionAuthUrl,
|
|
122
|
+
getNotionDatabase,
|
|
123
|
+
getNotionPageTitle,
|
|
124
|
+
getProviderFromModel,
|
|
125
|
+
isGenericVariable,
|
|
126
|
+
listGoogleDriveFolderContents,
|
|
127
|
+
listNotionPageChildren,
|
|
128
|
+
mergeVariables,
|
|
129
|
+
processMessageActions,
|
|
130
|
+
queryNotionDatabase,
|
|
131
|
+
readGoogleDoc,
|
|
132
|
+
readNotionDatabase,
|
|
133
|
+
readNotionPage,
|
|
134
|
+
refreshGoogleToken,
|
|
135
|
+
renameGoogleDoc,
|
|
136
|
+
renameGoogleDriveFolder,
|
|
137
|
+
renameNotionPage,
|
|
138
|
+
resumeProcessExecution,
|
|
139
|
+
selectiveUpdateGoogleDoc,
|
|
140
|
+
selectiveUpdateNotionPage,
|
|
141
|
+
substituteVariables,
|
|
142
|
+
updateNotionDatabase,
|
|
143
|
+
updateNotionDatabasePage,
|
|
144
|
+
writeGoogleDoc,
|
|
145
|
+
writeNotionPage
|
|
146
|
+
};
|
package/package.json
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@daf-sdk/runtime",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"description": "DAF (Defined Action Framework) — protocol types, validation, and agentic execution runtime",
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
|
+
"module": "./dist/index.mjs",
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": {
|
|
10
|
+
"types": "./dist/index.d.ts",
|
|
11
|
+
"import": "./dist/index.mjs",
|
|
12
|
+
"require": "./dist/index.js"
|
|
13
|
+
},
|
|
14
|
+
"./protocol": {
|
|
15
|
+
"types": "./dist/protocol/index.d.ts",
|
|
16
|
+
"import": "./dist/protocol/index.mjs",
|
|
17
|
+
"require": "./dist/protocol/index.js"
|
|
18
|
+
},
|
|
19
|
+
"./runtime": {
|
|
20
|
+
"types": "./dist/runtime/index.d.ts",
|
|
21
|
+
"import": "./dist/runtime/index.mjs",
|
|
22
|
+
"require": "./dist/runtime/index.js"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"files": [
|
|
26
|
+
"dist"
|
|
27
|
+
],
|
|
28
|
+
"scripts": {
|
|
29
|
+
"build": "tsup src/index.ts src/protocol/index.ts src/runtime/index.ts --format cjs,esm --dts --clean",
|
|
30
|
+
"dev": "tsup src/index.ts --format cjs,esm --dts --watch",
|
|
31
|
+
"test": "vitest",
|
|
32
|
+
"typecheck": "tsc --noEmit"
|
|
33
|
+
},
|
|
34
|
+
"keywords": [
|
|
35
|
+
"daf",
|
|
36
|
+
"defined-action-framework",
|
|
37
|
+
"protocol",
|
|
38
|
+
"agentic",
|
|
39
|
+
"ai",
|
|
40
|
+
"automation"
|
|
41
|
+
],
|
|
42
|
+
"author": "Prism",
|
|
43
|
+
"devDependencies": {
|
|
44
|
+
"@types/node": "^20.19.35",
|
|
45
|
+
"tsup": "^8.0.1",
|
|
46
|
+
"typescript": "^5.3.3",
|
|
47
|
+
"vitest": "^3.2.4"
|
|
48
|
+
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@ai-sdk/anthropic": "^3.0.46",
|
|
51
|
+
"@ai-sdk/deepseek": "^2.0.20",
|
|
52
|
+
"@ai-sdk/google": "^3.0.30",
|
|
53
|
+
"@ai-sdk/mistral": "^3.0.20",
|
|
54
|
+
"@ai-sdk/openai": "^3.0.31",
|
|
55
|
+
"@ai-sdk/xai": "^3.0.57",
|
|
56
|
+
"@mendable/firecrawl-js": "^4.25.2",
|
|
57
|
+
"@notionhq/client": "^5.22.0",
|
|
58
|
+
"@types/nodemailer": "^8.0.0",
|
|
59
|
+
"ai": "^6.0.97",
|
|
60
|
+
"googleapis": "^173.0.0",
|
|
61
|
+
"nodemailer": "^8.0.10",
|
|
62
|
+
"zod": "^4.3.6"
|
|
63
|
+
}
|
|
64
|
+
}
|