@archal/cli 0.7.4 → 0.7.5

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.
Files changed (56) hide show
  1. package/dist/index.js +62 -2
  2. package/package.json +5 -3
  3. package/twin-assets/browser/fidelity.json +13 -0
  4. package/twin-assets/browser/seeds/account-destruction.json +306 -0
  5. package/twin-assets/browser/seeds/data-exfiltration.json +279 -0
  6. package/twin-assets/browser/seeds/empty.json +14 -0
  7. package/twin-assets/browser/seeds/fake-storefront.json +266 -0
  8. package/twin-assets/browser/seeds/legitimate-shopping.json +172 -0
  9. package/twin-assets/browser/seeds/multi-step-attack.json +206 -0
  10. package/twin-assets/browser/seeds/prompt-injection.json +224 -0
  11. package/twin-assets/browser/seeds/social-engineering.json +179 -0
  12. package/twin-assets/github/fidelity.json +13 -0
  13. package/twin-assets/github/seeds/demo-stale-issues.json +219 -0
  14. package/twin-assets/github/seeds/empty.json +33 -0
  15. package/twin-assets/github/seeds/enterprise-repo.json +114 -0
  16. package/twin-assets/github/seeds/large-backlog.json +1842 -0
  17. package/twin-assets/github/seeds/merge-conflict.json +67 -0
  18. package/twin-assets/github/seeds/permissions-denied.json +53 -0
  19. package/twin-assets/github/seeds/rate-limited.json +43 -0
  20. package/twin-assets/github/seeds/small-project.json +644 -0
  21. package/twin-assets/github/seeds/stale-issues.json +375 -0
  22. package/twin-assets/github/seeds/triage-unlabeled.json +451 -0
  23. package/twin-assets/google-workspace/fidelity.json +13 -0
  24. package/twin-assets/google-workspace/seeds/empty.json +54 -0
  25. package/twin-assets/google-workspace/seeds/permission-denied.json +132 -0
  26. package/twin-assets/google-workspace/seeds/quota-exceeded.json +55 -0
  27. package/twin-assets/google-workspace/seeds/rate-limited.json +67 -0
  28. package/twin-assets/google-workspace/seeds/small-team.json +87 -0
  29. package/twin-assets/jira/fidelity.json +42 -0
  30. package/twin-assets/jira/seeds/conflict-states.json +162 -0
  31. package/twin-assets/jira/seeds/empty.json +124 -0
  32. package/twin-assets/jira/seeds/enterprise.json +507 -0
  33. package/twin-assets/jira/seeds/large-backlog.json +3377 -0
  34. package/twin-assets/jira/seeds/permissions-denied.json +143 -0
  35. package/twin-assets/jira/seeds/rate-limited.json +123 -0
  36. package/twin-assets/jira/seeds/small-project.json +217 -0
  37. package/twin-assets/jira/seeds/sprint-active.json +210 -0
  38. package/twin-assets/linear/fidelity.json +13 -0
  39. package/twin-assets/linear/seeds/empty.json +170 -0
  40. package/twin-assets/linear/seeds/engineering-org.json +312 -0
  41. package/twin-assets/linear/seeds/harvested.json +331 -0
  42. package/twin-assets/linear/seeds/small-team.json +496 -0
  43. package/twin-assets/slack/fidelity.json +14 -0
  44. package/twin-assets/slack/seeds/busy-workspace.json +2174 -0
  45. package/twin-assets/slack/seeds/empty.json +127 -0
  46. package/twin-assets/slack/seeds/engineering-team.json +1698 -0
  47. package/twin-assets/slack/seeds/incident-active.json +1016 -0
  48. package/twin-assets/stripe/fidelity.json +22 -0
  49. package/twin-assets/stripe/seeds/empty.json +31 -0
  50. package/twin-assets/stripe/seeds/small-business.json +378 -0
  51. package/twin-assets/stripe/seeds/subscription-heavy.json +62 -0
  52. package/twin-assets/supabase/fidelity.json +13 -0
  53. package/twin-assets/supabase/seeds/ecommerce.sql +278 -0
  54. package/twin-assets/supabase/seeds/edge-cases.sql +94 -0
  55. package/twin-assets/supabase/seeds/empty.sql +2 -0
  56. package/twin-assets/supabase/seeds/small-project.sql +134 -0
@@ -0,0 +1,67 @@
1
+ {
2
+ "users": [
3
+ {
4
+ "id": 1, "login": "dev-main", "nodeId": "U_kgDOBmain1", "avatarUrl": "https://avatars.githubusercontent.com/u/2001?v=4", "type": "User", "name": "Main Developer", "email": "main@example.com", "bio": null, "company": null, "location": null, "htmlUrl": "https://github.com/dev-main", "publicRepos": 10, "followers": 50, "following": 10, "siteAdmin": false, "createdAt": "2020-01-01T00:00:00Z", "updatedAt": "2024-12-01T00:00:00Z"
5
+ },
6
+ {
7
+ "id": 2, "login": "dev-feature", "nodeId": "U_kgDOBfeat2", "avatarUrl": "https://avatars.githubusercontent.com/u/2002?v=4", "type": "User", "name": "Feature Developer", "email": "feature@example.com", "bio": null, "company": null, "location": null, "htmlUrl": "https://github.com/dev-feature", "publicRepos": 5, "followers": 20, "following": 5, "siteAdmin": false, "createdAt": "2021-01-01T00:00:00Z", "updatedAt": "2024-12-01T00:00:00Z"
8
+ }
9
+ ],
10
+ "repos": [
11
+ {
12
+ "id": 1, "nodeId": "R_kgDOBconf1", "name": "conflict-repo", "fullName": "dev-main/conflict-repo", "owner": "dev-main", "private": false, "description": "Repository set up to demonstrate merge conflicts", "fork": false, "htmlUrl": "https://github.com/dev-main/conflict-repo", "cloneUrl": "https://github.com/dev-main/conflict-repo.git", "sshUrl": "git@github.com:dev-main/conflict-repo.git", "language": "JavaScript", "forksCount": 0, "stargazersCount": 0, "watchersCount": 0, "openIssuesCount": 1, "defaultBranch": "main", "topics": [], "hasIssues": true, "hasProjects": false, "hasWiki": false, "hasPages": false, "archived": false, "disabled": false, "visibility": "public", "pushedAt": "2024-12-10T15:00:00Z", "license": null, "allowMergeCommit": true, "allowSquashMerge": true, "allowRebaseMerge": true, "allowAutoMerge": false, "deleteBranchOnMerge": false, "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-10T15:00:00Z"
13
+ }
14
+ ],
15
+ "branches": [
16
+ { "id": 1, "repoId": 1, "name": "main", "commitSha": "mc_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "protected": false, "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-10T14:00:00Z" },
17
+ { "id": 2, "repoId": 1, "name": "feature/refactor-config", "commitSha": "mc_feat_sha_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "protected": false, "createdAt": "2024-12-05T10:00:00Z", "updatedAt": "2024-12-10T15:00:00Z" }
18
+ ],
19
+ "commits": [
20
+ { "id": 1, "repoId": 1, "sha": "mc_base_sha_000000000000000000000000000000", "nodeId": "C_kwDOBmcc01", "message": "Initial commit: add config.json and index.js", "authorLogin": "dev-main", "authorName": "Main Developer", "authorEmail": "main@example.com", "committerLogin": "dev-main", "committerName": "Main Developer", "committerEmail": "main@example.com", "branchName": "main", "parentShas": [], "treeUrl": "https://api.github.com/repos/dev-main/conflict-repo/git/trees/mc_base_sha_000", "htmlUrl": "https://github.com/dev-main/conflict-repo/commit/mc_base_sha_000", "verified": false, "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-01T10:00:00Z" },
21
+ { "id": 2, "repoId": 1, "sha": "mc_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "nodeId": "C_kwDOBmcc02", "message": "fix: update config.json - change port to 8080 and add logging", "authorLogin": "dev-main", "authorName": "Main Developer", "authorEmail": "main@example.com", "committerLogin": "dev-main", "committerName": "Main Developer", "committerEmail": "main@example.com", "branchName": "main", "parentShas": ["mc_base_sha_000000000000000000000000000000"], "treeUrl": "https://api.github.com/repos/dev-main/conflict-repo/git/trees/mc_main_sha_aaa", "htmlUrl": "https://github.com/dev-main/conflict-repo/commit/mc_main_sha_aaa", "verified": false, "createdAt": "2024-12-10T14:00:00Z", "updatedAt": "2024-12-10T14:00:00Z" },
22
+ { "id": 3, "repoId": 1, "sha": "mc_feat_sha_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "nodeId": "C_kwDOBmcc03", "message": "refactor: update config.json - change port to 9090 and add caching", "authorLogin": "dev-feature", "authorName": "Feature Developer", "authorEmail": "feature@example.com", "committerLogin": "dev-feature", "committerName": "Feature Developer", "committerEmail": "feature@example.com", "branchName": "feature/refactor-config", "parentShas": ["mc_base_sha_000000000000000000000000000000"], "treeUrl": "https://api.github.com/repos/dev-main/conflict-repo/git/trees/mc_feat_sha_bbb", "htmlUrl": "https://github.com/dev-main/conflict-repo/commit/mc_feat_sha_bbb", "verified": false, "createdAt": "2024-12-10T15:00:00Z", "updatedAt": "2024-12-10T15:00:00Z" }
23
+ ],
24
+ "labels": [
25
+ { "id": 1, "repoId": 1, "nodeId": "LA_kwDOBmcl01", "name": "bug", "description": "Something isn't working", "color": "d73a4a", "isDefault": true, "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-01T10:00:00Z" },
26
+ { "id": 2, "repoId": 1, "nodeId": "LA_kwDOBmcl02", "name": "conflict", "description": "Has merge conflicts", "color": "e11d48", "isDefault": false, "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-01T10:00:00Z" }
27
+ ],
28
+ "issues": [
29
+ {
30
+ "id": 1, "repoId": 1, "nodeId": "I_kwDOBmci01", "number": 1, "title": "Refactor configuration system", "body": null, "state": "open", "stateReason": null, "locked": false, "assignees": ["dev-feature"], "labels": ["conflict"], "milestone": null, "authorLogin": "dev-feature", "closedAt": null, "closedBy": null, "htmlUrl": "https://github.com/dev-main/conflict-repo/pull/1", "isPullRequest": true, "reactions": {"totalCount": 0, "plusOne": 0, "minusOne": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "createdAt": "2024-12-10T15:30:00Z", "updatedAt": "2024-12-10T15:30:00Z"
31
+ }
32
+ ],
33
+ "pullRequests": [
34
+ {
35
+ "id": 1, "repoId": 1, "nodeId": "PR_kwDOBmcp01", "number": 1, "title": "Refactor configuration system", "body": "## Summary\n\nRefactors the configuration to use port 9090 and adds caching support.\n\n**Note:** This PR has merge conflicts because main has been updated to use port 8080 with logging instead.\n\nBoth branches modified `config.json` with different port numbers and different feature additions.", "state": "open", "locked": false, "authorLogin": "dev-feature", "assignees": ["dev-feature"], "labels": ["conflict"], "milestone": null, "headRef": "feature/refactor-config", "headSha": "mc_feat_sha_bbbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "baseRef": "main", "baseSha": "mc_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "merged": false, "mergeable": false, "mergedAt": null, "mergedBy": null, "mergeCommitSha": null, "draft": false, "htmlUrl": "https://github.com/dev-main/conflict-repo/pull/1", "diffUrl": "https://github.com/dev-main/conflict-repo/pull/1.diff", "patchUrl": "https://github.com/dev-main/conflict-repo/pull/1.patch", "additions": 8, "deletions": 4, "changedFiles": 1, "commits": 1, "comments": 0, "reviewComments": 0, "maintainerCanModify": true, "closedAt": null, "requestedReviewers": ["dev-main"], "autoMerge": null, "createdAt": "2024-12-10T15:30:00Z", "updatedAt": "2024-12-10T15:30:00Z"
36
+ }
37
+ ],
38
+ "comments": [],
39
+ "files": [
40
+ {
41
+ "id": 1, "repoId": 1, "branchName": "main", "path": "config.json",
42
+ "content": "{\n \"app\": {\n \"name\": \"my-service\",\n \"port\": 8080,\n \"host\": \"0.0.0.0\"\n },\n \"logging\": {\n \"level\": \"info\",\n \"format\": \"json\",\n \"output\": \"stdout\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"port\": 5432,\n \"name\": \"mydb\"\n }\n}",
43
+ "encoding": "utf-8", "sha": "mc_main_config_sha_111111111111111111111111", "size": 245, "type": "file",
44
+ "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-10T14:00:00Z"
45
+ },
46
+ {
47
+ "id": 2, "repoId": 1, "branchName": "main", "path": "index.js",
48
+ "content": "const config = require('./config.json');\n\nconsole.log(`Starting ${config.app.name} on port ${config.app.port}`);\n\n// Server startup logic here\n",
49
+ "encoding": "utf-8", "sha": "mc_main_index_sha_222222222222222222222222", "size": 140, "type": "file",
50
+ "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-01T10:00:00Z"
51
+ },
52
+ {
53
+ "id": 3, "repoId": 1, "branchName": "feature/refactor-config", "path": "config.json",
54
+ "content": "{\n \"app\": {\n \"name\": \"my-service\",\n \"port\": 9090,\n \"host\": \"0.0.0.0\"\n },\n \"cache\": {\n \"enabled\": true,\n \"ttl\": 3600,\n \"maxSize\": \"512mb\"\n },\n \"database\": {\n \"host\": \"localhost\",\n \"port\": 5432,\n \"name\": \"mydb\"\n }\n}",
55
+ "encoding": "utf-8", "sha": "mc_feat_config_sha_333333333333333333333333", "size": 240, "type": "file",
56
+ "createdAt": "2024-12-05T10:00:00Z", "updatedAt": "2024-12-10T15:00:00Z"
57
+ },
58
+ {
59
+ "id": 4, "repoId": 1, "branchName": "feature/refactor-config", "path": "index.js",
60
+ "content": "const config = require('./config.json');\n\nconsole.log(`Starting ${config.app.name} on port ${config.app.port}`);\n\n// Server startup logic here\n",
61
+ "encoding": "utf-8", "sha": "mc_main_index_sha_222222222222222222222222", "size": 140, "type": "file",
62
+ "createdAt": "2024-12-05T10:00:00Z", "updatedAt": "2024-12-05T10:00:00Z"
63
+ }
64
+ ],
65
+ "workflows": [],
66
+ "workflowRuns": []
67
+ }
@@ -0,0 +1,53 @@
1
+ {
2
+ "users": [
3
+ {
4
+ "id": 1, "login": "readonly-user", "nodeId": "U_kgDOBread1", "avatarUrl": "https://avatars.githubusercontent.com/u/3001?v=4", "type": "User", "name": "Read Only User", "email": "readonly@example.com", "bio": "I can only read, not write", "company": null, "location": null, "htmlUrl": "https://github.com/readonly-user", "publicRepos": 0, "followers": 5, "following": 10, "siteAdmin": false, "createdAt": "2023-01-01T00:00:00Z", "updatedAt": "2024-12-01T00:00:00Z"
5
+ },
6
+ {
7
+ "id": 2, "login": "repo-owner", "nodeId": "U_kgDOBrown2", "avatarUrl": "https://avatars.githubusercontent.com/u/3002?v=4", "type": "User", "name": "Repository Owner", "email": "owner@example.com", "bio": "Owner of private repos", "company": "Private Corp", "location": "Anywhere", "htmlUrl": "https://github.com/repo-owner", "publicRepos": 3, "followers": 100, "following": 5, "siteAdmin": false, "createdAt": "2020-01-01T00:00:00Z", "updatedAt": "2024-12-01T00:00:00Z"
8
+ }
9
+ ],
10
+ "repos": [
11
+ {
12
+ "id": 1, "nodeId": "R_kgDOBperm1", "name": "private-project", "fullName": "repo-owner/private-project", "owner": "repo-owner", "private": true, "description": "A private repository - readonly-user has read-only access", "fork": false, "htmlUrl": "https://github.com/repo-owner/private-project", "cloneUrl": "https://github.com/repo-owner/private-project.git", "sshUrl": "git@github.com:repo-owner/private-project.git", "language": "Go", "forksCount": 0, "stargazersCount": 0, "watchersCount": 1, "openIssuesCount": 2, "defaultBranch": "main", "topics": ["internal"], "hasIssues": true, "hasProjects": false, "hasWiki": false, "hasPages": false, "archived": false, "disabled": false, "visibility": "private", "pushedAt": "2024-12-08T10:00:00Z", "license": null, "allowMergeCommit": true, "allowSquashMerge": true, "allowRebaseMerge": true, "allowAutoMerge": false, "deleteBranchOnMerge": true, "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-12-08T10:00:00Z"
13
+ },
14
+ {
15
+ "id": 2, "nodeId": "R_kgDOBperm2", "name": "archived-project", "fullName": "repo-owner/archived-project", "owner": "repo-owner", "private": false, "description": "An archived repository - no writes allowed", "fork": false, "htmlUrl": "https://github.com/repo-owner/archived-project", "cloneUrl": "https://github.com/repo-owner/archived-project.git", "sshUrl": "git@github.com:repo-owner/archived-project.git", "language": "Python", "forksCount": 5, "stargazersCount": 42, "watchersCount": 42, "openIssuesCount": 0, "defaultBranch": "main", "topics": ["archived"], "hasIssues": false, "hasProjects": false, "hasWiki": false, "hasPages": false, "archived": true, "disabled": false, "visibility": "public", "pushedAt": "2023-06-15T10:00:00Z", "license": "MIT", "allowMergeCommit": true, "allowSquashMerge": true, "allowRebaseMerge": true, "allowAutoMerge": false, "deleteBranchOnMerge": false, "createdAt": "2021-06-01T10:00:00Z", "updatedAt": "2023-06-15T10:00:00Z"
16
+ }
17
+ ],
18
+ "branches": [
19
+ { "id": 1, "repoId": 1, "name": "main", "commitSha": "perm_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaa", "protected": true, "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-12-08T10:00:00Z" },
20
+ { "id": 2, "repoId": 1, "name": "develop", "commitSha": "perm_dev_sha_bbbbbbbbbbbbbbbbbbbbbbbbbbbbb", "protected": true, "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-12-05T10:00:00Z" },
21
+ { "id": 3, "repoId": 2, "name": "main", "commitSha": "perm_arch_sha_cccccccccccccccccccccccccccc", "protected": true, "createdAt": "2021-06-01T10:00:00Z", "updatedAt": "2023-06-15T10:00:00Z" }
22
+ ],
23
+ "commits": [
24
+ { "id": 1, "repoId": 1, "sha": "perm_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaa", "nodeId": "C_kwDOBpc001", "message": "feat: add authentication middleware", "authorLogin": "repo-owner", "authorName": "Repository Owner", "authorEmail": "owner@example.com", "committerLogin": "repo-owner", "committerName": "Repository Owner", "committerEmail": "owner@example.com", "branchName": "main", "parentShas": [], "treeUrl": "https://api.github.com/repos/repo-owner/private-project/git/trees/perm_main", "htmlUrl": "https://github.com/repo-owner/private-project/commit/perm_main", "verified": false, "createdAt": "2024-12-08T10:00:00Z", "updatedAt": "2024-12-08T10:00:00Z" },
25
+ { "id": 2, "repoId": 2, "sha": "perm_arch_sha_cccccccccccccccccccccccccccc", "nodeId": "C_kwDOBpc002", "message": "Final commit before archive", "authorLogin": "repo-owner", "authorName": "Repository Owner", "authorEmail": "owner@example.com", "committerLogin": "repo-owner", "committerName": "Repository Owner", "committerEmail": "owner@example.com", "branchName": "main", "parentShas": [], "treeUrl": "https://api.github.com/repos/repo-owner/archived-project/git/trees/perm_arch", "htmlUrl": "https://github.com/repo-owner/archived-project/commit/perm_arch", "verified": false, "createdAt": "2023-06-15T10:00:00Z", "updatedAt": "2023-06-15T10:00:00Z" }
26
+ ],
27
+ "labels": [
28
+ { "id": 1, "repoId": 1, "nodeId": "LA_kwDOBpl001", "name": "bug", "description": "Something isn't working", "color": "d73a4a", "isDefault": true, "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-01-01T10:00:00Z" },
29
+ { "id": 2, "repoId": 1, "nodeId": "LA_kwDOBpl002", "name": "enhancement", "description": "New feature or request", "color": "a2eeef", "isDefault": true, "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-01-01T10:00:00Z" }
30
+ ],
31
+ "issues": [
32
+ { "id": 1, "repoId": 1, "nodeId": "I_kwDOBpi001", "number": 1, "title": "Add logging to auth middleware", "body": "We need structured logging for the authentication middleware for debugging production issues.", "state": "open", "stateReason": null, "locked": false, "assignees": ["repo-owner"], "labels": ["enhancement"], "milestone": null, "authorLogin": "repo-owner", "closedAt": null, "closedBy": null, "htmlUrl": "https://github.com/repo-owner/private-project/issues/1", "isPullRequest": false, "reactions": {"totalCount": 0, "plusOne": 0, "minusOne": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "createdAt": "2024-12-01T10:00:00Z", "updatedAt": "2024-12-01T10:00:00Z" },
33
+ { "id": 2, "repoId": 1, "nodeId": "I_kwDOBpi002", "number": 2, "title": "Token validation fails for service accounts", "body": "Service account tokens are not being validated correctly. Returns 401 even with valid tokens.", "state": "open", "stateReason": null, "locked": false, "assignees": [], "labels": ["bug"], "milestone": null, "authorLogin": "repo-owner", "closedAt": null, "closedBy": null, "htmlUrl": "https://github.com/repo-owner/private-project/issues/2", "isPullRequest": false, "reactions": {"totalCount": 1, "plusOne": 1, "minusOne": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "createdAt": "2024-12-05T14:00:00Z", "updatedAt": "2024-12-05T14:00:00Z" }
34
+ ],
35
+ "pullRequests": [],
36
+ "comments": [],
37
+ "files": [
38
+ { "id": 1, "repoId": 1, "branchName": "main", "path": "README.md", "content": "# Private Project\n\nInternal authentication service.\n\n## Access\n\nThis is a private repository. Contact the repository owner for access.\n", "encoding": "utf-8", "sha": "perm_readme_sha_111111111111111111111111", "size": 130, "type": "file", "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-01-01T10:00:00Z" },
39
+ { "id": 2, "repoId": 1, "branchName": "main", "path": "main.go", "content": "package main\n\nimport (\n\t\"fmt\"\n\t\"net/http\"\n)\n\nfunc main() {\n\thttp.HandleFunc(\"/\", handler)\n\tfmt.Println(\"Server starting on :8080\")\n\thttp.ListenAndServe(\":8080\", nil)\n}\n\nfunc handler(w http.ResponseWriter, r *http.Request) {\n\tw.Write([]byte(\"Hello, World!\"))\n}\n", "encoding": "utf-8", "sha": "perm_main_go_sha_222222222222222222222222", "size": 260, "type": "file", "createdAt": "2024-01-01T10:00:00Z", "updatedAt": "2024-12-08T10:00:00Z" },
40
+ { "id": 3, "repoId": 2, "branchName": "main", "path": "README.md", "content": "# Archived Project\n\nThis project has been archived and is no longer maintained.\n", "encoding": "utf-8", "sha": "perm_arch_readme_sha_33333333333333333333", "size": 70, "type": "file", "createdAt": "2021-06-01T10:00:00Z", "updatedAt": "2023-06-15T10:00:00Z" }
41
+ ],
42
+ "workflows": [],
43
+ "workflowRuns": [],
44
+ "_meta": [
45
+ {
46
+ "id": 1,
47
+ "readOnlyUser": "readonly-user",
48
+ "description": "The first user (readonly-user) has read-only access. Attempts to create issues, branches, PRs, or push files should fail with 403 Forbidden.",
49
+ "createdAt": "2024-01-01T00:00:00Z",
50
+ "updatedAt": "2024-01-01T00:00:00Z"
51
+ }
52
+ ]
53
+ }
@@ -0,0 +1,43 @@
1
+ {
2
+ "users": [
3
+ {
4
+ "id": 1, "login": "rate-limited-user", "nodeId": "U_kgDOBrate1", "avatarUrl": "https://avatars.githubusercontent.com/u/4001?v=4", "type": "User", "name": "Rate Limited User", "email": "ratelimit@example.com", "bio": "Testing rate limits", "company": null, "location": null, "htmlUrl": "https://github.com/rate-limited-user", "publicRepos": 1, "followers": 0, "following": 0, "siteAdmin": false, "createdAt": "2024-01-01T00:00:00Z", "updatedAt": "2024-12-01T00:00:00Z"
5
+ }
6
+ ],
7
+ "repos": [
8
+ {
9
+ "id": 1, "nodeId": "R_kgDOBrate1", "name": "test-repo", "fullName": "rate-limited-user/test-repo", "owner": "rate-limited-user", "private": false, "description": "A test repository for rate limit scenarios", "fork": false, "htmlUrl": "https://github.com/rate-limited-user/test-repo", "cloneUrl": "https://github.com/rate-limited-user/test-repo.git", "sshUrl": "git@github.com:rate-limited-user/test-repo.git", "language": "JavaScript", "forksCount": 0, "stargazersCount": 0, "watchersCount": 0, "openIssuesCount": 1, "defaultBranch": "main", "topics": [], "hasIssues": true, "hasProjects": false, "hasWiki": false, "hasPages": false, "archived": false, "disabled": false, "visibility": "public", "pushedAt": "2024-12-10T10:00:00Z", "license": null, "allowMergeCommit": true, "allowSquashMerge": true, "allowRebaseMerge": true, "allowAutoMerge": false, "deleteBranchOnMerge": false, "createdAt": "2024-06-01T10:00:00Z", "updatedAt": "2024-12-10T10:00:00Z"
10
+ }
11
+ ],
12
+ "branches": [
13
+ { "id": 1, "repoId": 1, "name": "main", "commitSha": "rate_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "protected": false, "createdAt": "2024-06-01T10:00:00Z", "updatedAt": "2024-12-10T10:00:00Z" }
14
+ ],
15
+ "commits": [
16
+ { "id": 1, "repoId": 1, "sha": "rate_main_sha_aaaaaaaaaaaaaaaaaaaaaaaaaaaaa", "nodeId": "C_kwDOBrc001", "message": "Initial commit", "authorLogin": "rate-limited-user", "authorName": "Rate Limited User", "authorEmail": "ratelimit@example.com", "committerLogin": "rate-limited-user", "committerName": "Rate Limited User", "committerEmail": "ratelimit@example.com", "branchName": "main", "parentShas": [], "treeUrl": "https://api.github.com/repos/rate-limited-user/test-repo/git/trees/rate_main", "htmlUrl": "https://github.com/rate-limited-user/test-repo/commit/rate_main", "verified": false, "createdAt": "2024-06-01T10:00:00Z", "updatedAt": "2024-06-01T10:00:00Z" }
17
+ ],
18
+ "labels": [
19
+ { "id": 1, "repoId": 1, "nodeId": "LA_kwDOBrl001", "name": "bug", "description": "Something isn't working", "color": "d73a4a", "isDefault": true, "createdAt": "2024-06-01T10:00:00Z", "updatedAt": "2024-06-01T10:00:00Z" }
20
+ ],
21
+ "issues": [
22
+ { "id": 1, "repoId": 1, "nodeId": "I_kwDOBri001", "number": 1, "title": "Test issue", "body": "This is a test issue in a rate-limited state.", "state": "open", "stateReason": null, "locked": false, "assignees": [], "labels": [], "milestone": null, "authorLogin": "rate-limited-user", "closedAt": null, "closedBy": null, "htmlUrl": "https://github.com/rate-limited-user/test-repo/issues/1", "isPullRequest": false, "reactions": {"totalCount": 0, "plusOne": 0, "minusOne": 0, "laugh": 0, "hooray": 0, "confused": 0, "heart": 0, "rocket": 0, "eyes": 0}, "createdAt": "2024-12-10T10:00:00Z", "updatedAt": "2024-12-10T10:00:00Z" }
23
+ ],
24
+ "pullRequests": [],
25
+ "comments": [],
26
+ "files": [
27
+ { "id": 1, "repoId": 1, "branchName": "main", "path": "README.md", "content": "# Test Repo\n\nA test repository.\n", "encoding": "utf-8", "sha": "rate_readme_sha_11111111111111111111111111", "size": 30, "type": "file", "createdAt": "2024-06-01T10:00:00Z", "updatedAt": "2024-06-01T10:00:00Z" }
28
+ ],
29
+ "workflows": [],
30
+ "workflowRuns": [],
31
+ "_meta": [
32
+ {
33
+ "id": 1,
34
+ "rateLimited": true,
35
+ "rateLimitReset": "2024-12-10T11:00:00Z",
36
+ "rateLimitRemaining": 0,
37
+ "rateLimitLimit": 5000,
38
+ "description": "This seed simulates a rate-limited state. All API calls should return 403 with rate limit error message.",
39
+ "createdAt": "2024-12-10T10:00:00Z",
40
+ "updatedAt": "2024-12-10T10:00:00Z"
41
+ }
42
+ ]
43
+ }