repo_full_name stringlengths 6 93 | repo_url stringlengths 25 112 | repo_api_url stringclasses 28
values | owner stringclasses 28
values | repo_name stringclasses 28
values | description stringclasses 28
values | stars int64 617 98.8k | forks int64 31 355 ⌀ | watchers int64 990 999 ⌀ | license stringclasses 2
values | default_branch stringclasses 2
values | repo_created_at timestamp[s]date 2012-07-24 23:12:50 2025-06-16 08:07:28 ⌀ | repo_updated_at timestamp[s]date 2026-02-23 15:23:15 2026-05-03 18:52:12 ⌀ | repo_topics listlengths 0 13 ⌀ | repo_languages unknown | is_fork bool 1
class | open_issues int64 3 104 ⌀ | file_path stringlengths 3 208 | file_name stringclasses 509
values | file_extension stringclasses 1
value | file_size_bytes int64 101 84k ⌀ | file_url stringclasses 627
values | file_raw_url stringclasses 627
values | file_sha stringclasses 624
values | language stringclasses 8
values | parsed_at stringdate 2026-05-04 01:12:36 2026-05-04 19:41:55 | text stringlengths 100 102k |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | release.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:03.400601 | #!/usr/bin/env python
from subprocess import call
import os
import re
version = None
def get_new_setup_py_lines():
global version
with open('setup.py', 'r') as sf:
current_setup = sf.readlines()
for line in current_setup:
if line.startswith('VERSION = '):
major, minor = re.fi... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/entrypoints/test_not_configured.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:03.402934 | import pytest
import json
from six import StringIO
from mock import MagicMock
from thefuck.shells.generic import ShellConfiguration
from thefuck.entrypoints.not_configured import main
@pytest.fixture(autouse=True)
def usage_tracker(mocker):
return mocker.patch(
'thefuck.entrypoints.not_configured._get_not... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/entrypoints/test_alias.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:03.403780 | from mock import Mock
import pytest
from thefuck.entrypoints.alias import _get_alias, print_alias
@pytest.mark.parametrize(
'py2, enable_experimental_instant_mode, which, is_instant', [
(False, True, True, True),
(False, False, True, False),
(False, True, False, False),
(True, True... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:03.423441 | import os
import pytest
from thefuck import shells
from thefuck import conf, const
from thefuck.system import Path
shells.shell = shells.Generic()
def pytest_configure(config):
config.addinivalue_line("markers", "functional: mark test as functional")
def pytest_addoption(parser):
"""Adds `--enable-function... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/functional/plots.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:03.970442 | def _set_confirmation(proc, require):
proc.sendline(u'mkdir -p ~/.thefuck')
proc.sendline(
u'echo "require_confirmation = {}" > ~/.thefuck/settings.py'.format(
require))
def with_confirmation(proc, TIMEOUT):
"""Ensures that command can be fixed when confirmation enabled."""
_set_co... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/functional/conftest.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.001982 | import pytest
from pytest_docker_pexpect.docker import run as pexpect_docker_run, \
stats as pexpect_docker_stats
@pytest.fixture(autouse=True)
def build_container_mock(mocker):
return mocker.patch('pytest_docker_pexpect.docker.build_container')
def run_side_effect(*args, **kwargs):
container_id = pexp... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/functional/test_fish.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.016855 | import pytest
from tests.functional.plots import with_confirmation, without_confirmation, \
refuse_with_confirmation, select_command_with_arrows
containers = ((u'thefuck/python3', u'', u'fish'),
(u'thefuck/python2', u'', u'fish'))
@pytest.fixture(params=containers)
def proc(request, spawnu, TIMEOUT... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/functional/test_tcsh.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.025091 | import pytest
from tests.functional.plots import with_confirmation, without_confirmation, \
refuse_with_confirmation, select_command_with_arrows
containers = ((u'thefuck/python3', u'', u'tcsh'),
(u'thefuck/python2', u'', u'tcsh'))
@pytest.fixture(params=containers)
def proc(request, spawnu, TIMEOUT... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/output_readers/test_rerun.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.032369 | # -*- encoding: utf-8 -*-
import pytest
import sys
from mock import Mock, patch
from psutil import AccessDenied, TimeoutExpired
from thefuck.output_readers import rerun
class TestRerun(object):
def setup_method(self, test_method):
self.patcher = patch('thefuck.output_readers.rerun.Process')
proc... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/functional/test_zsh.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.033940 | import pytest
from tests.functional.plots import with_confirmation, without_confirmation, \
refuse_with_confirmation, history_changed, history_not_changed, \
select_command_with_arrows, how_to_configure
python_3 = (u'thefuck/python3', u'', u'sh')
python_2 = (u'thefuck/python2', u'', u'sh')
init_zshrc = u'''... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/functional/test_bash.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.035081 | import pytest
from tests.functional.plots import with_confirmation, without_confirmation, \
refuse_with_confirmation, history_changed, history_not_changed, \
select_command_with_arrows, how_to_configure
python_3 = (u'thefuck/python3',
u'',
u'sh')
python_2 = (u'thefuck/python2',
... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_adb_unknown_command.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.082693 | import pytest
from thefuck.rules.adb_unknown_command import match, get_new_command
from thefuck.types import Command
@pytest.fixture
def output():
return '''Android Debug Bridge version 1.0.31
-d - directs command to the only connected USB device
retur... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | fastentrypoints.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.100534 | # Copyright (c) 2016, Aaron Christianson
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
# met:
#
# 1. Redistributions of source code must retain the above copyright
# notice, this list of condition... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_apt_get.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.580579 | import pytest
from thefuck.rules.apt_get import match, get_new_command
from thefuck.types import Command
@pytest.mark.parametrize('command, packages', [
(Command('vim', 'vim: command not found'),
[('vim', 'main'), ('vim-tiny', 'main')]),
(Command('sudo vim', 'vim: command not found'),
[('vim', 'main... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_ag_literal.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.585388 | import pytest
from thefuck.rules.ag_literal import get_new_command, match
from thefuck.types import Command
@pytest.fixture
def output():
return ('ERR: Bad regex! pcre_compile() failed at position 1: missing )\n'
'If you meant to search for a literal string, run ag with -Q\n')
@pytest.mark.parametri... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_apt_get_search.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.587986 | import pytest
from thefuck.rules.apt_get_search import get_new_command, match
from thefuck.types import Command
def test_match():
assert match(Command('apt-get search foo', ''))
@pytest.mark.parametrize('command', [
Command('apt-cache search foo', ''),
Command('aptitude search foo', ''),
Command('ap... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_apt_list_upgradable.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.633989 | # -*- coding: utf-8 -*-
import pytest
from thefuck.rules.apt_list_upgradable import get_new_command, match
from thefuck.types import Command
full_english_output = '''
Hit:1 http://us.archive.ubuntu.com/ubuntu zesty InRelease
Hit:2 http://us.archive.ubuntu.com/ubuntu zesty-updates InRelease
Get:3 http://us.archive.ubu... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_apt_upgrade.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.635011 | import pytest
from thefuck.rules.apt_upgrade import get_new_command, match
from thefuck.types import Command
match_output = '''
Listing... Done
heroku/stable 6.15.2-1 amd64 [upgradable from: 6.14.43-1]
resolvconf/zesty-updates,zesty-updates 1.79ubuntu4.1 all [upgradable from: 1.79ubuntu4]
squashfs-tools/zesty-updates ... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_aws_cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.644544 | import pytest
from thefuck.rules.aws_cli import match, get_new_command
from thefuck.types import Command
no_suggestions = '''\
usage: aws [options] <command> <subcommand> [<subcommand> ...] [parameters]
To see help text, you can run:
aws help
aws <command> help
aws <command> <subcommand> help
aws: error: argu... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_az_cli.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.647521 | import pytest
from thefuck.rules.az_cli import match, get_new_command
from thefuck.types import Command
no_suggestions = '''\
az provider: error: the following arguments are required: _subcommand
usage: az provider [-h] {list,show,register,unregister,operation} ...
'''
misspelled_command = '''\
az: 'providers' is ... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_apt_invalid_operation.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.648677 | from io import BytesIO
import pytest
from thefuck.types import Command
from thefuck.rules.apt_invalid_operation import match, get_new_command, \
_get_operations
invalid_operation = 'E: Invalid operation {}'.format
apt_help = b'''apt 1.0.10.2ubuntu1 for amd64 compiled on Oct 5 2015 15:55:05
Usage: apt [options] co... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_cask_dependency.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.692906 | import pytest
from thefuck.rules.brew_cask_dependency import match, get_new_command
from thefuck.types import Command
output = '''sshfs: OsxfuseRequirement unsatisfied!
You can install with Homebrew-Cask:
brew cask install osxfuse
You can download from:
https://osxfuse.github.io/
Error: An unsatisfied requireme... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_install.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:04.739315 | import pytest
from thefuck.rules.brew_install import match, get_new_command, _get_suggestions
from thefuck.types import Command
@pytest.fixture
def brew_no_available_formula_one():
return '''Warning: No available formula with the name "giss". Did you mean gist?'''
@pytest.fixture
def brew_no_available_formula_t... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_link.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.135067 | import pytest
from thefuck.types import Command
from thefuck.rules.brew_link import get_new_command, match
@pytest.fixture
def output():
return ("Error: Could not symlink bin/gcp\n"
"Target /usr/local/bin/gcp\n"
"already exists. You may want to remove it:\n"
" rm '/usr/local/b... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_uninstall.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.140310 | import pytest
from thefuck.types import Command
from thefuck.rules.brew_uninstall import get_new_command, match
@pytest.fixture
def output():
return ("Uninstalling /usr/local/Cellar/tbb/4.4-20160916... (118 files, 1.9M)\n"
"tbb 4.4-20160526, 4.4-20160722 are still installed.\n"
"Remove all... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_reinstall.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.141253 | import pytest
from thefuck.types import Command
from thefuck.rules.brew_reinstall import get_new_command, match
output = ("Warning: thefuck 9.9 is already installed and up-to-date\nTo "
"reinstall 9.9, run `brew reinstall thefuck`")
def test_match():
command = Command('brew install thefuck', output)
... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_update_formula.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.194432 | import pytest
from thefuck.types import Command
from thefuck.rules.brew_update_formula import get_new_command, match
output = ("Error: This command updates brew itself, and does not take formula"
" names.\nUse `brew upgrade thefuck`.")
def test_match():
command = Command('brew update thefuck', output)... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_brew_unknown_command.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.195001 | import pytest
from thefuck.rules.brew_unknown_command import match, get_new_command
from thefuck.rules.brew_unknown_command import _brew_commands
from thefuck.types import Command
@pytest.fixture
def brew_unknown_cmd():
return '''Error: Unknown command: inst'''
@pytest.fixture
def brew_unknown_cmd2():
retur... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cat_dir.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.210366 | import pytest
from thefuck.rules.cat_dir import match, get_new_command
from thefuck.types import Command
@pytest.fixture
def isdir(mocker):
return mocker.patch('thefuck.rules.cat_dir'
'.os.path.isdir')
@pytest.mark.parametrize('command', [
Command('cat foo', 'cat: foo: Is a directory... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cargo_no_command.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.231071 | import pytest
from thefuck.rules.cargo_no_command import match, get_new_command
from thefuck.types import Command
no_such_subcommand_old = """No such subcommand
Did you mean `build`?
"""
no_such_subcommand = """error: no such subcommand
\tDid you mean `build`?
"""
@pytest.mark.parametrize('command', [
... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cd_correction.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.246730 | import pytest
from thefuck.rules.cd_correction import match
from thefuck.types import Command
@pytest.mark.parametrize('command', [
Command('cd foo', 'cd: foo: No such file or directory'),
Command('cd foo/bar/baz',
'cd: foo: No such file or directory'),
Command('cd foo/bar/baz', 'cd: can\'t cd... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cd_cs.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.293335 | from thefuck.rules.cd_cs import match, get_new_command
from thefuck.types import Command
def test_match():
assert match(Command('cs', 'cs: command not found'))
assert match(Command('cs /etc/', 'cs: command not found'))
def test_get_new_command():
assert get_new_command(Command('cs /etc/', 'cs: command n... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cd_mkdir.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.294675 | import pytest
from thefuck.rules.cd_mkdir import match, get_new_command
from thefuck.types import Command
@pytest.mark.parametrize('command', [
Command('cd foo', 'cd: foo: No such file or directory'),
Command('cd foo/bar/baz',
'cd: foo: No such file or directory'),
Command('cd foo/bar/baz', 'c... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cd_parent.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.688541 | from thefuck.rules.cd_parent import match, get_new_command
from thefuck.types import Command
def test_match():
assert match(Command('cd..', 'cd..: command not found'))
assert not match(Command('', ''))
def test_get_new_command():
assert get_new_command(Command('cd..', '')) == 'cd ..'
|
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_choco_install.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.689916 | import pytest
from thefuck.rules.choco_install import match, get_new_command
from thefuck.types import Command
package_not_found_error = (
'Chocolatey v0.10.15\n'
'Installing the following packages:\n'
'logstitcher\n'
'By installing you accept licenses for the packages.\n'
'logstitcher not install... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_chmod_x.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.733184 | import pytest
from thefuck.types import Command
from thefuck.rules.chmod_x import match, get_new_command
@pytest.fixture
def file_exists(mocker):
return mocker.patch('os.path.exists', return_value=True)
@pytest.fixture
def file_access(mocker):
return mocker.patch('os.access', return_value=False)
@pytest.m... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_composer_not_command.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.740677 | import pytest
from thefuck.rules.composer_not_command import match, get_new_command
from thefuck.types import Command
@pytest.fixture
def composer_not_command():
# that weird spacing is part of the actual command output
return (
'\n'
'\n'
' \n'
... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_conda_mistype.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.787156 | import pytest
from thefuck.rules.conda_mistype import match, get_new_command
from thefuck.types import Command
@pytest.fixture
def mistype_response():
return """
CommandNotFoundError: No command 'conda lst'.
Did you mean 'conda list'?
"""
def test_match(mistype_response):
assert match(Command('conda ... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cp_create_destination.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.801181 | import pytest
from thefuck.rules.cp_create_destination import match, get_new_command
from thefuck.types import Command
@pytest.mark.parametrize(
"script, output",
[("cp", "cp: directory foo does not exist\n"), ("mv", "No such file or directory")],
)
def test_match(script, output):
assert match(Command(scr... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_dirty_unzip.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.826837 | # -*- coding: utf-8 -*-
import os
import pytest
import zipfile
from thefuck.rules.dirty_unzip import match, get_new_command, side_effect
from thefuck.types import Command
from unicodedata import normalize
@pytest.fixture
def zip_error(tmpdir):
def zip_error_inner(filename):
path = os.path.join(str(tmpdir... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_cp_omitting_directory.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.837981 | import pytest
from thefuck.rules.cp_omitting_directory import match, get_new_command
from thefuck.types import Command
@pytest.mark.parametrize('script, output', [
('cp dir', 'cp: dor: is a directory'),
('cp dir', "cp: omitting directory 'dir'")])
def test_match(script, output):
assert match(Command(scrip... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_dirty_untar.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.838730 | import os
import pytest
import tarfile
from thefuck.rules.dirty_untar import match, get_new_command, side_effect, \
tar_extensions # noqa: E126
from thefuck.types import Command
@pytest.fixture
def tar_error(tmpdir):
def fixture(filename):
path = os.path.join(str(tmp... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_django_south_ghost.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:05.886649 | import pytest
from thefuck.rules.django_south_ghost import match, get_new_command
from thefuck.types import Command
@pytest.fixture
def output():
return '''Traceback (most recent call last):
File "/home/nvbn/work/.../bin/python", line 42, in <module>
exec(compile(__file__f.read(), __file__, "exec"))
File ... |
nvbn/thefuck | https://github.com/nvbn/thefuck | null | null | null | null | 96,792 | null | null | mit | null | null | null | null | null | null | null | tests/rules/test_django_south_merge.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:06.427639 | import pytest
from thefuck.rules.django_south_merge import match, get_new_command
from thefuck.types import Command
@pytest.fixture
def output():
return '''Running migrations for app:
! Migration app:0003_auto... should not have been applied before app:0002_auto__add_field_query_due_date_ but was.
Traceback (mos... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.881162 | """Base classes for AI-assistant integrations.
Provides:
- ``IntegrationOption`` — declares a CLI option an integration accepts.
- ``IntegrationBase`` — abstract base every integration must implement.
- ``MarkdownIntegration`` — concrete base for standard Markdown-format
integrations (the common case — subclass, set... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/agy/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.890560 | """Antigravity (agy) integration — skills-based agent.
Antigravity uses ``.agents/skills/speckit-<name>/SKILL.md`` layout (enforced since v1.20.5).
"""
from __future__ import annotations
from pathlib import Path
from typing import TYPE_CHECKING, Any
from ..base import SkillsIntegration
if TYPE_CHECKING:
from .... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/auggie/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.909252 | """Auggie CLI integration."""
from ..base import MarkdownIntegration
class AuggieIntegration(MarkdownIntegration):
key = "auggie"
config = {
"name": "Auggie CLI",
"folder": ".augment/",
"commands_subdir": "commands",
"install_url": "https://docs.augmentcode.com/cli/setup-auggi... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.911352 | """Integration registry for AI coding assistants.
Each integration is a self-contained subpackage that handles setup/teardown
for a specific AI assistant (Copilot, Claude, Gemini, etc.).
"""
from __future__ import annotations
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from .base import IntegrationBase
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/_github_http.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.912269 | """Shared GitHub-authenticated HTTP helpers.
Used by both ExtensionCatalog and PresetCatalog to attach
GITHUB_TOKEN / GH_TOKEN credentials to requests targeting
GitHub-hosted domains, while preventing token leakage to
third-party hosts on redirects.
"""
import os
import urllib.request
from urllib.parse import urlpars... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/amp/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.913903 | """Amp CLI integration."""
from ..base import MarkdownIntegration
class AmpIntegration(MarkdownIntegration):
key = "amp"
config = {
"name": "Amp",
"folder": ".agents/",
"commands_subdir": "commands",
"install_url": "https://ampcode.com/manual#install",
"requires_cli": ... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integration_runtime.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.921741 | """Runtime helpers for integration commands."""
from __future__ import annotations
from collections.abc import Callable
from typing import Any
from .integration_state import integration_setting, integration_settings
ParseOptions = Callable[[Any, str], dict[str, Any] | None]
def resolve_integration_options(
i... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/bob/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.922267 | """IBM Bob integration."""
from ..base import MarkdownIntegration
class BobIntegration(MarkdownIntegration):
key = "bob"
config = {
"name": "IBM Bob",
"folder": ".bob/",
"commands_subdir": "commands",
"install_url": None,
"requires_cli": False,
}
registrar_conf... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integration_state.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.931495 | """State helpers for installed AI agent integrations."""
from __future__ import annotations
import json
from pathlib import Path
from typing import Any
INTEGRATION_JSON = ".specify/integration.json"
INTEGRATION_STATE_SCHEMA = 1
def clean_integration_key(key: Any) -> str | None:
"""Return a stripped integratio... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/agents.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:08.988362 | """
Agent Command Registrar for Spec Kit
Shared infrastructure for registering commands with AI agents.
Used by both the extension system and the preset system to write
command files into agent-specific directories in the correct format.
"""
import os
from pathlib import Path
from typing import Dict, List, Any, Optio... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/catalog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.510472 | """Integration catalog — discovery, validation, and upgrade support.
Provides:
- ``IntegrationCatalogEntry`` — single catalog source metadata.
- ``IntegrationCatalog`` — fetches, caches, and searches integration
catalogs (built-in + community).
- ``IntegrationDescriptor`` — loads and validates ``integration.y... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/codex/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.530903 | """Codex CLI integration — skills-based agent.
Codex uses the ``.agents/skills/speckit-<name>/SKILL.md`` layout.
Commands are deprecated; ``--skills`` defaults to ``True``.
"""
from __future__ import annotations
from ..base import IntegrationOption, SkillsIntegration
class CodexIntegration(SkillsIntegration):
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/codebuddy/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.531874 | """CodeBuddy CLI integration."""
from ..base import MarkdownIntegration
class CodebuddyIntegration(MarkdownIntegration):
key = "codebuddy"
config = {
"name": "CodeBuddy",
"folder": ".codebuddy/",
"commands_subdir": "commands",
"install_url": "https://www.codebuddy.ai/cli",
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/devin/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.540752 | """Devin for Terminal integration — skills-based agent.
Devin uses the ``.devin/skills/speckit-<name>/SKILL.md`` layout and
reads project context from ``AGENTS.md`` at the repo root. The CLI
binary is ``devin`` and skills are invoked via ``/<name>`` inside an
interactive ``devin`` session.
See: https://cli.devin.ai/d... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/claude/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.545548 | """Claude Code integration."""
from __future__ import annotations
from pathlib import Path
from typing import Any
import re
import yaml
from ..base import SkillsIntegration
from ..manifest import IntegrationManifest
# Note injected into hook sections so Claude maps dot-notation command
# names (from extensions.ym... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/gemini/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.572859 | """Gemini CLI integration."""
from ..base import TomlIntegration
class GeminiIntegration(TomlIntegration):
key = "gemini"
config = {
"name": "Gemini CLI",
"folder": ".gemini/",
"commands_subdir": "commands",
"install_url": "https://github.com/google-gemini/gemini-cli",
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/copilot/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.574329 | """Copilot integration — GitHub Copilot in VS Code.
Copilot has several unique behaviors compared to standard markdown agents:
- Commands use ``.agent.md`` extension (not ``.md``)
- Each command gets a companion ``.prompt.md`` file in ``.github/prompts/``
- Installs ``.vscode/settings.json`` with prompt file recommend... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/forge/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.580480 | """Forge integration — forgecode.dev AI coding agent.
Forge has several unique behaviors compared to standard markdown agents:
- Uses `{{parameters}}` instead of `$ARGUMENTS` for argument passing
- Strips `handoffs` frontmatter key (Claude Code feature that causes Forge to hang)
- Injects `name` field into frontmatter... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/cursor_agent/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.587827 | """Cursor IDE integration.
Cursor Agent uses the ``.cursor/skills/speckit-<name>/SKILL.md`` layout.
Commands are deprecated; ``--skills`` defaults to ``True``.
"""
from __future__ import annotations
from ..base import IntegrationOption, SkillsIntegration
class CursorAgentIntegration(SkillsIntegration):
key = "... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/generic/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:09.588510 | """Generic integration — bring your own agent.
Requires ``--commands-dir`` to specify the output directory for command
files. No longer special-cased in the core CLI — just another
integration with its own required option.
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
from ... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/iflow/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.145118 | """iFlow CLI integration."""
from ..base import MarkdownIntegration
class IflowIntegration(MarkdownIntegration):
key = "iflow"
config = {
"name": "iFlow CLI",
"folder": ".iflow/",
"commands_subdir": "commands",
"install_url": "https://docs.iflow.cn/en/cli/quickstart",
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/kimi/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.149119 | """Kimi Code integration — skills-based agent (Moonshot AI).
Kimi uses the ``.kimi/skills/speckit-<name>/SKILL.md`` layout with
``/skill:speckit-<name>`` invocation syntax.
Includes legacy migration logic for projects initialised before Kimi
moved from dotted skill directories (``speckit.xxx``) to hyphenated
(``speck... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/goose/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.174506 | """Goose integration — Block's open source AI agent."""
from ..base import YamlIntegration
class GooseIntegration(YamlIntegration):
key = "goose"
config = {
"name": "Goose",
"folder": ".goose/",
"commands_subdir": "recipes",
"install_url": "https://block.github.io/goose/docs/g... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/kilocode/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.190060 | """Kilo Code integration."""
from ..base import MarkdownIntegration
class KilocodeIntegration(MarkdownIntegration):
key = "kilocode"
config = {
"name": "Kilo Code",
"folder": ".kilocode/",
"commands_subdir": "workflows",
"install_url": None,
"requires_cli": False,
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/qodercli/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.568783 | """Qoder CLI integration."""
from ..base import MarkdownIntegration
class QodercliIntegration(MarkdownIntegration):
key = "qodercli"
config = {
"name": "Qoder CLI",
"folder": ".qoder/",
"commands_subdir": "commands",
"install_url": "https://qoder.com/cli",
"requires_cl... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/pi/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.569304 | """Pi Coding Agent integration."""
from ..base import MarkdownIntegration
class PiIntegration(MarkdownIntegration):
key = "pi"
config = {
"name": "Pi Coding Agent",
"folder": ".pi/",
"commands_subdir": "prompts",
"install_url": "https://www.npmjs.com/package/@mariozechner/pi-c... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/opencode/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.571139 | """opencode integration."""
from ..base import MarkdownIntegration
class OpencodeIntegration(MarkdownIntegration):
key = "opencode"
config = {
"name": "opencode",
"folder": ".opencode/",
"commands_subdir": "command",
"install_url": "https://opencode.ai",
"requires_cli"... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/kiro_cli/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.572006 | """Kiro CLI integration."""
from ..base import MarkdownIntegration
class KiroCliIntegration(MarkdownIntegration):
key = "kiro-cli"
config = {
"name": "Kiro CLI",
"folder": ".kiro/",
"commands_subdir": "prompts",
"install_url": "https://kiro.dev/docs/cli/",
"requires_cl... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/junie/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:10.680628 | """Junie integration (JetBrains)."""
from ..base import MarkdownIntegration
class JunieIntegration(MarkdownIntegration):
key = "junie"
config = {
"name": "Junie",
"folder": ".junie/",
"commands_subdir": "commands",
"install_url": "https://junie.jetbrains.com/",
"requir... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/tabnine/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.239816 | """Tabnine CLI integration."""
from ..base import TomlIntegration
class TabnineIntegration(TomlIntegration):
key = "tabnine"
config = {
"name": "Tabnine CLI",
"folder": ".tabnine/agent/",
"commands_subdir": "commands",
"install_url": "https://docs.tabnine.com/main/getting-star... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/manifest.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.280940 | """Hash-tracked installation manifest for integrations.
Each installed integration records the files it created together with
their SHA-256 hashes. On uninstall only files whose hash still matches
the recorded value are removed — modified files are left in place and
reported to the caller.
"""
from __future__ import... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/shai/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.472363 | """SHAI CLI integration."""
from ..base import MarkdownIntegration
class ShaiIntegration(MarkdownIntegration):
key = "shai"
config = {
"name": "SHAI",
"folder": ".shai/",
"commands_subdir": "commands",
"install_url": "https://github.com/ovh/shai",
"requires_cli": True,... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/shared_infra.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.574032 | """Shared Spec Kit infrastructure installation helpers."""
from __future__ import annotations
import os
import tempfile
from pathlib import Path
from typing import Any
from .integrations.base import IntegrationBase
from .integrations.manifest import IntegrationManifest
def load_speckit_manifest(
project_path: ... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/vibe/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.695683 | """
Mistral Vibe CLI integration — skills-based agent.
Vibe uses ``.vibe/skills/speckit-<name>/SKILL.md`` layout (enforced since v2.0.0).
"""
from __future__ import annotations
from pathlib import Path
from typing import Any
from ..base import IntegrationOption, SkillsIntegration
from ..manifest import IntegrationM... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/base.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.877862 | """Base classes for workflow step types.
Provides:
- ``StepBase`` — abstract base every step type must implement.
- ``StepContext`` — execution context passed to each step.
- ``StepResult`` — return value from step execution.
"""
from __future__ import annotations
from abc import ABC, abstractmethod
from dataclasses... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/catalog.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:11.886911 | """Workflow catalog — discovery, install, and management of workflows.
Mirrors the existing extension/preset catalog pattern with:
- Multi-catalog stack (env var → project → user → built-in)
- SHA256-hashed per-URL caching with 1-hour TTL
- Workflow registry for installed workflow tracking
- Search across all configur... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/windsurf/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.064112 | """Windsurf IDE integration."""
from ..base import MarkdownIntegration
class WindsurfIntegration(MarkdownIntegration):
key = "windsurf"
config = {
"name": "Windsurf",
"folder": ".windsurf/",
"commands_subdir": "workflows",
"install_url": None,
"requires_cli": False,
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/trae/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.093877 | """Trae IDE integration. — skills-based agent.
Trae IDE uses ``.trae/skills/speckit-<name>/SKILL.md`` layout.
In the Specify CLI Trae integration, explicit command support was deprecated
since v0.5.1; ``--skills`` defaults to ``True``.
"""
from __future__ import annotations
from ..base import IntegrationOption, Skill... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/engine.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.121717 | """Workflow engine — loads, validates, and executes workflow YAML definitions.
The engine is the orchestrator that:
- Parses workflow YAML definitions
- Validates step configurations and requirements
- Executes steps sequentially, dispatching to the correct step type
- Manages state persistence for resume capability
-... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/expressions.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.175886 | """Sandboxed expression evaluator for workflow templates.
Provides a safe Jinja2 subset for evaluating expressions in workflow YAML.
No file I/O, no imports, no arbitrary code execution.
"""
from __future__ import annotations
import re
from typing import Any
# -- Custom filters ------------------------------------... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.365461 | """Workflow engine for multi-step, resumable automation workflows.
Provides:
- ``StepBase`` — abstract base every step type must implement.
- ``StepContext`` — execution context passed to each step.
- ``StepResult`` — return value from step execution.
- ``STEP_REGISTRY`` — maps ``type_key`` to ``StepBase`` subclass in... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/steps/command/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.474442 | """Command step — dispatches a Spec Kit command to an integration CLI."""
from __future__ import annotations
import shutil
from pathlib import Path
from typing import Any
from specify_cli.workflows.base import StepBase, StepContext, StepResult, StepStatus
from specify_cli.workflows.expressions import evaluate_expres... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/steps/do_while/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.495195 | """Do-While loop step — execute at least once, then repeat while condition is truthy."""
from __future__ import annotations
from typing import Any
from specify_cli.workflows.base import StepBase, StepContext, StepResult, StepStatus
class DoWhileStep(StepBase):
"""Execute body at least once, then check conditio... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/steps/fan_in/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.658687 | """Fan-in step — join point for parallel steps."""
from __future__ import annotations
from typing import Any
from specify_cli.workflows.base import StepBase, StepContext, StepResult, StepStatus
from specify_cli.workflows.expressions import evaluate_expression
class FanInStep(StepBase):
"""Join point that aggre... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/steps/fan_out/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.716722 | """Fan-out step — dispatch a step template over a collection."""
from __future__ import annotations
from typing import Any
from specify_cli.workflows.base import StepBase, StepContext, StepResult, StepStatus
from specify_cli.workflows.expressions import evaluate_expression
class FanOutStep(StepBase):
"""Dispat... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/steps/gate/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.717593 | """Gate step — human review gate."""
from __future__ import annotations
import sys
from typing import Any
from specify_cli.workflows.base import StepBase, StepContext, StepResult, StepStatus
from specify_cli.workflows.expressions import evaluate_expression
class GateStep(StepBase):
"""Interactive review gate.
... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/workflows/steps/if_then/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:12.767197 | """If/Then/Else step — conditional branching."""
from __future__ import annotations
from typing import Any
from specify_cli.workflows.base import StepBase, StepContext, StepResult, StepStatus
from specify_cli.workflows.expressions import evaluate_condition
class IfThenStep(StepBase):
"""Branch based on a boole... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/qwen/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:16.138663 | """Qwen Code integration."""
from ..base import MarkdownIntegration
class QwenIntegration(MarkdownIntegration):
key = "qwen"
config = {
"name": "Qwen Code",
"folder": ".qwen/",
"commands_subdir": "commands",
"install_url": "https://github.com/QwenLM/qwen-code",
"requir... |
github/spec-kit | https://github.com/github/spec-kit | null | null | null | null | 92,323 | null | null | mit | null | null | null | null | null | null | null | src/specify_cli/integrations/roo/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:16.388728 | """Roo Code integration."""
from ..base import MarkdownIntegration
class RooIntegration(MarkdownIntegration):
key = "roo"
config = {
"name": "Roo Code",
"folder": ".roo/",
"commands_subdir": "commands",
"install_url": None,
"requires_cli": False,
}
registrar_co... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.948368 | """CDP-Use High-Level Library
A Playwright-like library built on top of CDP (Chrome DevTools Protocol).
"""
from .element import Element
from .mouse import Mouse
from .page import Page
from .utils import Utils
__all__ = ['Page', 'Element', 'Mouse', 'Utils']
|
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/__init__.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.949517 | import os
from typing import TYPE_CHECKING
from browser_use.logging_config import setup_logging
# Only set up logging if not in MCP mode or if explicitly requested
if os.environ.get('BROWSER_USE_SETUP_LOGGING', 'true').lower() != 'false':
from browser_use.config import CONFIG
# Get log file paths from config/envir... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/playground/flights.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.951695 | import asyncio
from browser_use import Agent, Browser, ChatOpenAI
llm = ChatOpenAI('gpt-4.1-mini')
async def main():
"""
Main function demonstrating mixed automation with Browser-Use and Playwright.
"""
print('🚀 Mixed Automation with Browser-Use and Actor API')
browser = Browser(keep_alive=True)
await brows... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/mouse.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.954126 | """Mouse class for mouse operations."""
from typing import TYPE_CHECKING
if TYPE_CHECKING:
from cdp_use.cdp.input.commands import DispatchMouseEventParameters, SynthesizeScrollGestureParameters
from cdp_use.cdp.input.types import MouseButton
from browser_use.browser.session import BrowserSession
class Mouse:
"... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/playground/playground.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.954611 | #!/usr/bin/env python3
"""
Playground script to test the browser-use actor API.
This script demonstrates:
- Starting a browser session
- Using the actor API to navigate and interact
- Finding elements, clicking, scrolling, JavaScript evaluation
- Testing most of the available methods
"""
import asyncio
import json
im... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/playground/mixed_automation.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.955729 | import asyncio
from pydantic import BaseModel
from browser_use import Browser, ChatOpenAI
TASK = """
On the current wikipedia page, find the latest huge edit and tell me what is was about.
"""
class LatestEditFinder(BaseModel):
"""Find the latest huge edit on the current wikipedia page."""
latest_edit: str
edi... |
browser-use/browser-use | https://github.com/browser-use/browser-use | null | null | null | null | 91,904 | null | null | mit | null | null | null | null | null | null | null | browser_use/actor/utils.py | null | null | null | null | null | null | Python | 2026-05-04T02:16:19.957588 | """Utility functions for actor operations."""
class Utils:
"""Utility functions for actor operations."""
@staticmethod
def get_key_info(key: str) -> tuple[str, int | None]:
"""Get the code and windowsVirtualKeyCode for a key.
Args:
key: Key name (e.g., 'Enter', 'ArrowUp', 'a', 'A')
Returns:
Tuple of... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.