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 'github/main' into t3/auto-report-git-fa… · pingdotgg/t3code@a375dbc

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • .agents/skills/test-t3-mobile
    • SKILL.md
  • .github
    • scripts
      • mobile-preview-comment.cjs
      • mobile-preview-comment.test.cjs
    • workflows
      • ci.yml
      • mobile-dev-client.yml
      • mobile-eas-preview-fork.yml
      • mobile-eas-preview.yml
      • mobile-eas-production.yml
  • apps
    • desktop
      • package.json
      • src
        • electron
          • ElectronShell.test.ts
          • ElectronShell.ts
        • window
          • DesktopApplicationMenu.test.ts
          • DesktopApplicationMenu.ts
          • DesktopWindow.test.ts
          • DesktopWindow.ts
    • mobile
      • README.md
      • app.config.ts
      • eas.json
      • modules/t3-highlights
        • Vendor/highlights
          • highlights.c
          • highlights.h
        • cpp
          • t3_highlights.c
      • package.json
      • src
        • components
          • ComposerModelControl.tsx
          • ComposerToolbar.tsx
          • PdfPreview.android.tsx
          • ProviderIcon.tsx
          • ui
            • AndroidScreenHeader.android.tsx
            • AppBar.android.tsx
            • AppBar.types.ts
            • NativeAppBar.android.tsx
            • useToolbarLayout.ts
        • connection
          • environment-cache-store.test.ts
          • environment-cache-store.ts
        • features
          • files
            • ThreadFilesRouteScreen.tsx
          • home
            • HomeRouteScreen.tsx
            • thread-swipe-actions.tsx
          • layout
            • AdaptiveWorkspaceLayout.tsx
            • adaptive-workspace-context.ts
            • createWorkspaceStackNavigator.ios.tsx
            • inspector-host.tsx
            • useSidebarToggle.ts
            • workspace
              • AndroidWorkspaceNavigation.android.tsx
              • WorkspaceListEmptyDetail.tsx
              • WorkspaceNativeTabs.ios.tsx
              • WorkspaceThreadSidebar.tsx
              • WorkspaceToolbar.tsx
          • review
            • ReviewSheet.tsx
            • reviewModel.ts
          • settings
            • VoiceModelSection.tsx
          • threads
            • ThreadComposer.tsx
            • ThreadDetailScreen.tsx
            • ThreadFeed.tsx
            • ThreadHeader.tsx
            • ThreadRouteScreen.tsx
            • ThreadSettingsSheet.tsx
            • thread-inspector-navigation.test.tsx
            • thread-inspector-navigation.ts
            • thread-list-v2-items.tsx
          • voice-input
            • voiceDestination.test.ts
        • lib
          • filePreview.test.ts
          • highlights.generated.ts
          • layout.test.ts
          • layout.ts
        • native
          • V5StackHeader.ios.tsx
    • server
      • package.json
      • scripts
        • speech-catalog.test.ts
        • speech-catalog.ts
      • src
        • auth
          • EnvironmentAuth.test.ts
          • EnvironmentAuth.ts
          • McpOAuth.test.ts
          • McpOAuth.ts
          • dpop.testkit.ts
          • mcpOAuthHttp.ts
        • cloud
          • publicConfig.ts
        • environment
          • ServerEnvironment.ts
        • mcp/toolkits/preview
          • tools.ts
        • orchestration-v2
          • Adapters
            • ClaudeAdapterV2.test.ts
            • ClaudeAdapterV2.ts
          • EventSink.ts
          • Orchestrator.ts
          • ProviderCommitBatch.ts
          • PullRequestWatchReactor.ts
          • RunExecutionService.test.ts
          • RunExecutionService.ts
          • assistantStreaming.test.ts
          • assistantStreaming.ts
          • pullRequestWatch.test.ts
          • pullRequestWatch.ts
          • runtimeLayer.test.ts
        • peer
          • PeerLinks.testkit.ts
          • PeerLinks.ts
        • preview
          • ServerBrowser.test.ts
          • ServerBrowser.ts
        • provider
          • CodexInstallation.test.ts
          • Drivers
            • antigravityUsageReader.test.ts
            • antigravityUsageReader.ts
          • ModelManifest.test.ts
          • ModelManifest.ts
          • ProviderRegistry.test.ts
          • ProviderRegistry.ts
          • agentContextBudget.json
          • antigravityAuthSupport.test.ts
          • antigravityAuthSupport.ts
          • model-manifest.json
          • providerCompatibility.test.ts
          • providerMaintenanceRunner.test.ts
          • testUtils
            • providerRegistryMock.ts
        • speech
          • SpeechService.test.ts
          • SpeechService.ts
          • catalog.json
        • usage
          • UsageService.test.ts
        • ws.ts
    • web
      • package.json
      • src
        • components
          • ChatView.logic.browser.test.ts
          • ChatView.logic.ts
          • ProviderUpdatesAction.browser.test.tsx
          • ProviderUpdatesAction.tsx
          • Sidebar.browser.test.tsx
          • auth
            • ApproveAgentSurface.tsx
            • ConnectAgentSurface.logic.test.ts
            • ConnectAgentSurface.logic.ts
            • ConnectAgentSurface.tsx
          • chat
            • BackgroundWorkDetails.browser.test.tsx
            • BackgroundWorkDetails.tsx
            • ChatComposer.tsx
            • ChatHeader.browser.test.tsx
            • ChatHeader.tsx
            • ExpandedImageDialog.browser.test.tsx
            • ProviderModelPicker.tsx
            • ThreadActivityBanners.tsx
            • ZoomableImage.tsx
            • chatViewSend.ts
            • useComposerSend.ts
            • useThreadLifecycle.tsx
          • desktop
            • SnapShotCoordinator.tsx
          • diffs
            • AnnotatableCodeView.browser.test.tsx
            • AnnotatableCodeView.tsx
            • StyledDiffCodeView.tsx
            • codeViewContextExpansion.browser.test.ts
            • codeViewSearch.browser.test.ts
            • codeViewSearch.test.ts
          • files
            • fileEditorDismissal.browser.test.tsx
            • fileEditorVirtualization.test.ts
          • mcp
            • UseInAnotherAppDialog.tsx
            • mcpApps.test.ts
            • mcpApps.ts
          • pullRequest
            • PullRequestCodeTab.tsx
          • settings
            • SettingsPanels.tsx
            • SourceControlWritingSettings.browser.test.tsx
            • SourceControlWritingSettings.tsx
            • SpeechModelComparison.tsx
            • VoiceSettingsPanel.browser.test.tsx
            • VoiceSettingsPanel.tsx
            • settingsSearch.ts
            • speechModelBrowser.test.ts
            • speechModelBrowser.ts
          • sidebar
            • SidebarUpdatePill.tsx
            • UpdateEverythingDialog.tsx
          • ui
            • autocomplete.tsx
            • combobox.tsx
            • select.tsx
        • connection
          • storage.ts
        • hooks
          • useHandleNewThread.test.ts
          • useHandleNewThread.ts
        • index.css
        • lib
          • diffRendering.ts
          • workspaceFocus.browser.test.ts
          • workspaceFocus.ts
        • reviewCommentContext.test.ts
        • routeTree.gen.ts
        • routes
          • __root.tsx
          • approve-agent.tsx
        • shortcuts
          • chatRouteCommands.test.ts
          • chatRouteCommands.ts
        • speech
          • useEnvironmentSpeechInput.browser.test.tsx
        • state
          • connectMcpApproval.ts
          • projects.ts
          • shell.test.ts
  • docs/user
    • outside-agents.md
    • source-control.md
  • evals/mcp-tool-use
    • cases
      • visual-preview.ndjson
    • run.ts
  • infra/task-cache
    • README.md
  • packages
    • client-runtime
      • package.json
      • src
        • platform
          • hostYield.ts
          • shellCacheEncoding.ts
          • threadCacheEncoding.test.ts
          • threadCacheEncoding.ts
        • reviewGuideTour.test.ts
        • state
          • connectMcpApproval.ts
          • environmentHttpAuth.ts
          • server.ts
    • contracts
      • package.json
      • src
        • environment.ts
        • environmentHttp.ts
        • orchestrationV2.ts
        • pullRequest.ts
        • rpc.ts
        • speech.test.ts
        • speech.ts
        • threadPullRequest.ts
    • provider-core/src/server
      • ProviderLatestVersions.ts
      • orchestrationInstructions.ts
    • provider-cursor/src/server
      • CursorUsageAccounts.ts
      • accountCache.test.ts
      • accountCache.ts
      • accountUsage.test.ts
      • accountUsage.ts
    • provider-opencode/src/server
      • usage.test.ts
      • usage.ts
    • source-control-cursor-origin/src/server
      • OriginCli.ts
    • source-control-github/src/server
      • GitHubPullRequestProvider.test.ts
      • GitHubPullRequestProvider.ts
  • patches
    • @[email protected]
    • @pierre%[email protected]
    • @[email protected]
    • [email protected]
    • [email protected]
    • [email protected]
    • [email protected]
  • pnpm-lock.yaml
  • pnpm-workspace.yaml
  • scripts
    • mobile-native-client.test.ts
    • mobile-native-client.ts
  • third-party-licenses.config.json

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

‎.agents/skills/test-t3-mobile/SKILL.md‎

Copy file name to clipboardExpand all lines: .agents/skills/test-t3-mobile/SKILL.md
+3-2Lines changed: 3 additions & 2 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ vp run mobile:install <ios|android> <device-id>
3636

3737
This installs the dev client for the checkout's native fingerprint: from the
3838
device, the local cache, or the shared cache in seconds, building once only
39-
when no machine has that fingerprint yet (5-15 minutes, logged to the file it
40-
names). The device id may be omitted when exactly one device is booted. It
39+
when no machine has that fingerprint yet: in the `Mobile Dev Client` workflow
40+
on Blacksmith when HEAD is pushed and `gh` may dispatch it (the command waits),
41+
otherwise here (5-15 minutes, logged to the file it names). The device id may be omitted when exactly one device is booted. It
4142
prints one JSON line; on failure it names the next command. Mobile verification
4243
includes that step unless the user prohibits it.
4344

Collapse file

‎.github/scripts/mobile-preview-comment.cjs‎

Copy file name to clipboard
+126Lines changed: 126 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,126 @@
1+
// The Android half of the mobile preview comment. The android job writes the fingerprint and
2+
// the update; the android-build job adds the client's install link a few minutes later. Each
3+
// run merges what it knows into the state kept in the comment's first line.
4+
const MARKER = "mobile-preview-android";
5+
const PROJECT_ID = "d763fcb8-d37c-41ea-a773-b54a0ab4a454";
6+
const APP_SCHEME = "t3-code";
7+
8+
function readState(body) {
9+
const match = new RegExp(`^<!-- ${MARKER} (\\{.*\\}) -->`).exec(body ?? "");
10+
if (!match) return null;
11+
try {
12+
const state = JSON.parse(match[1]);
13+
const text = (value) => (typeof value === "string" ? value : "");
14+
return {
15+
fingerprint: text(state.fingerprint),
16+
client: text(state.client),
17+
group: text(state.group),
18+
};
19+
} catch {
20+
return null;
21+
}
22+
}
23+
24+
/**
25+
* New values win; a new fingerprint drops the old fingerprint's client. A build that finishes
26+
* after the PR moved to another fingerprint changes nothing: its client cannot run the update
27+
* the comment now shows.
28+
*/
29+
function mergeState(previous, next) {
30+
const buildOnly = Boolean(next.client) && !next.group;
31+
if (
32+
buildOnly &&
33+
previous?.fingerprint &&
34+
next.fingerprint &&
35+
previous.fingerprint !== next.fingerprint
36+
) {
37+
return previous;
38+
}
39+
const fingerprint = next.fingerprint || previous?.fingerprint || "";
40+
const sameFingerprint = !previous?.fingerprint || previous.fingerprint === fingerprint;
41+
return {
42+
fingerprint,
43+
client: next.client || (sameFingerprint ? (previous?.client ?? "") : ""),
44+
group: next.group || previous?.group || "",
45+
};
46+
}
47+
48+
function render(state, runUrl) {
49+
const qr = `https://qr.expo.dev/eas-update?appScheme=${APP_SCHEME}&projectId=${PROJECT_ID}&groupId=${state.group}`;
50+
const rows = [
51+
`<!-- ${MARKER} ${JSON.stringify(state)} -->`,
52+
"🤖 Android preview",
53+
"",
54+
"&nbsp; | 🤖 Android",
55+
"--- | ---",
56+
`Fingerprint | ${state.fingerprint || "n/a"}`,
57+
`Dev client | ${state.client ? `[Install](${state.client})` : `Building on Blacksmith ([run](${runUrl})); this comment gets the install link when it finishes`}`,
58+
];
59+
if (state.group) {
60+
rows.push(
61+
`Update Details | [Update Permalink](https://expo.dev/projects/${PROJECT_ID}/updates/${state.group})`,
62+
`Update QR | <a href="${qr}"><img src="${qr}" width="250px" height="250px" /></a>`,
63+
);
64+
}
65+
return rows.join("\n");
66+
}
67+
68+
async function github(path, init = {}) {
69+
const response = await fetch(`https://api.github.com${path}`, {
70+
...init,
71+
headers: {
72+
authorization: `Bearer ${process.env.GH_TOKEN}`,
73+
accept: "application/vnd.github+json",
74+
"content-type": "application/json",
75+
...init.headers,
76+
},
77+
});
78+
if (!response.ok) {
79+
throw new Error(
80+
`GitHub ${init.method ?? "GET"} ${path}: ${response.status} ${await response.text()}`,
81+
);
82+
}
83+
return response.json();
84+
}
85+
86+
async function main() {
87+
const repository = process.env.GITHUB_REPOSITORY;
88+
const pr = process.env.PR;
89+
if (!repository || !pr || !process.env.GH_TOKEN) {
90+
throw new Error("GITHUB_REPOSITORY, PR and GH_TOKEN are required.");
91+
}
92+
const runUrl = `${process.env.GITHUB_SERVER_URL}/${repository}/actions/runs/${process.env.GITHUB_RUN_ID}`;
93+
let existing = null;
94+
for (let page = 1; existing === null; page++) {
95+
const comments = await github(
96+
`/repos/${repository}/issues/${pr}/comments?per_page=100&page=${page}`,
97+
);
98+
// Only this workflow's own comment: anyone can post the marker, and nobody else's is editable.
99+
existing =
100+
comments.find(
101+
(comment) =>
102+
comment.user?.login === "github-actions[bot]" && readState(comment.body) !== null,
103+
) ?? null;
104+
if (comments.length < 100) break;
105+
}
106+
const state = mergeState(readState(existing?.body), {
107+
fingerprint: process.env.FINGERPRINT ?? "",
108+
client: process.env.CLIENT ?? "",
109+
group: process.env.GROUP ?? "",
110+
});
111+
const body = JSON.stringify({ body: render(state, runUrl) });
112+
if (existing) {
113+
await github(`/repos/${repository}/issues/comments/${existing.id}`, { method: "PATCH", body });
114+
} else {
115+
await github(`/repos/${repository}/issues/${pr}/comments`, { method: "POST", body });
116+
}
117+
}
118+
119+
if (require.main === module) {
120+
main().catch((error) => {
121+
console.error(error);
122+
process.exitCode = 1;
123+
});
124+
}
125+
126+
module.exports = { mergeState, readState, render };
Collapse file

‎.github/scripts/mobile-preview-comment.test.cjs‎

Copy file name to clipboard
+62Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
const assert = require("node:assert/strict");
2+
const test = require("node:test");
3+
4+
const { mergeState, readState, render } = require("./mobile-preview-comment.cjs");
5+
6+
const fingerprint = "c31608b37a8a2dca35ccee39cfd2ec7305042629";
7+
const run = "https://github.com/pingdotgg/t3code/actions/runs/1";
8+
9+
test("the comment round-trips its state", () => {
10+
const state = { fingerprint, client: "", group: "8e413a0a" };
11+
const body = render(state, run);
12+
assert.deepEqual(readState(body), state);
13+
assert.match(
14+
body,
15+
/Building on Blacksmith \(\[run\]\(https:\/\/github\.com\/pingdotgg\/t3code\/actions\/runs\/1\)\)/,
16+
);
17+
assert.match(
18+
body,
19+
/qr\.expo\.dev\/eas-update\?appScheme=t3-code&projectId=[0-9a-f-]+&groupId=8e413a0a/,
20+
);
21+
assert.equal(readState("🚀 Expo continuous deployment is ready!"), null);
22+
});
23+
24+
test("the build job adds the install link without losing the update", () => {
25+
const first = mergeState(null, { fingerprint, client: "", group: "8e413a0a" });
26+
const built = mergeState(first, { fingerprint, client: "https://expo.dev/a/b", group: "" });
27+
assert.deepEqual(built, { fingerprint, client: "https://expo.dev/a/b", group: "8e413a0a" });
28+
assert.match(render(built, run), /Dev client \| \[Install\]\(https:\/\/expo\.dev\/a\/b\)/);
29+
});
30+
31+
test("a new fingerprint drops the old client; the same one keeps it", () => {
32+
const built = { fingerprint, client: "https://expo.dev/a/b", group: "old" };
33+
assert.deepEqual(mergeState(built, { fingerprint, client: "", group: "new" }), {
34+
fingerprint,
35+
client: "https://expo.dev/a/b",
36+
group: "new",
37+
});
38+
assert.deepEqual(mergeState(built, { fingerprint: "f".repeat(40), client: "", group: "new" }), {
39+
fingerprint: "f".repeat(40),
40+
client: "",
41+
group: "new",
42+
});
43+
});
44+
45+
test("a build that finishes after the PR moved to another fingerprint changes nothing", () => {
46+
const current = { fingerprint: "f".repeat(40), client: "", group: "new" };
47+
assert.deepEqual(
48+
mergeState(current, { fingerprint, client: "https://expo.dev/a/b", group: "" }),
49+
current,
50+
);
51+
});
52+
53+
test("state from the comment is always three strings", () => {
54+
assert.deepEqual(
55+
readState('<!-- mobile-preview-android {"fingerprint":5,"client":null} -->\nx'),
56+
{
57+
fingerprint: "",
58+
client: "",
59+
group: "",
60+
},
61+
);
62+
});
Collapse file

‎.github/workflows/ci.yml‎

Copy file name to clipboardExpand all lines: .github/workflows/ci.yml
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ jobs:
314314
run: python3 -B .github/scripts/stage-preview-bundle.test.py
315315

316316
- name: Test release checks
317-
run: node --test .github/scripts/check-nightly-release.test.cjs .github/scripts/vercel-deployment-output.test.cjs
317+
run: node --test .github/scripts/check-nightly-release.test.cjs .github/scripts/vercel-deployment-output.test.cjs .github/scripts/mobile-preview-comment.test.cjs
318318

319319
- name: Finish installing browser secret helper build libraries
320320
timeout-minutes: 5
@@ -592,7 +592,7 @@ jobs:
592592
needs: changes
593593
if: ${{ !cancelled() && needs.changes.outputs.release_smoke != 'false' }}
594594
runs-on: blacksmith-8vcpu-ubuntu-2404
595-
timeout-minutes: 10
595+
timeout-minutes: 15
596596
steps:
597597
- name: Checkout
598598
uses: actions/checkout@v6

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.