file_path stringlengths 3 280 | file_language stringclasses 66
values | content stringlengths 1 1.04M | repo_name stringlengths 5 92 | repo_stars int64 0 154k | repo_description stringlengths 0 402 | repo_primary_language stringclasses 108
values | developer_username stringlengths 1 25 | developer_name stringlengths 0 30 | developer_company stringlengths 0 82 |
|---|---|---|---|---|---|---|---|---|---|
cmd/gui_test.go | Go | package cmd
import (
"testing"
)
func TestGuiCommand(t *testing.T) {
if guiCmd == nil {
t.Fatal("guiCmd is nil")
}
if guiCmd.Use != "gui" {
t.Errorf("guiCmd.Use = %s; want gui", guiCmd.Use)
}
// Verify it's added to root
found := false
for _, c := range rootCmd.Commands() {
if c == guiCmd {
found =... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/info.go | Go | package cmd
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/skill"
)
// infoCmd represents the info command
var infoCmd = &cobra.Command{
Use: "info [skill-name]",
Short: "Show detailed information about a s... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/init.go | Go | package cmd
import (
"fmt"
"os"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
)
// initCmd represents the init command
var initCmd = &cobra.Command{
Use: "init",
Short: "Initialize a new ASK project",
Long: `Initialize a new Agent Skills Kit project.
This will create ask.yaml and the skil... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/install.go | Go | package cmd
import (
"fmt"
"os"
"strings"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/installer"
"github.com/yeasy/ask/internal/repository"
)
// installCmd represents the install command
var installCmd = &cobra.Command{... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/install_test.go | Go | package cmd
import (
"testing"
)
func TestInstallAliases(t *testing.T) {
// Test skill install aliases
foundAdd := false
foundI := false
for _, alias := range installCmd.Aliases {
if alias == "add" {
foundAdd = true
}
if alias == "i" {
foundI = true
}
}
if !foundAdd {
t.Error("installCmd should... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/list.go | Go | package cmd
import (
"encoding/json"
"fmt"
"os"
"path/filepath"
"strings"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/skill"
)
// listCmd represents the list command
var listCmd = &cobra.Command{
Use: "list",
Short: "List installed skills",
Long: `List ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/list_test.go | Go | package cmd
import (
"testing"
)
func TestListConfiguration(t *testing.T) {
if listCmd.Flags().Lookup("all") == nil {
t.Error("listCmd missing 'all' flag")
}
if listCmd.Flags().Lookup("agent") == nil {
t.Error("listCmd missing 'agent' flag")
}
if listRootCmd.Flags().Lookup("all") == nil {
t.Error("listRo... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/outdated.go | Go | package cmd
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
"text/tabwriter"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/ui"
)
// outdatedCmd represents the outdated command
var outdatedCmd = &cobra.Command{
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/prompt.go | Go | package cmd
import (
"encoding/xml"
"fmt"
"os"
"path/filepath"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/skill"
)
// AvailableSkills represents the XML structure for agent prompt integration
type AvailableSkills struct {
XMLName xml.Name `xml:"availabl... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/prompt_test.go | Go | package cmd
import (
"os"
"path/filepath"
"strings"
"testing"
)
func TestPromptCommand_SingleSkill(t *testing.T) {
tmpDir := t.TempDir()
skillDir := filepath.Join(tmpDir, "test-skill")
if err := os.Mkdir(skillDir, 0755); err != nil {
t.Fatal(err)
}
// Create valid SKILL.md
skillMD := `---
name: test-skil... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/repo.go | Go | package cmd
import (
"encoding/json"
"fmt"
"net/http"
"os"
"os/exec"
"strings"
"text/tabwriter"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/repository"
"github.com/yeasy/ask/internal/ui"
)
// repoCmd represents the r... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/root.go | Go | package cmd
import (
"fmt"
"os"
"strings"
"github.com/spf13/cobra"
"github.com/spf13/viper"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/ui"
)
var (
cfgFile string
logLevel string
)
// Custom help template with subcommand details at the end... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/search.go | Go | package cmd
import (
"encoding/json"
"fmt"
"os"
"os/exec"
"strings"
"text/tabwriter"
"time"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/repository"
"github.com/yeasy/ask/interna... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/search_test.go | Go | package cmd
import (
"testing"
)
func TestSearchConfiguration(t *testing.T) {
if searchCmd.Flags().Lookup("local") == nil {
t.Error("searchCmd missing 'local' flag")
}
if searchCmd.Flags().Lookup("remote") == nil {
t.Error("searchCmd missing 'remote' flag")
}
if searchCmd.Flags().Lookup("min-stars") == nil ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/serve.go | Go | package cmd
import (
"context"
"fmt"
"os"
"os/signal"
"syscall"
"time"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/server"
"github.com/yeasy/ask/internal/ui"
)
var (
servePort int
noOpen bool
)
// serveCmd represents the serve command
var serveCmd = &cobra.Command{
Use: "serve [path]",
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/service.go | Go | package cmd
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"time"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/service"
"github.com/yeasy/ask/internal/ui"
)
var serviceCmd = &cobra.Command{
Use: "service",
Short: "Manage the ASK background service (start, stop, status)",
Long: `Manage the ASK... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/service_unix.go | Go | //go:build !windows
package cmd
import (
"os"
"syscall"
)
// sysProcAttr returns the SysProcAttr for Unix systems
func sysProcAttr() *syscall.SysProcAttr {
return &syscall.SysProcAttr{
Setpgid: true,
}
}
// signalTerm sends SIGTERM to the process
func signalTerm(pid int) error {
p, err := os.FindProcess(pid)... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/service_windows.go | Go | //go:build windows
package cmd
import (
"os"
"syscall"
)
// sysProcAttr returns nil on Windows (Setpgid not supported)
func sysProcAttr() *syscall.SysProcAttr {
return nil
}
// signalTerm kills the process on Windows (no SIGTERM equivalent)
func signalTerm(pid int) error {
p, err := os.FindProcess(pid)
if err ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/skill.go | Go | package cmd
import (
"github.com/spf13/cobra"
)
// skillCmd represents the skill parent command
var skillCmd = &cobra.Command{
Use: "skill",
Aliases: []string{"skills"},
Short: "Manage agent skills",
Long: `Manage agent skills - search, install, update, and remove skills.
Examples:
ask skill search brow... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/sync.go | Go | package cmd
import (
"context"
"fmt"
"os"
"strings"
"sync"
"time"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/ui"
"golang.org/x/sync/errgroup"
)
// syncCmd represents the sync c... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/uninstall.go | Go | package cmd
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/filesystem"
"github.com/yeasy/ask/internal/ui"
)
// uninstallCmd represents the uninstall command
var uninstallCmd = &cobra.Command{
Use: "uninstall [ski... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/update.go | Go | package cmd
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"github.com/spf13/cobra"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/ui"
)
// updateCmd represents the update command
var updateCmd = &cobra.Command{
Use: "update [skill-name]",
Short: "Update installed skills to latest ve... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/utils.go | Go | package cmd
import (
"fmt"
"os"
"github.com/yeasy/ask/internal/config"
)
// ensureInitialized checks if ask.yaml exists. If not, auto-initializes.
// Returns true after initialization.
func ensureInitialized() bool {
if _, err := os.Stat("ask.yaml"); err == nil {
return true // Already initialized
}
// Auto... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
cmd/version.go | Go | package cmd
import (
"fmt"
"github.com/spf13/cobra"
)
var versionCmd = &cobra.Command{
Use: "version",
Short: "Print the version number of ask",
Long: `All software has versions. This is ask's`,
Run: func(_ *cobra.Command, _ []string) {
fmt.Printf("ask version %s\n", Version)
},
}
func init() {
rootCmd... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/app/app.go | Go | // Package app provides the Wails application logic.
package app
import (
"context"
"fmt"
"os"
"github.com/yeasy/ask/internal/config"
)
// App struct
type App struct {
ctx context.Context
}
// NewApp creates a new App application struct
func NewApp() *App {
return &App{}
}
// Startup is called when the app s... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/app/app_test.go | Go | package app
import (
"context"
"testing"
)
func TestNewApp(t *testing.T) {
app := NewApp()
if app == nil {
t.Error("NewApp() returned nil")
}
}
func TestApp_Startup(t *testing.T) {
app := NewApp()
ctx := context.TODO()
app.Startup(ctx)
if app.ctx != ctx {
t.Error("Startup did not save the context")
}
}... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/cache/cache.go | Go | // Package cache manages the local caching of repositories and skills.
package cache
import (
"crypto/sha256"
"encoding/hex"
"encoding/json"
"fmt"
"os"
"path/filepath"
"time"
)
// Cache provides file-based caching with TTL
type Cache struct {
dir string
ttl time.Duration
}
// Entry represents a cached item ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/cache/cache_test.go | Go | package cache
import (
"testing"
"time"
)
func TestCacheSetGet(t *testing.T) {
cache, err := New(t.TempDir(), DefaultTTL)
if err != nil {
t.Fatalf("failed to create cache: %v", err)
}
// Test set and get
testData := map[string]string{"key": "value"}
if err := cache.Set("test-key", testData); err != nil {
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/cache/repos.go | Go | package cache
import (
"context"
"encoding/json"
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
"time"
)
// ReposCache manages local git repository cache for skill discovery
type ReposCache struct {
baseDir string
}
// RepoInfo represents cached repository metadata
type RepoInfo struct {
Name strin... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/config/agents.go | Go | // Package config handles configuration loading and management.
package config
import (
"os"
"path/filepath"
"sort"
)
// AgentType represents a supported AI coding agent
type AgentType string
const (
// AgentClaude represents the Claude agent
AgentClaude AgentType = "claude"
// AgentCursor represents the Curso... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/config/config.go | Go | package config
import (
"fmt"
"os"
"path/filepath"
"strings"
"gopkg.in/yaml.v3"
)
// OfflineMode indicates if the application is running in offline mode
var OfflineMode bool
// SetOffline sets the offline mode
func SetOffline(offline bool) {
OfflineMode = offline
}
// Repo represents a skill repository
type ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/config/config_test.go | Go | package config
import (
"os"
"path/filepath"
"testing"
)
func TestDefaultConfig(t *testing.T) {
config := DefaultConfig()
if config.Version != "1.2" {
t.Errorf("Expected version 1.2, got %s", config.Version)
}
if len(config.Skills) != 0 {
t.Errorf("Expected empty skills list, got %d", len(config.Skills))
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/config/lock.go | Go | package config
import (
"os"
"time"
"gopkg.in/yaml.v3"
)
// LockFileName is the name of the lock file
const LockFileName = "ask.lock"
// LockEntry represents a locked skill version
type LockEntry struct {
Name string `yaml:"name"`
Source string `yaml:"source,omitempty"`
URL string ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/filesystem/filesystem.go | Go | // Package filesystem provides utility functions for file system operations.
package filesystem
import (
"io"
"os"
"path/filepath"
"runtime"
)
// CopyDir recursively copies a directory tree, attempting to preserve permissions.
// Source directory must exist, destination directory must *not* exist.
func CopyDir(so... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/filesystem/filesystem_test.go | Go | package filesystem
import (
"os"
"path/filepath"
"testing"
"github.com/stretchr/testify/assert"
)
func TestCopyFile(t *testing.T) {
// Create source file
srcFile, err := os.CreateTemp("", "test-src-*")
assert.NoError(t, err)
defer func() { _ = os.Remove(srcFile.Name()) }()
content := []byte("hello world")
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/git/git.go | Go | // Package git provides git operations helpers.
package git
import (
"fmt"
"io"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/yeasy/ask/internal/ui"
)
// Clone clones a git repository to the specified destination
func Clone(url, dest string) error {
bar := ui.NewSpinner(fmt.Sprintf("Cloning %s...", fi... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/git/git_test.go | Go | package git
import (
"os"
"os/exec"
"path/filepath"
"strings"
"testing"
)
// runGit executes a git command in the specified directory with a clean environment
func runGit(t *testing.T, dir string, args ...string) {
cmd := exec.Command("git", args...)
cmd.Dir = dir
// Filter out GIT_ vars from environment to p... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/github/client.go | Go | // Package github interacts with the GitHub API to search and fetch repositories.
package github
import (
"encoding/json"
"fmt"
"net/http"
"net/url"
"os"
"time"
"github.com/yeasy/ask/internal/cache"
)
const (
// SkillTopic is the default topic to search for agent skills
SkillTopic = "agent-skill"
// APIURL... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/github/client_test.go | Go | package github
import (
"encoding/json"
"testing"
)
func TestSearchResultParsing(t *testing.T) {
jsonResponse := `{
"total_count": 1,
"items": [
{
"name": "browser-use",
"full_name": "browser-use/browser-use",
"description": "Make websites accessible for AI agents",
"stargazers_count": 1024,... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/github/utils.go | Go | package github
import (
"fmt"
"path/filepath"
"strings"
)
// ParseBrowserURL parses a GitHub browser URL and extracts components
// Input: https://github.com/owner/repo/tree/branch/path/to/skill
// Returns: repoURL, branch, subDir, skillName, ok
func ParseBrowserURL(url string) (repoURL, branch, subDir, skillName ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/github/utils_test.go | Go | package github
import (
"testing"
)
func TestParseBrowserURL(t *testing.T) {
tests := []struct {
name string
input string
wantRepoURL string
wantBranch string
wantSubDir string
wantSkillName string
wantOK bool
}{
{
name: "full URL with subdirectory",
i... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/installer/installer.go | Go | // Package installer provides functionality to install skills from various sources.
package installer
import (
"fmt"
"os"
"path/filepath"
"strings"
"time"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/filesystem"
"github.com/yeasy/ask/internal/git... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/installer/installer_test.go | Go | package installer
import (
"testing"
"github.com/stretchr/testify/assert"
"github.com/yeasy/ask/internal/config"
)
func TestInstall_InvalidInput(t *testing.T) {
opts := InstallOptions{
Global: false,
Agents: []string{},
Config: nil,
}
// Empty input
err := Install("", opts)
assert.Error(t, err)
if er... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/repository/fetch.go | Go | // Package repository manages skill repositories and sources.
package repository
import (
"fmt"
"os"
"path/filepath"
"strings"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/git"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/skill"
"github.com/yeasy/ask/internal... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/repository/fetch_test.go | Go | package repository
import (
"os"
"path/filepath"
"strings"
"testing"
)
func createFile(t *testing.T, baseDir, path, content string) {
fullPath := filepath.Join(baseDir, path)
if err := os.MkdirAll(filepath.Dir(fullPath), 0755); err != nil {
t.Fatalf("failed to mkdir: %v", err)
}
if err := os.WriteFile(fullP... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/handlers_repo.go | Go | package server
import (
"encoding/json"
"fmt"
"net/http"
"os"
"os/exec"
"strings"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
)
// RepoInfo represents a repository for API responses
type RepoInfo struct {
Name string `json:"name"`
Type string `json:"type"`
URL string `... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/handlers_skill.go | Go | package server
import (
"encoding/json"
"fmt"
"net/http"
"os"
"os/exec"
"path/filepath"
"strings"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
"github.com/yeasy/ask/internal/github"
"github.com/yeasy/ask/internal/skill"
)
// SkillInfo represents a skill for API responses
ty... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/handlers_system.go | Go | package server
import (
"encoding/json"
"fmt"
"net/http"
"os"
"strings"
"github.com/yeasy/ask/internal/cache"
"github.com/yeasy/ask/internal/config"
)
// ConfigInfo represents configuration for API responses
type ConfigInfo struct {
Version string `json:"version"`
SkillsDir string ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/handlers_test.go | Go | package server
import (
"bytes"
"encoding/json"
"net/http"
"net/http/httptest"
"strings"
"testing"
)
func TestValidateSkillName(t *testing.T) {
tests := []struct {
name string
input string
wantErr bool
}{
{"valid simple name", "my-skill", false},
{"valid with underscore", "my_skill", false},
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/server.go | Go | // Package server provides an embedded HTTP server for the ask web UI.
package server
import (
"context"
"embed"
"encoding/json"
"fmt"
"io/fs"
"net/http"
"os/exec"
"runtime"
"strings"
"sync"
"time"
"github.com/yeasy/ask/internal/ui"
)
//go:embed web/*
var webFS embed.FS
// Server represents the HTTP ser... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/server_test.go | Go | package server
import (
"context"
"net/http"
"testing"
"time"
)
func TestNew(t *testing.T) {
port := 8080
s := New(port, "test-version")
if s == nil {
t.Fatal("New() returned nil")
}
if s.port != port {
t.Errorf("New() port = %d; want %d", s.port, port)
}
}
func TestServer_StartStop(t *testing.T) {
s ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/assets.go | Go | // Package web provides the static web assets for the application.
package web
import "embed"
// Assets contains the embedded web frontend.
//
//go:embed all:index.html css js img
var Assets embed.FS
| yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/css/style.css | CSS | :root {
/* Modern HSL Color System */
/* Dark Theme (Default) - "Cosmic Slate" */
--hue-primary: 220;
--hue-accent: 212;
--sat-base: 15%;
--bg-primary: hsl(var(--hue-primary), var(--sat-base), 10%);
/* Deep Dark */
--bg-secondary: hsl(var(--hue-primary), var(--sat-base), 14%);
/* Sidebar */
--bg-ca... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/index.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ASK - Agent Skills Kit</title>
<link rel="stylesheet" href="css/style.css">
<link rel="shortcut icon" type="image/png" href="img/logo.png">
</head>
<body>
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/js/app.js | JavaScript | // DOM Elements
const navItems = document.querySelectorAll('.nav-item');
// State
let state = {
view: localStorage.getItem('ask-current-view') || 'dashboard',
skills: [],
repos: [],
stats: {},
config: {},
searchQuery: '',
viewMode: localStorage.getItem('ask-view-mode') || 'grid',
activ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/js/wailsjs/go/app/App.d.ts | TypeScript | // Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1:string):Promise<string>;
| yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/js/wailsjs/go/app/App.js | JavaScript | // @ts-check
// Cynhyrchwyd y ffeil hon yn awtomatig. PEIDIWCH Â MODIWL
// This file is automatically generated. DO NOT EDIT
export function Greet(arg1) {
return window['go']['app']['App']['Greet'](arg1);
}
| yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/js/wailsjs/runtime/runtime.d.ts | TypeScript | /*
_ __ _ __
| | / /___ _(_) /____
| | /| / / __ `/ / / ___/
| |/ |/ / /_/ / / (__ )
|__/|__/\__,_/_/_/____/
The electron alternative for Go
(c) Lea Anthony 2019-present
*/
export interface Position {
x: number;
y: number;
}
export interface Size {
w: number;
h: number;
}
export inte... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/server/web/js/wailsjs/runtime/runtime.js | JavaScript | /*
_ __ _ __
| | / /___ _(_) /____
| | /| / / __ `/ / / ___/
| |/ |/ / /_/ / / (__ )
|__/|__/\__,_/_/_/____/
The electron alternative for Go
(c) Lea Anthony 2019-present
*/
export function LogPrint(message) {
window.runtime.LogPrint(message);
}
export function LogTrace(message) {
window.runti... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/service/service.go | Go | // Package service manages the background process for the ASK web server.
package service
import (
"os"
"path/filepath"
"strconv"
"syscall"
)
const (
pidFileName = "ask.pid"
logFileName = "ask.log"
)
// Manager handles service process management
type Manager struct {
homeDir string
}
// NewManager creates a ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/service/service_test.go | Go | package service
import (
"os"
"path/filepath"
"syscall"
"testing"
)
func TestManager_Paths(t *testing.T) {
tmpDir := t.TempDir()
m := NewManager(tmpDir)
expectedPID := filepath.Join(tmpDir, pidFileName)
if m.GetPIDFilePath() != expectedPID {
t.Errorf("GetPIDFilePath = %v, want %v", m.GetPIDFilePath(), expe... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/check.go | Go | // Package skill provides core skill manipulation and security checking logic.
package skill
import (
"bufio"
"fmt"
"os"
"path/filepath"
"regexp"
"strings"
)
// Severity represents the severity of a security finding
type Severity string
const (
// SeverityInfo indicates informational findings
SeverityInfo Se... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/check_test.go | Go | package skill
import (
"os"
"path/filepath"
"testing"
)
func TestCalculateEntropy(t *testing.T) {
tests := []struct {
name string
input string
min float64
max float64
}{
{"Empty", "", 0, 0},
{"Low Entropy (Repeated)", "aaaaaaaa", 0, 0.1},
{"Low Entropy (Sequence)", "12345678", 2.9, 3.1}, // Lo... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/entropy.go | Go | package skill
import (
"math"
)
// CalculateEntropy calculates the Shannon entropy of a string.
// Higher entropy indicates more randomness, which is common in secrets/keys.
func CalculateEntropy(s string) float64 {
if s == "" {
return 0
}
freq := make(map[rune]float64)
for _, char := range s {
freq[char]++... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/report.go | Go | package skill
import (
"encoding/json"
"fmt"
"html/template"
"sort"
"strings"
"time"
)
// GenerateReport generates a report in the specified format ("md", "html", or "json")
func GenerateReport(result *CheckResult, format string) (string, error) {
switch strings.ToLower(format) {
case "md", "markdown":
retu... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/report_test.go | Go | package skill
import (
"strings"
"testing"
)
func TestGenerateReport_Markdown(t *testing.T) {
result := &CheckResult{
SkillName: "Test Skill",
Findings: []Finding{
{
RuleID: "TEST-RULE",
Severity: SeverityCritical,
Description: "Critical Issue",
File: "test.py",
Line: ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/scan.go | Go | package skill
import (
"io/fs"
"path/filepath"
"strings"
)
// ScanResult represents a found skill on disk
type ScanResult struct {
Path string `json:"path"`
Meta *Meta `json:"meta"`
}
// ScanDirectory recursively scans a directory for skills (directories containing SKILL.md)
// limitDepth prevents infinite rec... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/scan_test.go | Go | package skill
import (
"os"
"path/filepath"
"testing"
)
func TestScanDirectory(t *testing.T) {
// Create a temporary directory for testing
tempDir, err := os.MkdirTemp("", "skill_scan_test")
if err != nil {
t.Fatalf("Failed to create temp dir: %v", err)
}
defer func() { _ = os.RemoveAll(tempDir) }()
// Cr... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/skill.go | Go | package skill
import (
"bufio"
"os"
"path/filepath"
"strings"
"gopkg.in/yaml.v3"
)
// Meta represents metadata parsed from SKILL.md
type Meta struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
Version string `yaml:"version"`
Author ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/skill_test.go | Go | package skill
import (
"os"
"path/filepath"
"testing"
)
func TestParseSkillMDWithFrontmatter(t *testing.T) {
// Create a temporary directory
tmpDir := t.TempDir()
skillDir := filepath.Join(tmpDir, "test-skill")
if err := os.Mkdir(skillDir, 0755); err != nil {
t.Fatalf("Failed to create test directory: %v", e... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/template.go | Go | package skill
import (
"fmt"
"os"
"os/exec"
"path/filepath"
"strings"
"text/template"
)
// TemplateData holds data for the skill template
type TemplateData struct {
Name string
Description string
Author string
}
const skillMDTemplate = `---
name: {{.Name}}
description: {{.Description}}
version: ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/validate.go | Go | // Package skill provides core skill manipulation, validation, and security checking logic.
package skill
import (
"fmt"
"regexp"
"strings"
"unicode"
)
// ValidationError represents a validation issue with a SKILL.md file
type ValidationError struct {
Field string
Message string
Severity Severity
}
// nam... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skill/validate_test.go | Go | package skill
import (
"os"
"path/filepath"
"strings"
"testing"
)
func TestValidateMeta_Valid(t *testing.T) {
meta := &Meta{
Name: "my-skill",
Description: "A valid skill description",
}
errors := ValidateMeta(meta, "my-skill")
if len(errors) != 0 {
t.Errorf("Expected no errors for valid meta, g... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skillhub/client.go | Go | // Package skillhub provides an interface to search and interact with skill registries.
package skillhub
import (
"encoding/json"
"fmt"
"io"
"net/http"
"net/url"
"regexp"
"strings"
"time"
"github.com/yeasy/ask/internal/config"
)
// SearchURL is the endpoint for quick search
const SearchURL = "https://www.sk... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skillhub/client_live_test.go | Go | package skillhub_test
import (
"fmt"
"os"
"strings"
"testing"
"github.com/yeasy/ask/internal/skillhub"
)
func TestSkillHubLive(t *testing.T) {
if os.Getenv("ASK_LIVE_TESTS") != "1" {
t.Skip("Skipping live test; set ASK_LIVE_TESTS=1 to run")
}
client := skillhub.NewClient()
// Test Search
fmt.Println("S... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/skillhub/client_test.go | Go | package skillhub
import (
"testing"
"github.com/stretchr/testify/assert"
)
func TestResolve(t *testing.T) {
// We only test NewClient here to avoid creating a real HTTP server
// which causes race conditions in some sandboxed environments.
c := NewClient()
assert.NotNil(t, c)
}
| yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/ui/logger.go | Go | // Package ui handles user interaction, logging, and progress display.
package ui
import (
"log/slog"
"os"
"strings"
)
// Log is the global logger instance
var Log *slog.Logger
func init() {
// Default to info level
Setup("info")
}
// Setup initializes the global logger with the specified level
func Setup(leve... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/ui/progress.go | Go | package ui
import (
"os"
"time"
"github.com/schollz/progressbar/v3"
)
// NewSpinner creates a spinner for operations without known size
func NewSpinner(description string) *progressbar.ProgressBar {
return progressbar.NewOptions(-1,
progressbar.OptionSetDescription(description),
progressbar.OptionSetWriter(o... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
internal/ui/ui_test.go | Go | package ui
import (
"strings"
"testing"
)
func TestNewSpinner(t *testing.T) {
description := "Testing spinner..."
spinner := NewSpinner(description)
if spinner == nil {
t.Fatal("NewSpinner returned nil")
}
// Verify spinner was created (can't easily test actual rendering)
// Just verify it doesn't panic
... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
main.go | Go | // Package main is the entry point for the ask CLI.
package main
import (
"os"
"github.com/yeasy/ask/cmd"
)
func main() {
// If no arguments are provided, default to the GUI command
if len(os.Args) == 1 {
cmd.ExecuteGUI()
return
}
cmd.Execute()
}
| yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
reports/anthropics.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Security Report: ~/.ask/repos/anthropics</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--critical: ... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
reports/openai.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Security Report: ~/.ask/repos/openai</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--critical: #d73... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
reports/superpowers.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Security Report: ~/.ask/repos/superpowers</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--critical:... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
reports/vercel.html | HTML | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Security Report: ~/.ask/repos/vercel</title>
<script src="https://cdn.jsdelivr.net/npm/chart.js"></script>
<style>
:root {
--critical: #d73... | yeasy/ask | 11 | The most powerful Package Manager for Agents Skills: search, query and install/uninstall in seconds! | HTML | yeasy | Baohua Yang | |
example/.eslintrc.cjs | JavaScript | /**
* This is intended to be a basic starting point for linting in the Blues Stack.
* It relies on recommended configs out of the box for simplicity, but you can
* and should modify this configuration to best suit your team's needs.
*/
/** @type {import('eslint').Linter.Config} */
module.exports = {
root: true,
... | yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/modules/components/order-details.tsx | TypeScript (TSX) | export function OrderDetails() {
return <div>Order details</div>
}
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/modules/order/root.tsx | TypeScript (TSX) | import { Outlet } from '@remix-run/react';
export default function Component() {
return (
<div>
<h1>Order Root</h1>
<Outlet />
</div>
)
}
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/modules/order/routes/$id/route.tsx | TypeScript (TSX) | import { OrderDetails } from '~/modules/components/order-details';
export default function Component() {
return <OrderDetails />
}
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/modules/order/routes/_index/route.tsx | TypeScript (TSX) | import { Link } from '@remix-run/react';
export default function Component() {
return (
<ul>
<li>
<Link to="/orders/1">Order #1</Link>
</li>
<li>
<Link to="/orders/2">Order #2</Link>
</li>
<li>
<Link to="/orders/3">Order #3</Link>
</li>
</ul>
)
}
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/root.tsx | TypeScript (TSX) | import {
Links,
LiveReload,
Meta,
Outlet,
Scripts,
ScrollRestoration,
} from "@remix-run/react";
export default function App() {
return (
<html lang="en">
<head>
<meta charSet="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<Meta />
... | yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/routes/_admin._index/route.tsx | TypeScript (TSX) | import type { MetaFunction } from "@remix-run/node";
import { Link } from '@remix-run/react';
export const meta: MetaFunction = () => {
return [
{ title: "New Remix App" },
{ name: "description", content: "Welcome to Remix!" },
];
};
export default function Index() {
return (
<div style={{ fontFamil... | yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/app/routes/_admin/route.tsx | TypeScript (TSX) | import { Outlet } from '@remix-run/react';
export default function Component() {
return (
<div>
<header>
<h1>Admin</h1>
</header>
<main>
<Outlet />
</main>
</div>
)
}
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/env.d.ts | TypeScript | /// <reference types="@remix-run/node" />
/// <reference types="vite/client" />
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
example/vite.config.ts | TypeScript | import { vitePlugin as remix } from "@remix-run/dev";
import { remixModules } from 'remix-modules';
import { defineConfig } from "vite";
import tsconfigPaths from "vite-tsconfig-paths";
export default defineConfig({
plugins: [
remix({
routes: async () => {
const modules = remixModules();
mo... | yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
src/index.ts | TypeScript | import { RemixModules } from './remix-modules';
export function remixModules(appDirectory: string = "app") {
return new RemixModules(appDirectory)
}
| yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
src/remix-app.ts | TypeScript | import type { RouteManifest } from '@remix-run/dev/dist/config/routes';
import { existsSync } from 'fs';
import { join, relative, resolve } from 'path';
let flatRoutes: typeof import('@remix-run/dev/dist/config/flat-routes').flatRoutes;
try {
flatRoutes = require('@remix-run/dev/dist/config/flat-routes').flatRoutes... | yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
src/remix-modules.ts | TypeScript | import { Options, RemixApp } from './remix-app';
export class RemixModules {
#apps: RemixApp[] = [];
constructor(private appDirectory: string) {}
mount(path: string, option: Options) {
const app = new RemixApp(this.appDirectory, path, option);
this.#apps.push(app);
}
async routes() {
return th... | yesmeck/remix-modules | 9 | Scale your Remix app with modules. | TypeScript | yesmeck | Wei Zhu | |
Build.ps1 | PowerShell | param (
[string]$Version = "luajit",
[string]$BuildFromSource = "false"
)
$Build = [System.Convert]::ToBoolean($BuildFromSource)
$ErrorActionPreference = "Stop"
$ProgressPreference = "SilentlyContinue"
$BuildDir = "build"
$REPO_OWNER = "yetone"
$REPO_NAME = "avante.nvim"
function Build-FromSource($feature) ... | yetone/avante.nvim | 17,366 | Use your Neovim like using Cursor AI IDE! | Lua | yetone | yetone | Isoform |
autoload/avante.vim | Vim Script | function avante#build(...) abort
let l:source = get(a:, 1, v:false)
return join([luaeval("require('avante_lib').load()") ,luaeval("require('avante.api').build(_A)", l:source)], "\n")
endfunction
| yetone/avante.nvim | 17,366 | Use your Neovim like using Cursor AI IDE! | Lua | yetone | yetone | Isoform |
build.sh | Shell | #!/usr/bin/env bash
set -e
REPO_OWNER="yetone"
REPO_NAME="avante.nvim"
SCRIPT_DIR="$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &>/dev/null && pwd)"
# Set the target directory to clone the artifact
TARGET_DIR="${SCRIPT_DIR}/build"
# Get the artifact download URL based on the platform and Lua version
case "$(uname -... | yetone/avante.nvim | 17,366 | Use your Neovim like using Cursor AI IDE! | Lua | yetone | yetone | Isoform |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.