generated from isamu/ts-mono
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
GitHub Actions Bot
committed
Dec 27, 2024
1 parent
86b99f9
commit f7f55ab
Showing
4 changed files
with
63 additions
and
0 deletions.
There are no files selected for viewing
23 changes: 23 additions & 0 deletions
23
packages/node-browser-detect-agent/lib/node_browser_detect2_agent_node.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { AgentFunction } from "graphai"; | ||
export declare const nodeBrowserDetectAgent: AgentFunction; | ||
declare const retNodeBrowserDetectAgentInfo: { | ||
name: string; | ||
agent: AgentFunction<any, any, any>; | ||
mock: AgentFunction<any, any, any>; | ||
inputs?: any; | ||
output?: any; | ||
outputFormat?: any; | ||
params?: any; | ||
samples: import("graphai").AgentFunctionInfoSample[]; | ||
description: string; | ||
category: string[]; | ||
author: string; | ||
repository: string; | ||
license: string; | ||
cacheType?: import("graphai/lib/type").CacheTypes; | ||
environmentVariables?: string[]; | ||
stream?: boolean; | ||
apiKeys?: string[]; | ||
npms?: string[]; | ||
}; | ||
export default retNodeBrowserDetectAgentInfo; |
24 changes: 24 additions & 0 deletions
24
packages/node-browser-detect-agent/lib/node_browser_detect2_agent_node.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.nodeBrowserDetectAgent = void 0; | ||
const node_browser_detect_agent_info_1 = require("./node_browser_detect_agent_info"); | ||
const envConf = { | ||
envType: "Node", | ||
}; | ||
const envFunc = () => { | ||
return { message: "isnode" }; | ||
}; | ||
const nodeBrowserDetectAgentBase = ({ params, namedInputs }) => { | ||
return async (envConf, envFunc) => { | ||
console.log(envConf); | ||
console.log(envFunc()); | ||
return { params, namedInputs }; | ||
}; | ||
}; | ||
const nodeBrowserDetectAgent = async (context) => { | ||
return await nodeBrowserDetectAgentBase(context)(envConf, envFunc); | ||
}; | ||
exports.nodeBrowserDetectAgent = nodeBrowserDetectAgent; | ||
const retNodeBrowserDetectAgentInfo = { ...node_browser_detect_agent_info_1.nodeBrowserDetectAgentInfo }; | ||
retNodeBrowserDetectAgentInfo.agent = exports.nodeBrowserDetectAgent; | ||
exports.default = retNodeBrowserDetectAgentInfo; |
3 changes: 3 additions & 0 deletions
3
packages/node-browser-detect-agent/lib/node_browser_detect_agent_generator.d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { AgentFunction } from "graphai"; | ||
import { EnvConfig, EnvFunc } from "./type"; | ||
export declare const nodeBrowserDetectAgentGenerator: (isNode: boolean, envConf: EnvConfig, envFunc: EnvFunc) => AgentFunction; |
13 changes: 13 additions & 0 deletions
13
packages/node-browser-detect-agent/lib/node_browser_detect_agent_generator.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
"use strict"; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
exports.nodeBrowserDetectAgentGenerator = void 0; | ||
const nodeBrowserDetectAgentGenerator = (isNode, envConf, envFunc) => { | ||
const nodeBrowserDetectAgent = async ({ params, namedInputs }) => { | ||
console.log(isNode); | ||
console.log(envConf); | ||
console.log(envFunc()); | ||
return { params, namedInputs }; | ||
}; | ||
return nodeBrowserDetectAgent; | ||
}; | ||
exports.nodeBrowserDetectAgentGenerator = nodeBrowserDetectAgentGenerator; |