chore: clean up random unused files (#5166)
This commit is contained in:
@@ -1,9 +0,0 @@
|
||||
# goose Jokes 🦢
|
||||
|
||||
## Why did the goose become a developer?
|
||||
|
||||
Because it wanted to help debug all those "fowl" errors in the code!
|
||||
|
||||
---
|
||||
|
||||
*Feel free to add more goose-related programming humor below!*
|
||||
@@ -1,17 +0,0 @@
|
||||
{
|
||||
"demo": {
|
||||
"title": "goose File Operations Demo",
|
||||
"version": "1.0.0",
|
||||
"features": [
|
||||
"File creation",
|
||||
"File reading",
|
||||
"Content modification",
|
||||
"Multiple formats"
|
||||
],
|
||||
"metadata": {
|
||||
"created_by": "goose AI Assistant",
|
||||
"created_at": "2025-07-02T17:33:32Z",
|
||||
"file_type": "demonstration"
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -1,17 +0,0 @@
|
||||
Hello, World!
|
||||
|
||||
This is a demonstration of file operations in goose.
|
||||
|
||||
Here are some key points:
|
||||
- Files can be created and edited
|
||||
- Content can be viewed and modified
|
||||
- Multiple file formats are supported
|
||||
|
||||
Current timestamp: 2025-07-02 17:33:32
|
||||
|
||||
--- UPDATE ---
|
||||
This content was added after the initial file creation!
|
||||
File modification operations include:
|
||||
- String replacement
|
||||
- Line insertion
|
||||
- Content appending
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
# Launcher script for goose GUI
|
||||
# Suppresses common GLib warnings that don't affect functionality
|
||||
|
||||
cd /home/alfonsodg/Devel-Local/oss/goose/ui/desktop/out/goose-linux-x64
|
||||
./goose 2>&1 | grep -v "GLib-GObject" | grep -v "browser_main_loop"
|
||||
@@ -1,87 +0,0 @@
|
||||
version: "1.0.0"
|
||||
title: "Word Counter"
|
||||
description: "A recipe that counts words in text using an inline Python extension"
|
||||
|
||||
instructions: |
|
||||
This recipe provides a simple word counting tool. You can:
|
||||
1. Count words in a text string
|
||||
2. Get statistics about the text (unique words, average word length)
|
||||
3. Generate word clouds from the text
|
||||
|
||||
parameters:
|
||||
- key: text
|
||||
input_type: string
|
||||
requirement: required
|
||||
description: "The text to analyze"
|
||||
|
||||
extensions:
|
||||
- type: inline_python
|
||||
name: word_counter
|
||||
code: |
|
||||
from mcp.server.fastmcp import FastMCP
|
||||
import json
|
||||
from collections import Counter
|
||||
import numpy as np
|
||||
from wordcloud import WordCloud
|
||||
import matplotlib.pyplot as plt
|
||||
import base64
|
||||
from io import BytesIO
|
||||
|
||||
mcp = FastMCP("word_counter")
|
||||
|
||||
@mcp.tool()
|
||||
def count_words(text: str) -> str:
|
||||
"""Count the number of words in a text string and generate statistics"""
|
||||
words = text.split()
|
||||
word_count = len(words)
|
||||
unique_words = len(set(words))
|
||||
avg_length = sum(len(word) for word in words) / word_count if word_count > 0 else 0
|
||||
|
||||
# Generate word cloud
|
||||
wordcloud = WordCloud(width=800, height=400, background_color='white').generate(text)
|
||||
|
||||
# Save word cloud to base64
|
||||
plt.figure(figsize=(10, 5))
|
||||
plt.imshow(wordcloud, interpolation='bilinear')
|
||||
plt.axis('off')
|
||||
|
||||
# Save to bytes
|
||||
buf = BytesIO()
|
||||
plt.savefig(buf, format='png', bbox_inches='tight', pad_inches=0)
|
||||
buf.seek(0)
|
||||
img_base64 = base64.b64encode(buf.getvalue()).decode()
|
||||
plt.close()
|
||||
|
||||
result = {
|
||||
"total_words": word_count,
|
||||
"unique_words": unique_words,
|
||||
"average_word_length": round(avg_length, 2),
|
||||
"most_common": dict(Counter(words).most_common(5)),
|
||||
"wordcloud_base64": img_base64
|
||||
}
|
||||
|
||||
return json.dumps(result, indent=2)
|
||||
|
||||
if __name__ == "__main__":
|
||||
mcp.run()
|
||||
timeout: 300
|
||||
description: "Count words and provide text statistics with visualization"
|
||||
dependencies:
|
||||
- "mcp"
|
||||
- "numpy"
|
||||
- "matplotlib"
|
||||
- "wordcloud"
|
||||
- "beautifulsoup4"
|
||||
- "html2text"
|
||||
- "requests"
|
||||
|
||||
prompt: |
|
||||
You are a helpful assistant that can analyze text using word counting tools.
|
||||
The user has provided the following text to analyze: {{ text }}
|
||||
|
||||
Use the word_counter__count_words tool to analyze this text and provide insights about:
|
||||
- Total word count
|
||||
- Number of unique words
|
||||
- Average word length
|
||||
- Most commonly used words
|
||||
- A word cloud visualization of the text
|
||||
@@ -1,100 +0,0 @@
|
||||
/** @type {import('tailwindcss').Config} */
|
||||
export default {
|
||||
darkMode: ['class'],
|
||||
content: ['./src/**/*.{js,jsx,ts,tsx}', './index.html'],
|
||||
plugins: [require('tailwindcss-animate'), require('@tailwindcss/typography'), require('@tailwindcss/line-clamp') ],
|
||||
theme: {
|
||||
extend: {
|
||||
fontFamily: {
|
||||
sans: ['Cash Sans', 'sans-serif'],
|
||||
mono: ['Cash Sans Mono', 'monospace'],
|
||||
},
|
||||
keyframes: {
|
||||
shimmer: {
|
||||
'0%': { backgroundPosition: '200% 0' },
|
||||
'100%': { backgroundPosition: '-200% 0' },
|
||||
},
|
||||
loader: {
|
||||
'0%': { left: 0, width: 0 },
|
||||
'50%': { left: 0, width: '100%' },
|
||||
'100%': { left: '100%', width: 0 },
|
||||
},
|
||||
popin: {
|
||||
from: { opacity: 0, transform: 'scale(0.95)' },
|
||||
to: { opacity: 1, transform: 'scale(1)' },
|
||||
},
|
||||
fadein: {
|
||||
'0%': { opacity: 0 },
|
||||
'100%': { opacity: 1 },
|
||||
},
|
||||
appear: {
|
||||
'0%': { opacity: 0, transform: 'translateY(12px)' },
|
||||
'100%': { opacity: 1, transform: 'translateY(0)' },
|
||||
},
|
||||
flyin: {
|
||||
'0%': { opacity: 0, transform: 'translate(-300%, 300%)' },
|
||||
'100%': { opacity: 1, transform: 'translate(0, 0)' },
|
||||
},
|
||||
wind: {
|
||||
'0%': { transform: 'translate(0, 0)' },
|
||||
'99.99%': { transform: 'translate(-100%, 100%)' },
|
||||
'100%': { transform: 'translate(0, 0)' },
|
||||
},
|
||||
rotate: {
|
||||
'0%': { transform: 'rotate(0deg)' },
|
||||
'100%': { transform: 'rotate(360deg)' },
|
||||
},
|
||||
'spin-fast': {
|
||||
'0%': { transform: 'rotate(0deg)' },
|
||||
'100%': { transform: 'rotate(360deg)' },
|
||||
},
|
||||
indeterminate: {
|
||||
'0%': { left: '-40%', width: '40%' },
|
||||
'50%': { left: '20%', width: '60%' },
|
||||
'100%': { left: '100%', width: '80%' },
|
||||
},
|
||||
},
|
||||
animation: {
|
||||
'shimmer-pulse': 'shimmer 4s ease-in-out infinite',
|
||||
'gradient-loader': 'loader 750ms ease-in-out infinite',
|
||||
indeterminate: 'indeterminate 1.5s infinite linear',
|
||||
'spin-fast': 'spin-fast 0.5s linear infinite',
|
||||
},
|
||||
colors: {
|
||||
bgApp: 'var(--background-app)',
|
||||
bgSubtle: 'var(--background-subtle)',
|
||||
bgStandard: 'var(--background-standard)',
|
||||
bgProminent: 'var(--background-prominent)',
|
||||
bgAppInverse: 'var(--background-app-inverse)',
|
||||
bgSubtleInverse: 'var(--background-subtle-inverse)',
|
||||
bgStandardInverse: 'var(--background-standard-inverse)',
|
||||
bgProminentInverse: 'var(--background-prominent-inverse)',
|
||||
|
||||
borderSubtle: 'var(--border-subtle)',
|
||||
borderStandard: 'var(--border-standard)',
|
||||
borderProminent: 'var(--border-prominent)',
|
||||
|
||||
textProminent: 'var(--text-prominent)',
|
||||
textStandard: 'var(--text-standard)',
|
||||
textSubtle: 'var(--text-subtle)',
|
||||
textPlaceholder: 'var(--text-placeholder)',
|
||||
textProminentInverse: 'var(--text-prominent-inverse)',
|
||||
|
||||
iconProminent: 'var(--icon-prominent)',
|
||||
iconStandard: 'var(--icon-standard)',
|
||||
iconSubtle: 'var(--icon-subtle)',
|
||||
iconExtraSubtle: 'var(--icon-extra-subtle)',
|
||||
slate: 'var(--slate)',
|
||||
blockTeal: 'var(--block-teal)',
|
||||
blockOrange: 'var(--block-orange)',
|
||||
},
|
||||
typography: {
|
||||
DEFAULT: {
|
||||
css: {
|
||||
color: 'var(--text-standard)',
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user