GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Merge remote-tracking branch 'origin/main' into kevlingo/features · sandscooling/t3code@0049cde

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .github
    • scripts
      • set-release-version.cjs
      • workflow-credentials.test.cjs
    • workflows
      • deploy-relay.yml
      • issue-labels.yml
      • issue-vouch.yml
      • mobile-android-apk.yml
      • mobile-eas-preview-build.yml
      • mobile-eas-preview-fork.yml
      • mobile-eas-preview.yml
      • mobile-eas-production-build.yml
      • mobile-eas-production.yml
      • mobile-fingerprint-check.yml
      • mobile-fingerprint-label.yml
      • pr-limits.yml
      • pr-size.yml
      • pr-vouch.yml
      • relay-preview-cleanup.yml
      • release.yml
      • stale-needs-more-info.yml
      • thread-transfer-report.yml
      • web-preview.yml
  • SECURITY.md
  • apps
    • desktop/src
      • backend
        • DesktopBackendConfiguration.test.ts
        • DesktopBackendConfiguration.ts
        • DesktopBackendManager.test.ts
        • DesktopBackendManager.ts
      • preview
        • DesktopBrowserHost.test.ts
        • DesktopBrowserHost.ts
        • GuestInput.test.ts
        • GuestInput.ts
        • LoopbackTunnel.test.ts
        • LoopbackTunnel.ts
        • Manager.test.ts
        • Manager.ts
      • updates
        • DesktopUpdates.test.ts
        • DesktopUpdates.ts
        • updateMachine.ts
        • updatesTestHarness.ts
    • mobile
      • src
        • features
          • browser
            • LocalPreviewRouteScreen.test.tsx
            • LocalPreviewRouteScreen.tsx
            • browserTabs.test.ts
            • browserTabs.ts
          • connection
            • pairing.test.ts
            • pairing.ts
          • home
            • thread-swipe-actions.tsx
          • threads
            • HtmlRenderWebView.test.tsx
            • HtmlRenderWebView.tsx
          • usage
            • UsageLimitsPooled.tsx
        • i18n/translations
          • de.json
          • en.json
          • es.json
          • fr.json
          • ja.json
          • ko.json
          • pt-BR.json
          • ru.json
          • sv.json
          • zh.json
        • lib
          • openExternalUrl.ts
          • threadActivity.test.ts
          • threadActivity.ts
        • state
          • use-thread-composer-state.ts
      • vite.config.ts
    • server/src
      • auth
        • RpcAuthorization.test.ts
      • cli
        • config.ts
        • thread.test.ts
        • thread.ts
        • triage.test.ts
        • triage.ts
        • uninstall.test.ts
        • uninstall.ts
      • cloud
        • serviceLauncherClient.test.ts
      • config.ts
      • environment
        • ServerEnvironment.test.ts
      • http.test.ts
      • http.ts
      • mcp
        • McpInvocationContext.test.ts
        • McpInvocationContext.ts
        • McpToolAccess.test.ts
        • McpToolAccess.ts
        • WorktreeMcpService.ts
        • threadAccess.ts
        • toolkits
          • pullRequests
            • handlers.test.ts
            • handlers.ts
            • tools.ts
          • workflow
            • handlers.test.ts
            • handlers.ts
      • orchestration-v2
        • Adapters
          • AcpAdapterV2.test.ts
          • AntigravityAdapterV2.test.ts
          • AntigravityAdapterV2.ts
          • ClaudeAdapterV2.test.ts
          • ClaudeAdapterV2.ts
          • ClaudeAgentSdkQueryRunner.test.ts
          • CodexAdapterV2.test.ts
          • CodexAdapterV2.ts
        • CheckpointRollbackService.taskFolder.test.ts
        • CheckpointRollbackService.ts
        • Orchestrator.ts
        • ThreadLaunchService.test.ts
        • ThreadLaunchService.ts
        • ThreadMessageIntake.test.ts
        • ThreadMessageIntake.ts
        • pullRequestWatch.test.ts
        • pullRequestWatch.ts
        • runtimeLayer.test.ts
      • preview
        • PreviewBrowser.ts
      • project
        • AgentSessionScanner.test.ts
        • AgentSessionScanner.ts
        • ProjectFaviconResolver.test.ts
        • ProjectFaviconResolver.ts
        • ProjectService.test.ts
      • provider
        • Drivers
          • ClaudeSkills.ts
        • acp
          • AntigravityAcpSupport.test.ts
          • AntigravityAcpSupport.ts
          • AntigravityProtocol.ts
        • agentContextBudget.json
      • pullRequest
        • PullRequestReviewGuideService.ts
        • pullRequestReviewGuideInput.ts
      • scheduledTasks
        • webhookFilter.test.ts
        • webhookRoute.test.ts
        • webhookRoute.ts
        • webhookTemplate.ts
      • server.ts
      • storageCleanup.test.ts
      • storageCleanup.ts
      • textGeneration
        • ClaudeTextGeneration.test.ts
        • ClaudeTextGeneration.ts
        • CodexTextGeneration.test.ts
        • testing
          • ClaudeTextGeneration.fixture.mjs
      • workflows
        • WorkflowEngine.ts
        • WorkflowStore.test.ts
        • WorkflowStore.ts
        • Workflows.test.ts
        • Workflows.ts
      • workspace
        • TaskFolders.test.ts
        • TaskFolders.ts
        • restoreMissingWorktree.ts
      • ws.test.ts
      • ws.ts
    • web
      • package.json
      • src
        • components
          • ChatView.tsx
          • ThreadRouteView.tsx
          • chat
            • EffortGlyph.test.ts
            • EffortGlyph.tsx
            • MessagesTimeline.logic.test.ts
            • MessagesTimeline.logic.ts
            • ModelPickerContent.tsx
          • diffs
            • DiffCommentAnnotation.browser.test.tsx
            • DiffCommentAnnotation.tsx
          • files
            • BrowserDocumentFrame.browser.test.tsx
            • BrowserDocumentFrame.tsx
          • pullRequest
            • PullRequestChecksPopover.tsx
            • PullRequestCodeTab.tsx
            • PullRequestListFilters.tsx
            • PullRequestReviewAnnotation.browser.test.tsx
            • PullRequestReviewAnnotation.tsx
            • PullRequestsColumn.browser.test.tsx
            • PullRequestsColumn.tsx
            • pullRequestPresentation.test.ts
            • pullRequestPresentation.tsx
          • settings
            • DiagnosticsSettings.tsx
            • VoiceSettingsPanel.browser.test.tsx
            • VoiceSettingsPanel.tsx
          • sidebar
            • SidebarThreadRow.tsx
            • SidebarUpdateCapsule.tsx
            • SidebarUpdatePill.tsx
            • updateEverything.logic.test.ts
            • updateEverything.logic.ts
            • updateEverythingRun.test.ts
            • updateEverythingRun.tsx
            • useUpdateEverything.ts
          • usage
            • UsageLimitsPooled.browser.test.tsx
            • UsageLimitsPooled.tsx
        • i18n/translations
          • de.json
          • en.json
          • es.json
          • fr.json
          • ja.json
          • ko.json
          • pt-BR.json
          • ru.json
          • sv.json
          • zh.json
        • lib
          • bootError.test.ts
          • bootError.ts
        • markdown
          • wordsHast.test.ts
          • wordsHast.ts
        • state
          • presentation.ts
          • shell.test.ts
        • threadRoutes.test.ts
        • threadRoutes.ts
  • docs
    • internals
      • 03_providers.md
      • 04_environment-auth.md
      • 05_remote.md
    • user
      • multi-repo-projects.md
      • outside-agents.md
      • remote-access.md
      • source-control.md
      • thread-sidebar.md
      • updating.md
      • workflows.md
  • evals/mcp-tool-use
    • README.md
    • cases
      • pull-requests.ndjson
    • run.test.ts
    • run.ts
  • package.json
  • packages
    • client-runtime
      • package.json
      • src
        • connection
          • errors.ts
        • modelSearch.test.ts
        • modelSearch.ts
        • operations
          • projects.test.ts
          • projects.ts
        • pullRequestMarkdown.test.ts
        • pullRequestMarkdown.ts
        • rpc
          • session.test.ts
        • state
          • threadExecution.test.ts
          • threadExecution.ts
    • contracts/src
      • desktopBootstrap.ts
      • orchestrationV2.ts
      • settings.ts
    • provider-acp/src/server
      • adapter.ts
    • provider-core/src/server
      • textGeneration.ts
      • textGenerationOperations.ts
    • provider-muse/src/server
      • adapter.test.ts
      • adapter.ts
    • provider-pi/src/server
      • adapter.test.ts
      • adapter.ts
    • shared
      • package.json
      • src
        • desktopReadinessProof.test.ts
        • desktopReadinessProof.ts
        • httpReadiness.ts
        • markdownChunks.test.ts
        • markdownChunks.ts
    • source-control-gitlab/src/server
      • GitLabPullRequestCli.test.ts
      • GitLabPullRequestCli.ts
    • source-control-tanstack-source/src/server
      • TanStackSourceIssueTracker.test.ts
      • TanStackSourceIssueTracker.ts
    • ssh/src
      • tunnel.test.ts
  • scripts/scenarios
    • workflow-run-title-keeps-whole-characters.e2e.ts

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Dismiss banner
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎.github/scripts/set-release-version.cjs‎

Copy file name to clipboard
+31Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
const fs = require("node:fs");
2+
3+
// The manifests in scripts/lib/tagged-source-version.ts.
4+
const RELEASE_PACKAGE_FILES = [
5+
"apps/server/package.json",
6+
"apps/desktop/package.json",
7+
"apps/web/package.json",
8+
"packages/contracts/package.json",
9+
];
10+
const VERSION_LINE = /^( {2}"version": ")[^"]*(",?)$/gm;
11+
12+
// Replaces one string literal, so the result needs no formatter and no dependencies.
13+
function setReleaseVersion(source, version) {
14+
if (!/^[0-9]+\.[0-9]+\.[0-9]+([.-][0-9A-Za-z.-]+)?$/.test(version)) {
15+
throw new Error(`Invalid release version: '${version}'.`);
16+
}
17+
if (source.match(VERSION_LINE)?.length !== 1) {
18+
throw new Error("Expected exactly one top-level version in the manifest");
19+
}
20+
return source.replace(VERSION_LINE, `$1${version}$2`);
21+
}
22+
23+
if (require.main === module) {
24+
for (const file of RELEASE_PACKAGE_FILES) {
25+
const source = fs.readFileSync(file, "utf8");
26+
const next = setReleaseVersion(source, process.argv[2] ?? "");
27+
if (next !== source) fs.writeFileSync(file, next);
28+
}
29+
}
30+
31+
module.exports = { RELEASE_PACKAGE_FILES, setReleaseVersion };
Collapse file

‎.github/scripts/workflow-credentials.test.cjs‎

Copy file name to clipboardExpand all lines: .github/scripts/workflow-credentials.test.cjs
+42Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ const { join } = require("node:path");
1313
const { test } = require("node:test");
1414

1515
const { setMobileVersion } = require("./set-mobile-version.cjs");
16+
const { RELEASE_PACKAGE_FILES, setReleaseVersion } = require("./set-release-version.cjs");
1617

1718
const read = (path) => readFileSync(join(__dirname, "..", path), "utf8");
1819

@@ -200,6 +201,15 @@ test("the version override token covers this repository only", () => {
200201
assert.doesNotMatch(production, /RELEASE_APP|create-github-app-token/);
201202
});
202203

204+
test("the release version bump is pushed by a job that installs nothing, with a token for this repository only", () => {
205+
const { finalize } = jobs("workflows/release.yml");
206+
const mint = steps(finalize).find((step) => step.includes("create-github-app-token"));
207+
assert.doesNotMatch(mint, /^\s+(?:owner|repositories):/m);
208+
assert.match(mint, /^\s+permission-contents: write$/m);
209+
assert.ok(!runsProjectCode(finalize), "finalize holds a write token and runs code");
210+
assert.match(finalize, /run: node \.github\/scripts\/set-release-version\.cjs /);
211+
});
212+
203213
test("the Vite+ toolchain is cached before the job installs or runs project code", () => {
204214
const names = Array.from(
205215
read("actions/setup-ci-deps/action.yml").matchAll(
@@ -300,3 +310,35 @@ test("a version override rewrites only the app version", () => {
300310
}
301311
assert.throws(() => setMobileVersion("export default {};", "1.2.3"), /Could not update/);
302312
});
313+
314+
test("a release version bump rewrites only the version of each release manifest", () => {
315+
const listed = /releasePackageFiles = \[\n([^\]]+)\]/.exec(
316+
read("../scripts/lib/tagged-source-version.ts"),
317+
)[1];
318+
assert.deepEqual(
319+
RELEASE_PACKAGE_FILES,
320+
Array.from(listed.matchAll(/"([^"]+)"/g), (m) => m[1]),
321+
);
322+
for (const file of RELEASE_PACKAGE_FILES) {
323+
const manifest = read(`../${file}`);
324+
const next = setReleaseVersion(manifest, "98.7.6");
325+
assert.equal(JSON.parse(next).version, "98.7.6");
326+
assert.deepEqual(
327+
{ ...JSON.parse(next), version: "" },
328+
{ ...JSON.parse(manifest), version: "" },
329+
);
330+
assert.equal(setReleaseVersion(next, "98.7.6"), next);
331+
assert.deepEqual(
332+
next.split("\n").filter((line, index) => line !== manifest.split("\n")[index]).length,
333+
1,
334+
);
335+
}
336+
for (const version of ["", "1", "1.2", "v1.2.3", '1.2.3", "x": "y']) {
337+
assert.throws(() => setReleaseVersion('{\n "version": "1.0.0"\n}\n', version), /Invalid/);
338+
}
339+
assert.equal(
340+
setReleaseVersion('{\n "version": "1.0.0"\n}\n', "1.2.3-rc.1"),
341+
'{\n "version": "1.2.3-rc.1"\n}\n',
342+
);
343+
assert.throws(() => setReleaseVersion('{\n "name": "x"\n}\n', "1.2.3"), /exactly one/);
344+
});
Collapse file

‎.github/workflows/deploy-relay.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/deploy-relay.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ on:
1616
permissions:
1717
contents: read
1818
id-token: none
19-
statuses: write
2019

2120
concurrency:
2221
group: relay-production
@@ -29,6 +28,9 @@ jobs:
2928
if: github.repository == 'pingdotgg/t3code' && github.ref == 'refs/heads/main'
3029
runs-on: blacksmith-8vcpu-ubuntu-2404
3130
timeout-minutes: 15
31+
permissions:
32+
contents: read
33+
statuses: write
3234
environment:
3335
name: production
3436
env:
Collapse file

‎.github/workflows/issue-labels.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/issue-labels.yml
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ on:
99
- .github/workflows/issue-labels.yml
1010
workflow_dispatch:
1111

12-
permissions:
13-
issues: write
12+
permissions: {}
1413

1514
jobs:
1615
sync:
1716
name: Sync issue labels
1817
runs-on: ubuntu-24.04
18+
permissions:
19+
issues: write
1920
steps:
2021
- name: Ensure managed issue labels exist
2122
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
Collapse file

‎.github/workflows/issue-vouch.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/issue-vouch.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ on:
1313

1414
permissions:
1515
contents: read
16-
issues: write
1716

1817
concurrency:
1918
group: issue-vouch-${{ github.event.issue.number || 'all' }}
@@ -23,6 +22,9 @@ jobs:
2322
label:
2423
name: Label issues by author trust
2524
runs-on: ubuntu-24.04
25+
permissions:
26+
contents: read
27+
issues: write
2628
steps:
2729
- uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
2830
with:
Collapse file

‎.github/workflows/mobile-android-apk.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/mobile-android-apk.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- cron: "23 * * * *"
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
concurrency:
1215
group: mobile-android-apk
1316
cancel-in-progress: false
Collapse file

‎.github/workflows/mobile-eas-preview-build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/mobile-eas-preview-build.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
description: Install link for the client with this fingerprint
2525
value: ${{ jobs.android.outputs.client || jobs.ios.outputs.client }}
2626

27+
permissions:
28+
contents: read
29+
2730
jobs:
2831
android:
2932
name: Build
Collapse file

‎.github/workflows/mobile-eas-preview-fork.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/mobile-eas-preview-fork.yml
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ jobs:
244244
timeout-minutes: 60
245245
permissions:
246246
contents: read
247-
pull-requests: write
248247
outputs:
249248
client: ${{ steps.build.outputs.link }}
250249
env:
@@ -308,7 +307,6 @@ jobs:
308307
timeout-minutes: 60
309308
permissions:
310309
contents: read
311-
pull-requests: write
312310
outputs:
313311
client: ${{ steps.build.outputs.link }}
314312
env:
Collapse file

‎.github/workflows/mobile-eas-preview.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/mobile-eas-preview.yml
+3-2Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
pull_request:
55
types: [opened, reopened, synchronize, labeled]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
ios:
912
name: EAS Preview (iOS)
@@ -17,7 +20,6 @@ jobs:
1720
cancel-in-progress: true
1821
permissions:
1922
contents: read
20-
pull-requests: write
2123
outputs:
2224
group: ${{ steps.update.outputs.group }}
2325
client: ${{ steps.client.outputs.link }}
@@ -139,7 +141,6 @@ jobs:
139141
cancel-in-progress: true
140142
permissions:
141143
contents: read
142-
pull-requests: write
143144
outputs:
144145
group: ${{ steps.update.outputs.group }}
145146
client: ${{ steps.client.outputs.link }}
Collapse file

‎.github/workflows/mobile-eas-production-build.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/mobile-eas-production-build.yml
+3Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ on:
3131
MOBILE_SOURCEMAPS_R2:
3232
required: false
3333

34+
permissions:
35+
contents: read
36+
3437
jobs:
3538
# ARM-only, without release lint (see the production profile in eas.json),
3639
# with Gradle, ccache, and pnpm state on a sticky disk.

0 commit comments

Comments
0 (0)
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.