@trebired/git-host 2.0.0 → 2.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/README.md +184 -1007
- package/bin/.gitkeep +1 -0
- package/bin/git-host-actions-runner-darwin-arm64 +0 -0
- package/bin/git-host-actions-runner-darwin-x64 +0 -0
- package/bin/git-host-actions-runner-linux-arm64-gnu +0 -0
- package/bin/git-host-actions-runner-linux-x64-gnu +0 -0
- package/dist/{internal/api → api}/forge/actions.d.ts +2 -2
- package/dist/api/forge/actions.d.ts.map +1 -0
- package/dist/{internal/api → api}/forge/actions.js +11 -56
- package/dist/{internal/api → api}/forge/actions.js.map +1 -1
- package/dist/{internal/api → api}/forge/archives.d.ts +1 -1
- package/dist/api/forge/archives.d.ts.map +1 -0
- package/dist/{internal/api → api}/forge/archives.js +3 -3
- package/dist/api/forge/archives.js.map +1 -0
- package/dist/{internal/api → api}/forge/handler.d.ts +1 -1
- package/dist/api/forge/handler.d.ts.map +1 -0
- package/dist/{internal/api → api}/forge/handler.js +1 -1
- package/dist/api/forge/handler.js.map +1 -0
- package/dist/{internal/api → api}/forge/route.d.ts +1 -1
- package/dist/api/forge/route.d.ts.map +1 -0
- package/dist/{internal/api → api}/forge/route.js +2 -2
- package/dist/api/forge/route.js.map +1 -0
- package/dist/{internal/api → api}/forge/runtime.d.ts +1 -1
- package/dist/api/forge/runtime.d.ts.map +1 -0
- package/dist/{internal/api → api}/forge/runtime.js +5 -5
- package/dist/api/forge/runtime.js.map +1 -0
- package/dist/{internal/api → api}/forge/socket.d.ts +1 -1
- package/dist/api/forge/socket.d.ts.map +1 -0
- package/dist/{internal/api → api}/forge/socket.js +3 -3
- package/dist/api/forge/socket.js.map +1 -0
- package/dist/api/handler/action.d.ts +5 -0
- package/dist/api/handler/action.d.ts.map +1 -0
- package/dist/{internal/api → api}/handler/action.js +2 -2
- package/dist/api/handler/action.js.map +1 -0
- package/dist/{internal/api → api}/handler/archive.d.ts +1 -1
- package/dist/api/handler/archive.d.ts.map +1 -0
- package/dist/api/handler/archive.js.map +1 -0
- package/dist/api/handler/response.d.ts.map +1 -0
- package/dist/{internal/api → api}/handler/response.js +2 -2
- package/dist/api/handler/response.js.map +1 -0
- package/dist/api/handler/route.d.ts.map +1 -0
- package/dist/{internal/api → api}/handler/route.js +1 -1
- package/dist/api/handler/route.js.map +1 -0
- package/dist/{internal/api → api}/handler/runtime.d.ts +1 -1
- package/dist/api/handler/runtime.d.ts.map +1 -0
- package/dist/{internal/api → api}/handler/runtime.js +2 -2
- package/dist/api/handler/runtime.js.map +1 -0
- package/dist/{internal/api → api}/handler.d.ts +1 -1
- package/dist/api/handler.d.ts.map +1 -0
- package/dist/api/handler.js.map +1 -0
- package/dist/api/routing.d.ts.map +1 -0
- package/dist/{internal/api → api}/routing.js +1 -1
- package/dist/api/routing.js.map +1 -0
- package/dist/api/socket/events.d.ts.map +1 -0
- package/dist/api/socket/events.js.map +1 -0
- package/dist/{internal/api → api}/socket/server.d.ts +1 -1
- package/dist/api/socket/server.d.ts.map +1 -0
- package/dist/{internal/api → api}/socket/server.js +3 -3
- package/dist/api/socket/server.js.map +1 -0
- package/dist/backend/utils/normalize.d.ts.map +1 -0
- package/dist/backend/utils/normalize.js.map +1 -0
- package/dist/backend/utils/object.d.ts.map +1 -0
- package/dist/backend/utils/object.js.map +1 -0
- package/dist/backend/utils/time.d.ts.map +1 -0
- package/dist/backend/utils/time.js.map +1 -0
- package/dist/constants.d.ts.map +1 -0
- package/dist/constants.js.map +1 -0
- package/dist/core/actions_runner.d.ts +58 -0
- package/dist/core/actions_runner.d.ts.map +1 -0
- package/dist/core/actions_runner.js +414 -0
- package/dist/core/actions_runner.js.map +1 -0
- package/dist/core/actions_workflows.d.ts +22 -0
- package/dist/core/actions_workflows.d.ts.map +1 -0
- package/dist/core/actions_workflows.js +218 -0
- package/dist/core/actions_workflows.js.map +1 -0
- package/dist/{internal/core → core}/activity.d.ts +1 -1
- package/dist/core/activity.d.ts.map +1 -0
- package/dist/{internal/core → core}/activity.js +1 -1
- package/dist/core/activity.js.map +1 -0
- package/dist/{internal/core → core}/archive.d.ts +1 -1
- package/dist/core/archive.d.ts.map +1 -0
- package/dist/{internal/core → core}/archive.js +2 -2
- package/dist/core/archive.js.map +1 -0
- package/dist/{internal/core → core}/archive_cache_filesystem.d.ts +1 -1
- package/dist/core/archive_cache_filesystem.d.ts.map +1 -0
- package/dist/core/archive_cache_filesystem.js.map +1 -0
- package/dist/core/create/git/forge.d.ts +4 -0
- package/dist/core/create/git/forge.d.ts.map +1 -0
- package/dist/{internal/core → core}/create/git/forge.js +5 -29
- package/dist/core/create/git/forge.js.map +1 -0
- package/dist/core/create/git/host.d.ts +4 -0
- package/dist/core/create/git/host.d.ts.map +1 -0
- package/dist/{internal/core → core}/create/git/host.js +15 -15
- package/dist/core/create/git/host.js.map +1 -0
- package/dist/{internal/core → core}/create_git_host/branch_methods.d.ts +1 -1
- package/dist/core/create_git_host/branch_methods.d.ts.map +1 -0
- package/dist/{internal/core → core}/create_git_host/branch_methods.js +5 -5
- package/dist/core/create_git_host/branch_methods.js.map +1 -0
- package/dist/{internal/core → core}/create_git_host/content_methods.d.ts +1 -1
- package/dist/core/create_git_host/content_methods.d.ts.map +1 -0
- package/dist/{internal/core → core}/create_git_host/content_methods.js +2 -2
- package/dist/core/create_git_host/content_methods.js.map +1 -0
- package/dist/{internal/core → core}/create_git_host/remote_methods.d.ts +1 -1
- package/dist/core/create_git_host/remote_methods.d.ts.map +1 -0
- package/dist/{internal/core → core}/create_git_host/remote_methods.js +2 -2
- package/dist/core/create_git_host/remote_methods.js.map +1 -0
- package/dist/{internal/core → core}/create_git_host/shared.d.ts +4 -4
- package/dist/core/create_git_host/shared.d.ts.map +1 -0
- package/dist/{internal/core → core}/create_git_host/shared.js +3 -3
- package/dist/core/create_git_host/shared.js.map +1 -0
- package/dist/{internal/core → core}/create_git_host/working_tree_methods.d.ts +1 -1
- package/dist/core/create_git_host/working_tree_methods.d.ts.map +1 -0
- package/dist/{internal/core → core}/create_git_host/working_tree_methods.js +2 -2
- package/dist/core/create_git_host/working_tree_methods.js.map +1 -0
- package/dist/{internal/core → core}/forge_actions.d.ts +1 -12
- package/dist/core/forge_actions.d.ts.map +1 -0
- package/dist/{internal/core → core}/forge_actions.js +215 -320
- package/dist/core/forge_actions.js.map +1 -0
- package/dist/{internal/core → core}/git_forge/storage_memory.d.ts +1 -1
- package/dist/core/git_forge/storage_memory.d.ts.map +1 -0
- package/dist/{internal/core → core}/git_forge/storage_memory.js +1 -47
- package/dist/core/git_forge/storage_memory.js.map +1 -0
- package/dist/{internal/core → core}/inspect/helpers.d.ts +1 -1
- package/dist/core/inspect/helpers.d.ts.map +1 -0
- package/dist/{internal/core → core}/inspect/helpers.js +3 -3
- package/dist/core/inspect/helpers.js.map +1 -0
- package/dist/{internal/core → core}/inspect/icon_theme.d.ts +1 -1
- package/dist/core/inspect/icon_theme.d.ts.map +1 -0
- package/dist/{internal/core → core}/inspect/icon_theme.js +1 -1
- package/dist/core/inspect/icon_theme.js.map +1 -0
- package/dist/{internal/core → core}/inspect/linguist_progress.d.ts +1 -1
- package/dist/core/inspect/linguist_progress.d.ts.map +1 -0
- package/dist/{internal/core → core}/inspect/linguist_progress.js +1 -1
- package/dist/core/inspect/linguist_progress.js.map +1 -0
- package/dist/{internal/core → core}/inspect.d.ts +1 -1
- package/dist/core/inspect.d.ts.map +1 -0
- package/dist/{internal/core → core}/inspect.js +3 -3
- package/dist/core/inspect.js.map +1 -0
- package/dist/{internal/core → core}/inspection.d.ts +1 -1
- package/dist/core/inspection.d.ts.map +1 -0
- package/dist/{internal/core → core}/inspection.js +3 -3
- package/dist/core/inspection.js.map +1 -0
- package/dist/core/locks.d.ts.map +1 -0
- package/dist/core/locks.js.map +1 -0
- package/dist/{internal/core → core}/operation_state.d.ts +1 -1
- package/dist/core/operation_state.d.ts.map +1 -0
- package/dist/core/operation_state.js.map +1 -0
- package/dist/{internal/core → core}/remote.d.ts +1 -1
- package/dist/core/remote.d.ts.map +1 -0
- package/dist/{internal/core → core}/remote.js +2 -2
- package/dist/core/remote.js.map +1 -0
- package/dist/{internal/core → core}/repository/parsers.d.ts +1 -1
- package/dist/core/repository/parsers.d.ts.map +1 -0
- package/dist/{internal/core → core}/repository/parsers.js +1 -1
- package/dist/core/repository/parsers.js.map +1 -0
- package/dist/{internal/core → core}/repository.d.ts +1 -1
- package/dist/core/repository.d.ts.map +1 -0
- package/dist/{internal/core → core}/repository.js +3 -3
- package/dist/core/repository.js.map +1 -0
- package/dist/{internal/core → core}/run_git/env.d.ts +1 -1
- package/dist/core/run_git/env.d.ts.map +1 -0
- package/dist/{internal/core → core}/run_git/env.js +2 -2
- package/dist/core/run_git/env.js.map +1 -0
- package/dist/{internal/core → core}/run_git/process.d.ts +1 -1
- package/dist/core/run_git/process.d.ts.map +1 -0
- package/dist/{internal/core → core}/run_git/process.js +1 -1
- package/dist/core/run_git/process.js.map +1 -0
- package/dist/{internal/core → core}/run_git/repository_setup.d.ts +1 -1
- package/dist/core/run_git/repository_setup.d.ts.map +1 -0
- package/dist/{internal/core → core}/run_git/repository_setup.js +2 -2
- package/dist/core/run_git/repository_setup.js.map +1 -0
- package/dist/{internal/core → core}/run_git.d.ts +1 -1
- package/dist/core/run_git.d.ts.map +1 -0
- package/dist/{internal/core → core}/run_git.js +1 -1
- package/dist/core/run_git.js.map +1 -0
- package/dist/{internal/core → core}/working_tree/mutate.d.ts +1 -1
- package/dist/core/working_tree/mutate.d.ts.map +1 -0
- package/dist/{internal/core → core}/working_tree/mutate.js +5 -5
- package/dist/core/working_tree/mutate.js.map +1 -0
- package/dist/{internal/core → core}/working_tree/read.d.ts +1 -1
- package/dist/core/working_tree/read.d.ts.map +1 -0
- package/dist/{internal/core → core}/working_tree/read.js +4 -4
- package/dist/core/working_tree/read.js.map +1 -0
- package/dist/{internal/core → core}/working_tree/shared.d.ts +1 -1
- package/dist/core/working_tree/shared.d.ts.map +1 -0
- package/dist/{internal/core → core}/working_tree/shared.js +4 -4
- package/dist/core/working_tree/shared.js.map +1 -0
- package/dist/core/working_tree.d.ts.map +1 -0
- package/dist/core/working_tree.js.map +1 -0
- package/dist/errors.d.ts.map +1 -0
- package/dist/errors.js.map +1 -0
- package/dist/frontend/js/utils/text.d.ts.map +1 -0
- package/dist/frontend/js/utils/text.js.map +1 -0
- package/dist/{internal/http → http}/handler/helpers.d.ts +1 -1
- package/dist/http/handler/helpers.d.ts.map +1 -0
- package/dist/{internal/http → http}/handler/helpers.js +2 -2
- package/dist/http/handler/helpers.js.map +1 -0
- package/dist/{internal/http → http}/handler.d.ts +1 -1
- package/dist/http/handler.d.ts.map +1 -0
- package/dist/{internal/http → http}/handler.js +2 -2
- package/dist/http/handler.js.map +1 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js.map +1 -0
- package/dist/logging.d.ts.map +1 -0
- package/dist/logging.js.map +1 -0
- package/dist/ssh/keys.d.ts.map +1 -0
- package/dist/{internal/ssh → ssh}/keys.js +2 -2
- package/dist/ssh/keys.js.map +1 -0
- package/dist/{internal/ssh → ssh}/server/audit.d.ts +2 -2
- package/dist/ssh/server/audit.d.ts.map +1 -0
- package/dist/ssh/server/audit.js.map +1 -0
- package/dist/{internal/ssh → ssh}/server/shared.d.ts +2 -2
- package/dist/ssh/server/shared.d.ts.map +1 -0
- package/dist/{internal/ssh → ssh}/server/shared.js +2 -2
- package/dist/ssh/server/shared.js.map +1 -0
- package/dist/{internal/ssh → ssh}/server.d.ts +1 -1
- package/dist/ssh/server.d.ts.map +1 -0
- package/dist/{internal/ssh → ssh}/server.js +2 -2
- package/dist/ssh/server.js.map +1 -0
- package/dist/types/common.d.ts.map +1 -0
- package/dist/{internal/types → types}/common.js.map +1 -1
- package/dist/{internal/types → types}/forge.d.ts +5 -10
- package/dist/types/forge.d.ts.map +1 -0
- package/dist/{internal/types → types}/forge.js.map +1 -1
- package/dist/types/host/archive.d.ts.map +1 -0
- package/dist/types/host/archive.js.map +1 -0
- package/dist/types/host/options.d.ts.map +1 -0
- package/dist/types/host/options.js.map +1 -0
- package/dist/types/host/service.d.ts.map +1 -0
- package/dist/types/host/service.js.map +1 -0
- package/dist/types/host.d.ts.map +1 -0
- package/dist/{internal/types → types}/host.js.map +1 -1
- package/dist/types/index.d.ts.map +1 -0
- package/dist/{internal/types → types}/index.js.map +1 -1
- package/dist/types/repository/archive.d.ts.map +1 -0
- package/dist/types/repository/archive.js.map +1 -0
- package/dist/types/repository/core.d.ts.map +1 -0
- package/dist/types/repository/core.js.map +1 -0
- package/dist/types/repository/inspection.d.ts.map +1 -0
- package/dist/types/repository/inspection.js.map +1 -0
- package/dist/types/repository.d.ts.map +1 -0
- package/dist/types/repository.js.map +1 -0
- package/dist/types/transports.d.ts.map +1 -0
- package/dist/types/transports.js.map +1 -0
- package/dist/{src/types.d.ts.map → types.d.ts.map} +1 -1
- package/dist/types.js.map +1 -0
- package/dist/utils/paths.d.ts.map +1 -0
- package/dist/{internal/utils → utils}/paths.js +1 -1
- package/dist/utils/paths.js.map +1 -0
- package/dist/utils/text.d.ts.map +1 -0
- package/dist/utils/text.js.map +1 -0
- package/package.json +136 -186
- package/dist/browser/styles.css +0 -317
- package/dist/internal/api/forge/actions.d.ts.map +0 -1
- package/dist/internal/api/forge/archives.d.ts.map +0 -1
- package/dist/internal/api/forge/archives.js.map +0 -1
- package/dist/internal/api/forge/handler.d.ts.map +0 -1
- package/dist/internal/api/forge/handler.js.map +0 -1
- package/dist/internal/api/forge/route.d.ts.map +0 -1
- package/dist/internal/api/forge/route.js.map +0 -1
- package/dist/internal/api/forge/runtime.d.ts.map +0 -1
- package/dist/internal/api/forge/runtime.js.map +0 -1
- package/dist/internal/api/forge/socket.d.ts.map +0 -1
- package/dist/internal/api/forge/socket.js.map +0 -1
- package/dist/internal/api/handler/action.d.ts +0 -5
- package/dist/internal/api/handler/action.d.ts.map +0 -1
- package/dist/internal/api/handler/action.js.map +0 -1
- package/dist/internal/api/handler/archive.d.ts.map +0 -1
- package/dist/internal/api/handler/archive.js.map +0 -1
- package/dist/internal/api/handler/response.d.ts.map +0 -1
- package/dist/internal/api/handler/response.js.map +0 -1
- package/dist/internal/api/handler/route.d.ts.map +0 -1
- package/dist/internal/api/handler/route.js.map +0 -1
- package/dist/internal/api/handler/runtime.d.ts.map +0 -1
- package/dist/internal/api/handler/runtime.js.map +0 -1
- package/dist/internal/api/handler.d.ts.map +0 -1
- package/dist/internal/api/handler.js.map +0 -1
- package/dist/internal/api/routing.d.ts.map +0 -1
- package/dist/internal/api/routing.js.map +0 -1
- package/dist/internal/api/socket/events.d.ts.map +0 -1
- package/dist/internal/api/socket/events.js.map +0 -1
- package/dist/internal/api/socket/server.d.ts.map +0 -1
- package/dist/internal/api/socket/server.js.map +0 -1
- package/dist/internal/backend/utils/normalize.d.ts.map +0 -1
- package/dist/internal/backend/utils/normalize.js.map +0 -1
- package/dist/internal/backend/utils/object.d.ts.map +0 -1
- package/dist/internal/backend/utils/object.js.map +0 -1
- package/dist/internal/backend/utils/time.d.ts.map +0 -1
- package/dist/internal/backend/utils/time.js.map +0 -1
- package/dist/internal/browser/index.d.ts +0 -78
- package/dist/internal/browser/index.d.ts.map +0 -1
- package/dist/internal/browser/index.js +0 -1365
- package/dist/internal/browser/index.js.map +0 -1
- package/dist/internal/constants.d.ts.map +0 -1
- package/dist/internal/constants.js.map +0 -1
- package/dist/internal/core/activity.d.ts.map +0 -1
- package/dist/internal/core/activity.js.map +0 -1
- package/dist/internal/core/archive.d.ts.map +0 -1
- package/dist/internal/core/archive.js.map +0 -1
- package/dist/internal/core/archive_cache_filesystem.d.ts.map +0 -1
- package/dist/internal/core/archive_cache_filesystem.js.map +0 -1
- package/dist/internal/core/create/git/forge.d.ts +0 -4
- package/dist/internal/core/create/git/forge.d.ts.map +0 -1
- package/dist/internal/core/create/git/forge.js.map +0 -1
- package/dist/internal/core/create/git/host.d.ts +0 -4
- package/dist/internal/core/create/git/host.d.ts.map +0 -1
- package/dist/internal/core/create/git/host.js.map +0 -1
- package/dist/internal/core/create_git_host/branch_methods.d.ts.map +0 -1
- package/dist/internal/core/create_git_host/branch_methods.js.map +0 -1
- package/dist/internal/core/create_git_host/content_methods.d.ts.map +0 -1
- package/dist/internal/core/create_git_host/content_methods.js.map +0 -1
- package/dist/internal/core/create_git_host/remote_methods.d.ts.map +0 -1
- package/dist/internal/core/create_git_host/remote_methods.js.map +0 -1
- package/dist/internal/core/create_git_host/shared.d.ts.map +0 -1
- package/dist/internal/core/create_git_host/shared.js.map +0 -1
- package/dist/internal/core/create_git_host/working_tree_methods.d.ts.map +0 -1
- package/dist/internal/core/create_git_host/working_tree_methods.js.map +0 -1
- package/dist/internal/core/forge_actions.d.ts.map +0 -1
- package/dist/internal/core/forge_actions.js.map +0 -1
- package/dist/internal/core/git_forge/storage_memory.d.ts.map +0 -1
- package/dist/internal/core/git_forge/storage_memory.js.map +0 -1
- package/dist/internal/core/inspect/helpers.d.ts.map +0 -1
- package/dist/internal/core/inspect/helpers.js.map +0 -1
- package/dist/internal/core/inspect/icon_theme.d.ts.map +0 -1
- package/dist/internal/core/inspect/icon_theme.js.map +0 -1
- package/dist/internal/core/inspect/linguist_progress.d.ts.map +0 -1
- package/dist/internal/core/inspect/linguist_progress.js.map +0 -1
- package/dist/internal/core/inspect.d.ts.map +0 -1
- package/dist/internal/core/inspect.js.map +0 -1
- package/dist/internal/core/inspection.d.ts.map +0 -1
- package/dist/internal/core/inspection.js.map +0 -1
- package/dist/internal/core/locks.d.ts.map +0 -1
- package/dist/internal/core/locks.js.map +0 -1
- package/dist/internal/core/operation_state.d.ts.map +0 -1
- package/dist/internal/core/operation_state.js.map +0 -1
- package/dist/internal/core/remote.d.ts.map +0 -1
- package/dist/internal/core/remote.js.map +0 -1
- package/dist/internal/core/repository/parsers.d.ts.map +0 -1
- package/dist/internal/core/repository/parsers.js.map +0 -1
- package/dist/internal/core/repository.d.ts.map +0 -1
- package/dist/internal/core/repository.js.map +0 -1
- package/dist/internal/core/run_git/env.d.ts.map +0 -1
- package/dist/internal/core/run_git/env.js.map +0 -1
- package/dist/internal/core/run_git/process.d.ts.map +0 -1
- package/dist/internal/core/run_git/process.js.map +0 -1
- package/dist/internal/core/run_git/repository_setup.d.ts.map +0 -1
- package/dist/internal/core/run_git/repository_setup.js.map +0 -1
- package/dist/internal/core/run_git.d.ts.map +0 -1
- package/dist/internal/core/run_git.js.map +0 -1
- package/dist/internal/core/working_tree/mutate.d.ts.map +0 -1
- package/dist/internal/core/working_tree/mutate.js.map +0 -1
- package/dist/internal/core/working_tree/read.d.ts.map +0 -1
- package/dist/internal/core/working_tree/read.js.map +0 -1
- package/dist/internal/core/working_tree/shared.d.ts.map +0 -1
- package/dist/internal/core/working_tree/shared.js.map +0 -1
- package/dist/internal/core/working_tree.d.ts.map +0 -1
- package/dist/internal/core/working_tree.js.map +0 -1
- package/dist/internal/errors.d.ts.map +0 -1
- package/dist/internal/errors.js.map +0 -1
- package/dist/internal/frontend/js/utils/text.d.ts.map +0 -1
- package/dist/internal/frontend/js/utils/text.js.map +0 -1
- package/dist/internal/http/handler/helpers.d.ts.map +0 -1
- package/dist/internal/http/handler/helpers.js.map +0 -1
- package/dist/internal/http/handler.d.ts.map +0 -1
- package/dist/internal/http/handler.js.map +0 -1
- package/dist/internal/index.d.ts.map +0 -1
- package/dist/internal/index.js.map +0 -1
- package/dist/internal/logging.d.ts.map +0 -1
- package/dist/internal/logging.js.map +0 -1
- package/dist/internal/react/client/error.d.ts +0 -14
- package/dist/internal/react/client/error.d.ts.map +0 -1
- package/dist/internal/react/client/error.js +0 -32
- package/dist/internal/react/client/error.js.map +0 -1
- package/dist/internal/react/client/helpers.d.ts +0 -12
- package/dist/internal/react/client/helpers.d.ts.map +0 -1
- package/dist/internal/react/client/helpers.js +0 -45
- package/dist/internal/react/client/helpers.js.map +0 -1
- package/dist/internal/react/client/types.d.ts +0 -275
- package/dist/internal/react/client/types.d.ts.map +0 -1
- package/dist/internal/react/client/types.js.map +0 -1
- package/dist/internal/react/client.d.ts +0 -6
- package/dist/internal/react/client.d.ts.map +0 -1
- package/dist/internal/react/client.js +0 -744
- package/dist/internal/react/client.js.map +0 -1
- package/dist/internal/react/components.d.ts +0 -44412
- package/dist/internal/react/components.d.ts.map +0 -1
- package/dist/internal/react/components.js +0 -759
- package/dist/internal/react/components.js.map +0 -1
- package/dist/internal/react/hooks/query.d.ts +0 -14
- package/dist/internal/react/hooks/query.d.ts.map +0 -1
- package/dist/internal/react/hooks/query.js +0 -139
- package/dist/internal/react/hooks/query.js.map +0 -1
- package/dist/internal/react/hooks/resources.d.ts +0 -116
- package/dist/internal/react/hooks/resources.d.ts.map +0 -1
- package/dist/internal/react/hooks/resources.js +0 -600
- package/dist/internal/react/hooks/resources.js.map +0 -1
- package/dist/internal/react/hooks/types.d.ts +0 -86
- package/dist/internal/react/hooks/types.d.ts.map +0 -1
- package/dist/internal/react/hooks/types.js +0 -2
- package/dist/internal/react/hooks/types.js.map +0 -1
- package/dist/internal/react/hooks.d.ts +0 -4
- package/dist/internal/react/hooks.d.ts.map +0 -1
- package/dist/internal/react/hooks.js +0 -3
- package/dist/internal/react/hooks.js.map +0 -1
- package/dist/internal/react/index.d.ts +0 -8
- package/dist/internal/react/index.d.ts.map +0 -1
- package/dist/internal/react/index.js +0 -5
- package/dist/internal/react/index.js.map +0 -1
- package/dist/internal/react/ui/context.d.ts +0 -1918
- package/dist/internal/react/ui/context.d.ts.map +0 -1
- package/dist/internal/react/ui/context.js +0 -192
- package/dist/internal/react/ui/context.js.map +0 -1
- package/dist/internal/ssh/keys.d.ts.map +0 -1
- package/dist/internal/ssh/keys.js.map +0 -1
- package/dist/internal/ssh/server/audit.d.ts.map +0 -1
- package/dist/internal/ssh/server/audit.js.map +0 -1
- package/dist/internal/ssh/server/shared.d.ts.map +0 -1
- package/dist/internal/ssh/server/shared.js.map +0 -1
- package/dist/internal/ssh/server.d.ts.map +0 -1
- package/dist/internal/ssh/server.js.map +0 -1
- package/dist/internal/types/common.d.ts.map +0 -1
- package/dist/internal/types/forge.d.ts.map +0 -1
- package/dist/internal/types/host/archive.d.ts.map +0 -1
- package/dist/internal/types/host/archive.js.map +0 -1
- package/dist/internal/types/host/options.d.ts.map +0 -1
- package/dist/internal/types/host/options.js.map +0 -1
- package/dist/internal/types/host/service.d.ts.map +0 -1
- package/dist/internal/types/host/service.js.map +0 -1
- package/dist/internal/types/host.d.ts.map +0 -1
- package/dist/internal/types/index.d.ts.map +0 -1
- package/dist/internal/types/repository/archive.d.ts.map +0 -1
- package/dist/internal/types/repository/archive.js.map +0 -1
- package/dist/internal/types/repository/core.d.ts.map +0 -1
- package/dist/internal/types/repository/core.js.map +0 -1
- package/dist/internal/types/repository/inspection.d.ts.map +0 -1
- package/dist/internal/types/repository/inspection.js.map +0 -1
- package/dist/internal/types/repository.d.ts.map +0 -1
- package/dist/internal/types/repository.js.map +0 -1
- package/dist/internal/types/transports.d.ts.map +0 -1
- package/dist/internal/types/transports.js.map +0 -1
- package/dist/internal/types.d.ts.map +0 -1
- package/dist/internal/types.js +0 -2
- package/dist/internal/types.js.map +0 -1
- package/dist/internal/utils/paths.d.ts.map +0 -1
- package/dist/internal/utils/paths.js.map +0 -1
- package/dist/internal/utils/text.d.ts.map +0 -1
- package/dist/internal/utils/text.js.map +0 -1
- package/dist/src/api/forge/handler.d.ts +0 -2
- package/dist/src/api/forge/handler.d.ts.map +0 -1
- package/dist/src/api/forge/handler.js +0 -2
- package/dist/src/api/forge/handler.js.map +0 -1
- package/dist/src/api/forge/route.d.ts +0 -2
- package/dist/src/api/forge/route.d.ts.map +0 -1
- package/dist/src/api/forge/route.js +0 -2
- package/dist/src/api/forge/route.js.map +0 -1
- package/dist/src/api/handler/action.d.ts +0 -2
- package/dist/src/api/handler/action.d.ts.map +0 -1
- package/dist/src/api/handler/action.js +0 -2
- package/dist/src/api/handler/action.js.map +0 -1
- package/dist/src/api/handler/archive.d.ts +0 -2
- package/dist/src/api/handler/archive.d.ts.map +0 -1
- package/dist/src/api/handler/archive.js +0 -2
- package/dist/src/api/handler/archive.js.map +0 -1
- package/dist/src/api/handler/response.d.ts +0 -2
- package/dist/src/api/handler/response.d.ts.map +0 -1
- package/dist/src/api/handler/response.js +0 -2
- package/dist/src/api/handler/response.js.map +0 -1
- package/dist/src/api/handler/route.d.ts +0 -2
- package/dist/src/api/handler/route.d.ts.map +0 -1
- package/dist/src/api/handler/route.js +0 -2
- package/dist/src/api/handler/route.js.map +0 -1
- package/dist/src/api/handler.d.ts +0 -2
- package/dist/src/api/handler.d.ts.map +0 -1
- package/dist/src/api/handler.js +0 -2
- package/dist/src/api/handler.js.map +0 -1
- package/dist/src/api/socket/events.d.ts +0 -2
- package/dist/src/api/socket/events.d.ts.map +0 -1
- package/dist/src/api/socket/events.js +0 -2
- package/dist/src/api/socket/events.js.map +0 -1
- package/dist/src/api/socket/server.d.ts +0 -2
- package/dist/src/api/socket/server.d.ts.map +0 -1
- package/dist/src/api/socket/server.js +0 -2
- package/dist/src/api/socket/server.js.map +0 -1
- package/dist/src/backend/utils/normalize.d.ts +0 -2
- package/dist/src/backend/utils/normalize.d.ts.map +0 -1
- package/dist/src/backend/utils/normalize.js +0 -4
- package/dist/src/backend/utils/normalize.js.map +0 -1
- package/dist/src/backend/utils/object.d.ts +0 -3
- package/dist/src/backend/utils/object.d.ts.map +0 -1
- package/dist/src/backend/utils/object.js +0 -12
- package/dist/src/backend/utils/object.js.map +0 -1
- package/dist/src/backend/utils/time.d.ts +0 -3
- package/dist/src/backend/utils/time.d.ts.map +0 -1
- package/dist/src/backend/utils/time.js +0 -7
- package/dist/src/backend/utils/time.js.map +0 -1
- package/dist/src/browser/index.d.ts +0 -2
- package/dist/src/browser/index.d.ts.map +0 -1
- package/dist/src/browser/index.js +0 -2
- package/dist/src/browser/index.js.map +0 -1
- package/dist/src/constants.d.ts +0 -2
- package/dist/src/constants.d.ts.map +0 -1
- package/dist/src/constants.js +0 -2
- package/dist/src/constants.js.map +0 -1
- package/dist/src/core/archive.d.ts +0 -2
- package/dist/src/core/archive.d.ts.map +0 -1
- package/dist/src/core/archive.js +0 -2
- package/dist/src/core/archive.js.map +0 -1
- package/dist/src/core/archive_cache_filesystem.d.ts +0 -2
- package/dist/src/core/archive_cache_filesystem.d.ts.map +0 -1
- package/dist/src/core/archive_cache_filesystem.js +0 -2
- package/dist/src/core/archive_cache_filesystem.js.map +0 -1
- package/dist/src/core/create/git/forge.d.ts +0 -2
- package/dist/src/core/create/git/forge.d.ts.map +0 -1
- package/dist/src/core/create/git/forge.js +0 -2
- package/dist/src/core/create/git/forge.js.map +0 -1
- package/dist/src/core/create/git/host.d.ts +0 -2
- package/dist/src/core/create/git/host.d.ts.map +0 -1
- package/dist/src/core/create/git/host.js +0 -2
- package/dist/src/core/create/git/host.js.map +0 -1
- package/dist/src/core/create_git_host/branch_methods.d.ts +0 -2
- package/dist/src/core/create_git_host/branch_methods.d.ts.map +0 -1
- package/dist/src/core/create_git_host/branch_methods.js +0 -2
- package/dist/src/core/create_git_host/branch_methods.js.map +0 -1
- package/dist/src/core/create_git_host/content_methods.d.ts +0 -2
- package/dist/src/core/create_git_host/content_methods.d.ts.map +0 -1
- package/dist/src/core/create_git_host/content_methods.js +0 -2
- package/dist/src/core/create_git_host/content_methods.js.map +0 -1
- package/dist/src/core/create_git_host/remote_methods.d.ts +0 -2
- package/dist/src/core/create_git_host/remote_methods.d.ts.map +0 -1
- package/dist/src/core/create_git_host/remote_methods.js +0 -2
- package/dist/src/core/create_git_host/remote_methods.js.map +0 -1
- package/dist/src/core/create_git_host/shared.d.ts +0 -2
- package/dist/src/core/create_git_host/shared.d.ts.map +0 -1
- package/dist/src/core/create_git_host/shared.js +0 -2
- package/dist/src/core/create_git_host/shared.js.map +0 -1
- package/dist/src/core/create_git_host/working_tree_methods.d.ts +0 -2
- package/dist/src/core/create_git_host/working_tree_methods.d.ts.map +0 -1
- package/dist/src/core/create_git_host/working_tree_methods.js +0 -2
- package/dist/src/core/create_git_host/working_tree_methods.js.map +0 -1
- package/dist/src/core/git_forge/storage_memory.d.ts +0 -2
- package/dist/src/core/git_forge/storage_memory.d.ts.map +0 -1
- package/dist/src/core/git_forge/storage_memory.js +0 -2
- package/dist/src/core/git_forge/storage_memory.js.map +0 -1
- package/dist/src/core/inspect/helpers.d.ts +0 -2
- package/dist/src/core/inspect/helpers.d.ts.map +0 -1
- package/dist/src/core/inspect/helpers.js +0 -2
- package/dist/src/core/inspect/helpers.js.map +0 -1
- package/dist/src/core/inspect/icon_theme.d.ts +0 -2
- package/dist/src/core/inspect/icon_theme.d.ts.map +0 -1
- package/dist/src/core/inspect/icon_theme.js +0 -2
- package/dist/src/core/inspect/icon_theme.js.map +0 -1
- package/dist/src/core/inspect/linguist_progress.d.ts +0 -2
- package/dist/src/core/inspect/linguist_progress.d.ts.map +0 -1
- package/dist/src/core/inspect/linguist_progress.js +0 -2
- package/dist/src/core/inspect/linguist_progress.js.map +0 -1
- package/dist/src/core/inspect.d.ts +0 -2
- package/dist/src/core/inspect.d.ts.map +0 -1
- package/dist/src/core/inspect.js +0 -2
- package/dist/src/core/inspect.js.map +0 -1
- package/dist/src/core/inspection.d.ts +0 -2
- package/dist/src/core/inspection.d.ts.map +0 -1
- package/dist/src/core/inspection.js +0 -2
- package/dist/src/core/inspection.js.map +0 -1
- package/dist/src/core/locks.d.ts +0 -2
- package/dist/src/core/locks.d.ts.map +0 -1
- package/dist/src/core/locks.js +0 -2
- package/dist/src/core/locks.js.map +0 -1
- package/dist/src/core/operation_state.d.ts +0 -2
- package/dist/src/core/operation_state.d.ts.map +0 -1
- package/dist/src/core/operation_state.js +0 -2
- package/dist/src/core/operation_state.js.map +0 -1
- package/dist/src/core/remote.d.ts +0 -2
- package/dist/src/core/remote.d.ts.map +0 -1
- package/dist/src/core/remote.js +0 -2
- package/dist/src/core/remote.js.map +0 -1
- package/dist/src/core/repository/parsers.d.ts +0 -2
- package/dist/src/core/repository/parsers.d.ts.map +0 -1
- package/dist/src/core/repository/parsers.js +0 -2
- package/dist/src/core/repository/parsers.js.map +0 -1
- package/dist/src/core/repository.d.ts +0 -2
- package/dist/src/core/repository.d.ts.map +0 -1
- package/dist/src/core/repository.js +0 -2
- package/dist/src/core/repository.js.map +0 -1
- package/dist/src/core/run_git/env.d.ts +0 -2
- package/dist/src/core/run_git/env.d.ts.map +0 -1
- package/dist/src/core/run_git/env.js +0 -2
- package/dist/src/core/run_git/env.js.map +0 -1
- package/dist/src/core/run_git/process.d.ts +0 -2
- package/dist/src/core/run_git/process.d.ts.map +0 -1
- package/dist/src/core/run_git/process.js +0 -2
- package/dist/src/core/run_git/process.js.map +0 -1
- package/dist/src/core/run_git/repository_setup.d.ts +0 -2
- package/dist/src/core/run_git/repository_setup.d.ts.map +0 -1
- package/dist/src/core/run_git/repository_setup.js +0 -2
- package/dist/src/core/run_git/repository_setup.js.map +0 -1
- package/dist/src/core/run_git.d.ts +0 -2
- package/dist/src/core/run_git.d.ts.map +0 -1
- package/dist/src/core/run_git.js +0 -2
- package/dist/src/core/run_git.js.map +0 -1
- package/dist/src/core/working_tree/mutate.d.ts +0 -2
- package/dist/src/core/working_tree/mutate.d.ts.map +0 -1
- package/dist/src/core/working_tree/mutate.js +0 -2
- package/dist/src/core/working_tree/mutate.js.map +0 -1
- package/dist/src/core/working_tree/read.d.ts +0 -2
- package/dist/src/core/working_tree/read.d.ts.map +0 -1
- package/dist/src/core/working_tree/read.js +0 -2
- package/dist/src/core/working_tree/read.js.map +0 -1
- package/dist/src/core/working_tree/shared.d.ts +0 -2
- package/dist/src/core/working_tree/shared.d.ts.map +0 -1
- package/dist/src/core/working_tree/shared.js +0 -2
- package/dist/src/core/working_tree/shared.js.map +0 -1
- package/dist/src/core/working_tree.d.ts +0 -2
- package/dist/src/core/working_tree.d.ts.map +0 -1
- package/dist/src/core/working_tree.js +0 -2
- package/dist/src/core/working_tree.js.map +0 -1
- package/dist/src/errors.d.ts +0 -2
- package/dist/src/errors.d.ts.map +0 -1
- package/dist/src/errors.js +0 -2
- package/dist/src/errors.js.map +0 -1
- package/dist/src/frontend/js/utils/text.d.ts +0 -2
- package/dist/src/frontend/js/utils/text.d.ts.map +0 -1
- package/dist/src/frontend/js/utils/text.js +0 -4
- package/dist/src/frontend/js/utils/text.js.map +0 -1
- package/dist/src/http/handler/helpers.d.ts +0 -2
- package/dist/src/http/handler/helpers.d.ts.map +0 -1
- package/dist/src/http/handler/helpers.js +0 -2
- package/dist/src/http/handler/helpers.js.map +0 -1
- package/dist/src/http/handler.d.ts +0 -2
- package/dist/src/http/handler.d.ts.map +0 -1
- package/dist/src/http/handler.js +0 -2
- package/dist/src/http/handler.js.map +0 -1
- package/dist/src/index.d.ts +0 -2
- package/dist/src/index.d.ts.map +0 -1
- package/dist/src/index.js +0 -2
- package/dist/src/index.js.map +0 -1
- package/dist/src/logging.d.ts +0 -2
- package/dist/src/logging.d.ts.map +0 -1
- package/dist/src/logging.js +0 -2
- package/dist/src/logging.js.map +0 -1
- package/dist/src/react/client/error.d.ts +0 -2
- package/dist/src/react/client/error.d.ts.map +0 -1
- package/dist/src/react/client/error.js +0 -2
- package/dist/src/react/client/error.js.map +0 -1
- package/dist/src/react/client/helpers.d.ts +0 -2
- package/dist/src/react/client/helpers.d.ts.map +0 -1
- package/dist/src/react/client/helpers.js +0 -2
- package/dist/src/react/client/helpers.js.map +0 -1
- package/dist/src/react/client/types.d.ts +0 -2
- package/dist/src/react/client/types.d.ts.map +0 -1
- package/dist/src/react/client/types.js +0 -2
- package/dist/src/react/client/types.js.map +0 -1
- package/dist/src/react/client.d.ts +0 -2
- package/dist/src/react/client.d.ts.map +0 -1
- package/dist/src/react/client.js +0 -2
- package/dist/src/react/client.js.map +0 -1
- package/dist/src/react/components.d.ts +0 -2
- package/dist/src/react/components.d.ts.map +0 -1
- package/dist/src/react/components.js +0 -2
- package/dist/src/react/components.js.map +0 -1
- package/dist/src/react/hooks/query.d.ts +0 -2
- package/dist/src/react/hooks/query.d.ts.map +0 -1
- package/dist/src/react/hooks/query.js +0 -2
- package/dist/src/react/hooks/query.js.map +0 -1
- package/dist/src/react/hooks/resources.d.ts +0 -2
- package/dist/src/react/hooks/resources.d.ts.map +0 -1
- package/dist/src/react/hooks/resources.js +0 -2
- package/dist/src/react/hooks/resources.js.map +0 -1
- package/dist/src/react/hooks/types.d.ts +0 -2
- package/dist/src/react/hooks/types.d.ts.map +0 -1
- package/dist/src/react/hooks/types.js +0 -2
- package/dist/src/react/hooks/types.js.map +0 -1
- package/dist/src/react/hooks.d.ts +0 -2
- package/dist/src/react/hooks.d.ts.map +0 -1
- package/dist/src/react/hooks.js +0 -2
- package/dist/src/react/hooks.js.map +0 -1
- package/dist/src/react/index.d.ts +0 -2
- package/dist/src/react/index.d.ts.map +0 -1
- package/dist/src/react/index.js +0 -2
- package/dist/src/react/index.js.map +0 -1
- package/dist/src/react/ui/context.d.ts +0 -2
- package/dist/src/react/ui/context.d.ts.map +0 -1
- package/dist/src/react/ui/context.js +0 -2
- package/dist/src/react/ui/context.js.map +0 -1
- package/dist/src/ssh/keys.d.ts +0 -2
- package/dist/src/ssh/keys.d.ts.map +0 -1
- package/dist/src/ssh/keys.js +0 -2
- package/dist/src/ssh/keys.js.map +0 -1
- package/dist/src/ssh/server/audit.d.ts +0 -2
- package/dist/src/ssh/server/audit.d.ts.map +0 -1
- package/dist/src/ssh/server/audit.js +0 -2
- package/dist/src/ssh/server/audit.js.map +0 -1
- package/dist/src/ssh/server/shared.d.ts +0 -2
- package/dist/src/ssh/server/shared.d.ts.map +0 -1
- package/dist/src/ssh/server/shared.js +0 -2
- package/dist/src/ssh/server/shared.js.map +0 -1
- package/dist/src/ssh/server.d.ts +0 -2
- package/dist/src/ssh/server.d.ts.map +0 -1
- package/dist/src/ssh/server.js +0 -2
- package/dist/src/ssh/server.js.map +0 -1
- package/dist/src/types/common.d.ts +0 -2
- package/dist/src/types/common.d.ts.map +0 -1
- package/dist/src/types/common.js +0 -2
- package/dist/src/types/common.js.map +0 -1
- package/dist/src/types/forge.d.ts +0 -2
- package/dist/src/types/forge.d.ts.map +0 -1
- package/dist/src/types/forge.js +0 -2
- package/dist/src/types/forge.js.map +0 -1
- package/dist/src/types/host.d.ts +0 -2
- package/dist/src/types/host.d.ts.map +0 -1
- package/dist/src/types/host.js +0 -2
- package/dist/src/types/host.js.map +0 -1
- package/dist/src/types/index.d.ts +0 -2
- package/dist/src/types/index.d.ts.map +0 -1
- package/dist/src/types/index.js +0 -2
- package/dist/src/types/index.js.map +0 -1
- package/dist/src/types/repository.d.ts +0 -2
- package/dist/src/types/repository.d.ts.map +0 -1
- package/dist/src/types/repository.js +0 -2
- package/dist/src/types/repository.js.map +0 -1
- package/dist/src/types/transports.d.ts +0 -2
- package/dist/src/types/transports.d.ts.map +0 -1
- package/dist/src/types/transports.js +0 -2
- package/dist/src/types/transports.js.map +0 -1
- package/dist/src/types.d.ts +0 -2
- package/dist/src/types.js +0 -2
- package/dist/src/types.js.map +0 -1
- package/dist/src/utils/paths.d.ts +0 -2
- package/dist/src/utils/paths.d.ts.map +0 -1
- package/dist/src/utils/paths.js +0 -2
- package/dist/src/utils/paths.js.map +0 -1
- package/dist/src/utils/text.d.ts +0 -2
- package/dist/src/utils/text.d.ts.map +0 -1
- package/dist/src/utils/text.js +0 -2
- package/dist/src/utils/text.js.map +0 -1
- /package/dist/{internal/api → api}/handler/archive.js +0 -0
- /package/dist/{internal/api → api}/handler/response.d.ts +0 -0
- /package/dist/{internal/api → api}/handler/route.d.ts +0 -0
- /package/dist/{internal/api → api}/handler.js +0 -0
- /package/dist/{internal/api → api}/routing.d.ts +0 -0
- /package/dist/{internal/api → api}/socket/events.d.ts +0 -0
- /package/dist/{internal/api → api}/socket/events.js +0 -0
- /package/dist/{internal/backend → backend}/utils/normalize.d.ts +0 -0
- /package/dist/{internal/backend → backend}/utils/normalize.js +0 -0
- /package/dist/{internal/backend → backend}/utils/object.d.ts +0 -0
- /package/dist/{internal/backend → backend}/utils/object.js +0 -0
- /package/dist/{internal/backend → backend}/utils/time.d.ts +0 -0
- /package/dist/{internal/backend → backend}/utils/time.js +0 -0
- /package/dist/{internal/constants.d.ts → constants.d.ts} +0 -0
- /package/dist/{internal/constants.js → constants.js} +0 -0
- /package/dist/{internal/core → core}/archive_cache_filesystem.js +0 -0
- /package/dist/{internal/core → core}/locks.d.ts +0 -0
- /package/dist/{internal/core → core}/locks.js +0 -0
- /package/dist/{internal/core → core}/operation_state.js +0 -0
- /package/dist/{internal/core → core}/working_tree.d.ts +0 -0
- /package/dist/{internal/core → core}/working_tree.js +0 -0
- /package/dist/{internal/errors.d.ts → errors.d.ts} +0 -0
- /package/dist/{internal/errors.js → errors.js} +0 -0
- /package/dist/{internal/frontend → frontend}/js/utils/text.d.ts +0 -0
- /package/dist/{internal/frontend → frontend}/js/utils/text.js +0 -0
- /package/dist/{internal/index.d.ts → index.d.ts} +0 -0
- /package/dist/{internal/index.js → index.js} +0 -0
- /package/dist/{internal/logging.d.ts → logging.d.ts} +0 -0
- /package/dist/{internal/logging.js → logging.js} +0 -0
- /package/dist/{internal/ssh → ssh}/keys.d.ts +0 -0
- /package/dist/{internal/ssh → ssh}/server/audit.js +0 -0
- /package/dist/{internal/types → types}/common.d.ts +0 -0
- /package/dist/{internal/types → types}/common.js +0 -0
- /package/dist/{internal/types → types}/forge.js +0 -0
- /package/dist/{internal/types → types}/host/archive.d.ts +0 -0
- /package/dist/{internal/types → types}/host/archive.js +0 -0
- /package/dist/{internal/types → types}/host/options.d.ts +0 -0
- /package/dist/{internal/types → types}/host/options.js +0 -0
- /package/dist/{internal/types → types}/host/service.d.ts +0 -0
- /package/dist/{internal/types → types}/host/service.js +0 -0
- /package/dist/{internal/types → types}/host.d.ts +0 -0
- /package/dist/{internal/types → types}/host.js +0 -0
- /package/dist/{internal/types → types}/index.d.ts +0 -0
- /package/dist/{internal/types → types}/index.js +0 -0
- /package/dist/{internal/types → types}/repository/archive.d.ts +0 -0
- /package/dist/{internal/types → types}/repository/archive.js +0 -0
- /package/dist/{internal/types → types}/repository/core.d.ts +0 -0
- /package/dist/{internal/types → types}/repository/core.js +0 -0
- /package/dist/{internal/types → types}/repository/inspection.d.ts +0 -0
- /package/dist/{internal/types → types}/repository/inspection.js +0 -0
- /package/dist/{internal/types → types}/repository.d.ts +0 -0
- /package/dist/{internal/types → types}/repository.js +0 -0
- /package/dist/{internal/types → types}/transports.d.ts +0 -0
- /package/dist/{internal/types → types}/transports.js +0 -0
- /package/dist/{internal/types.d.ts → types.d.ts} +0 -0
- /package/dist/{internal/react/client/types.js → types.js} +0 -0
- /package/dist/{internal/utils → utils}/paths.d.ts +0 -0
- /package/dist/{internal/utils → utils}/text.d.ts +0 -0
- /package/dist/{internal/utils → utils}/text.js +0 -0
|
@@ -1,48 +1,16 @@
|
|
|
1
1
|
import { randomUUID } from "node:crypto";
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { GitHostError } from "#8974ac53d713";
|
|
7
|
-
import { text } from "#sy81xkgkmoa0";
|
|
2
|
+
import { GitHostError } from "../errors.js";
|
|
3
|
+
import { text } from "../utils/text.js";
|
|
4
|
+
import { executeActionsRunner, resolveActionsWorkspaceRoot } from "./actions_runner.js";
|
|
5
|
+
import { listRepositoryWorkflows, readRepositoryWorkflow, resolveRepositoryWorkflowRoot } from "./actions_workflows.js";
|
|
8
6
|
import { runGit } from "./run_git.js";
|
|
9
7
|
const ACTIVITY_LISTENER_SYMBOL = Symbol.for("@trebired/git-host/actions-activity-listeners");
|
|
10
8
|
const ACTIVITY_WRAPPED_SYMBOL = Symbol.for("@trebired/git-host/actions-activity-wrapped");
|
|
11
|
-
const OUTPUT_PREVIEW_LIMIT = 4000;
|
|
12
9
|
const DEFAULT_HEARTBEAT_INTERVAL_MS = 1000;
|
|
13
10
|
const TERMINAL_RUN_STATUSES = new Set(["cancelled", "failed", "skipped", "success"]);
|
|
14
11
|
function nowIso() {
|
|
15
12
|
return new Date().toISOString();
|
|
16
13
|
}
|
|
17
|
-
function slugify(value) {
|
|
18
|
-
const next = text(value)
|
|
19
|
-
.toLowerCase()
|
|
20
|
-
.replace(/[^a-z0-9]+/g, "-")
|
|
21
|
-
.replace(/^-+|-+$/g, "");
|
|
22
|
-
return next || "workflow";
|
|
23
|
-
}
|
|
24
|
-
function normalizeEnv(value) {
|
|
25
|
-
if (!value || typeof value !== "object")
|
|
26
|
-
return undefined;
|
|
27
|
-
const next = Object.fromEntries(Object.entries(value)
|
|
28
|
-
.map(([key, entry]) => [text(key), text(entry)])
|
|
29
|
-
.filter(([key, entry]) => key && entry));
|
|
30
|
-
return Object.keys(next).length ? next : undefined;
|
|
31
|
-
}
|
|
32
|
-
function normalizeSteps(steps) {
|
|
33
|
-
return (Array.isArray(steps) ? steps : []).map((step) => ({
|
|
34
|
-
env: normalizeEnv(step.env),
|
|
35
|
-
id: text(step.id, randomUUID()),
|
|
36
|
-
kind: "shell",
|
|
37
|
-
name: text(step.name, "Step"),
|
|
38
|
-
run: text(step.run),
|
|
39
|
-
shell: text(step.shell),
|
|
40
|
-
})).filter((step) => step.run);
|
|
41
|
-
}
|
|
42
|
-
function appendOutputPreview(current, chunk) {
|
|
43
|
-
const next = `${current}${chunk}`;
|
|
44
|
-
return next.length <= OUTPUT_PREVIEW_LIMIT ? next : next.slice(-OUTPUT_PREVIEW_LIMIT);
|
|
45
|
-
}
|
|
46
14
|
function toDateSortValue(value) {
|
|
47
15
|
return text(value);
|
|
48
16
|
}
|
|
@@ -71,10 +39,10 @@ function ensureActionsStorage(storage) {
|
|
|
71
39
|
function normalizeRunner(options) {
|
|
72
40
|
const runner = options?.runner || {};
|
|
73
41
|
return {
|
|
74
|
-
capabilities: Array.isArray(runner.capabilities) ? runner.capabilities.map((entry) => text(entry)).filter(Boolean) : ["shell", "snapshot", "streaming-logs"],
|
|
75
|
-
host: text(runner.host,
|
|
76
|
-
id: text(runner.id,
|
|
77
|
-
kind: text(runner.kind, "
|
|
42
|
+
capabilities: Array.isArray(runner.capabilities) ? runner.capabilities.map((entry) => text(entry)).filter(Boolean) : ["go-runner", "shell", "snapshot", "streaming-logs"],
|
|
43
|
+
host: text(runner.host, "local-host"),
|
|
44
|
+
id: text(runner.id, "go-runner"),
|
|
45
|
+
kind: text(runner.kind, "go-runner"),
|
|
78
46
|
platform_version: text(runner.platform_version, "@trebired/git-host"),
|
|
79
47
|
};
|
|
80
48
|
}
|
|
@@ -145,39 +113,6 @@ function createGitForgeActionsRuntime(options) {
|
|
|
145
113
|
repositoryPath,
|
|
146
114
|
};
|
|
147
115
|
}
|
|
148
|
-
async function materializeRunWorkspace(run) {
|
|
149
|
-
const repositoryPath = await readRepositoryPath(run.repository_id);
|
|
150
|
-
const root = path.join(text(options.actions?.workspaceRoot, path.join(os.tmpdir(), "@trebired-git-host-actions")), text(run.repository_id), run.id);
|
|
151
|
-
const workspacePath = path.join(root, "workspace");
|
|
152
|
-
fs.rmSync(root, { force: true, recursive: true });
|
|
153
|
-
fs.mkdirSync(root, { recursive: true });
|
|
154
|
-
const cloneRes = await runGit(["clone", "--no-checkout", repositoryPath, workspacePath], { cwd: root });
|
|
155
|
-
if (!cloneRes.ok) {
|
|
156
|
-
throw new GitHostError("git_command_failed", text(cloneRes.stderr, "Failed to materialize workflow workspace."), {
|
|
157
|
-
repositoryId: run.repository_id,
|
|
158
|
-
runId: run.id,
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
const checkoutRes = await runGit(["checkout", "--detach", run.commit_hash], { cwd: workspacePath });
|
|
162
|
-
if (!checkoutRes.ok) {
|
|
163
|
-
throw new GitHostError("git_command_failed", text(checkoutRes.stderr, "Failed to check out workflow commit."), {
|
|
164
|
-
commitHash: run.commit_hash,
|
|
165
|
-
repositoryId: run.repository_id,
|
|
166
|
-
runId: run.id,
|
|
167
|
-
});
|
|
168
|
-
}
|
|
169
|
-
return workspacePath;
|
|
170
|
-
}
|
|
171
|
-
async function readRequiredWorkflow(repositoryId, workflowId) {
|
|
172
|
-
const workflow = await storage.readWorkflow(repositoryId, workflowId);
|
|
173
|
-
if (!workflow) {
|
|
174
|
-
throw new GitHostError("forge_resource_not_found", `Workflow "${workflowId}" was not found.`, {
|
|
175
|
-
repositoryId,
|
|
176
|
-
workflowId,
|
|
177
|
-
});
|
|
178
|
-
}
|
|
179
|
-
return workflow;
|
|
180
|
-
}
|
|
181
116
|
async function readRequiredRun(repositoryId, runId) {
|
|
182
117
|
const run = await storage.readWorkflowRun(repositoryId, runId);
|
|
183
118
|
if (!run) {
|
|
@@ -240,125 +175,165 @@ function createGitForgeActionsRuntime(options) {
|
|
|
240
175
|
});
|
|
241
176
|
return finished;
|
|
242
177
|
}
|
|
243
|
-
async function
|
|
244
|
-
const
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
started_at: nowIso(),
|
|
252
|
-
status: "running",
|
|
178
|
+
async function readWorkflowAtRef(repositoryId, repositoryPath, ref, workflowId) {
|
|
179
|
+
const workflowRoot = await resolveRepositoryWorkflowRoot(options.actions, repositoryId);
|
|
180
|
+
return await readRepositoryWorkflow({
|
|
181
|
+
ref,
|
|
182
|
+
repositoryId,
|
|
183
|
+
repositoryPath,
|
|
184
|
+
workflowId,
|
|
185
|
+
workflowRoot,
|
|
253
186
|
});
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
187
|
+
}
|
|
188
|
+
async function queueWorkflowRun(repositoryId, workflow, input) {
|
|
189
|
+
const target = await resolveRunTarget(repositoryId, input);
|
|
190
|
+
const createdAt = nowIso();
|
|
191
|
+
const createdBy = text(input.actor.id, text(input.actor.name, "system"));
|
|
192
|
+
const run = await storage.createWorkflowRun({
|
|
193
|
+
branch: target.branch,
|
|
194
|
+
commit_hash: target.commitHash,
|
|
195
|
+
created_at: createdAt,
|
|
196
|
+
created_by: createdBy,
|
|
197
|
+
current_step: null,
|
|
198
|
+
current_step_index: null,
|
|
199
|
+
finished_at: null,
|
|
200
|
+
id: randomUUID(),
|
|
201
|
+
ref: target.ref,
|
|
202
|
+
release_id: input.releaseId == null ? null : text(input.releaseId),
|
|
203
|
+
repository_id: repositoryId,
|
|
204
|
+
runner: null,
|
|
205
|
+
started_at: null,
|
|
206
|
+
status: "queued",
|
|
207
|
+
summary: "Workflow run queued.",
|
|
208
|
+
trigger_context: {
|
|
209
|
+
...(input.triggerContext || {}),
|
|
210
|
+
workflow_definition_path: workflow.definition_path,
|
|
211
|
+
},
|
|
212
|
+
trigger_kind: input.triggerKind,
|
|
213
|
+
workflow_id: workflow.id,
|
|
259
214
|
});
|
|
260
|
-
await
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
215
|
+
await Promise.all(workflow.steps.map(async (step, index) => {
|
|
216
|
+
await storage.createWorkflowRunStep({
|
|
217
|
+
command: step.run,
|
|
218
|
+
exit_code: null,
|
|
219
|
+
finished_at: null,
|
|
220
|
+
id: randomUUID(),
|
|
221
|
+
index,
|
|
222
|
+
kind: "shell",
|
|
223
|
+
metadata: step.env ? { env: step.env, shell: text(step.shell) } : (text(step.shell) ? { shell: text(step.shell) } : undefined),
|
|
224
|
+
name: text(step.name, `Step ${index + 1}`),
|
|
225
|
+
output_preview: "",
|
|
226
|
+
run_id: run.id,
|
|
227
|
+
started_at: null,
|
|
228
|
+
status: "queued",
|
|
229
|
+
});
|
|
230
|
+
}));
|
|
231
|
+
await emitRunEvent(run, {
|
|
232
|
+
metadata: {
|
|
233
|
+
branch: run.branch,
|
|
234
|
+
definition_path: workflow.definition_path,
|
|
235
|
+
ref: run.ref,
|
|
236
|
+
},
|
|
237
|
+
status: "queued",
|
|
238
|
+
summary: run.summary,
|
|
239
|
+
type: "run.accepted",
|
|
267
240
|
});
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
...process.env,
|
|
272
|
-
...(options.actions?.env || {}),
|
|
273
|
-
...(workflow.env || {}),
|
|
274
|
-
...(workflow.source?.env || {}),
|
|
275
|
-
...(workflow.steps[startedStep.index]?.env || {}),
|
|
276
|
-
GIT_HOST_ACTIONS_REPOSITORY_ID: run.repository_id,
|
|
277
|
-
GIT_HOST_ACTIONS_RUN_ID: run.id,
|
|
278
|
-
GIT_HOST_ACTIONS_TRIGGER: text(run.trigger_kind),
|
|
279
|
-
GIT_HOST_ACTIONS_WORKFLOW_ID: workflow.id,
|
|
280
|
-
GIT_HOST_ACTIONS_COMMIT: run.commit_hash,
|
|
281
|
-
GIT_HOST_ACTIONS_REF: run.ref,
|
|
282
|
-
GIT_HOST_ACTIONS_BRANCH: text(run.branch),
|
|
283
|
-
GIT_HOST_ACTIONS_RELEASE_ID: text(run.release_id),
|
|
284
|
-
};
|
|
285
|
-
const child = spawn(shell, ["-lc", startedStep.command], {
|
|
286
|
-
cwd: workspacePath,
|
|
287
|
-
env,
|
|
288
|
-
stdio: ["ignore", "pipe", "pipe"],
|
|
241
|
+
queuedRuns.push({
|
|
242
|
+
repositoryId,
|
|
243
|
+
runId: run.id,
|
|
289
244
|
});
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
245
|
+
scheduleQueueProcessing();
|
|
246
|
+
return run;
|
|
247
|
+
}
|
|
248
|
+
async function handleRunnerEvent(run, stepsById, event) {
|
|
249
|
+
if (event.type === "run.status") {
|
|
250
|
+
const updatedRun = await updateRun(run.repository_id, run.id, {
|
|
251
|
+
status: event.status,
|
|
252
|
+
summary: text(event.summary, run.summary),
|
|
253
|
+
});
|
|
254
|
+
await emitRunEvent(updatedRun, {
|
|
255
|
+
status: updatedRun.status,
|
|
256
|
+
summary: updatedRun.summary,
|
|
257
|
+
type: "run.status",
|
|
258
|
+
});
|
|
259
|
+
return updatedRun;
|
|
260
|
+
}
|
|
261
|
+
const step = event.step_id ? stepsById.get(event.step_id) : undefined;
|
|
262
|
+
if (!step)
|
|
263
|
+
return run;
|
|
264
|
+
if (event.type === "step.started") {
|
|
265
|
+
const startedStep = await updateRunStep(run.id, step.id, {
|
|
266
|
+
started_at: nowIso(),
|
|
267
|
+
status: "running",
|
|
268
|
+
});
|
|
269
|
+
stepsById.set(step.id, startedStep);
|
|
270
|
+
const updatedRun = await updateRun(run.repository_id, run.id, {
|
|
271
|
+
current_step: startedStep.name,
|
|
272
|
+
current_step_index: startedStep.index,
|
|
273
|
+
status: "running",
|
|
274
|
+
summary: `Running ${startedStep.name}.`,
|
|
275
|
+
});
|
|
276
|
+
await emitRunEvent(updatedRun, {
|
|
277
|
+
command: text(event.command, startedStep.command),
|
|
293
278
|
status: "running",
|
|
294
279
|
step_id: startedStep.id,
|
|
295
280
|
step_index: startedStep.index,
|
|
296
281
|
step_name: startedStep.name,
|
|
297
|
-
type: "step.
|
|
282
|
+
type: "step.started",
|
|
298
283
|
});
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
284
|
+
return updatedRun;
|
|
285
|
+
}
|
|
286
|
+
if (event.type === "step.output") {
|
|
287
|
+
let chunk = text(event.chunk);
|
|
288
|
+
if (chunk && options.actions?.redactOutput) {
|
|
289
|
+
chunk = await options.actions.redactOutput({
|
|
290
|
+
chunk,
|
|
291
|
+
run,
|
|
292
|
+
step,
|
|
293
|
+
stream: event.stream || "stdout",
|
|
308
294
|
});
|
|
309
295
|
}
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
chunk: textChunk,
|
|
296
|
+
await emitRunEvent(run, {
|
|
297
|
+
chunk,
|
|
313
298
|
status: "running",
|
|
314
|
-
step_id:
|
|
315
|
-
step_index:
|
|
316
|
-
step_name:
|
|
317
|
-
stream,
|
|
299
|
+
step_id: step.id,
|
|
300
|
+
step_index: step.index,
|
|
301
|
+
step_name: step.name,
|
|
302
|
+
stream: event.stream || "stdout",
|
|
318
303
|
type: "step.output",
|
|
319
304
|
});
|
|
305
|
+
return run;
|
|
320
306
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
307
|
+
if (event.type === "step.heartbeat") {
|
|
308
|
+
await emitRunEvent(run, {
|
|
309
|
+
status: "running",
|
|
310
|
+
step_id: step.id,
|
|
311
|
+
step_index: step.index,
|
|
312
|
+
step_name: step.name,
|
|
313
|
+
type: "step.heartbeat",
|
|
327
314
|
});
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
clearInterval(active.heartbeat);
|
|
333
|
-
active.child = undefined;
|
|
334
|
-
active.heartbeat = undefined;
|
|
335
|
-
const cancelled = active.cancelRequested === true;
|
|
336
|
-
const finalStatus = cancelled
|
|
337
|
-
? "cancelled"
|
|
338
|
-
: (exitCode === 0 ? "success" : "failed");
|
|
339
|
-
const finishedStep = await updateRunStep(run.id, startedStep.id, {
|
|
340
|
-
exit_code: exitCode,
|
|
315
|
+
return run;
|
|
316
|
+
}
|
|
317
|
+
const finishedStep = await updateRunStep(run.id, step.id, {
|
|
318
|
+
exit_code: typeof event.exit_code === "number" ? event.exit_code : step.exit_code,
|
|
341
319
|
finished_at: nowIso(),
|
|
342
|
-
output_preview:
|
|
343
|
-
status:
|
|
320
|
+
output_preview: text(event.output_preview, step.output_preview),
|
|
321
|
+
status: event.status || step.status,
|
|
344
322
|
});
|
|
345
|
-
|
|
323
|
+
stepsById.set(step.id, finishedStep);
|
|
324
|
+
await emitRunEvent(run, {
|
|
346
325
|
command: finishedStep.command,
|
|
347
326
|
metadata: {
|
|
348
|
-
exit_code:
|
|
327
|
+
exit_code: finishedStep.exit_code,
|
|
349
328
|
},
|
|
350
|
-
status:
|
|
329
|
+
status: finishedStep.status,
|
|
351
330
|
step_id: finishedStep.id,
|
|
352
331
|
step_index: finishedStep.index,
|
|
353
332
|
step_name: finishedStep.name,
|
|
354
|
-
summary:
|
|
333
|
+
summary: text(event.summary),
|
|
355
334
|
type: "step.finished",
|
|
356
335
|
});
|
|
357
|
-
return
|
|
358
|
-
cancelled,
|
|
359
|
-
exitCode,
|
|
360
|
-
status: finalStatus,
|
|
361
|
-
};
|
|
336
|
+
return run;
|
|
362
337
|
}
|
|
363
338
|
async function executeRun(repositoryId, runId) {
|
|
364
339
|
let run = await readRequiredRun(repositoryId, runId);
|
|
@@ -378,59 +353,64 @@ function createGitForgeActionsRuntime(options) {
|
|
|
378
353
|
summary: run.summary,
|
|
379
354
|
type: "run.status",
|
|
380
355
|
});
|
|
381
|
-
const
|
|
356
|
+
const repositoryPath = await readRepositoryPath(repositoryId);
|
|
382
357
|
const steps = await storage.listWorkflowRunSteps(run.id);
|
|
358
|
+
const stepsById = new Map(steps.map((step) => [step.id, step]));
|
|
383
359
|
const activeState = {
|
|
384
360
|
cancelRequested: false,
|
|
385
361
|
};
|
|
386
362
|
activeRuns.set(run.id, activeState);
|
|
387
363
|
try {
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
364
|
+
const execution = executeActionsRunner({
|
|
365
|
+
actions: options.actions,
|
|
366
|
+
heartbeatIntervalMs: Math.max(250, Number(options.actions?.heartbeatIntervalMs) || DEFAULT_HEARTBEAT_INTERVAL_MS),
|
|
367
|
+
onEvent: async (event) => {
|
|
368
|
+
run = await handleRunnerEvent(run, stepsById, event);
|
|
369
|
+
},
|
|
370
|
+
repositoryPath,
|
|
371
|
+
run,
|
|
372
|
+
steps,
|
|
373
|
+
workspaceRoot: resolveActionsWorkspaceRoot(options.actions, run.repository_id, run.id),
|
|
397
374
|
});
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
}
|
|
375
|
+
activeState.child = execution.child;
|
|
376
|
+
const result = await execution.completed;
|
|
377
|
+
const persistedSteps = await storage.listWorkflowRunSteps(run.id);
|
|
378
|
+
const failedStep = persistedSteps.find((step) => step.status === "failed");
|
|
379
|
+
if (activeState.cancelRequested || result.cancelled) {
|
|
380
|
+
await markQueuedSteps(run.id, result.lastStepIndex, "cancelled");
|
|
381
|
+
return await finalizeRun(run, {
|
|
382
|
+
currentStep: null,
|
|
383
|
+
currentStepIndex: null,
|
|
384
|
+
eventType: "run.cancelled",
|
|
385
|
+
status: "cancelled",
|
|
386
|
+
summary: "Workflow run cancelled.",
|
|
387
|
+
});
|
|
388
|
+
}
|
|
389
|
+
if (failedStep || result.exitCode !== 0) {
|
|
390
|
+
await markQueuedSteps(run.id, failedStep ? failedStep.index : result.lastStepIndex, "skipped");
|
|
391
|
+
return await finalizeRun(run, {
|
|
392
|
+
currentStep: null,
|
|
393
|
+
currentStepIndex: null,
|
|
394
|
+
eventType: "run.failed",
|
|
395
|
+
status: "failed",
|
|
396
|
+
summary: failedStep
|
|
397
|
+
? `Workflow run failed in step ${failedStep.name}.`
|
|
398
|
+
: `Workflow run failed in step ${text(result.lastStepName, "unknown")}.`,
|
|
399
|
+
});
|
|
424
400
|
}
|
|
425
401
|
return await finalizeRun(run, {
|
|
402
|
+
currentStep: null,
|
|
403
|
+
currentStepIndex: null,
|
|
426
404
|
eventType: "run.finished",
|
|
427
405
|
status: "success",
|
|
428
406
|
summary: "Workflow run completed successfully.",
|
|
429
407
|
});
|
|
430
408
|
}
|
|
431
409
|
catch (error) {
|
|
432
|
-
await markQueuedSteps(run.id, -1, "skipped");
|
|
410
|
+
await markQueuedSteps(run.id, -1, activeState.cancelRequested ? "cancelled" : "skipped");
|
|
433
411
|
return await finalizeRun(run, {
|
|
412
|
+
currentStep: null,
|
|
413
|
+
currentStepIndex: null,
|
|
434
414
|
eventType: activeState.cancelRequested ? "run.cancelled" : "run.failed",
|
|
435
415
|
status: activeState.cancelRequested ? "cancelled" : "failed",
|
|
436
416
|
summary: activeState.cancelRequested
|
|
@@ -439,8 +419,6 @@ function createGitForgeActionsRuntime(options) {
|
|
|
439
419
|
});
|
|
440
420
|
}
|
|
441
421
|
finally {
|
|
442
|
-
if (activeState.heartbeat)
|
|
443
|
-
clearInterval(activeState.heartbeat);
|
|
444
422
|
if (activeState.child && !activeState.child.killed) {
|
|
445
423
|
try {
|
|
446
424
|
activeState.child.kill("SIGKILL");
|
|
@@ -469,66 +447,22 @@ function createGitForgeActionsRuntime(options) {
|
|
|
469
447
|
processing = false;
|
|
470
448
|
}
|
|
471
449
|
}
|
|
472
|
-
async function
|
|
473
|
-
const target = await resolveRunTarget(repositoryId,
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
branch: target.branch,
|
|
478
|
-
commit_hash: target.commitHash,
|
|
479
|
-
created_at: createdAt,
|
|
480
|
-
created_by: createdBy,
|
|
481
|
-
current_step: null,
|
|
482
|
-
current_step_index: null,
|
|
483
|
-
finished_at: null,
|
|
484
|
-
id: randomUUID(),
|
|
485
|
-
ref: target.ref,
|
|
486
|
-
release_id: input.releaseId == null ? null : text(input.releaseId),
|
|
487
|
-
repository_id: repositoryId,
|
|
488
|
-
runner: null,
|
|
489
|
-
started_at: null,
|
|
490
|
-
status: "queued",
|
|
491
|
-
summary: "Workflow run queued.",
|
|
492
|
-
trigger_context: input.triggerContext,
|
|
493
|
-
trigger_kind: input.triggerKind,
|
|
494
|
-
workflow_id: workflow.id,
|
|
450
|
+
async function enqueueWorkflowsForTrigger(repositoryId, triggerKind, actor, context) {
|
|
451
|
+
const target = await resolveRunTarget(repositoryId, {
|
|
452
|
+
branch: text(context.branch),
|
|
453
|
+
commitHash: text(context.commit_hash, text(context.head_commit)),
|
|
454
|
+
ref: text(context.ref, text(context.tag_name, text(context.branch, "HEAD"))),
|
|
495
455
|
});
|
|
496
|
-
await
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
id: randomUUID(),
|
|
502
|
-
index,
|
|
503
|
-
kind: "shell",
|
|
504
|
-
metadata: step.env ? { env: step.env, shell: text(step.shell) } : (text(step.shell) ? { shell: text(step.shell) } : undefined),
|
|
505
|
-
name: text(step.name, `Step ${index + 1}`),
|
|
506
|
-
output_preview: "",
|
|
507
|
-
run_id: run.id,
|
|
508
|
-
started_at: null,
|
|
509
|
-
status: "queued",
|
|
510
|
-
});
|
|
511
|
-
}));
|
|
512
|
-
await emitRunEvent(run, {
|
|
513
|
-
metadata: {
|
|
514
|
-
branch: run.branch,
|
|
515
|
-
ref: run.ref,
|
|
456
|
+
const workflowRoot = await resolveRepositoryWorkflowRoot(options.actions, repositoryId);
|
|
457
|
+
const workflows = await listRepositoryWorkflows({
|
|
458
|
+
filters: {
|
|
459
|
+
enabled: true,
|
|
460
|
+
trigger: triggerKind,
|
|
516
461
|
},
|
|
517
|
-
|
|
518
|
-
summary: run.summary,
|
|
519
|
-
type: "run.accepted",
|
|
520
|
-
});
|
|
521
|
-
queuedRuns.push({
|
|
462
|
+
ref: target.ref,
|
|
522
463
|
repositoryId,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
scheduleQueueProcessing();
|
|
526
|
-
return run;
|
|
527
|
-
}
|
|
528
|
-
async function enqueueWorkflowsForTrigger(repositoryId, triggerKind, actor, context) {
|
|
529
|
-
const workflows = await storage.listWorkflows(repositoryId, {
|
|
530
|
-
enabled: true,
|
|
531
|
-
trigger: triggerKind,
|
|
464
|
+
repositoryPath: target.repositoryPath,
|
|
465
|
+
workflowRoot,
|
|
532
466
|
});
|
|
533
467
|
const createdRuns = [];
|
|
534
468
|
for (const workflow of workflows) {
|
|
@@ -536,9 +470,9 @@ function createGitForgeActionsRuntime(options) {
|
|
|
536
470
|
continue;
|
|
537
471
|
createdRuns.push(await queueWorkflowRun(repositoryId, workflow, {
|
|
538
472
|
actor,
|
|
539
|
-
branch:
|
|
540
|
-
commitHash:
|
|
541
|
-
ref:
|
|
473
|
+
branch: target.branch || undefined,
|
|
474
|
+
commitHash: target.commitHash,
|
|
475
|
+
ref: target.ref,
|
|
542
476
|
releaseId: text(context.release_id) || null,
|
|
543
477
|
triggerContext: context,
|
|
544
478
|
triggerKind,
|
|
@@ -600,66 +534,28 @@ function createGitForgeActionsRuntime(options) {
|
|
|
600
534
|
}
|
|
601
535
|
return {
|
|
602
536
|
bindActivityStorage,
|
|
603
|
-
async createWorkflow(repositoryId, input) {
|
|
604
|
-
const workflow = await storage.createWorkflow({
|
|
605
|
-
created_at: nowIso(),
|
|
606
|
-
created_by: text(input.actor.id),
|
|
607
|
-
enabled: input.enabled !== false,
|
|
608
|
-
env: normalizeEnv(input.env),
|
|
609
|
-
id: randomUUID(),
|
|
610
|
-
name: text(input.name),
|
|
611
|
-
repository_id: repositoryId,
|
|
612
|
-
slug: text(input.slug, slugify(input.name)),
|
|
613
|
-
source: input.source ? {
|
|
614
|
-
branches: Array.isArray(input.source.branches) ? input.source.branches.map((entry) => text(entry)).filter(Boolean) : undefined,
|
|
615
|
-
env: normalizeEnv(input.source.env),
|
|
616
|
-
tags: Array.isArray(input.source.tags) ? input.source.tags.map((entry) => text(entry)).filter(Boolean) : undefined,
|
|
617
|
-
} : undefined,
|
|
618
|
-
steps: normalizeSteps(input.steps),
|
|
619
|
-
trigger: text(input.trigger),
|
|
620
|
-
updated_at: nowIso(),
|
|
621
|
-
updated_by: text(input.actor.id),
|
|
622
|
-
});
|
|
623
|
-
return workflow;
|
|
624
|
-
},
|
|
625
|
-
async updateWorkflow(repositoryId, workflowId, input) {
|
|
626
|
-
const current = await readRequiredWorkflow(repositoryId, workflowId);
|
|
627
|
-
const updated = await storage.updateWorkflow(repositoryId, workflowId, {
|
|
628
|
-
...(input.enabled != null ? { enabled: input.enabled === true } : {}),
|
|
629
|
-
...(input.env !== undefined ? { env: normalizeEnv(input.env) } : {}),
|
|
630
|
-
...(input.name !== undefined ? { name: text(input.name) } : {}),
|
|
631
|
-
...(input.slug !== undefined ? { slug: text(input.slug, current.slug) } : {}),
|
|
632
|
-
...(input.source !== undefined ? {
|
|
633
|
-
source: {
|
|
634
|
-
branches: Array.isArray(input.source?.branches) ? input.source?.branches.map((entry) => text(entry)).filter(Boolean) : undefined,
|
|
635
|
-
env: normalizeEnv(input.source?.env),
|
|
636
|
-
tags: Array.isArray(input.source?.tags) ? input.source?.tags.map((entry) => text(entry)).filter(Boolean) : undefined,
|
|
637
|
-
},
|
|
638
|
-
} : {}),
|
|
639
|
-
...(input.steps !== undefined ? { steps: normalizeSteps(input.steps) } : {}),
|
|
640
|
-
...(input.trigger !== undefined ? { trigger: text(input.trigger) } : {}),
|
|
641
|
-
updated_at: nowIso(),
|
|
642
|
-
updated_by: text(input.actor.id),
|
|
643
|
-
});
|
|
644
|
-
if (!updated) {
|
|
645
|
-
throw new GitHostError("forge_resource_not_found", `Workflow "${workflowId}" was not found.`, {
|
|
646
|
-
repositoryId,
|
|
647
|
-
workflowId,
|
|
648
|
-
});
|
|
649
|
-
}
|
|
650
|
-
return updated;
|
|
651
|
-
},
|
|
652
537
|
async listWorkflows(repositoryId, filters) {
|
|
653
|
-
const
|
|
654
|
-
|
|
538
|
+
const repositoryPath = await readRepositoryPath(repositoryId);
|
|
539
|
+
const workflowRoot = await resolveRepositoryWorkflowRoot(options.actions, repositoryId);
|
|
540
|
+
return await listRepositoryWorkflows({
|
|
541
|
+
filters,
|
|
542
|
+
repositoryId,
|
|
543
|
+
repositoryPath,
|
|
544
|
+
workflowRoot,
|
|
545
|
+
});
|
|
655
546
|
},
|
|
656
547
|
async readWorkflow(repositoryId, workflowId) {
|
|
657
|
-
|
|
548
|
+
const repositoryPath = await readRepositoryPath(repositoryId);
|
|
549
|
+
return await readWorkflowAtRef(repositoryId, repositoryPath, undefined, workflowId);
|
|
658
550
|
},
|
|
659
551
|
async runWorkflow(repositoryId, workflowId, input) {
|
|
660
|
-
const
|
|
552
|
+
const target = await resolveRunTarget(repositoryId, input);
|
|
553
|
+
const workflow = await readWorkflowAtRef(repositoryId, target.repositoryPath, target.ref, workflowId);
|
|
661
554
|
return await queueWorkflowRun(repositoryId, workflow, {
|
|
662
555
|
...input,
|
|
556
|
+
branch: target.branch || undefined,
|
|
557
|
+
commitHash: target.commitHash,
|
|
558
|
+
ref: target.ref,
|
|
663
559
|
triggerKind: "manual",
|
|
664
560
|
});
|
|
665
561
|
},
|
|
@@ -707,8 +603,7 @@ function createGitForgeActionsRuntime(options) {
|
|
|
707
603
|
return await storage.listWorkflowRunEvents(runId, filters);
|
|
708
604
|
},
|
|
709
605
|
subscribeWorkflowRun(repositoryId, runId, listener) {
|
|
710
|
-
|
|
711
|
-
void key;
|
|
606
|
+
void repositoryId;
|
|
712
607
|
let listeners = runListeners.get(runId);
|
|
713
608
|
if (!listeners) {
|
|
714
609
|
listeners = new Set();
|