@yolo-labs/core 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/index.d.ts +7 -0
- package/dist/index.js +44 -0
- package/dist/index.js.map +1 -0
- package/package.json +48 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { AIProvider, AgentCompleteEvent, AgentStartEvent, CommandExecutionOptions, CommandResult, ContentBlock, ContentBlockDeltaEvent, ContentBlockStartEvent, ContentBlockStopEvent, CreateMessageParams, ErrorEvent, FileBlock, FileEntry, GenerationRequest, GenerationSession, ImageBlock, ImageBlockBase64, ImageBlockUrl, Message, MessageDeltaEvent, MessageStartEvent, MessageStopEvent, PromptAssembler, PromptAssemblerContext, PromptRecord, PromptStore, SandboxContext, SandboxProvider, SessionEvent, SessionStore, StatusUpdateEvent, StreamErrorEvent, StreamEvent, TemplateDefinition, TemplateProvider, TemplateVariable, TextBlock, TextDeltaEvent, ThoughtDeltaEvent, Tool, ToolCallEvent, ToolCallLogEntry, ToolDefinition, ToolInputDeltaEvent, ToolProgressEvent, ToolProgressInfo, ToolRegistry, ToolResult, ToolResultEvent } from '@yolo-labs/core-types';
|
|
2
|
+
export { AgentLoopOptions, AgentServiceConfig, InMemorySessionStore, RetryPolicy, SessionManager, SessionManagerOptions, agentLoop, defaultConfig } from '@yolo-labs/core-agent-service';
|
|
3
|
+
export { ToolRegistryImpl, ValidationResult, deleteFileTool, executeCommandTool, listFilesTool, readFileTool, validateInput, writeFileTool } from '@yolo-labs/core-tools';
|
|
4
|
+
export { BuildArtifact, BuildError, BuildWarning, CompileRequest, InMemorySandbox, NodeVMSandbox, NodeVMSandboxOptions, PreviewConfig, PreviewResult, VendorChunkConfig, WhateverpackSandboxAdapter } from '@yolo-labs/core-sandbox';
|
|
5
|
+
export { DatabasePromptStore, PromptAssemblerImpl, YamlPromptStore, YamlPromptStoreOptions } from '@yolo-labs/core-prompts';
|
|
6
|
+
export { FileSystemTemplateProvider, GitTemplateProvider, GitTemplateProviderOptions } from '@yolo-labs/core-templates';
|
|
7
|
+
export { FailoverRouter, FailoverRouterOptions, FailoverTrigger } from '@yolo-labs/core-providers';
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
// src/index.ts
|
|
2
|
+
import { agentLoop } from "@yolo-labs/core-agent-service";
|
|
3
|
+
import { SessionManager } from "@yolo-labs/core-agent-service";
|
|
4
|
+
import { InMemorySessionStore } from "@yolo-labs/core-agent-service";
|
|
5
|
+
import { defaultConfig } from "@yolo-labs/core-agent-service";
|
|
6
|
+
import { ToolRegistryImpl } from "@yolo-labs/core-tools";
|
|
7
|
+
import { validateInput } from "@yolo-labs/core-tools";
|
|
8
|
+
import {
|
|
9
|
+
writeFileTool,
|
|
10
|
+
readFileTool,
|
|
11
|
+
listFilesTool,
|
|
12
|
+
deleteFileTool,
|
|
13
|
+
executeCommandTool
|
|
14
|
+
} from "@yolo-labs/core-tools";
|
|
15
|
+
import { InMemorySandbox } from "@yolo-labs/core-sandbox";
|
|
16
|
+
import { NodeVMSandbox } from "@yolo-labs/core-sandbox";
|
|
17
|
+
import { YamlPromptStore } from "@yolo-labs/core-prompts";
|
|
18
|
+
import { PromptAssemblerImpl } from "@yolo-labs/core-prompts";
|
|
19
|
+
import { DatabasePromptStore } from "@yolo-labs/core-prompts";
|
|
20
|
+
import { FileSystemTemplateProvider } from "@yolo-labs/core-templates";
|
|
21
|
+
import { GitTemplateProvider } from "@yolo-labs/core-templates";
|
|
22
|
+
import { FailoverRouter } from "@yolo-labs/core-providers";
|
|
23
|
+
export {
|
|
24
|
+
DatabasePromptStore,
|
|
25
|
+
FailoverRouter,
|
|
26
|
+
FileSystemTemplateProvider,
|
|
27
|
+
GitTemplateProvider,
|
|
28
|
+
InMemorySandbox,
|
|
29
|
+
InMemorySessionStore,
|
|
30
|
+
NodeVMSandbox,
|
|
31
|
+
PromptAssemblerImpl,
|
|
32
|
+
SessionManager,
|
|
33
|
+
ToolRegistryImpl,
|
|
34
|
+
YamlPromptStore,
|
|
35
|
+
agentLoop,
|
|
36
|
+
defaultConfig,
|
|
37
|
+
deleteFileTool,
|
|
38
|
+
executeCommandTool,
|
|
39
|
+
listFilesTool,
|
|
40
|
+
readFileTool,
|
|
41
|
+
validateInput,
|
|
42
|
+
writeFileTool
|
|
43
|
+
};
|
|
44
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts"],"sourcesContent":["// Task 56: @yolo-labs/core-core — Re-exports all subcomponent public APIs\n\n// Types\nexport type {\n TextBlock,\n ImageBlockBase64,\n ImageBlockUrl,\n ImageBlock,\n FileBlock,\n ContentBlock,\n Message,\n AgentStartEvent,\n ThoughtDeltaEvent,\n TextDeltaEvent,\n ToolCallEvent,\n ToolInputDeltaEvent,\n ToolProgressEvent,\n ToolResultEvent,\n StatusUpdateEvent,\n ErrorEvent,\n AgentCompleteEvent,\n SessionEvent,\n CreateMessageParams,\n ContentBlockStartEvent,\n ContentBlockDeltaEvent,\n ContentBlockStopEvent,\n MessageStartEvent,\n MessageDeltaEvent,\n MessageStopEvent,\n StreamErrorEvent,\n StreamEvent,\n AIProvider,\n GenerationRequest,\n GenerationSession,\n ToolCallLogEntry,\n SessionStore,\n FileEntry,\n CommandResult,\n SandboxProvider,\n CommandExecutionOptions,\n SandboxContext,\n ToolDefinition,\n ToolResult,\n Tool,\n ToolProgressInfo,\n ToolRegistry,\n PromptRecord,\n PromptStore,\n PromptAssemblerContext,\n PromptAssembler,\n TemplateVariable,\n TemplateDefinition,\n TemplateProvider,\n} from '@yolo-labs/core-types';\n\n// Agent Service\nexport { agentLoop } from '@yolo-labs/core-agent-service';\nexport type { AgentLoopOptions } from '@yolo-labs/core-agent-service';\nexport { SessionManager } from '@yolo-labs/core-agent-service';\nexport type { SessionManagerOptions } from '@yolo-labs/core-agent-service';\nexport { InMemorySessionStore } from '@yolo-labs/core-agent-service';\nexport { defaultConfig } from '@yolo-labs/core-agent-service';\nexport type { AgentServiceConfig, RetryPolicy } from '@yolo-labs/core-agent-service';\n\n// Tools\nexport { ToolRegistryImpl } from '@yolo-labs/core-tools';\nexport { validateInput } from '@yolo-labs/core-tools';\nexport type { ValidationResult } from '@yolo-labs/core-tools';\nexport {\n writeFileTool,\n readFileTool,\n listFilesTool,\n deleteFileTool,\n executeCommandTool,\n} from '@yolo-labs/core-tools';\n\n// Sandbox\nexport { InMemorySandbox } from '@yolo-labs/core-sandbox';\nexport { NodeVMSandbox } from '@yolo-labs/core-sandbox';\nexport type { NodeVMSandboxOptions } from '@yolo-labs/core-sandbox';\nexport type {\n CompileRequest,\n BuildArtifact,\n BuildError,\n BuildWarning,\n VendorChunkConfig,\n PreviewConfig,\n PreviewResult,\n WhateverpackSandboxAdapter,\n} from '@yolo-labs/core-sandbox';\n\n// Prompts\nexport { YamlPromptStore } from '@yolo-labs/core-prompts';\nexport type { YamlPromptStoreOptions } from '@yolo-labs/core-prompts';\nexport { PromptAssemblerImpl } from '@yolo-labs/core-prompts';\nexport { DatabasePromptStore } from '@yolo-labs/core-prompts';\n\n// Templates\nexport { FileSystemTemplateProvider } from '@yolo-labs/core-templates';\nexport { GitTemplateProvider } from '@yolo-labs/core-templates';\nexport type { GitTemplateProviderOptions } from '@yolo-labs/core-templates';\n\n// Providers (main entry — FailoverRouter only; specific providers via subpath)\nexport { FailoverRouter } from '@yolo-labs/core-providers';\nexport type { FailoverRouterOptions, FailoverTrigger } from '@yolo-labs/core-providers';\n"],"mappings":";AAwDA,SAAS,iBAAiB;AAE1B,SAAS,sBAAsB;AAE/B,SAAS,4BAA4B;AACrC,SAAS,qBAAqB;AAI9B,SAAS,wBAAwB;AACjC,SAAS,qBAAqB;AAE9B;AAAA,EACE;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,OACK;AAGP,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAc9B,SAAS,uBAAuB;AAEhC,SAAS,2BAA2B;AACpC,SAAS,2BAA2B;AAGpC,SAAS,kCAAkC;AAC3C,SAAS,2BAA2B;AAIpC,SAAS,sBAAsB;","names":[]}
|
package/package.json
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@yolo-labs/core",
|
|
3
|
+
"version": "1.0.0",
|
|
4
|
+
"type": "module",
|
|
5
|
+
"exports": {
|
|
6
|
+
".": {
|
|
7
|
+
"types": "./dist/index.d.ts",
|
|
8
|
+
"import": "./dist/index.js"
|
|
9
|
+
}
|
|
10
|
+
},
|
|
11
|
+
"main": "./dist/index.js",
|
|
12
|
+
"types": "./dist/index.d.ts",
|
|
13
|
+
"files": [
|
|
14
|
+
"dist"
|
|
15
|
+
],
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@yolo-labs/core-types": "1.0.0",
|
|
18
|
+
"@yolo-labs/core-providers": "1.0.0",
|
|
19
|
+
"@yolo-labs/core-sandbox": "1.0.0",
|
|
20
|
+
"@yolo-labs/core-tools": "1.0.0",
|
|
21
|
+
"@yolo-labs/core-prompts": "1.0.0",
|
|
22
|
+
"@yolo-labs/core-templates": "1.0.0",
|
|
23
|
+
"@yolo-labs/core-agent-service": "1.0.0"
|
|
24
|
+
},
|
|
25
|
+
"devDependencies": {
|
|
26
|
+
"tsup": "^8.0.0",
|
|
27
|
+
"typescript": "^5.5.0"
|
|
28
|
+
},
|
|
29
|
+
"description": "Convenience re-export of all yolo-core packages",
|
|
30
|
+
"license": "MIT",
|
|
31
|
+
"repository": {
|
|
32
|
+
"type": "git",
|
|
33
|
+
"url": "git+https://github.com/yolo-labs-hq/monorepo.git",
|
|
34
|
+
"directory": "yolo-core/packages/core"
|
|
35
|
+
},
|
|
36
|
+
"publishConfig": {
|
|
37
|
+
"access": "public",
|
|
38
|
+
"registry": "https://registry.npmjs.org/"
|
|
39
|
+
},
|
|
40
|
+
"homepage": "https://github.com/yolo-labs-hq/monorepo/tree/main/yolo-core#readme",
|
|
41
|
+
"bugs": {
|
|
42
|
+
"url": "https://github.com/yolo-labs-hq/monorepo/issues"
|
|
43
|
+
},
|
|
44
|
+
"scripts": {
|
|
45
|
+
"build": "tsup",
|
|
46
|
+
"clean": "rm -rf dist *.tsbuildinfo"
|
|
47
|
+
}
|
|
48
|
+
}
|