feat: Add complete Agentic Compaction & Pipeline System
- Context Compaction System with token counting and summarization - Deterministic State Machine for flow control (no LLM decisions) - Parallel Execution Engine (up to 12 concurrent sessions) - Event-Driven Coordination via Event Bus - Agent Workspace Isolation (tools, memory, identity, files) - YAML Workflow Integration (OpenClaw/Lobster compatible) - Claude Code integration layer - Complete demo UI with real-time visualization - Comprehensive documentation and README Components: - agent-system/: Context management, token counting, subagent spawning - pipeline-system/: State machine, parallel executor, event bus, workflows - skills/: AI capabilities (LLM, ASR, TTS, VLM, image generation, etc.) - src/app/: Next.js demo application Total: ~100KB of production-ready TypeScript code
This commit is contained in:
21
skills/web-reader/LICENSE.txt
Executable file
21
skills/web-reader/LICENSE.txt
Executable file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2025 z-ai-web-dev-sdk Skills
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
1140
skills/web-reader/SKILL.md
Executable file
1140
skills/web-reader/SKILL.md
Executable file
File diff suppressed because it is too large
Load Diff
37
skills/web-reader/scripts/web-reader.ts
Executable file
37
skills/web-reader/scripts/web-reader.ts
Executable file
@@ -0,0 +1,37 @@
|
||||
import ZAI from 'z-ai-web-dev-sdk';
|
||||
|
||||
interface PageReaderFunctionResult {
|
||||
code: number;
|
||||
data: {
|
||||
html: string;
|
||||
publishedTime?: string;
|
||||
title: string;
|
||||
url: string;
|
||||
usage: {
|
||||
tokens: number;
|
||||
};
|
||||
};
|
||||
meta: {
|
||||
usage: {
|
||||
tokens: number;
|
||||
};
|
||||
};
|
||||
status: number;
|
||||
}
|
||||
|
||||
async function main(url: string) {
|
||||
try {
|
||||
const zai = await ZAI.create();
|
||||
|
||||
const results: PageReaderFunctionResult = await zai.functions.invoke('page_reader', {
|
||||
url: url
|
||||
});
|
||||
|
||||
console.log('Web reader invocation succeeded. Results:');
|
||||
console.log(JSON.stringify(results, null, 2));
|
||||
} catch (err: any) {
|
||||
console.error('page_reader failed:', err?.message || err);
|
||||
}
|
||||
}
|
||||
|
||||
main('https://www.google.com');
|
||||
Reference in New Issue
Block a user