Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy streaming logs when specified only #451

Open
wants to merge 5 commits into
base: dev
Choose a base branch
from

Conversation

AbdurrehmanSubhani
Copy link
Contributor

  • PR refactors the deployment logging stream to be used only when the user's specifies via command option.
  • Command option set to "-s, --stream"

usage:

usdk deploy [agent-dir] -s

displays the incoming agent-deployer stream logs

usdk deploy [agent-dir]

no agent-deployer stream logs displayed.

Test logs:

(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro usdk % usdk deploy '/Users/abdurrehmansubhani/Desktop/agents/agenr1'
Deploying agent...
5.7 MB / 5.7 MB (100.00%)

Agent Deployed Successfully: 

  ✓ Host: https://user-agent-92f7df52-d92e-4f78-9ef5-b28f1bc7678c.isekaichat.workers.dev 
  
  ✓ Public Profile: https://chat.upstreet.ai/agents/92f7df52-d92e-4f78-9ef5-b28f1bc7678c 
  
  ✓ Chat using the sdk, run: usdk chat 92f7df52-d92e-4f78-9ef5-b28f1bc7678c 
  
(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro usdk % usdk deploy '/Users/abdurrehmansubhani/Desktop/agents/agenr1' -s
Deploying agent...
5.7 MB / 5.7 MB (100.00%)
npm warn deprecated [email protected]: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated [email protected]: Glob versions prior to v9 are no longer supported

added 468 packages, and audited 481 packages in 6s

63 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities

 ⛅️ wrangler 3.74.0 (update available 3.85.0)
---------------------------------------------

▲ [WARNING] Enabling Wrangler compile-time Node.js compatibility polyfill mode for builtins and globals. This is experimental and has serious tradeoffs.


Total Upload: 16468.00 KiB / gzip: 3110.33 KiB
Worker Startup Time: 240 ms
Your worker has access to the following bindings:
- Durable Objects:
  - AGENT: DurableObject
- Vars:
  - AGENT_JSON: "{"name":"Astra the Star Wanderer","bi..."
  - WALLET_MNEMONIC: "broken faint broccoli era skirt solve..."
  - AGENT_TOKEN: "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9...."
  - SUPABASE_URL: "https://friddlbqibjnxjoxeocc.supabase..."
  - SUPABASE_PUBLIC_API_KEY: "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...."
  - WORKER_ENV: "production"
Uploaded user-agent-92f7df52-d92e-4f78-9ef5-b28f1bc7678c (8.73 sec)
Deployed user-agent-92f7df52-d92e-4f78-9ef5-b28f1bc7678c triggers (0.11 sec)
  https://user-agent-92f7df52-d92e-4f78-9ef5-b28f1bc7678c.isekaichat.workers.dev
Current Version ID: 443d764d-9dd6-44f8-8cce-4cb9a88f42df

Agent Deployed Successfully: 

  ✓ Host: https://user-agent-92f7df52-d92e-4f78-9ef5-b28f1bc7678c.isekaichat.workers.dev 
  
  ✓ Public Profile: https://chat.upstreet.ai/agents/92f7df52-d92e-4f78-9ef5-b28f1bc7678c 
  
  ✓ Chat using the sdk, run: usdk chat 92f7df52-d92e-4f78-9ef5-b28f1bc7678c 
  
(base) abdurrehmansubhani@Abdurrehmans-MacBook-Pro usdk % 
image

Copy link

vercel bot commented Nov 8, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
chat ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 5:32am
docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 21, 2024 5:32am

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants