agor-live 0.22.0 → 0.23.1
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/dist/cli/commands/admin/add-to-branch-group.d.ts +2 -13
- package/dist/cli/commands/admin/add-to-branch-group.d.ts.map +1 -1
- package/dist/cli/commands/admin/add-to-branch-group.js +133 -33
- package/dist/cli/commands/admin/create-branch-group.d.ts +2 -13
- package/dist/cli/commands/admin/create-branch-group.d.ts.map +1 -1
- package/dist/cli/commands/admin/create-branch-group.js +132 -38
- package/dist/cli/commands/admin/create-symlink.d.ts +2 -14
- package/dist/cli/commands/admin/create-symlink.d.ts.map +1 -1
- package/dist/cli/commands/admin/create-symlink.js +138 -61
- package/dist/cli/commands/admin/delete-branch-group.d.ts +2 -13
- package/dist/cli/commands/admin/delete-branch-group.d.ts.map +1 -1
- package/dist/cli/commands/admin/delete-branch-group.js +132 -28
- package/dist/cli/commands/admin/delete-user.d.ts +2 -13
- package/dist/cli/commands/admin/delete-user.d.ts.map +1 -1
- package/dist/cli/commands/admin/delete-user.js +132 -38
- package/dist/cli/commands/admin/ensure-user.d.ts +2 -14
- package/dist/cli/commands/admin/ensure-user.d.ts.map +1 -1
- package/dist/cli/commands/admin/ensure-user.js +131 -46
- package/dist/cli/commands/admin/remove-from-branch-group.d.ts +2 -13
- package/dist/cli/commands/admin/remove-from-branch-group.d.ts.map +1 -1
- package/dist/cli/commands/admin/remove-from-branch-group.js +133 -33
- package/dist/cli/commands/admin/remove-symlink.d.ts +2 -14
- package/dist/cli/commands/admin/remove-symlink.d.ts.map +1 -1
- package/dist/cli/commands/admin/remove-symlink.js +136 -49
- package/dist/cli/commands/admin/scrub-git-remotes.d.ts +2 -2
- package/dist/cli/commands/admin/scrub-git-remotes.d.ts.map +1 -1
- package/dist/cli/commands/admin/scrub-git-remotes.js +128 -86
- package/dist/cli/commands/admin/sync-user-symlinks.d.ts +2 -14
- package/dist/cli/commands/admin/sync-user-symlinks.d.ts.map +1 -1
- package/dist/cli/commands/admin/sync-user-symlinks.js +132 -43
- package/dist/cli/commands/auth/whoami.d.ts.map +1 -1
- package/dist/cli/commands/auth/whoami.js +2 -1
- package/dist/cli/commands/branch/env/request.test.d.ts +2 -0
- package/dist/cli/commands/branch/env/request.test.d.ts.map +1 -0
- package/dist/cli/commands/branch/env/request.test.js +17723 -0
- package/dist/cli/commands/branch/env/restart.d.ts.map +1 -1
- package/dist/cli/commands/branch/env/restart.js +7 -1
- package/dist/cli/commands/branch/env/start.d.ts.map +1 -1
- package/dist/cli/commands/branch/env/start.js +7 -1
- package/dist/cli/commands/branch/env/stop.d.ts.map +1 -1
- package/dist/cli/commands/branch/env/stop.js +7 -1
- package/dist/cli/commands/daemon/status.d.ts.map +1 -1
- package/dist/cli/commands/daemon/status.js +2 -1
- package/dist/cli/commands/init.d.ts +6 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +140 -2
- package/dist/cli/commands/local/add-to-branch-group.d.ts +13 -0
- package/dist/cli/commands/local/add-to-branch-group.d.ts.map +1 -0
- package/dist/cli/commands/local/add-to-branch-group.js +37 -0
- package/dist/cli/commands/local/create-branch-group.d.ts +12 -0
- package/dist/cli/commands/local/create-branch-group.d.ts.map +1 -0
- package/dist/cli/commands/local/create-branch-group.js +35 -0
- package/dist/cli/commands/local/create-symlink.d.ts +14 -0
- package/dist/cli/commands/local/create-symlink.d.ts.map +1 -0
- package/dist/cli/commands/local/create-symlink.js +45 -0
- package/dist/cli/commands/{daemon → local/daemon}/sync.d.ts +1 -1
- package/dist/cli/commands/local/daemon/sync.d.ts.map +1 -0
- package/dist/cli/commands/{daemon → local/daemon}/sync.js +7 -6
- package/dist/cli/commands/local/delete-branch-group.d.ts +12 -0
- package/dist/cli/commands/local/delete-branch-group.d.ts.map +1 -0
- package/dist/cli/commands/local/delete-branch-group.js +35 -0
- package/dist/cli/commands/local/delete-user.d.ts +12 -0
- package/dist/cli/commands/local/delete-user.d.ts.map +1 -0
- package/dist/cli/commands/local/delete-user.js +36 -0
- package/dist/cli/commands/local/ensure-user.d.ts +12 -0
- package/dist/cli/commands/local/ensure-user.d.ts.map +1 -0
- package/dist/cli/commands/local/ensure-user.js +41 -0
- package/dist/cli/commands/local/remove-from-branch-group.d.ts +13 -0
- package/dist/cli/commands/local/remove-from-branch-group.d.ts.map +1 -0
- package/dist/cli/commands/local/remove-from-branch-group.js +37 -0
- package/dist/cli/commands/local/remove-symlink.d.ts +13 -0
- package/dist/cli/commands/local/remove-symlink.d.ts.map +1 -0
- package/dist/cli/commands/local/remove-symlink.js +39 -0
- package/dist/cli/commands/local/scrub-git-remotes.d.ts +9 -0
- package/dist/cli/commands/local/scrub-git-remotes.d.ts.map +1 -0
- package/dist/cli/commands/local/scrub-git-remotes.js +23 -0
- package/dist/cli/commands/{admin → local}/sync-unix.d.ts.map +1 -1
- package/dist/cli/commands/{admin → local}/sync-unix.js +3 -3
- package/dist/cli/commands/local/sync-user-symlinks.d.ts +12 -0
- package/dist/cli/commands/local/sync-user-symlinks.d.ts.map +1 -0
- package/dist/cli/commands/local/sync-user-symlinks.js +37 -0
- package/dist/cli/commands/telemetry/index.d.ts +7 -0
- package/dist/cli/commands/telemetry/index.d.ts.map +1 -0
- package/dist/cli/commands/telemetry/index.js +40 -0
- package/dist/cli/commands/telemetry/off.d.ts +6 -0
- package/dist/cli/commands/telemetry/off.d.ts.map +1 -0
- package/dist/cli/commands/telemetry/off.js +35 -0
- package/dist/cli/commands/telemetry/on.d.ts +6 -0
- package/dist/cli/commands/telemetry/on.d.ts.map +1 -0
- package/dist/cli/commands/telemetry/on.js +37 -0
- package/dist/cli/commands/telemetry/test.d.ts +6 -0
- package/dist/cli/commands/telemetry/test.d.ts.map +1 -0
- package/dist/cli/commands/telemetry/test.js +56 -0
- package/dist/cli/commands/user/create-admin.d.ts.map +1 -1
- package/dist/cli/commands/user/create-admin.js +81 -72
- package/dist/cli/commands/user/list.d.ts.map +1 -1
- package/dist/cli/commands/user/list.js +1 -0
- package/dist/cli/commands/whoami.js +2 -1
- package/dist/cli/lib/branch-environment-action.d.ts +21 -0
- package/dist/cli/lib/branch-environment-action.d.ts.map +1 -0
- package/dist/cli/lib/branch-environment-action.js +8 -0
- package/dist/core/api/index.cjs +7 -2
- package/dist/core/api/index.d.ts +13 -4
- package/dist/core/api/index.d.ts.map +1 -1
- package/dist/core/api/index.js +7 -2
- package/dist/core/claude/index.cjs +482 -77
- package/dist/core/claude/index.js +479 -76
- package/dist/core/claude-cli/index.cjs +11 -0
- package/dist/core/claude-cli/index.js +11 -0
- package/dist/core/claude-cli/pricing.d.ts.map +1 -1
- package/dist/core/client/index.cjs +35 -7
- package/dist/core/client/index.js +32 -7
- package/dist/core/config/browser.cjs +3 -5
- package/dist/core/config/browser.js +3 -5
- package/dist/core/config/config-manager.d.ts +33 -13
- package/dist/core/config/config-manager.d.ts.map +1 -1
- package/dist/core/config/index.cjs +4259 -4527
- package/dist/core/config/index.d.ts +1 -0
- package/dist/core/config/index.d.ts.map +1 -1
- package/dist/core/config/index.js +4295 -4583
- package/dist/core/config/key-resolver.d.ts.map +1 -1
- package/dist/core/config/multitenancy.d.ts +33 -0
- package/dist/core/config/multitenancy.d.ts.map +1 -0
- package/dist/core/config/security-resolver.d.ts +1 -0
- package/dist/core/config/security-resolver.d.ts.map +1 -1
- package/dist/core/config/types.d.ts +67 -4
- package/dist/core/config/types.d.ts.map +1 -1
- package/dist/core/db/client.d.ts +34 -2
- package/dist/core/db/client.d.ts.map +1 -1
- package/dist/core/db/database-wrapper.d.ts.map +1 -1
- package/dist/core/db/first-run-bootstrap.d.ts.map +1 -1
- package/dist/core/db/index.cjs +2422 -1084
- package/dist/core/db/index.d.ts +2 -1
- package/dist/core/db/index.d.ts.map +1 -1
- package/dist/core/db/index.js +2162 -852
- package/dist/core/db/migrate.d.ts.map +1 -1
- package/dist/core/db/repositories/artifacts.d.ts +27 -2
- package/dist/core/db/repositories/artifacts.d.ts.map +1 -1
- package/dist/core/db/repositories/base.d.ts +18 -0
- package/dist/core/db/repositories/base.d.ts.map +1 -1
- package/dist/core/db/repositories/board-comments.d.ts +17 -1
- package/dist/core/db/repositories/board-comments.d.ts.map +1 -1
- package/dist/core/db/repositories/board-objects.d.ts.map +1 -1
- package/dist/core/db/repositories/boards.d.ts +28 -4
- package/dist/core/db/repositories/boards.d.ts.map +1 -1
- package/dist/core/db/repositories/branch-access.d.ts +32 -0
- package/dist/core/db/repositories/branch-access.d.ts.map +1 -1
- package/dist/core/db/repositories/branches.d.ts +41 -1
- package/dist/core/db/repositories/branches.d.ts.map +1 -1
- package/dist/core/db/repositories/cards.d.ts +15 -1
- package/dist/core/db/repositories/cards.d.ts.map +1 -1
- package/dist/core/db/repositories/gateway-channels.d.ts.map +1 -1
- package/dist/core/db/repositories/gateway-outbound-messages.d.ts +19 -0
- package/dist/core/db/repositories/gateway-outbound-messages.d.ts.map +1 -0
- package/dist/core/db/repositories/index.d.ts +2 -0
- package/dist/core/db/repositories/index.d.ts.map +1 -1
- package/dist/core/db/repositories/messages.d.ts +9 -2
- package/dist/core/db/repositories/messages.d.ts.map +1 -1
- package/dist/core/db/repositories/repos.d.ts.map +1 -1
- package/dist/core/db/repositories/schedules.d.ts +12 -1
- package/dist/core/db/repositories/schedules.d.ts.map +1 -1
- package/dist/core/db/repositories/sessions.d.ts +49 -5
- package/dist/core/db/repositories/sessions.d.ts.map +1 -1
- package/dist/core/db/repositories/tasks.d.ts +7 -2
- package/dist/core/db/repositories/tasks.d.ts.map +1 -1
- package/dist/core/db/repositories/user-api-keys.d.ts +10 -1
- package/dist/core/db/repositories/user-api-keys.d.ts.map +1 -1
- package/dist/core/db/repositories/users.d.ts +8 -8
- package/dist/core/db/repositories/users.d.ts.map +1 -1
- package/dist/core/db/schema.d.ts +1460 -38
- package/dist/core/db/schema.d.ts.map +1 -1
- package/dist/core/db/schema.postgres.d.ts +1082 -37
- package/dist/core/db/schema.postgres.d.ts.map +1 -1
- package/dist/core/db/schema.sqlite.d.ts +397 -1
- package/dist/core/db/schema.sqlite.d.ts.map +1 -1
- package/dist/core/db/tenant-context.d.ts +26 -0
- package/dist/core/db/tenant-context.d.ts.map +1 -0
- package/dist/core/db/tenant-scope.d.ts +31 -0
- package/dist/core/db/tenant-scope.d.ts.map +1 -0
- package/dist/core/db/user-utils.d.ts +2 -2
- package/dist/core/db/user-utils.d.ts.map +1 -1
- package/dist/core/drizzle/postgres/0052_gateway_outbound_messages.sql +45 -0
- package/dist/core/drizzle/postgres/0053_user_token_invalidation.sql +1 -0
- package/dist/core/drizzle/postgres/0054_app_level_multitenancy.sql +219 -0
- package/dist/core/drizzle/postgres/0055_app_level_multitenancy_rls.sql +411 -0
- package/dist/core/drizzle/postgres/0056_composite_indexes.sql +15 -0
- package/dist/core/drizzle/postgres/0057_message_timestamp_indexes.sql +3 -0
- package/dist/core/drizzle/postgres/meta/_journal.json +42 -0
- package/dist/core/drizzle/sqlite/0061_gateway_outbound_messages.sql +38 -0
- package/dist/core/drizzle/sqlite/0062_user_token_invalidation.sql +1 -0
- package/dist/core/drizzle/sqlite/0063_composite_indexes.sql +10 -0
- package/dist/core/drizzle/sqlite/0064_message_timestamp_indexes.sql +2 -0
- package/dist/core/drizzle/sqlite/meta/_journal.json +28 -0
- package/dist/core/environment/render-snapshot.cjs +1 -4
- package/dist/core/environment/render-snapshot.js +1 -4
- package/dist/core/environment/webhook.cjs +1 -4
- package/dist/core/environment/webhook.js +1 -4
- package/dist/core/gateway/connector.d.ts +10 -1
- package/dist/core/gateway/connector.d.ts.map +1 -1
- package/dist/core/gateway/connectors/slack-manifest.cjs +108 -0
- package/dist/core/gateway/connectors/slack-manifest.d.ts +85 -0
- package/dist/core/gateway/connectors/slack-manifest.d.ts.map +1 -0
- package/dist/core/gateway/connectors/slack-manifest.js +81 -0
- package/dist/core/gateway/connectors/slack.d.ts +101 -4
- package/dist/core/gateway/connectors/slack.d.ts.map +1 -1
- package/dist/core/gateway/index.cjs +495 -29
- package/dist/core/gateway/index.d.ts +4 -1
- package/dist/core/gateway/index.d.ts.map +1 -1
- package/dist/core/gateway/index.js +490 -28
- package/dist/core/gateway/system-message.d.ts.map +1 -1
- package/dist/core/git/exec.cjs +24 -0
- package/dist/core/git/exec.d.ts +6 -4
- package/dist/core/git/exec.d.ts.map +1 -1
- package/dist/core/git/exec.js +2 -0
- package/dist/core/git/index.cjs +3 -1363
- package/dist/core/git/index.d.ts +4 -614
- package/dist/core/git/index.d.ts.map +1 -1
- package/dist/core/git/index.js +1 -1304
- package/dist/core/git/pure.cjs +24 -0
- package/dist/core/git/pure.d.ts +2 -27
- package/dist/core/git/pure.d.ts.map +1 -1
- package/dist/core/git/pure.js +2 -0
- package/dist/core/index.cjs +11137 -10604
- package/dist/core/index.d.ts +2 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +11673 -10630
- package/dist/core/lib/feathers-validation.cjs +6 -1
- package/dist/core/lib/feathers-validation.d.ts +1 -0
- package/dist/core/lib/feathers-validation.d.ts.map +1 -1
- package/dist/core/lib/feathers-validation.js +6 -1
- package/dist/core/local-actions/git-remotes.d.ts +7 -0
- package/dist/core/local-actions/git-remotes.d.ts.map +1 -0
- package/dist/core/local-actions/index.cjs +7941 -0
- package/dist/core/local-actions/index.d.ts +6 -0
- package/dist/core/local-actions/index.d.ts.map +1 -0
- package/dist/core/local-actions/index.js +7943 -0
- package/dist/core/local-actions/symlinks.d.ts +20 -0
- package/dist/core/local-actions/symlinks.d.ts.map +1 -0
- package/dist/core/local-actions/types.d.ts +14 -0
- package/dist/core/local-actions/types.d.ts.map +1 -0
- package/dist/core/local-actions/unix-groups.d.ts +16 -0
- package/dist/core/local-actions/unix-groups.d.ts.map +1 -0
- package/dist/core/local-actions/unix-users.d.ts +12 -0
- package/dist/core/local-actions/unix-users.d.ts.map +1 -0
- package/dist/core/mcp/index.cjs +352 -25
- package/dist/core/mcp/index.js +351 -24
- package/dist/core/models/browser.cjs +148 -25
- package/dist/core/models/browser.js +144 -25
- package/dist/core/models/claude.d.ts +2 -2
- package/dist/core/models/claude.d.ts.map +1 -1
- package/dist/core/models/codex.d.ts +205 -21
- package/dist/core/models/codex.d.ts.map +1 -1
- package/dist/core/models/index.cjs +148 -25
- package/dist/core/models/index.js +144 -25
- package/dist/core/package.json +24 -0
- package/dist/core/seed/demo-fixtures.d.ts +87 -0
- package/dist/core/seed/demo-fixtures.d.ts.map +1 -0
- package/dist/core/seed/dev-fixtures.d.ts.map +1 -1
- package/dist/core/seed/index.cjs +8410 -5504
- package/dist/core/seed/index.d.ts +1 -0
- package/dist/core/seed/index.d.ts.map +1 -1
- package/dist/core/seed/index.js +8434 -5533
- package/dist/core/sessions/index.cjs +110 -24
- package/dist/core/sessions/index.js +110 -24
- package/dist/core/telemetry/index.cjs +361 -0
- package/dist/core/telemetry/index.d.ts +5 -0
- package/dist/core/telemetry/index.d.ts.map +1 -0
- package/dist/core/telemetry/index.js +315 -0
- package/dist/core/telemetry/logger.d.ts +44 -0
- package/dist/core/telemetry/logger.d.ts.map +1 -0
- package/dist/core/telemetry/model-normalization.d.ts +3 -0
- package/dist/core/telemetry/model-normalization.d.ts.map +1 -0
- package/dist/core/telemetry/types.d.ts +47 -0
- package/dist/core/telemetry/types.d.ts.map +1 -0
- package/dist/core/telemetry/version.d.ts +9 -0
- package/dist/core/telemetry/version.d.ts.map +1 -0
- package/dist/core/templates/agor-system-prompt.md +1 -0
- package/dist/core/tools/mcp/oauth-refresh.cjs +532 -102
- package/dist/core/tools/mcp/oauth-refresh.js +530 -103
- package/dist/core/types/board.d.ts +2 -0
- package/dist/core/types/board.d.ts.map +1 -1
- package/dist/core/types/branch.d.ts +13 -0
- package/dist/core/types/branch.d.ts.map +1 -1
- package/dist/core/types/config-services.d.ts.map +1 -1
- package/dist/core/types/feathers.d.ts +6 -0
- package/dist/core/types/feathers.d.ts.map +1 -1
- package/dist/core/types/gateway.d.ts +76 -1
- package/dist/core/types/gateway.d.ts.map +1 -1
- package/dist/core/types/index.cjs +25 -0
- package/dist/core/types/index.d.ts +1 -0
- package/dist/core/types/index.d.ts.map +1 -1
- package/dist/core/types/index.js +22 -0
- package/dist/core/types/schedule.d.ts +4 -3
- package/dist/core/types/schedule.d.ts.map +1 -1
- package/dist/core/types/session.d.ts +7 -1
- package/dist/core/types/session.d.ts.map +1 -1
- package/dist/core/types/tenant.d.ts +15 -0
- package/dist/core/types/tenant.d.ts.map +1 -0
- package/dist/core/types/user.d.ts +61 -0
- package/dist/core/types/user.d.ts.map +1 -1
- package/dist/core/unix/index.cjs +1056 -674
- package/dist/core/unix/index.js +1003 -623
- package/dist/core/utils/emoji-shortcodes.d.ts +13 -0
- package/dist/core/utils/emoji-shortcodes.d.ts.map +1 -0
- package/dist/core/yaml/index.cjs +8 -8
- package/dist/core/yaml/index.d.ts +1 -1
- package/dist/core/yaml/index.d.ts.map +1 -1
- package/dist/core/yaml/index.js +7 -7
- package/dist/daemon/adapters/drizzle.d.ts +26 -4
- package/dist/daemon/adapters/drizzle.d.ts.map +1 -1
- package/dist/daemon/adapters/drizzle.js +68 -7
- package/dist/daemon/auth/api-key-strategy.js +1 -1
- package/dist/daemon/auth/executor-runtime-scope.d.ts.map +1 -1
- package/dist/daemon/auth/executor-runtime-scope.js +19 -5
- package/dist/daemon/auth/launch-auth.d.ts +5 -4
- package/dist/daemon/auth/launch-auth.d.ts.map +1 -1
- package/dist/daemon/auth/launch-auth.js +123 -39
- package/dist/daemon/auth/refresh-token-service.d.ts +22 -0
- package/dist/daemon/auth/refresh-token-service.d.ts.map +1 -0
- package/dist/daemon/auth/refresh-token-service.js +133 -0
- package/dist/daemon/auth/runtime-tokens.d.ts +3 -1
- package/dist/daemon/auth/runtime-tokens.d.ts.map +1 -1
- package/dist/daemon/auth/runtime-tokens.js +17 -4
- package/dist/daemon/auth/service-jwt-strategy.d.ts +2 -1
- package/dist/daemon/auth/service-jwt-strategy.d.ts.map +1 -1
- package/dist/daemon/auth/service-jwt-strategy.js +127 -1
- package/dist/daemon/auth/token-invalidation.d.ts +11 -0
- package/dist/daemon/auth/token-invalidation.d.ts.map +1 -0
- package/dist/daemon/auth/token-invalidation.js +38 -0
- package/dist/daemon/auth/user-redaction.d.ts +12 -0
- package/dist/daemon/auth/user-redaction.d.ts.map +1 -0
- package/dist/daemon/auth/user-redaction.js +13 -0
- package/dist/daemon/declarations.d.ts +4 -4
- package/dist/daemon/declarations.d.ts.map +1 -1
- package/dist/daemon/hooks/gateway-route.d.ts.map +1 -1
- package/dist/daemon/hooks/gateway-route.js +23 -13
- package/dist/daemon/index.d.ts.map +1 -1
- package/dist/daemon/index.js +7234 -2866
- package/dist/daemon/knowledge/pgvector.d.ts +3 -3
- package/dist/daemon/knowledge/pgvector.d.ts.map +1 -1
- package/dist/daemon/knowledge/pgvector.js +24 -0
- package/dist/daemon/knowledge/units.d.ts +2 -2
- package/dist/daemon/knowledge/units.d.ts.map +1 -1
- package/dist/daemon/main.js +7234 -2866
- package/dist/daemon/mcp/server.d.ts +3 -3
- package/dist/daemon/mcp/server.d.ts.map +1 -1
- package/dist/daemon/mcp/server.js +1467 -71
- package/dist/daemon/mcp/tokens.d.ts +2 -2
- package/dist/daemon/mcp/tokens.d.ts.map +1 -1
- package/dist/daemon/mcp/tokens.js +5 -1
- package/dist/daemon/mcp/tool-registry.d.ts.map +1 -1
- package/dist/daemon/mcp/tool-registry.js +1 -0
- package/dist/daemon/mcp/tools/analytics.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/analytics.js +548 -23
- package/dist/daemon/mcp/tools/artifacts.js +510 -19
- package/dist/daemon/mcp/tools/boards.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/boards.js +517 -20
- package/dist/daemon/mcp/tools/branches.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/branches.js +574 -49
- package/dist/daemon/mcp/tools/card-types.js +508 -17
- package/dist/daemon/mcp/tools/cards.js +508 -17
- package/dist/daemon/mcp/tools/environment.js +516 -17
- package/dist/daemon/mcp/tools/gateway-channels.d.ts +4 -0
- package/dist/daemon/mcp/tools/gateway-channels.d.ts.map +1 -0
- package/dist/daemon/mcp/tools/gateway-channels.js +16035 -0
- package/dist/daemon/mcp/tools/knowledge.js +508 -17
- package/dist/daemon/mcp/tools/mcp-servers.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/mcp-servers.js +843 -17
- package/dist/daemon/mcp/tools/messages.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/messages.js +568 -31
- package/dist/daemon/mcp/tools/proxies.js +518 -19
- package/dist/daemon/mcp/tools/repos.js +508 -17
- package/dist/daemon/mcp/tools/schedules.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/schedules.js +511 -18
- package/dist/daemon/mcp/tools/search.js +508 -17
- package/dist/daemon/mcp/tools/sessions.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/sessions.js +521 -23
- package/dist/daemon/mcp/tools/tasks.js +508 -17
- package/dist/daemon/mcp/tools/users.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/users.js +527 -22
- package/dist/daemon/mcp/tools/widgets.d.ts.map +1 -1
- package/dist/daemon/mcp/tools/widgets.js +536 -18
- package/dist/daemon/register-hooks.d.ts +3 -2
- package/dist/daemon/register-hooks.d.ts.map +1 -1
- package/dist/daemon/register-hooks.js +894 -582
- package/dist/daemon/register-routes.d.ts +3 -2
- package/dist/daemon/register-routes.d.ts.map +1 -1
- package/dist/daemon/register-routes.js +2715 -816
- package/dist/daemon/register-services.d.ts +2 -2
- package/dist/daemon/register-services.d.ts.map +1 -1
- package/dist/daemon/register-services.js +2445 -633
- package/dist/daemon/services/artifacts.d.ts +34 -6
- package/dist/daemon/services/artifacts.d.ts.map +1 -1
- package/dist/daemon/services/artifacts.js +109 -8
- package/dist/daemon/services/assistant-knowledge.d.ts +2 -2
- package/dist/daemon/services/assistant-knowledge.d.ts.map +1 -1
- package/dist/daemon/services/board-comments.d.ts +8 -5
- package/dist/daemon/services/board-comments.d.ts.map +1 -1
- package/dist/daemon/services/board-comments.js +78 -13
- package/dist/daemon/services/board-objects.d.ts +8 -5
- package/dist/daemon/services/board-objects.d.ts.map +1 -1
- package/dist/daemon/services/board-objects.js +14 -4
- package/dist/daemon/services/boards.d.ts +34 -5
- package/dist/daemon/services/boards.d.ts.map +1 -1
- package/dist/daemon/services/boards.js +116 -8
- package/dist/daemon/services/branch-owners.d.ts +3 -1
- package/dist/daemon/services/branch-owners.d.ts.map +1 -1
- package/dist/daemon/services/branch-owners.js +31 -4
- package/dist/daemon/services/branches.d.ts +31 -8
- package/dist/daemon/services/branches.d.ts.map +1 -1
- package/dist/daemon/services/branches.js +242 -35
- package/dist/daemon/services/card-types.d.ts +3 -3
- package/dist/daemon/services/card-types.d.ts.map +1 -1
- package/dist/daemon/services/card-types.js +68 -7
- package/dist/daemon/services/cards.d.ts +19 -4
- package/dist/daemon/services/cards.d.ts.map +1 -1
- package/dist/daemon/services/cards.js +92 -8
- package/dist/daemon/services/check-auth.d.ts +2 -2
- package/dist/daemon/services/check-auth.d.ts.map +1 -1
- package/dist/daemon/services/claude-cli-integration.d.ts +4 -1
- package/dist/daemon/services/claude-cli-integration.d.ts.map +1 -1
- package/dist/daemon/services/claude-cli-integration.js +117 -65
- package/dist/daemon/services/claude-models.d.ts +3 -3
- package/dist/daemon/services/claude-models.d.ts.map +1 -1
- package/dist/daemon/services/claude-models.js +383 -272
- package/dist/daemon/services/config.d.ts +12 -4
- package/dist/daemon/services/config.d.ts.map +1 -1
- package/dist/daemon/services/config.js +39 -3
- package/dist/daemon/services/copilot-models.d.ts +3 -3
- package/dist/daemon/services/copilot-models.d.ts.map +1 -1
- package/dist/daemon/services/cursor-models.d.ts +3 -3
- package/dist/daemon/services/cursor-models.d.ts.map +1 -1
- package/dist/daemon/services/files.d.ts +3 -3
- package/dist/daemon/services/files.d.ts.map +1 -1
- package/dist/daemon/services/files.js +24 -5
- package/dist/daemon/services/gateway-channels-test.d.ts +24 -0
- package/dist/daemon/services/gateway-channels-test.d.ts.map +1 -0
- package/dist/daemon/services/gateway-channels-test.js +66 -0
- package/dist/daemon/services/gateway-channels.d.ts +3 -3
- package/dist/daemon/services/gateway-channels.d.ts.map +1 -1
- package/dist/daemon/services/gateway-channels.js +68 -7
- package/dist/daemon/services/gateway.d.ts +48 -3
- package/dist/daemon/services/gateway.d.ts.map +1 -1
- package/dist/daemon/services/gateway.js +606 -60
- package/dist/daemon/services/github-app-setup.d.ts +3 -3
- package/dist/daemon/services/github-app-setup.d.ts.map +1 -1
- package/dist/daemon/services/groups.d.ts +5 -5
- package/dist/daemon/services/groups.d.ts.map +1 -1
- package/dist/daemon/services/health-monitor.d.ts +34 -2
- package/dist/daemon/services/health-monitor.d.ts.map +1 -1
- package/dist/daemon/services/health-monitor.js +145 -23
- package/dist/daemon/services/knowledge-document-edits.d.ts +3 -3
- package/dist/daemon/services/knowledge-document-edits.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-documents.d.ts +3 -3
- package/dist/daemon/services/knowledge-documents.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-documents.js +92 -7
- package/dist/daemon/services/knowledge-embedding-indexer.d.ts +7 -2
- package/dist/daemon/services/knowledge-embedding-indexer.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-embedding-indexer.js +37 -3
- package/dist/daemon/services/knowledge-graph.d.ts +3 -3
- package/dist/daemon/services/knowledge-graph.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-indexing.d.ts +3 -3
- package/dist/daemon/services/knowledge-indexing.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-namespaces.d.ts +3 -3
- package/dist/daemon/services/knowledge-namespaces.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-namespaces.js +72 -8
- package/dist/daemon/services/knowledge-reindex.d.ts +3 -3
- package/dist/daemon/services/knowledge-reindex.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-reindex.js +28 -1
- package/dist/daemon/services/knowledge-search.d.ts +3 -3
- package/dist/daemon/services/knowledge-search.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-settings.d.ts +3 -3
- package/dist/daemon/services/knowledge-settings.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-settings.js +24 -0
- package/dist/daemon/services/knowledge-versions.d.ts +3 -3
- package/dist/daemon/services/knowledge-versions.d.ts.map +1 -1
- package/dist/daemon/services/knowledge-versions.js +68 -7
- package/dist/daemon/services/leaderboard.d.ts +14 -6
- package/dist/daemon/services/leaderboard.d.ts.map +1 -1
- package/dist/daemon/services/leaderboard.js +74 -15
- package/dist/daemon/services/local-actions.d.ts +13 -0
- package/dist/daemon/services/local-actions.d.ts.map +1 -0
- package/dist/daemon/services/local-actions.js +120 -0
- package/dist/daemon/services/mcp-servers.d.ts +3 -3
- package/dist/daemon/services/mcp-servers.d.ts.map +1 -1
- package/dist/daemon/services/mcp-servers.js +68 -7
- package/dist/daemon/services/messages.d.ts +10 -6
- package/dist/daemon/services/messages.d.ts.map +1 -1
- package/dist/daemon/services/messages.js +87 -7
- package/dist/daemon/services/repos.d.ts +6 -6
- package/dist/daemon/services/repos.d.ts.map +1 -1
- package/dist/daemon/services/repos.js +131 -32
- package/dist/daemon/services/scheduler.d.ts +23 -27
- package/dist/daemon/services/scheduler.d.ts.map +1 -1
- package/dist/daemon/services/scheduler.js +55 -28
- package/dist/daemon/services/schedules.d.ts +3 -3
- package/dist/daemon/services/schedules.d.ts.map +1 -1
- package/dist/daemon/services/schedules.js +68 -7
- package/dist/daemon/services/session-env-selections.d.ts +3 -3
- package/dist/daemon/services/session-env-selections.d.ts.map +1 -1
- package/dist/daemon/services/session-mcp-servers.d.ts +3 -3
- package/dist/daemon/services/session-mcp-servers.d.ts.map +1 -1
- package/dist/daemon/services/session-token-service.d.ts.map +1 -1
- package/dist/daemon/services/session-token-service.js +3 -0
- package/dist/daemon/services/sessions.d.ts +9 -5
- package/dist/daemon/services/sessions.d.ts.map +1 -1
- package/dist/daemon/services/sessions.js +143 -10
- package/dist/daemon/services/tasks.d.ts +11 -5
- package/dist/daemon/services/tasks.d.ts.map +1 -1
- package/dist/daemon/services/tasks.js +199 -39
- package/dist/daemon/services/terminals.d.ts +21 -3
- package/dist/daemon/services/terminals.d.ts.map +1 -1
- package/dist/daemon/services/terminals.js +81 -25
- package/dist/daemon/services/thread-session-map.d.ts +3 -3
- package/dist/daemon/services/thread-session-map.d.ts.map +1 -1
- package/dist/daemon/services/thread-session-map.js +68 -7
- package/dist/daemon/services/user-avatar-sync.d.ts +21 -0
- package/dist/daemon/services/user-avatar-sync.d.ts.map +1 -0
- package/dist/daemon/services/user-avatar-sync.js +267 -0
- package/dist/daemon/services/users.d.ts +29 -9
- package/dist/daemon/services/users.d.ts.map +1 -1
- package/dist/daemon/services/users.js +383 -30
- package/dist/daemon/services/zone-trigger.d.ts.map +1 -1
- package/dist/daemon/services/zone-trigger.js +17 -4
- package/dist/daemon/setup/build-info.d.ts +1 -1
- package/dist/daemon/setup/build-info.d.ts.map +1 -1
- package/dist/daemon/setup/build-info.js +5 -1
- package/dist/daemon/setup/database.d.ts +8 -3
- package/dist/daemon/setup/database.d.ts.map +1 -1
- package/dist/daemon/setup/database.js +26 -6
- package/dist/daemon/setup/first-run-admin.d.ts +2 -2
- package/dist/daemon/setup/first-run-admin.d.ts.map +1 -1
- package/dist/daemon/setup/index.js +97 -17
- package/dist/daemon/setup/socketio.d.ts +10 -1
- package/dist/daemon/setup/socketio.d.ts.map +1 -1
- package/dist/daemon/setup/socketio.js +68 -10
- package/dist/daemon/startup.d.ts +13 -2
- package/dist/daemon/startup.d.ts.map +1 -1
- package/dist/daemon/startup.js +348 -86
- package/dist/daemon/utils/append-system-message.d.ts +2 -2
- package/dist/daemon/utils/append-system-message.d.ts.map +1 -1
- package/dist/daemon/utils/apply-session-config-defaults.d.ts.map +1 -1
- package/dist/daemon/utils/apply-session-config-defaults.js +12 -1
- package/dist/daemon/utils/authorization.d.ts +3 -1
- package/dist/daemon/utils/authorization.d.ts.map +1 -1
- package/dist/daemon/utils/authorization.js +21 -6
- package/dist/daemon/utils/branch-authorization.d.ts +30 -0
- package/dist/daemon/utils/branch-authorization.d.ts.map +1 -1
- package/dist/daemon/utils/branch-authorization.js +63 -5
- package/dist/daemon/utils/branch-inspect.d.ts +1 -0
- package/dist/daemon/utils/branch-inspect.d.ts.map +1 -1
- package/dist/daemon/utils/branch-inspect.js +11 -3
- package/dist/daemon/utils/executor-read-impersonation.d.ts +2 -2
- package/dist/daemon/utils/executor-read-impersonation.d.ts.map +1 -1
- package/dist/daemon/utils/git-impersonation.d.ts +10 -10
- package/dist/daemon/utils/git-impersonation.d.ts.map +1 -1
- package/dist/daemon/utils/git-remote-credential-scan.d.ts +3 -3
- package/dist/daemon/utils/git-remote-credential-scan.d.ts.map +1 -1
- package/dist/daemon/utils/git-remote-credential-scan.js +6 -2
- package/dist/daemon/utils/mcp-token-authorization.d.ts +18 -13
- package/dist/daemon/utils/mcp-token-authorization.d.ts.map +1 -1
- package/dist/daemon/utils/mcp-token-authorization.js +11 -5
- package/dist/daemon/utils/open-source-telemetry-config.d.ts +6 -0
- package/dist/daemon/utils/open-source-telemetry-config.d.ts.map +1 -0
- package/dist/daemon/utils/open-source-telemetry-config.js +21 -0
- package/dist/daemon/utils/open-source-telemetry-heartbeat.d.ts +7 -0
- package/dist/daemon/utils/open-source-telemetry-heartbeat.d.ts.map +1 -0
- package/dist/daemon/utils/open-source-telemetry-heartbeat.js +15 -0
- package/dist/daemon/utils/open-source-telemetry-usage.d.ts +9 -0
- package/dist/daemon/utils/open-source-telemetry-usage.d.ts.map +1 -0
- package/dist/daemon/utils/open-source-telemetry-usage.js +121 -0
- package/dist/daemon/utils/realign-repo-origin.d.ts +3 -3
- package/dist/daemon/utils/realign-repo-origin.d.ts.map +1 -1
- package/dist/daemon/utils/realign-repo-origin.js +47 -16
- package/dist/daemon/utils/realtime-publish.d.ts +2 -0
- package/dist/daemon/utils/realtime-publish.d.ts.map +1 -1
- package/dist/daemon/utils/realtime-publish.js +51 -10
- package/dist/daemon/utils/session-state-hooks.d.ts +3 -3
- package/dist/daemon/utils/session-state-hooks.d.ts.map +1 -1
- package/dist/daemon/utils/session-turn-lock.d.ts +8 -1
- package/dist/daemon/utils/session-turn-lock.d.ts.map +1 -1
- package/dist/daemon/utils/session-turn-lock.js +25 -2
- package/dist/daemon/utils/spawn-executor.d.ts +23 -1
- package/dist/daemon/utils/spawn-executor.d.ts.map +1 -1
- package/dist/daemon/utils/spawn-executor.js +34 -4
- package/dist/daemon/utils/tenant-db-scope.d.ts +20 -0
- package/dist/daemon/utils/tenant-db-scope.d.ts.map +1 -0
- package/dist/daemon/utils/tenant-db-scope.js +114 -0
- package/dist/daemon/utils/unix-group-init.d.ts +3 -3
- package/dist/daemon/utils/unix-group-init.d.ts.map +1 -1
- package/dist/daemon/utils/upload.d.ts +6 -9
- package/dist/daemon/utils/upload.d.ts.map +1 -1
- package/dist/daemon/utils/upload.js +30 -37
- package/dist/daemon/widgets/env-vars/index.d.ts +26 -1
- package/dist/daemon/widgets/env-vars/index.d.ts.map +1 -1
- package/dist/daemon/widgets/env-vars/index.js +145 -21
- package/dist/daemon/widgets/index.js +137 -21
- package/dist/executor/commands/environment.d.ts.map +1 -1
- package/dist/executor/commands/environment.js +9 -5
- package/dist/executor/commands/git.js +1 -1
- package/dist/executor/git/index.d.ts +8 -0
- package/dist/executor/git/index.d.ts.map +1 -0
- package/dist/executor/git/index.js +7 -0
- package/dist/executor/handlers/sdk/base-executor.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/base-executor.js +4 -1
- package/dist/executor/handlers/sdk/git-safe-directory.d.ts.map +1 -1
- package/dist/executor/handlers/sdk/git-safe-directory.js +1 -1
- package/dist/executor/sdk-handlers/base/diff-enrichment.js +1 -1
- package/dist/executor/sdk-handlers/codex/codex-tool.d.ts +6 -10
- package/dist/executor/sdk-handlers/codex/codex-tool.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/codex-tool.js +12 -15
- package/dist/executor/sdk-handlers/codex/normalizer.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/normalizer.js +11 -1
- package/dist/executor/sdk-handlers/codex/pricing/litellm-openai-model-prices.json +3663 -0
- package/dist/executor/sdk-handlers/codex/pricing/litellm-pricing.d.ts +31 -0
- package/dist/executor/sdk-handlers/codex/pricing/litellm-pricing.d.ts.map +1 -0
- package/dist/executor/sdk-handlers/codex/pricing/litellm-pricing.js +46 -0
- package/dist/executor/sdk-handlers/codex/prompt-service.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/prompt-service.js +61 -6
- package/dist/executor/sdk-handlers/codex/usage.d.ts +14 -23
- package/dist/executor/sdk-handlers/codex/usage.d.ts.map +1 -1
- package/dist/executor/sdk-handlers/codex/usage.js +18 -33
- package/dist/executor/services/feathers-client.js +5 -5
- package/dist/git/index.cjs +1101 -0
- package/dist/git/index.d.ts +533 -0
- package/dist/git/index.d.ts.map +1 -0
- package/dist/git/index.js +1022 -0
- package/dist/git/package.json +21 -0
- package/dist/git/pure.cjs +185 -0
- package/dist/git/pure.d.ts +39 -0
- package/dist/git/pure.d.ts.map +1 -0
- package/dist/git/pure.js +139 -0
- package/dist/ui/assets/AgorEmojiPickerInner-DQjr8M3_.js +1 -0
- package/dist/ui/assets/App-hJtcOxHv.js +5 -0
- package/dist/ui/assets/App-hJtcOxHv.js.gz +0 -0
- package/dist/ui/assets/AppNode-BhuMpn8O.js +1 -0
- package/dist/ui/assets/AppNode-BhuMpn8O.js.gz +0 -0
- package/dist/ui/assets/ArtifactConsentModal-oMMzRn8L.js +1 -0
- package/dist/ui/assets/ArtifactConsentModal-oMMzRn8L.js.gz +0 -0
- package/dist/ui/assets/ArtifactFullscreenPage-B3wT8t8f.js +9 -0
- package/dist/ui/assets/ArtifactFullscreenPage-B3wT8t8f.js.gz +0 -0
- package/dist/ui/assets/ArtifactNode-BzQcrwFS.js +9 -0
- package/dist/ui/assets/ArtifactNode-BzQcrwFS.js.gz +0 -0
- package/dist/ui/assets/AutocompleteTextarea-Dau-V_30.js +19 -0
- package/dist/ui/assets/AutocompleteTextarea-Dau-V_30.js.gz +0 -0
- package/dist/ui/assets/BoardObjectNodes-DdKWv_ZT.js +34 -0
- package/dist/ui/assets/BoardObjectNodes-DdKWv_ZT.js.gz +0 -0
- package/dist/ui/assets/CodeEditor.inner-Cuj6RuLL.js +7 -0
- package/dist/ui/assets/CodeEditor.inner-Cuj6RuLL.js.gz +0 -0
- package/dist/ui/assets/ConversationView-9-3ma1u-.js +1 -0
- package/dist/ui/assets/ConversationView-9-3ma1u-.js.gz +0 -0
- package/dist/ui/assets/EmbeddedTerminal-Lx5I9EOJ.js +2 -0
- package/dist/ui/assets/EmbeddedTerminal-Lx5I9EOJ.js.gz +0 -0
- package/dist/ui/assets/KnowledgePage-Dz8YAMYC.js +24 -0
- package/dist/ui/assets/KnowledgePage-Dz8YAMYC.js.gz +0 -0
- package/dist/ui/assets/{MarketingScreenshotPage-zv5RUCuV.js → MarketingScreenshotPage-CmDPBHOl.js} +2 -2
- package/dist/ui/assets/MarketingScreenshotPage-CmDPBHOl.js.gz +0 -0
- package/dist/ui/assets/MobileApp-BpgSG_gz.js +1 -0
- package/dist/ui/assets/MobileApp-BpgSG_gz.js.gz +0 -0
- package/dist/ui/assets/SessionCanvas-B6_mtlxK.js +13 -0
- package/dist/ui/assets/SessionCanvas-B6_mtlxK.js.gz +0 -0
- package/dist/ui/assets/{SessionCanvas-mEmYGZhC.css → SessionCanvas-Bh7Yg5dZ.css} +1 -1
- package/dist/ui/assets/SessionCanvas-Bh7Yg5dZ.css.gz +0 -0
- package/dist/ui/assets/{StreamdownDemoPage-wzWaqWwr.js → StreamdownDemoPage-okKKR2QH.js} +2 -2
- package/dist/ui/assets/StreamdownDemoPage-okKKR2QH.js.gz +0 -0
- package/dist/ui/assets/TerminalModal-D9jMGZXv.js +2 -0
- package/dist/ui/assets/TerminalModal-D9jMGZXv.js.gz +0 -0
- package/dist/ui/assets/ThemeSwitcher-D9HgT37l.js +1 -0
- package/dist/ui/assets/ThemeSwitcher-D9HgT37l.js.gz +0 -0
- package/dist/ui/assets/ThemedSyntaxHighlighter.inner-C1FdIHn0.js +1 -0
- package/dist/ui/assets/{antd-CfbbHJOz.js → antd-DT5ackd0.js} +5 -5
- package/dist/ui/assets/{antd-CfbbHJOz.js.gz → antd-DT5ackd0.js.gz} +0 -0
- package/dist/ui/assets/architecture-U656AL7Q-DMnxkQRZ.js +1 -0
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-DwTJGGoj.js +36 -0
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-DwTJGGoj.js.gz +0 -0
- package/dist/ui/assets/{blockDiagram-VD42YOAC-BhZaEN19.js → blockDiagram-VD42YOAC-Dh1_TVW2.js} +4 -4
- package/dist/ui/assets/blockDiagram-VD42YOAC-Dh1_TVW2.js.gz +0 -0
- package/dist/ui/assets/{c4Diagram-YG6GDRKO-Dk_UH-sY.js → c4Diagram-YG6GDRKO-B1e96AcB.js} +2 -2
- package/dist/ui/assets/c4Diagram-YG6GDRKO-B1e96AcB.js.gz +0 -0
- package/dist/ui/assets/channel-Jv4dT4S5.js +1 -0
- package/dist/ui/assets/{chunk-4BX2VUAB-XprbG2TG.js → chunk-4BX2VUAB-BODpCjJx.js} +1 -1
- package/dist/ui/assets/chunk-55IACEB6-lJXvUquf.js +1 -0
- package/dist/ui/assets/{chunk-ABZYJK2D-BJcrryHK.js → chunk-ABZYJK2D-DCTXWSzV.js} +3 -3
- package/dist/ui/assets/chunk-ABZYJK2D-DCTXWSzV.js.gz +0 -0
- package/dist/ui/assets/{chunk-AGHRB4JF-DvxmfbM0.js → chunk-AGHRB4JF-CbNphBjE.js} +1 -1
- package/dist/ui/assets/chunk-AGHRB4JF-CbNphBjE.js.gz +0 -0
- package/dist/ui/assets/{chunk-ATLVNIR6-DbeJ0OrR.js → chunk-ATLVNIR6-rWg3qxof.js} +1 -1
- package/dist/ui/assets/chunk-ATLVNIR6-rWg3qxof.js.gz +0 -0
- package/dist/ui/assets/{chunk-B4BG7PRW-C53q2ggf.js → chunk-B4BG7PRW-CgtLCbpE.js} +3 -3
- package/dist/ui/assets/chunk-B4BG7PRW-CgtLCbpE.js.gz +0 -0
- package/dist/ui/assets/{chunk-CVBHYZKI-B3EBSlb3.js → chunk-CVBHYZKI-DTL6Zgr0.js} +1 -1
- package/dist/ui/assets/{chunk-DI55MBZ5-vIyNEQN-.js → chunk-DI55MBZ5-Dwvx2Kva.js} +1 -1
- package/dist/ui/assets/chunk-DI55MBZ5-Dwvx2Kva.js.gz +0 -0
- package/dist/ui/assets/chunk-EXTU4WIE-DHyaqTsP.js +1 -0
- package/dist/ui/assets/{chunk-FMBD7UC4-rddmfK-Z.js → chunk-FMBD7UC4-BogA_9CV.js} +1 -1
- package/dist/ui/assets/{chunk-HN2XXSSU-Dttqcg3b.js → chunk-HN2XXSSU-2blQO3Gb.js} +1 -1
- package/dist/ui/assets/chunk-HN2XXSSU-2blQO3Gb.js.gz +0 -0
- package/dist/ui/assets/chunk-JA3XYJ7Z-Cr1rmOui.js +11 -0
- package/dist/ui/assets/chunk-JA3XYJ7Z-Cr1rmOui.js.gz +0 -0
- package/dist/ui/assets/{chunk-JZLCHNYA-EUmx2y4H.js → chunk-JZLCHNYA-BsgZ79Fa.js} +5 -5
- package/dist/ui/assets/chunk-JZLCHNYA-BsgZ79Fa.js.gz +0 -0
- package/dist/ui/assets/{chunk-MI3HLSF2-65n9Mkyc.js → chunk-MI3HLSF2-dwYeUy5S.js} +1 -1
- package/dist/ui/assets/chunk-MI3HLSF2-dwYeUy5S.js.gz +0 -0
- package/dist/ui/assets/chunk-N4CR4FBY-DEMgSRVe.js +2 -0
- package/dist/ui/assets/chunk-N4CR4FBY-DEMgSRVe.js.gz +0 -0
- package/dist/ui/assets/{chunk-QN33PNHL-DsRKK6NR.js → chunk-QN33PNHL-DxdIDCAa.js} +1 -1
- package/dist/ui/assets/{chunk-QXUST7PY-BCYnMiS3.js → chunk-QXUST7PY-BCK2V0i-.js} +2 -2
- package/dist/ui/assets/chunk-QXUST7PY-BCK2V0i-.js.gz +0 -0
- package/dist/ui/assets/chunk-QZHKN3VN-CALjGrEE.js +1 -0
- package/dist/ui/assets/chunk-S3R3BYOJ-GP3zIxrB.js +2 -0
- package/dist/ui/assets/chunk-S3R3BYOJ-GP3zIxrB.js.gz +0 -0
- package/dist/ui/assets/{chunk-TZMSLE5B-BuQUQcTr.js → chunk-TZMSLE5B-dX5RaM6g.js} +1 -1
- package/dist/ui/assets/chunk-TZMSLE5B-dX5RaM6g.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-C3_RVP70.js +1 -0
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-C3_RVP70.js +1 -0
- package/dist/ui/assets/constants-GjIDNVyt.js +1 -0
- package/dist/ui/assets/{cose-bilkent-S5V4N54A-CnPB3ARO.js → cose-bilkent-S5V4N54A-Dx0BJVDl.js} +1 -1
- package/dist/ui/assets/cose-bilkent-S5V4N54A-Dx0BJVDl.js.gz +0 -0
- package/dist/ui/assets/{dagre-6UL2VRFP-DhS-k_Se.js → dagre-6UL2VRFP-DiQSUxqN.js} +1 -1
- package/dist/ui/assets/dagre-6UL2VRFP-DiQSUxqN.js.gz +0 -0
- package/dist/ui/assets/{dagre-KgLoHEuy.js → dagre-Bekd9Vdj.js} +1 -1
- package/dist/ui/assets/dagre-Bekd9Vdj.js.gz +0 -0
- package/dist/ui/assets/diagram-PSM6KHXK-DtJnDQjc.js +24 -0
- package/dist/ui/assets/diagram-PSM6KHXK-DtJnDQjc.js.gz +0 -0
- package/dist/ui/assets/{diagram-QEK2KX5R-BPCitvbo.js → diagram-QEK2KX5R-CobkCRdj.js} +1 -1
- package/dist/ui/assets/diagram-QEK2KX5R-CobkCRdj.js.gz +0 -0
- package/dist/ui/assets/{diagram-S2PKOQOG-NW4uK6sx.js → diagram-S2PKOQOG-DHEZYivc.js} +1 -1
- package/dist/ui/assets/diagram-S2PKOQOG-DHEZYivc.js.gz +0 -0
- package/dist/ui/assets/editor-DQIG-JYZ.js +43 -0
- package/dist/ui/assets/editor-DQIG-JYZ.js.gz +0 -0
- package/dist/ui/assets/emoji-B0hLmSLZ.js +3 -0
- package/dist/ui/assets/emoji-B0hLmSLZ.js.gz +0 -0
- package/dist/ui/assets/{erDiagram-Q2GNP2WA-me1fboaf.js → erDiagram-Q2GNP2WA-BVNeTZPQ.js} +2 -2
- package/dist/ui/assets/erDiagram-Q2GNP2WA-BVNeTZPQ.js.gz +0 -0
- package/dist/ui/assets/flowDiagram-NV44I4VS-C73VFdyk.js +162 -0
- package/dist/ui/assets/flowDiagram-NV44I4VS-C73VFdyk.js.gz +0 -0
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-B_RosuD1.js +267 -0
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-B_RosuD1.js.gz +0 -0
- package/dist/ui/assets/{gitGraph-F6HP7TQM-CfFE_uAC.js → gitGraph-F6HP7TQM-DMFIqn4h.js} +1 -1
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-hxbgwNA1.js +65 -0
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-hxbgwNA1.js.gz +0 -0
- package/dist/ui/assets/index-DTz1Dif6.js +64 -0
- package/dist/ui/assets/index-DTz1Dif6.js.gz +0 -0
- package/dist/ui/assets/{index-DxuPq13l.css → index-qkT7Qqm2.css} +1 -1
- package/dist/ui/assets/index-qkT7Qqm2.css.gz +0 -0
- package/dist/ui/assets/{info-NVLQJR56-i_xHYg3f.js → info-NVLQJR56-DZ3K-w48.js} +1 -1
- package/dist/ui/assets/{infoDiagram-ER5ION4S-2NL93b78.js → infoDiagram-ER5ION4S-CxnBJQu6.js} +1 -1
- package/dist/ui/assets/{journeyDiagram-XKPGCS4Q-CZF-2DHU.js → journeyDiagram-XKPGCS4Q-CHYNj-f8.js} +3 -3
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CHYNj-f8.js.gz +0 -0
- package/dist/ui/assets/{kanban-definition-3W4ZIXB7-CfvJIOny.js → kanban-definition-3W4ZIXB7-DQPCCsj2.js} +1 -1
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-DQPCCsj2.js.gz +0 -0
- package/dist/ui/assets/{line-DDv8kOJk.js → line-DBRjKmfa.js} +1 -1
- package/dist/ui/assets/{linear-Daef-l29.js → linear-DFao5Wyp.js} +1 -1
- package/dist/ui/assets/linear-DFao5Wyp.js.gz +0 -0
- package/dist/ui/assets/{mermaid-parser.core-CdK9QgYV.js → mermaid-parser.core-DYCfacHj.js} +2 -2
- package/dist/ui/assets/mermaid-parser.core-DYCfacHj.js.gz +0 -0
- package/dist/ui/assets/mermaid.core-C6xGFSdE.js +11 -0
- package/dist/ui/assets/mermaid.core-C6xGFSdE.js.gz +0 -0
- package/dist/ui/assets/{mindmap-definition-VGOIOE7T-Cb3QMflX.js → mindmap-definition-VGOIOE7T-L3Pw-YM7.js} +1 -1
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-L3Pw-YM7.js.gz +0 -0
- package/dist/ui/assets/{packet-BFZMPI3H-Bm2uwz4i.js → packet-BFZMPI3H-CpL6iNoa.js} +1 -1
- package/dist/ui/assets/{particles-DsJFOarW.js → particles-CT8hcJOA.js} +1 -1
- package/dist/ui/assets/particles-CT8hcJOA.js.gz +0 -0
- package/dist/ui/assets/{pie-7BOR55EZ-5i17tVnF.js → pie-7BOR55EZ-hTqChbTo.js} +1 -1
- package/dist/ui/assets/{pieDiagram-ADFJNKIX-BxIwQWvw.js → pieDiagram-ADFJNKIX-Bf4Nou75.js} +1 -1
- package/dist/ui/assets/pieDiagram-ADFJNKIX-Bf4Nou75.js.gz +0 -0
- package/dist/ui/assets/{quadrantDiagram-AYHSOK5B-B5HPe4ga.js → quadrantDiagram-AYHSOK5B-DpjUTLB1.js} +3 -3
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-DpjUTLB1.js.gz +0 -0
- package/dist/ui/assets/{radar-NHE76QYJ-BTn-tq0k.js → radar-NHE76QYJ-myy7OENC.js} +1 -1
- package/dist/ui/assets/reactflow-Cubtnk8i.js +2 -0
- package/dist/ui/assets/reactflow-Cubtnk8i.js.gz +0 -0
- package/dist/ui/assets/{requirementDiagram-UZGBJVZJ-YfI6llkX.js → requirementDiagram-UZGBJVZJ-Bfrfh-0-.js} +1 -1
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-Bfrfh-0-.js.gz +0 -0
- package/dist/ui/assets/{sandpack-D7koO5op.js → sandpack-C58bwfIS.js} +38 -38
- package/dist/ui/assets/sandpack-C58bwfIS.js.gz +0 -0
- package/dist/ui/assets/sandpackDefaults-Bkga8XAE.js +1 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-ClZAZ6va.js +10 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-ClZAZ6va.js.gz +0 -0
- package/dist/ui/assets/{sequenceDiagram-WL72ISMW-DAe4Um17.js → sequenceDiagram-WL72ISMW-CNgly63p.js} +6 -6
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-CNgly63p.js.gz +0 -0
- package/dist/ui/assets/src-DAeyG22O.js +34 -0
- package/dist/ui/assets/src-DAeyG22O.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-BrEAoDpE.js +1 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-BrEAoDpE.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-BNL52_oN.js +1 -0
- package/dist/ui/assets/streamdown-BdAVfkeF.js +521 -0
- package/dist/ui/assets/streamdown-BdAVfkeF.js.gz +0 -0
- package/dist/ui/assets/syntax-BOfTnQiy.js +9 -0
- package/dist/ui/assets/syntax-BOfTnQiy.js.gz +0 -0
- package/dist/ui/assets/{timeline-definition-IT6M3QCI-D6P5txjT.js → timeline-definition-IT6M3QCI-CaRH3k4l.js} +16 -16
- package/dist/ui/assets/timeline-definition-IT6M3QCI-CaRH3k4l.js.gz +0 -0
- package/dist/ui/assets/{treemap-KMMF4GRG-Bitm3gy4.js → treemap-KMMF4GRG-CUaLOV_B.js} +1 -1
- package/dist/ui/assets/{useUserLocalStorage-Ckb8HsIw.js → useUserLocalStorage-C8sgXgXR.js} +1 -1
- package/dist/ui/assets/useUserLocalStorage-C8sgXgXR.js.gz +0 -0
- package/dist/ui/assets/{xychartDiagram-PRI3JC2R-CsybjUbd.js → xychartDiagram-PRI3JC2R-BlhkI9T_.js} +1 -1
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-BlhkI9T_.js.gz +0 -0
- package/dist/ui/index.html +10 -11
- package/dist/ui/index.html.gz +0 -0
- package/package.json +6 -5
- package/scripts/postinstall.js +27 -19
- package/dist/cli/commands/daemon/sync.d.ts.map +0 -1
- package/dist/ui/assets/App-DcEY8Ota.js +0 -3
- package/dist/ui/assets/App-DcEY8Ota.js.gz +0 -0
- package/dist/ui/assets/ArtifactConsentModal-CiCbK9iv.js +0 -1
- package/dist/ui/assets/ArtifactConsentModal-CiCbK9iv.js.gz +0 -0
- package/dist/ui/assets/ArtifactFullscreenPage-CfsTEGKd.js +0 -9
- package/dist/ui/assets/ArtifactFullscreenPage-CfsTEGKd.js.gz +0 -0
- package/dist/ui/assets/AutocompleteTextarea-BAFFH_5e.js +0 -18
- package/dist/ui/assets/AutocompleteTextarea-BAFFH_5e.js.gz +0 -0
- package/dist/ui/assets/BoardObjectNodes-D-O6bZIG.js +0 -34
- package/dist/ui/assets/BoardObjectNodes-D-O6bZIG.js.gz +0 -0
- package/dist/ui/assets/CodeEditor.inner-DBgsP4tn.js +0 -8
- package/dist/ui/assets/CodeEditor.inner-DBgsP4tn.js.gz +0 -0
- package/dist/ui/assets/ConversationView-CUWR0gR6.js +0 -1
- package/dist/ui/assets/ConversationView-CUWR0gR6.js.gz +0 -0
- package/dist/ui/assets/KnowledgePage-B2bzlXfn.js +0 -24
- package/dist/ui/assets/KnowledgePage-B2bzlXfn.js.gz +0 -0
- package/dist/ui/assets/MarketingScreenshotPage-zv5RUCuV.js.gz +0 -0
- package/dist/ui/assets/MobileApp-VgVnsnsN.js +0 -1
- package/dist/ui/assets/MobileApp-VgVnsnsN.js.gz +0 -0
- package/dist/ui/assets/SessionCanvas-f1-1Gbcw.js +0 -20
- package/dist/ui/assets/SessionCanvas-f1-1Gbcw.js.gz +0 -0
- package/dist/ui/assets/SessionCanvas-mEmYGZhC.css.gz +0 -0
- package/dist/ui/assets/StreamdownDemoPage-wzWaqWwr.js.gz +0 -0
- package/dist/ui/assets/ThemeSwitcher-Dly2y9pi.js +0 -1
- package/dist/ui/assets/ThemeSwitcher-Dly2y9pi.js.gz +0 -0
- package/dist/ui/assets/architecture-U656AL7Q-CykGFbQU.js +0 -1
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-C8HXAenz.js +0 -36
- package/dist/ui/assets/architectureDiagram-VXUJARFQ-C8HXAenz.js.gz +0 -0
- package/dist/ui/assets/blockDiagram-VD42YOAC-BhZaEN19.js.gz +0 -0
- package/dist/ui/assets/c4Diagram-YG6GDRKO-Dk_UH-sY.js.gz +0 -0
- package/dist/ui/assets/channel-D6_nUWlW.js +0 -1
- package/dist/ui/assets/chunk-55IACEB6-ByzqIgSb.js +0 -1
- package/dist/ui/assets/chunk-ABZYJK2D-BJcrryHK.js.gz +0 -0
- package/dist/ui/assets/chunk-AGHRB4JF-DvxmfbM0.js.gz +0 -0
- package/dist/ui/assets/chunk-ATLVNIR6-DbeJ0OrR.js.gz +0 -0
- package/dist/ui/assets/chunk-B4BG7PRW-C53q2ggf.js.gz +0 -0
- package/dist/ui/assets/chunk-DI55MBZ5-vIyNEQN-.js.gz +0 -0
- package/dist/ui/assets/chunk-EXTU4WIE-B3ObkuOm.js +0 -1
- package/dist/ui/assets/chunk-HN2XXSSU-Dttqcg3b.js.gz +0 -0
- package/dist/ui/assets/chunk-JA3XYJ7Z-DbNDev3D.js +0 -11
- package/dist/ui/assets/chunk-JA3XYJ7Z-DbNDev3D.js.gz +0 -0
- package/dist/ui/assets/chunk-JZLCHNYA-EUmx2y4H.js.gz +0 -0
- package/dist/ui/assets/chunk-MI3HLSF2-65n9Mkyc.js.gz +0 -0
- package/dist/ui/assets/chunk-N4CR4FBY-mv5koXqW.js +0 -2
- package/dist/ui/assets/chunk-N4CR4FBY-mv5koXqW.js.gz +0 -0
- package/dist/ui/assets/chunk-QXUST7PY-BCYnMiS3.js.gz +0 -0
- package/dist/ui/assets/chunk-QZHKN3VN-HucAw4xW.js +0 -1
- package/dist/ui/assets/chunk-S3R3BYOJ-CWMEa9Dc.js +0 -2
- package/dist/ui/assets/chunk-S3R3BYOJ-CWMEa9Dc.js.gz +0 -0
- package/dist/ui/assets/chunk-TZMSLE5B-BuQUQcTr.js.gz +0 -0
- package/dist/ui/assets/classDiagram-2ON5EDUG-CUT3rPTB.js +0 -1
- package/dist/ui/assets/classDiagram-v2-WZHVMYZB-CUT3rPTB.js +0 -1
- package/dist/ui/assets/cose-bilkent-S5V4N54A-CnPB3ARO.js.gz +0 -0
- package/dist/ui/assets/dagre-6UL2VRFP-DhS-k_Se.js.gz +0 -0
- package/dist/ui/assets/dagre-KgLoHEuy.js.gz +0 -0
- package/dist/ui/assets/diagram-PSM6KHXK-BZg3MJmb.js +0 -24
- package/dist/ui/assets/diagram-PSM6KHXK-BZg3MJmb.js.gz +0 -0
- package/dist/ui/assets/diagram-QEK2KX5R-BPCitvbo.js.gz +0 -0
- package/dist/ui/assets/diagram-S2PKOQOG-NW4uK6sx.js.gz +0 -0
- package/dist/ui/assets/editor-CzFWIUw2.js +0 -39
- package/dist/ui/assets/editor-CzFWIUw2.js.gz +0 -0
- package/dist/ui/assets/emoji-Dkz4Zzv_.js +0 -3
- package/dist/ui/assets/emoji-Dkz4Zzv_.js.gz +0 -0
- package/dist/ui/assets/erDiagram-Q2GNP2WA-me1fboaf.js.gz +0 -0
- package/dist/ui/assets/flowDiagram-NV44I4VS-DzE8dGsh.js +0 -162
- package/dist/ui/assets/flowDiagram-NV44I4VS-DzE8dGsh.js.gz +0 -0
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-CFQD09Mi.js +0 -267
- package/dist/ui/assets/ganttDiagram-LVOFAZNH-CFQD09Mi.js.gz +0 -0
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CaVoxU4C.js +0 -65
- package/dist/ui/assets/gitGraphDiagram-NY62KEGX-CaVoxU4C.js.gz +0 -0
- package/dist/ui/assets/index-BN5_Qq7R.js +0 -324
- package/dist/ui/assets/index-BN5_Qq7R.js.gz +0 -0
- package/dist/ui/assets/index-DxuPq13l.css.gz +0 -0
- package/dist/ui/assets/journeyDiagram-XKPGCS4Q-CZF-2DHU.js.gz +0 -0
- package/dist/ui/assets/kanban-definition-3W4ZIXB7-CfvJIOny.js.gz +0 -0
- package/dist/ui/assets/katex-CamJ39w1.js +0 -257
- package/dist/ui/assets/katex-CamJ39w1.js.gz +0 -0
- package/dist/ui/assets/linear-Daef-l29.js.gz +0 -0
- package/dist/ui/assets/mermaid-parser.core-CdK9QgYV.js.gz +0 -0
- package/dist/ui/assets/mermaid.core-D6GS9mU-.js +0 -11
- package/dist/ui/assets/mermaid.core-D6GS9mU-.js.gz +0 -0
- package/dist/ui/assets/message-SqLqNYcv.js +0 -36
- package/dist/ui/assets/message-SqLqNYcv.js.gz +0 -0
- package/dist/ui/assets/mindmap-definition-VGOIOE7T-Cb3QMflX.js.gz +0 -0
- package/dist/ui/assets/particles-DsJFOarW.js.gz +0 -0
- package/dist/ui/assets/pieDiagram-ADFJNKIX-BxIwQWvw.js.gz +0 -0
- package/dist/ui/assets/quadrantDiagram-AYHSOK5B-B5HPe4ga.js.gz +0 -0
- package/dist/ui/assets/reactflow-Bf74ngoo.js +0 -2
- package/dist/ui/assets/reactflow-Bf74ngoo.js.gz +0 -0
- package/dist/ui/assets/requirementDiagram-UZGBJVZJ-YfI6llkX.js.gz +0 -0
- package/dist/ui/assets/sandpack-D7koO5op.js.gz +0 -0
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DOk_B10B.js +0 -10
- package/dist/ui/assets/sankeyDiagram-TZEHDZUN-DOk_B10B.js.gz +0 -0
- package/dist/ui/assets/sequenceDiagram-WL72ISMW-DAe4Um17.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-CCesDu_C.js +0 -1
- package/dist/ui/assets/stateDiagram-FKZM4ZOC-CCesDu_C.js.gz +0 -0
- package/dist/ui/assets/stateDiagram-v2-4FDKWEC3-CMlIrsoO.js +0 -1
- package/dist/ui/assets/syntax-C-M-8jOU.js +0 -10
- package/dist/ui/assets/syntax-C-M-8jOU.js.gz +0 -0
- package/dist/ui/assets/theme-BQZdiqwv.js +0 -1
- package/dist/ui/assets/timeline-definition-IT6M3QCI-D6P5txjT.js.gz +0 -0
- package/dist/ui/assets/useUserLocalStorage-Ckb8HsIw.js.gz +0 -0
- package/dist/ui/assets/xychartDiagram-PRI3JC2R-CsybjUbd.js.gz +0 -0
- /package/dist/cli/commands/{admin → local}/sync-unix.d.ts +0 -0
package/dist/core/git/index.d.ts
CHANGED
|
@@ -1,617 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* Supports SSH keys, user environment variables (GITHUB_TOKEN), and system credential helpers.
|
|
6
|
-
*
|
|
7
|
-
* When branch RBAC is enabled, git operations run via `sudo su -` to ensure
|
|
8
|
-
* fresh Unix group memberships (groups are cached at login time).
|
|
2
|
+
* @deprecated Operational git helpers are implemented in @agor/git.
|
|
3
|
+
* Import @agor/core/git/pure for side-effect-free helpers, or @agor/core/git/exec
|
|
4
|
+
* for the compatibility path used by daemon-local maintenance code.
|
|
9
5
|
*/
|
|
10
|
-
|
|
11
|
-
import type { RepoCloneErrorCategory } from '../types/repo';
|
|
12
|
-
/**
|
|
13
|
-
* Validate a user-supplied git ref (branch name, tag) before it is passed to
|
|
14
|
-
* git subcommands.
|
|
15
|
-
*
|
|
16
|
-
* A ref that starts with `-` (e.g. `--upload-pack=/tmp/payload`) would be
|
|
17
|
-
* interpreted as an option by git, giving an attacker code execution. Even
|
|
18
|
-
* with `--` separators as defence-in-depth, callers must validate the ref
|
|
19
|
-
* itself too.
|
|
20
|
-
*
|
|
21
|
-
* Rules:
|
|
22
|
-
* - Must be a non-empty string.
|
|
23
|
-
* - Must NOT start with `-` (option injection).
|
|
24
|
-
* - Must NOT contain whitespace, newlines, or NUL bytes.
|
|
25
|
-
* - Must pass `git check-ref-format --branch <ref>`.
|
|
26
|
-
*
|
|
27
|
-
* Callers must await this and bail out on rejection.
|
|
28
|
-
*/
|
|
29
|
-
export declare function validateGitRef(ref: unknown): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Loose shape check for GitHub / GitLab personal access tokens we will put
|
|
32
|
-
* into a git-credentials file. PATs and installation tokens fit in this set;
|
|
33
|
-
* anything outside it suggests the value is either malformed or attacker-
|
|
34
|
-
* shaped (e.g. contains `;`, newlines, `$()`). In that case we skip the
|
|
35
|
-
* credential helper rather than embed it.
|
|
36
|
-
*/
|
|
37
|
-
export declare function isLikelyGitToken(token: string): boolean;
|
|
38
|
-
/**
|
|
39
|
-
* Build the argv for `git worktree add`, always inserting a `--` separator
|
|
40
|
-
* before positional arguments.
|
|
41
|
-
*
|
|
42
|
-
* Even when {@link validateGitRef} has rejected option-shaped refs, we keep
|
|
43
|
-
* the `--` separator as defence-in-depth — any value that slips through (e.g.
|
|
44
|
-
* a future regression in validation, or a sourceBranch path) is still forced
|
|
45
|
-
* into positional-argument semantics.
|
|
46
|
-
*
|
|
47
|
-
* Named for the underlying `git worktree add` CLI primitive rather than the
|
|
48
|
-
* Agor "branch" entity it materialises — the carve-out keeps `worktree` in
|
|
49
|
-
* names that wrap the git CLI directly, so a reader of this module isn't
|
|
50
|
-
* misled into thinking "branch" here means a git branch.
|
|
51
|
-
*
|
|
52
|
-
* Exported so tests can assert the argv shape without spawning a real git.
|
|
53
|
-
*/
|
|
54
|
-
export declare function buildWorktreeAddArgs(params: {
|
|
55
|
-
branchPath: string;
|
|
56
|
-
ref: string;
|
|
57
|
-
createBranch: boolean;
|
|
58
|
-
sourceBranch?: string;
|
|
59
|
-
refType?: 'branch' | 'tag';
|
|
60
|
-
fetchSucceeded: boolean;
|
|
61
|
-
}): string[];
|
|
62
|
-
/**
|
|
63
|
-
* Extract the hostname from a git remote URL.
|
|
64
|
-
*
|
|
65
|
-
* Accepts the three common forms:
|
|
66
|
-
* - HTTPS: `https://host[:port]/owner/repo(.git)?`
|
|
67
|
-
* - SSH: `ssh://[user@]host[:port]/owner/repo(.git)?`
|
|
68
|
-
* - SCP-like: `user@host:owner/repo(.git)?` (e.g. `git@github.com:foo/bar`)
|
|
69
|
-
*
|
|
70
|
-
* Returns the hostname (no port, no userinfo), or `undefined` when the URL
|
|
71
|
-
* doesn't match any recognised shape. Used to scope `http.<URL>.extraheader`
|
|
72
|
-
* to the right host so a GitHub Enterprise / GitLab token isn't silently
|
|
73
|
-
* widened to github.com (or vice versa).
|
|
74
|
-
*/
|
|
75
|
-
export declare function parseHostFromGitUrl(url: string): string | undefined;
|
|
76
|
-
/**
|
|
77
|
-
* True when an HTTP(S) git URL embeds URL userinfo
|
|
78
|
-
* (`https://USER[:PASS]@host/...`).
|
|
79
|
-
*
|
|
80
|
-
* For Agor's purposes HTTP(S) userinfo in a persisted remote is unsafe, even
|
|
81
|
-
* if it is "just" a username: users commonly paste PATs as either the username
|
|
82
|
-
* or password, and shared worktree repos expose `.git/config` to every branch.
|
|
83
|
-
* SSH remotes are intentionally not mutated: `ssh://git@host/org/repo.git`
|
|
84
|
-
* and SCP-like `git@host:org/repo.git` use the userinfo position for the SSH
|
|
85
|
-
* username and stripping it can break legitimate remotes.
|
|
86
|
-
*/
|
|
87
|
-
export declare function gitUrlHasUserinfo(rawUrl: string): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Redact URL userinfo for logs/errors. Keeps host/path visible for diagnosis
|
|
90
|
-
* without exposing the embedded secret.
|
|
91
|
-
*/
|
|
92
|
-
export declare function redactGitUrlCredentials(rawUrl: string): string;
|
|
93
|
-
/**
|
|
94
|
-
* Remove HTTP(S) URL userinfo from a git URL before persisting it or handing
|
|
95
|
-
* it to `git clone`. SSH remotes are preserved because `ssh://git@host/...`
|
|
96
|
-
* uses userinfo for the login name, not an embedded credential.
|
|
97
|
-
*/
|
|
98
|
-
export declare function stripGitUrlCredentials(rawUrl: string): string;
|
|
99
|
-
export interface GitRemoteCredentialFinding {
|
|
100
|
-
configPath: string;
|
|
101
|
-
remote: string;
|
|
102
|
-
key: 'url' | 'pushurl';
|
|
103
|
-
redactedUrl: string;
|
|
104
|
-
sanitizedUrl: string;
|
|
105
|
-
}
|
|
106
|
-
export interface GitRemoteCredentialScanResult {
|
|
107
|
-
repoPath: string;
|
|
108
|
-
configPaths: string[];
|
|
109
|
-
findings: GitRemoteCredentialFinding[];
|
|
110
|
-
}
|
|
111
|
-
export interface GitRemoteCredentialScrubResult extends GitRemoteCredentialScanResult {
|
|
112
|
-
changed: boolean;
|
|
113
|
-
}
|
|
114
|
-
/**
|
|
115
|
-
* Scan a repo or worktree for credential-bearing remote URLs in its git config
|
|
116
|
-
* without invoking git. For worktree pointer files, this checks both the
|
|
117
|
-
* per-worktree gitdir and the shared common `.git/config`.
|
|
118
|
-
*/
|
|
119
|
-
export declare function scanGitConfigRemoteCredentials(repoPath: string): Promise<GitRemoteCredentialScanResult>;
|
|
120
|
-
/**
|
|
121
|
-
* Repair credential-bearing remote URL entries in `.git/config` by replacing
|
|
122
|
-
* each `remote.<name>.url` / `pushurl` value with the same URL minus userinfo.
|
|
123
|
-
* Findings contain only redacted/sanitized values.
|
|
124
|
-
*/
|
|
125
|
-
export declare function scrubGitConfigRemoteCredentials(repoPath: string): Promise<GitRemoteCredentialScrubResult>;
|
|
126
|
-
/**
|
|
127
|
-
* Build the `GIT_CONFIG_COUNT` / `GIT_CONFIG_KEY_<n>` / `GIT_CONFIG_VALUE_<n>`
|
|
128
|
-
* env-var trio git treats as ad-hoc config — equivalent to `-c key=value` but
|
|
129
|
-
* without the value ever landing on the process argv.
|
|
130
|
-
*
|
|
131
|
-
* @see https://git-scm.com/docs/git-config#ENVIRONMENT
|
|
132
|
-
*/
|
|
133
|
-
export declare function buildGitConfigEnv(entries: [string, string][]): Record<string, string>;
|
|
134
|
-
/**
|
|
135
|
-
* Encode pairs into the `GIT_CONFIG_PARAMETERS` env-var value (single-quote
|
|
136
|
-
* protocol — quotes are literal, not shell escaping, but the close-escape-
|
|
137
|
-
* reopen pattern matches).
|
|
138
|
-
*
|
|
139
|
-
* Empty input returns `''` so callers can avoid setting the var at all.
|
|
140
|
-
*
|
|
141
|
-
* @see https://git-scm.com/docs/git-config#ENVIRONMENT
|
|
142
|
-
*/
|
|
143
|
-
export declare function buildGitConfigParameters(pairs: readonly string[]): string;
|
|
144
|
-
/**
|
|
145
|
-
* Build the `http.<scope>.extraheader=Authorization: Basic <b64>` config entry
|
|
146
|
-
* for HTTPS git auth.
|
|
147
|
-
*
|
|
148
|
-
* Header shape `Basic base64("x-access-token:<PAT>")` works for
|
|
149
|
-
* GitHub / GitHub Enterprise / GitLab (any non-blank username + PAT). Bitbucket
|
|
150
|
-
* Cloud expects the username `x-bitbucket-api-token-auth` and is not currently
|
|
151
|
-
* supported — that would need a per-host username map plumbed through here.
|
|
152
|
-
*
|
|
153
|
-
* The `host` arg scopes the header so a token bound to one host can't reach
|
|
154
|
-
* another (e.g. a malicious submodule URL at attacker.com gets nothing).
|
|
155
|
-
*/
|
|
156
|
-
export declare function buildAuthHeaderEnv(token: string | undefined, host?: string): [string, string][];
|
|
157
|
-
/**
|
|
158
|
-
* Bucket a git error message into a coarse category so callers (UI, MCP) can
|
|
159
|
-
* suggest the right next step.
|
|
160
|
-
*
|
|
161
|
-
* Returns the canonical `RepoCloneErrorCategory` union from `@agor/core/types`
|
|
162
|
-
* so callers can persist it onto `Repo.clone_error.category` without redeclaring
|
|
163
|
-
* the values. The matching is intentionally loose — git's stderr varies across
|
|
164
|
-
* versions and remotes, and a false-positive `auth_failed` is cheaper than
|
|
165
|
-
* `unknown` for the user trying to recover. `'auth_failed'` is the bucket whose
|
|
166
|
-
* copy points users at Settings → API Keys (the most common reason private
|
|
167
|
-
* clones silently failed pre-#1126).
|
|
168
|
-
*/
|
|
169
|
-
export declare function categorizeGitError(stderr: string): RepoCloneErrorCategory;
|
|
170
|
-
/**
|
|
171
|
-
* Mask `GIT_CONFIG_VALUE_<n>` entries carrying an `Authorization:` header.
|
|
172
|
-
* Use before serialising env into logs / error reports. The match is loose
|
|
173
|
-
* on purpose — a false-positive redaction is cheaper than a leaked token.
|
|
174
|
-
*/
|
|
175
|
-
export declare function redactGitEnv(env: Record<string, string | undefined>): Record<string, string>;
|
|
176
|
-
/**
|
|
177
|
-
* Create a configured simple-git instance.
|
|
178
|
-
*
|
|
179
|
-
* Unix-user impersonation is handled upstream when spawning the executor;
|
|
180
|
-
* per-user credentials reach this function via `env` (e.g. from
|
|
181
|
-
* `users.getGitEnvironment`).
|
|
182
|
-
*
|
|
183
|
-
* When `env.GITHUB_TOKEN` / `env.GH_TOKEN` is set, the token is fed to git as
|
|
184
|
-
* `http.https://<authHost>/.extraheader` via the `GIT_CONFIG_COUNT/KEY/VALUE`
|
|
185
|
-
* env trio — keeping it off argv (where simple-git's `config: [...]` would
|
|
186
|
-
* put it, exposed via `ps`, audit logs, error reports). Per-host scoping
|
|
187
|
-
* prevents a GitHub Enterprise token from reaching github.com (or vice versa).
|
|
188
|
-
*
|
|
189
|
-
* `GIT_CONFIG_GLOBAL=/dev/null` blocks inheritance from the daemon user's
|
|
190
|
-
* `~/.gitconfig` (which may carry an ambient `credential.helper` from
|
|
191
|
-
* `gh auth login` that would silently leak the daemon's identity). Git ops
|
|
192
|
-
* run as the daemon user (see `git-impersonation.ts`), so HOME is the
|
|
193
|
-
* daemon's; if that ever changes to a true uid switch this must be removed.
|
|
194
|
-
* `/etc/gitconfig` is intentionally NOT killed — admin policy territory
|
|
195
|
-
* (CA bundles, proxies, safe.directory).
|
|
196
|
-
*
|
|
197
|
-
* **env isolation**: `GIT_CONFIG_GLOBAL=/dev/null` and `GIT_TERMINAL_PROMPT=0` are
|
|
198
|
-
* only set when `env` is provided (or an auth token is found in it). Callers
|
|
199
|
-
* that omit `env` (e.g. `createGit(branchPath)`) intentionally inherit the
|
|
200
|
-
* daemon process environment so they can read `/etc/gitconfig`, `safe.directory`,
|
|
201
|
-
* and other admin-policy config. They still get the `unsafe.*` scanner opt-ins.
|
|
202
|
-
*
|
|
203
|
-
* @param authHost - Host to scope the auth header to. When omitted, falls back
|
|
204
|
-
* to github.com; callers should derive this via
|
|
205
|
-
* {@link parseHostFromGitUrl} or {@link resolveAuthHost}.
|
|
206
|
-
*/
|
|
207
|
-
export declare function createGit(baseDir?: string, env?: Record<string, string>, authHost?: string): {
|
|
208
|
-
git: ReturnType<typeof simpleGit>;
|
|
209
|
-
};
|
|
210
|
-
/**
|
|
211
|
-
* Build a git client pre-scoped for talking to `remoteUrl`. Centralises the
|
|
212
|
-
* "derive the auth-header host from the URL, then call createGit" two-step
|
|
213
|
-
* that every remote-talking helper needs (cloneRepo, createBranchAsClone, …).
|
|
214
|
-
* Keep call sites focused on their domain logic instead of repeating the
|
|
215
|
-
* auth-host derivation.
|
|
216
|
-
*/
|
|
217
|
-
export declare function createGitForRemote(remoteUrl: string, env?: Record<string, string>): {
|
|
218
|
-
git: ReturnType<typeof simpleGit>;
|
|
219
|
-
};
|
|
220
|
-
/**
|
|
221
|
-
* Register `path` as a git `safe.directory` in the daemon user's global
|
|
222
|
-
* gitconfig. Multi-user setups (branches owned by one uid, accessed by
|
|
223
|
-
* another) trip "dubious ownership" otherwise. Non-fatal: logs a warning
|
|
224
|
-
* and returns on failure, since the branch itself is already on disk.
|
|
225
|
-
*
|
|
226
|
-
* IMPORTANT: never pass user env here. `createGit(_, env)` activates the
|
|
227
|
-
* impersonation isolation block (`GIT_CONFIG_GLOBAL=/dev/null`), and
|
|
228
|
-
* `addConfig(..., 'global')` writes to whatever `GIT_CONFIG_GLOBAL` points
|
|
229
|
-
* at — git would try to lock `/dev/null` and fail with permission denied.
|
|
230
|
-
* The safe.directory entry belongs in the daemon user's real `~/.gitconfig`
|
|
231
|
-
* so daemon-side git ops (which do not load /dev/null) can find it.
|
|
232
|
-
*/
|
|
233
|
-
export declare function addSafeDirectoryBestEffort(path: string, logPrefix?: string): Promise<void>;
|
|
234
|
-
export interface CloneOptions {
|
|
235
|
-
url: string;
|
|
236
|
-
targetDir?: string;
|
|
237
|
-
bare?: boolean;
|
|
238
|
-
/**
|
|
239
|
-
* Pin the working tree to a specific branch instead of the remote's HEAD.
|
|
240
|
-
* Forwarded as `git clone --branch <name>`. Used when the operator wants
|
|
241
|
-
* the repo's effective base to be a non-default branch — e.g. so `.agor.yml`
|
|
242
|
-
* on a feature branch is what the daemon reads at clone time.
|
|
243
|
-
*/
|
|
244
|
-
branch?: string;
|
|
245
|
-
onProgress?: (progress: CloneProgress) => void;
|
|
246
|
-
env?: Record<string, string>;
|
|
247
|
-
}
|
|
248
|
-
export interface CloneProgress {
|
|
249
|
-
method: string;
|
|
250
|
-
stage: string;
|
|
251
|
-
progress: number;
|
|
252
|
-
processed?: number;
|
|
253
|
-
total?: number;
|
|
254
|
-
}
|
|
255
|
-
export interface CloneResult {
|
|
256
|
-
path: string;
|
|
257
|
-
repoName: string;
|
|
258
|
-
defaultBranch: string;
|
|
259
|
-
}
|
|
260
|
-
export { getBranchesDir, getBranchPath, getReposDir } from '../config/config-manager';
|
|
261
|
-
/**
|
|
262
|
-
* Extract repo name from Git URL
|
|
263
|
-
*
|
|
264
|
-
* Examples:
|
|
265
|
-
* - git@github.com:apache/superset.git -> superset
|
|
266
|
-
* - https://github.com/facebook/react.git -> react
|
|
267
|
-
*/
|
|
268
|
-
export declare function extractRepoName(url: string): string;
|
|
269
|
-
/**
|
|
270
|
-
* Clone a Git repository to ~/.agor/repos/<name>
|
|
271
|
-
*/
|
|
272
|
-
export declare function cloneRepo(options: CloneOptions): Promise<CloneResult>;
|
|
273
|
-
/**
|
|
274
|
-
* Check if a directory is a Git repository
|
|
275
|
-
*/
|
|
276
|
-
/**
|
|
277
|
-
* Validate that a path points to a git repository
|
|
278
|
-
*
|
|
279
|
-
* This checks both filesystem existence and git metadata.
|
|
280
|
-
*/
|
|
281
|
-
export declare function isValidGitRepo(path: string): Promise<boolean>;
|
|
282
|
-
/**
|
|
283
|
-
* @deprecated Use `isValidGitRepo` instead.
|
|
284
|
-
*
|
|
285
|
-
* Kept for backwards compatibility.
|
|
286
|
-
*/
|
|
287
|
-
export declare function isGitRepo(path: string): Promise<boolean>;
|
|
288
|
-
/**
|
|
289
|
-
* Get current branch name
|
|
290
|
-
*/
|
|
291
|
-
export declare function getCurrentBranch(repoPath: string): Promise<string>;
|
|
292
|
-
/**
|
|
293
|
-
* Get repository's default branch
|
|
294
|
-
*
|
|
295
|
-
* This is the branch that the remote HEAD points to (e.g., 'main', 'master', 'develop').
|
|
296
|
-
* Uses git symbolic-ref to determine the default branch accurately.
|
|
297
|
-
*
|
|
298
|
-
* @param repoPath - Path to repository
|
|
299
|
-
* @param remote - Remote name (default: 'origin')
|
|
300
|
-
* @returns Default branch name (e.g., 'main')
|
|
301
|
-
*/
|
|
302
|
-
export declare function getDefaultBranch(repoPath: string, remote?: string): Promise<string>;
|
|
303
|
-
/**
|
|
304
|
-
* Get current commit SHA
|
|
305
|
-
*/
|
|
306
|
-
export declare function getCurrentSha(repoPath: string): Promise<string>;
|
|
307
|
-
/**
|
|
308
|
-
* Check if working directory is clean (no uncommitted changes)
|
|
309
|
-
*/
|
|
310
|
-
export declare function isClean(repoPath: string): Promise<boolean>;
|
|
311
|
-
/**
|
|
312
|
-
* Get remote URL
|
|
313
|
-
*/
|
|
314
|
-
export declare function getRemoteUrl(repoPath: string, remote?: string): Promise<string | null>;
|
|
315
|
-
/**
|
|
316
|
-
* `previousUrl` is newline-joined when the prior state was multi-valued (git
|
|
317
|
-
* config legally allows that). Callers logging this MUST redact — values can
|
|
318
|
-
* carry credentials.
|
|
319
|
-
*/
|
|
320
|
-
export interface EnsureRemoteUrlResult {
|
|
321
|
-
changed: boolean;
|
|
322
|
-
previousUrl: string | undefined;
|
|
323
|
-
}
|
|
324
|
-
/**
|
|
325
|
-
* Realign `remote.<name>.url` to `expectedUrl`, leaving other remotes alone.
|
|
326
|
-
* No-op when already matching; deliberately does NOT create the remote when
|
|
327
|
-
* absent. Caller must trust `expectedUrl` (no validation here).
|
|
328
|
-
*
|
|
329
|
-
* Uses raw `git config --get-all` / `--replace-all` to handle the multi-value
|
|
330
|
-
* case (`--add` semantics) — `simple-git.getRemotes()` surfaces only one
|
|
331
|
-
* value, and `git remote set-url` errors when the key is multi-valued.
|
|
332
|
-
*/
|
|
333
|
-
export declare function ensureGitRemoteUrl(repoPath: string, remoteName: string, expectedUrl: string, env?: Record<string, string>): Promise<EnsureRemoteUrlResult>;
|
|
334
|
-
/**
|
|
335
|
-
* Parsed entry from `git worktree list --porcelain` output. Describes a
|
|
336
|
-
* git-worktree primitive — not the Agor Branch entity (which carries env
|
|
337
|
-
* config, board placement, owners, etc. on top of this).
|
|
338
|
-
*/
|
|
339
|
-
export interface GitWorktreeInfo {
|
|
340
|
-
name: string;
|
|
341
|
-
path: string;
|
|
342
|
-
ref: string;
|
|
343
|
-
sha: string;
|
|
344
|
-
detached: boolean;
|
|
345
|
-
}
|
|
346
|
-
/**
|
|
347
|
-
* Create a git branch
|
|
348
|
-
*/
|
|
349
|
-
export declare function createBranch(repoPath: string, branchPath: string, ref: string, createBranch?: boolean, pullLatest?: boolean, sourceBranch?: string, env?: Record<string, string>, refType?: 'branch' | 'tag'): Promise<void>;
|
|
350
|
-
/**
|
|
351
|
-
* Options for {@link createBranchAsClone} — the self-standing-clone
|
|
352
|
-
* counterpart to {@link createBranch}.
|
|
353
|
-
*
|
|
354
|
-
* Branch storage mode = 'clone' produces a working directory whose `.git/`
|
|
355
|
-
* is a real directory (not a `gitdir:` pointer file), with its own
|
|
356
|
-
* `.git/config`, refs, and credentials surface. Closes the cross-branch
|
|
357
|
-
* leak vectors that the Layer A defenses exist to mitigate. See
|
|
358
|
-
* `context/explorations/clone-redesign.md` §1.
|
|
359
|
-
*/
|
|
360
|
-
export interface CreateBranchAsCloneOptions {
|
|
361
|
-
/** Remote URL to clone from (https://, ssh://, git@host:path, file://, or local path). */
|
|
362
|
-
remoteUrl: string;
|
|
363
|
-
/** Absolute path where the new clone should land. Must not already exist. */
|
|
364
|
-
targetPath: string;
|
|
365
|
-
/**
|
|
366
|
-
* Branch to clone. Forwarded as `git clone --branch <ref>`. The remote
|
|
367
|
-
* must already have this ref. When {@link newBranchName} is also set,
|
|
368
|
-
* this is the *base* ref the new branch is created off (the typical
|
|
369
|
-
* "feature off main" flow).
|
|
370
|
-
*/
|
|
371
|
-
ref: string;
|
|
372
|
-
/**
|
|
373
|
-
* Optional new branch to create after the clone, via
|
|
374
|
-
* `git checkout -b <newBranchName>` against the cloned tip of {@link ref}.
|
|
375
|
-
* Use this when the caller wants `createBranch=true` semantics in
|
|
376
|
-
* clone-mode: the remote doesn't have the new branch yet, so we clone
|
|
377
|
-
* the source and fork locally. Omit to just check out `ref` directly.
|
|
378
|
-
*/
|
|
379
|
-
newBranchName?: string;
|
|
380
|
-
/**
|
|
381
|
-
* Optional shallow-clone depth. Positive integer → `--depth N`. Omit (or
|
|
382
|
-
* pass `undefined`) for a full clone with complete history.
|
|
383
|
-
*/
|
|
384
|
-
depth?: number;
|
|
385
|
-
/**
|
|
386
|
-
* `--single-branch`. Defaults to `true` — we only need the one branch we
|
|
387
|
-
* just asked for, and skipping the rest is cheaper. Pass `false` for the
|
|
388
|
-
* rare case where you want every remote ref locally.
|
|
389
|
-
*/
|
|
390
|
-
singleBranch?: boolean;
|
|
391
|
-
/**
|
|
392
|
-
* Optional `git clone --reference <path>` object-cache borrow.
|
|
393
|
-
*
|
|
394
|
-
* When set AND the path exists on the calling process's filesystem at
|
|
395
|
-
* runtime, this turns the per-branch `.git/objects/` into an `alternates`
|
|
396
|
-
* pointer at `<path>/.git/objects/` — disk drops from "full pack copy"
|
|
397
|
-
* (hundreds of MB for big repos) to "a few MB of refs/config". The
|
|
398
|
-
* config/credentials isolation that clone mode buys is preserved: only
|
|
399
|
-
* the immutable object store is shared with the daemon-owned base clone.
|
|
400
|
-
*
|
|
401
|
-
* When set but the path does NOT exist (executor running in a different
|
|
402
|
-
* mount, base clone not yet seeded, etc.), the `--reference` flag is
|
|
403
|
-
* silently dropped and a regular clone runs — at higher disk cost but
|
|
404
|
-
* still correct. This lets the daemon hand the executor a "use this if
|
|
405
|
-
* you have it" hint without coupling the two filesystems.
|
|
406
|
-
*
|
|
407
|
-
* NEVER paired with `--dissociate`: dissociate copies all reachable
|
|
408
|
-
* objects out of the reference into the new clone (~equivalent to a
|
|
409
|
-
* naïve clone), defeating the purpose. See design doc §5.
|
|
410
|
-
*
|
|
411
|
-
* Operational caveat: `git gc --prune=now` against the reference can
|
|
412
|
-
* orphan objects that branches' alternates pointers still depend on.
|
|
413
|
-
* Daemon-side base-cache management must avoid `--prune=now` (a future
|
|
414
|
-
* `branch_storage.base_cache_gc_prune` config knob will enforce this).
|
|
415
|
-
*/
|
|
416
|
-
referencePath?: string;
|
|
417
|
-
/** Per-user environment variables (GITHUB_TOKEN, GH_TOKEN, …). */
|
|
418
|
-
env?: Record<string, string>;
|
|
419
|
-
}
|
|
420
|
-
/**
|
|
421
|
-
* Result of {@link createBranchAsClone}. Shape mirrors what the executor
|
|
422
|
-
* handler wants out of {@link createBranch} so the call sites can stay
|
|
423
|
-
* uniform across storage modes.
|
|
424
|
-
*/
|
|
425
|
-
export interface CreateBranchAsCloneResult {
|
|
426
|
-
/** Absolute path of the created clone (echoes back `targetPath`). */
|
|
427
|
-
path: string;
|
|
428
|
-
/**
|
|
429
|
-
* Branch the working tree is actually on after the call. Equal to
|
|
430
|
-
* `newBranchName` when set (post-checkout); otherwise equal to `ref`.
|
|
431
|
-
*/
|
|
432
|
-
ref: string;
|
|
433
|
-
}
|
|
434
|
-
export interface AssertRemoteRefVisibleForCloneOptions {
|
|
435
|
-
/** Remote URL/path that clone-mode will pass to `git clone`. */
|
|
436
|
-
remoteUrl: string;
|
|
437
|
-
/** Branch/tag name that clone-mode will pass to `git clone --branch`. */
|
|
438
|
-
ref: string;
|
|
439
|
-
/** Which namespace to check. Defaults to branch refs. */
|
|
440
|
-
refType?: 'branch' | 'tag';
|
|
441
|
-
/** Per-user environment variables (GITHUB_TOKEN, GH_TOKEN, …). */
|
|
442
|
-
env?: Record<string, string>;
|
|
443
|
-
}
|
|
444
|
-
/**
|
|
445
|
-
* Preflight a clone-mode base ref before Agor persists any branch/session
|
|
446
|
-
* records. Clone mode can only materialise refs visible from the clone remote
|
|
447
|
-
* (typically `origin`); a local-only branch in the daemon's base clone is not
|
|
448
|
-
* cloneable via `git clone --branch`.
|
|
449
|
-
*/
|
|
450
|
-
export declare function assertRemoteRefVisibleForClone(options: AssertRemoteRefVisibleForCloneOptions): Promise<void>;
|
|
451
|
-
/**
|
|
452
|
-
* Create a self-standing clone of a remote at `targetPath` and check out a
|
|
453
|
-
* branch. Sibling to {@link createBranch}; chosen at branch-create time
|
|
454
|
-
* by the `storage_mode = 'clone'` opt-in.
|
|
455
|
-
*
|
|
456
|
-
* Two flows:
|
|
457
|
-
* - Without `newBranchName`: clone `ref` directly. Equivalent to
|
|
458
|
-
* `git clone --branch <ref> [--depth N] --single-branch <remoteUrl> <targetPath>`.
|
|
459
|
-
* - With `newBranchName`: clone `ref` as the base, then
|
|
460
|
-
* `git checkout -b <newBranchName>`. This is the typical "feature off
|
|
461
|
-
* main" flow that the create-time UI emits; the new branch doesn't
|
|
462
|
-
* exist on the remote yet, so we can't `git clone --branch <new>`.
|
|
463
|
-
*
|
|
464
|
-
* Unlike {@link createBranch}, this issues a real `git clone` and does
|
|
465
|
-
* not touch the per-repo base clone at `~/.agor/repos/<slug>/`. The
|
|
466
|
-
* resulting working directory has its own `.git/` directory — `.git/config`,
|
|
467
|
-
* remotes, credentials, hooks, and refs are all branch-local.
|
|
468
|
-
*
|
|
469
|
-
* Implemented via `simple-git`; no `execSync`/`spawn`. Credentials are
|
|
470
|
-
* delivered via `http.<host>.extraheader` env vars exactly like
|
|
471
|
-
* {@link cloneRepo}, never on argv.
|
|
472
|
-
*
|
|
473
|
-
* @throws if `targetPath` already exists, either ref is invalid, the
|
|
474
|
-
* underlying clone fails (network, auth, missing base ref, …), or
|
|
475
|
-
* the post-clone `checkout -b` fails.
|
|
476
|
-
*/
|
|
477
|
-
export declare function createBranchAsClone(options: CreateBranchAsCloneOptions): Promise<CreateBranchAsCloneResult>;
|
|
478
|
-
/**
|
|
479
|
-
* Result of a branch restoration attempt
|
|
480
|
-
*/
|
|
481
|
-
export interface RestoreBranchResult {
|
|
482
|
-
success: boolean;
|
|
483
|
-
/** Which strategy was used: 'checkout' (existing branch) or 'create' (new branch from base) */
|
|
484
|
-
strategy: 'checkout' | 'create';
|
|
485
|
-
/** Error message if restoration failed */
|
|
486
|
-
error?: string;
|
|
487
|
-
}
|
|
488
|
-
/**
|
|
489
|
-
* Restore a branch directory by checking out the branch or creating it from a base ref.
|
|
490
|
-
*
|
|
491
|
-
* Shared logic used by both:
|
|
492
|
-
* - `sync-unix` CLI command (restore action for failed branches)
|
|
493
|
-
* - `unarchive()` daemon method (via executor's git.branch.add command)
|
|
494
|
-
*
|
|
495
|
-
* Strategy:
|
|
496
|
-
* 1. Fetch from remote to ensure we have latest refs
|
|
497
|
-
* 2. Check if the branch exists on the remote via `ls-remote`
|
|
498
|
-
* 3. If YES: `createBranch(repoPath, path, ref, false)` — checkout existing branch
|
|
499
|
-
* 4. If NO: `createBranch(repoPath, path, ref, true, true, baseRef)` — create new branch from base
|
|
500
|
-
*
|
|
501
|
-
* This is safe because we only create a new branch when `ls-remote` confirms it
|
|
502
|
-
* doesn't exist on the remote, avoiding the orphan cleanup force-delete risk
|
|
503
|
-
* in `createBranch()`.
|
|
504
|
-
*
|
|
505
|
-
* @param repoPath - Absolute path to the base repository
|
|
506
|
-
* @param branchPath - Absolute path where the branch should be created
|
|
507
|
-
* @param ref - Branch name to restore
|
|
508
|
-
* @param baseRef - Fallback base branch (e.g., 'main') if ref doesn't exist on remote
|
|
509
|
-
* @param env - Optional environment variables for git operations (GITHUB_TOKEN, etc.)
|
|
510
|
-
*/
|
|
511
|
-
export declare function restoreBranchFilesystem(repoPath: string, branchPath: string, ref: string, baseRef: string, env?: Record<string, string>): Promise<RestoreBranchResult>;
|
|
512
|
-
/**
|
|
513
|
-
* List git-worktree entries registered with a repository (parsed
|
|
514
|
-
* `git worktree list --porcelain` output).
|
|
515
|
-
*
|
|
516
|
-
* Wraps the git-CLI primitive, so the name reflects what git sees ("worktrees"
|
|
517
|
-
* with a real `.git/worktrees/<name>/` entry in the base repo). Agor "branches"
|
|
518
|
-
* in clone storage mode are not git worktrees of the base repo and won't appear
|
|
519
|
-
* here — that's intentional; callers wanting the canonical list of Agor
|
|
520
|
-
* branches should use `BranchRepository`.
|
|
521
|
-
*/
|
|
522
|
-
export declare function listGitWorktrees(repoPath: string): Promise<GitWorktreeInfo[]>;
|
|
523
|
-
/**
|
|
524
|
-
* Remove a git-worktree entry from the base repo (`git worktree remove --force`).
|
|
525
|
-
*
|
|
526
|
-
* Wraps the git CLI directly — the name reflects the primitive, not the
|
|
527
|
-
* Agor "Branch" entity. Branches in clone storage mode aren't registered as
|
|
528
|
-
* git worktrees of the base repo and shouldn't go through this path.
|
|
529
|
-
*/
|
|
530
|
-
export declare function removeGitWorktree(repoPath: string, branchName: string): Promise<void>;
|
|
531
|
-
/**
|
|
532
|
-
* Clean a git branch (remove untracked files and build artifacts)
|
|
533
|
-
*
|
|
534
|
-
* Runs git clean -fdx which removes:
|
|
535
|
-
* - Untracked files and directories (-f -d)
|
|
536
|
-
* - Ignored files (node_modules, build artifacts, etc.) (-x)
|
|
537
|
-
*
|
|
538
|
-
* Preserves:
|
|
539
|
-
* - .git directory
|
|
540
|
-
* - Tracked files
|
|
541
|
-
* - Git state (commits, branches)
|
|
542
|
-
*
|
|
543
|
-
* In multi-user branches, files may be owned by different users (e.g., build artifacts
|
|
544
|
-
* created by different user sessions). This function attempts to fix ownership before
|
|
545
|
-
* cleaning to ensure all files can be removed.
|
|
546
|
-
*
|
|
547
|
-
* @param branchPath - Absolute path to the branch directory
|
|
548
|
-
* @param fixOwnership - Whether to attempt ownership fix via sudo (default: true)
|
|
549
|
-
* @returns Disk space freed in bytes (approximate based on removed file count)
|
|
550
|
-
*/
|
|
551
|
-
export declare function cleanBranch(branchPath: string, fixOwnership?: boolean): Promise<{
|
|
552
|
-
filesRemoved: number;
|
|
553
|
-
}>;
|
|
554
|
-
/**
|
|
555
|
-
* Prune stale git-worktree metadata (`git worktree prune`).
|
|
556
|
-
*
|
|
557
|
-
* Wraps the git CLI directly — used after manual filesystem removal to
|
|
558
|
-
* tell git to drop the stale `.git/worktrees/<name>/` administrative entry.
|
|
559
|
-
*/
|
|
560
|
-
export declare function pruneGitWorktrees(repoPath: string): Promise<void>;
|
|
561
|
-
/**
|
|
562
|
-
* Check if a remote branch exists
|
|
563
|
-
*/
|
|
564
|
-
export declare function hasRemoteBranch(repoPath: string, branchName: string, remote?: string): Promise<boolean>;
|
|
565
|
-
/**
|
|
566
|
-
* Get list of remote branches
|
|
567
|
-
*/
|
|
568
|
-
export declare function getRemoteBranches(repoPath: string, remote?: string): Promise<string[]>;
|
|
569
|
-
/**
|
|
570
|
-
* Get git state for a repository (SHA + dirty status)
|
|
571
|
-
*
|
|
572
|
-
* Returns the current commit SHA with "-dirty" suffix if working directory has uncommitted changes.
|
|
573
|
-
* If not in a git repo or SHA cannot be determined, returns "unknown".
|
|
574
|
-
*
|
|
575
|
-
* Examples:
|
|
576
|
-
* - "abc123def456" (clean working directory)
|
|
577
|
-
* - "abc123def456-dirty" (uncommitted changes)
|
|
578
|
-
* - "unknown" (not a git repo or error)
|
|
579
|
-
*/
|
|
580
|
-
export declare function getGitState(repoPath: string): Promise<string>;
|
|
581
|
-
/**
|
|
582
|
-
* Delete a repository directory from filesystem
|
|
583
|
-
*
|
|
584
|
-
* Removes the repository directory and all its contents from ~/.agor/repos/.
|
|
585
|
-
* This is typically used when deleting a remote repository that was cloned by Agor.
|
|
586
|
-
*
|
|
587
|
-
* @param repoPath - Absolute path to the repository directory
|
|
588
|
-
* @throws Error if the path is not inside ~/.agor/repos/ (safety check)
|
|
589
|
-
*/
|
|
590
|
-
export declare function deleteRepoDirectory(repoPath: string): Promise<void>;
|
|
591
|
-
/**
|
|
592
|
-
* Delete a branch directory from filesystem
|
|
593
|
-
*
|
|
594
|
-
* Removes the branch directory and all its contents from the branches directory.
|
|
595
|
-
*
|
|
596
|
-
* @param branchPath - Absolute path to the branch directory
|
|
597
|
-
* @throws Error if the path is not inside the configured branches directory (safety check)
|
|
598
|
-
*/
|
|
599
|
-
export declare function deleteBranchDirectory(branchPath: string): Promise<void>;
|
|
600
|
-
/**
|
|
601
|
-
* Delete a local git branch
|
|
602
|
-
*
|
|
603
|
-
* Uses -D (force delete) to handle branches that haven't been merged.
|
|
604
|
-
* Silently succeeds if the branch doesn't exist.
|
|
605
|
-
*
|
|
606
|
-
* @param repoPath - Path to the repository
|
|
607
|
-
* @param branchName - Branch name to delete
|
|
608
|
-
* @returns true if branch was deleted, false if it didn't exist
|
|
609
|
-
*/
|
|
610
|
-
export declare function deleteBranch(repoPath: string, branchName: string): Promise<boolean>;
|
|
611
|
-
/**
|
|
612
|
-
* Re-export for test helpers only.
|
|
613
|
-
* Production service code must use createGit() to get the unsafe-ops flags,
|
|
614
|
-
* env hardening, and consistent git binary selection.
|
|
615
|
-
*/
|
|
616
|
-
export { simpleGit };
|
|
6
|
+
export * from '@agor/git';
|
|
617
7
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/git/index.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,cAAc,WAAW,CAAC"}
|