eas-cli 27.1.0 → 27.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/README.md +221 -146
  2. package/build/analytics/AnalyticsManager.d.ts +2 -0
  3. package/build/analytics/AnalyticsManager.js +2 -0
  4. package/build/build/build.d.ts +1 -2
  5. package/build/build/build.js +3 -4
  6. package/build/build/freeTierNearLimitAgentUpdatesTip.d.ts +98 -0
  7. package/build/build/freeTierNearLimitAgentUpdatesTip.js +205 -0
  8. package/build/build/runBuildAndSubmit.d.ts +2 -0
  9. package/build/build/runBuildAndSubmit.js +3 -0
  10. package/build/build/simulatorsLaunchHint.d.ts +7 -0
  11. package/build/build/simulatorsLaunchHint.js +40 -0
  12. package/build/commands/build/index.js +8 -1
  13. package/build/commands/observe/session.js +4 -3
  14. package/build/commands/observe/trace.d.ts +17 -0
  15. package/build/commands/observe/trace.js +58 -0
  16. package/build/commands/observe/traces.d.ts +33 -0
  17. package/build/commands/observe/traces.js +159 -0
  18. package/build/graphql/generated.d.ts +404 -0
  19. package/build/graphql/mutations/UserPreferenceMutation.d.ts +5 -0
  20. package/build/graphql/mutations/UserPreferenceMutation.js +24 -0
  21. package/build/graphql/queries/AccountQuery.d.ts +3 -1
  22. package/build/graphql/queries/AccountQuery.js +54 -0
  23. package/build/graphql/queries/ObserveQuery.d.ts +24 -1
  24. package/build/graphql/queries/ObserveQuery.js +114 -1
  25. package/build/graphql/queries/UserPreferenceQuery.d.ts +8 -0
  26. package/build/graphql/queries/UserPreferenceQuery.js +28 -0
  27. package/build/graphql/types/Observe.d.ts +1 -0
  28. package/build/graphql/types/Observe.js +53 -1
  29. package/build/observe/fetchSessions.d.ts +12 -1
  30. package/build/observe/fetchSessions.js +39 -2
  31. package/build/observe/fetchSpans.d.ts +27 -0
  32. package/build/observe/fetchSpans.js +36 -0
  33. package/build/observe/formatSessions.d.ts +3 -1
  34. package/build/observe/formatSessions.js +40 -3
  35. package/build/observe/formatSpans.d.ts +110 -0
  36. package/build/observe/formatSpans.js +250 -0
  37. package/build/observe/spanFilters.d.ts +5 -0
  38. package/build/observe/spanFilters.js +32 -0
  39. package/oclif.manifest.json +352 -2
  40. package/package.json +6 -6
  41. package/build/build/freeTierLimitGuidance.d.ts +0 -19
  42. package/build/build/freeTierLimitGuidance.js +0 -39
@@ -8464,7 +8464,7 @@
8464
8464
  "required": false
8465
8465
  }
8466
8466
  },
8467
- "description": "display the timeline of metric and log events for a specific session",
8467
+ "description": "display the timeline of metric, log, and request trace span events for a specific session",
8468
8468
  "flags": {
8469
8469
  "sort": {
8470
8470
  "description": "Sort order for candidate events when picking a session (if omitted in interactive mode, you will be prompted)",
@@ -8611,6 +8611,356 @@
8611
8611
  "session.js"
8612
8612
  ]
8613
8613
  },
8614
+ "observe:trace": {
8615
+ "aliases": [],
8616
+ "args": {
8617
+ "traceId": {
8618
+ "description": "ID of the trace to display",
8619
+ "name": "traceId",
8620
+ "required": true
8621
+ }
8622
+ },
8623
+ "description": "display every span of a single request trace by its trace ID, oldest first, with child spans indented under their parent. Trace IDs are shown by `eas observe:traces`. In `--json` output a span with no `parentSpanId` is a root span, and a span with no `http` object is not an HTTP request",
8624
+ "flags": {
8625
+ "project-id": {
8626
+ "description": "EAS project ID (defaults to the project ID of the current directory)",
8627
+ "name": "project-id",
8628
+ "hasDynamicHelp": false,
8629
+ "multiple": false,
8630
+ "type": "option"
8631
+ },
8632
+ "json": {
8633
+ "description": "Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive.",
8634
+ "name": "json",
8635
+ "allowNo": false,
8636
+ "type": "boolean"
8637
+ },
8638
+ "non-interactive": {
8639
+ "description": "Run the command in non-interactive mode.",
8640
+ "name": "non-interactive",
8641
+ "noCacheDefault": true,
8642
+ "allowNo": false,
8643
+ "type": "boolean"
8644
+ }
8645
+ },
8646
+ "hasDynamicHelp": false,
8647
+ "hiddenAliases": [],
8648
+ "id": "observe:trace",
8649
+ "pluginAlias": "eas-cli",
8650
+ "pluginName": "eas-cli",
8651
+ "pluginType": "core",
8652
+ "strict": true,
8653
+ "enableJsonFlag": false,
8654
+ "ContextOptions": {
8655
+ "LoggedIn": {
8656
+ "loggedIn": {}
8657
+ },
8658
+ "MaybeLoggedIn": {
8659
+ "maybeLoggedIn": {}
8660
+ },
8661
+ "DynamicLoggedIn": {
8662
+ "getDynamicLoggedInAsync": {}
8663
+ },
8664
+ "SessionManagment": {
8665
+ "sessionManager": {}
8666
+ },
8667
+ "OptionalProjectConfig": {
8668
+ "optionalPrivateProjectConfig": {}
8669
+ },
8670
+ "ProjectDir": {
8671
+ "projectDir": {}
8672
+ },
8673
+ "DynamicProjectConfig": {
8674
+ "getDynamicPublicProjectConfigAsync": {},
8675
+ "getDynamicPrivateProjectConfigAsync": {}
8676
+ },
8677
+ "ProjectConfig": {
8678
+ "loggedIn": {},
8679
+ "privateProjectConfig": {}
8680
+ },
8681
+ "Analytics": {
8682
+ "analytics": {}
8683
+ },
8684
+ "Vcs": {
8685
+ "vcsClient": {}
8686
+ },
8687
+ "ServerSideEnvironmentVariables": {
8688
+ "getServerSideEnvironmentVariablesAsync": {}
8689
+ },
8690
+ "ProjectId": {
8691
+ "projectId": {}
8692
+ },
8693
+ "Experimentation": {
8694
+ "experimentation": {
8695
+ "clientByAnalytics": {}
8696
+ }
8697
+ }
8698
+ },
8699
+ "contextDefinition": {
8700
+ "projectId": {},
8701
+ "loggedIn": {}
8702
+ },
8703
+ "isESM": false,
8704
+ "relativePath": [
8705
+ "build",
8706
+ "commands",
8707
+ "observe",
8708
+ "trace.js"
8709
+ ]
8710
+ },
8711
+ "observe:traces": {
8712
+ "aliases": [],
8713
+ "args": {},
8714
+ "description": "display request trace spans recorded by the app, newest first. With no span filters, a summary of span names and kinds with counts is returned. Pass --all-spans or a span filter (--name, --kind, --status, --host, --http-status, --min-duration, --root-only, --session-id) to list individual spans",
8715
+ "flags": {
8716
+ "platform": {
8717
+ "description": "Filter by platform (\"apple\" covers iOS, iPadOS, tvOS, and macOS)",
8718
+ "name": "platform",
8719
+ "hasDynamicHelp": false,
8720
+ "multiple": false,
8721
+ "options": [
8722
+ "android",
8723
+ "ios",
8724
+ "ipados",
8725
+ "macos",
8726
+ "tvos",
8727
+ "apple"
8728
+ ],
8729
+ "type": "option"
8730
+ },
8731
+ "after": {
8732
+ "description": "Cursor for pagination. Use the endCursor from a previous query to fetch the next page.",
8733
+ "name": "after",
8734
+ "hasDynamicHelp": false,
8735
+ "multiple": false,
8736
+ "type": "option"
8737
+ },
8738
+ "limit": {
8739
+ "description": "The number of items to fetch each query. Defaults to 20 and is capped at 100.",
8740
+ "name": "limit",
8741
+ "hasDynamicHelp": false,
8742
+ "multiple": false,
8743
+ "type": "option"
8744
+ },
8745
+ "start": {
8746
+ "description": "Start of time range (ISO date)",
8747
+ "exclusive": [
8748
+ "days"
8749
+ ],
8750
+ "name": "start",
8751
+ "hasDynamicHelp": false,
8752
+ "multiple": false,
8753
+ "type": "option"
8754
+ },
8755
+ "end": {
8756
+ "description": "End of time range (ISO date)",
8757
+ "exclusive": [
8758
+ "days"
8759
+ ],
8760
+ "name": "end",
8761
+ "hasDynamicHelp": false,
8762
+ "multiple": false,
8763
+ "type": "option"
8764
+ },
8765
+ "days": {
8766
+ "description": "Show results from the last N days (mutually exclusive with --start/--end)",
8767
+ "exclusive": [
8768
+ "start",
8769
+ "end"
8770
+ ],
8771
+ "name": "days",
8772
+ "hasDynamicHelp": false,
8773
+ "multiple": false,
8774
+ "type": "option"
8775
+ },
8776
+ "app-version": {
8777
+ "description": "Filter by app version",
8778
+ "name": "app-version",
8779
+ "hasDynamicHelp": false,
8780
+ "multiple": false,
8781
+ "type": "option"
8782
+ },
8783
+ "build-number": {
8784
+ "description": "Filter by app build number",
8785
+ "name": "build-number",
8786
+ "hasDynamicHelp": false,
8787
+ "multiple": false,
8788
+ "type": "option"
8789
+ },
8790
+ "update-id": {
8791
+ "description": "Filter by EAS update ID",
8792
+ "name": "update-id",
8793
+ "hasDynamicHelp": false,
8794
+ "multiple": false,
8795
+ "type": "option"
8796
+ },
8797
+ "environment": {
8798
+ "description": "Filter by environment (e.g. production, development)",
8799
+ "name": "environment",
8800
+ "hasDynamicHelp": false,
8801
+ "multiple": false,
8802
+ "type": "option"
8803
+ },
8804
+ "session-id": {
8805
+ "description": "Filter by session ID",
8806
+ "name": "session-id",
8807
+ "hasDynamicHelp": false,
8808
+ "multiple": false,
8809
+ "type": "option"
8810
+ },
8811
+ "name": {
8812
+ "description": "Filter by span name, such as GET or POST (can be specified multiple times)",
8813
+ "name": "name",
8814
+ "hasDynamicHelp": false,
8815
+ "multiple": true,
8816
+ "type": "option"
8817
+ },
8818
+ "kind": {
8819
+ "description": "Filter by span kind (can be specified multiple times)",
8820
+ "name": "kind",
8821
+ "hasDynamicHelp": false,
8822
+ "multiple": true,
8823
+ "options": [
8824
+ "client",
8825
+ "consumer",
8826
+ "internal",
8827
+ "producer",
8828
+ "server",
8829
+ "unspecified"
8830
+ ],
8831
+ "type": "option"
8832
+ },
8833
+ "status": {
8834
+ "description": "Filter by span status (can be specified multiple times)",
8835
+ "name": "status",
8836
+ "hasDynamicHelp": false,
8837
+ "multiple": true,
8838
+ "options": [
8839
+ "error",
8840
+ "ok",
8841
+ "unset"
8842
+ ],
8843
+ "type": "option"
8844
+ },
8845
+ "host": {
8846
+ "description": "Filter by request host (can be specified multiple times)",
8847
+ "name": "host",
8848
+ "hasDynamicHelp": false,
8849
+ "multiple": true,
8850
+ "type": "option"
8851
+ },
8852
+ "http-status": {
8853
+ "description": "Filter by HTTP response status code (can be specified multiple times)",
8854
+ "name": "http-status",
8855
+ "hasDynamicHelp": false,
8856
+ "multiple": true,
8857
+ "type": "option"
8858
+ },
8859
+ "min-duration": {
8860
+ "description": "Only spans that took at least this many milliseconds",
8861
+ "name": "min-duration",
8862
+ "hasDynamicHelp": false,
8863
+ "multiple": false,
8864
+ "type": "option"
8865
+ },
8866
+ "root-only": {
8867
+ "description": "Only root spans (spans with no parent)",
8868
+ "name": "root-only",
8869
+ "allowNo": false,
8870
+ "type": "boolean"
8871
+ },
8872
+ "all-spans": {
8873
+ "description": "List individual spans instead of the summary of span names + counts, even with no span filter",
8874
+ "name": "all-spans",
8875
+ "allowNo": false,
8876
+ "type": "boolean"
8877
+ },
8878
+ "project-id": {
8879
+ "description": "EAS project ID (defaults to the project ID of the current directory)",
8880
+ "name": "project-id",
8881
+ "hasDynamicHelp": false,
8882
+ "multiple": false,
8883
+ "type": "option"
8884
+ },
8885
+ "json": {
8886
+ "description": "Enable JSON output, non-JSON messages will be printed to stderr. Implies --non-interactive.",
8887
+ "name": "json",
8888
+ "allowNo": false,
8889
+ "type": "boolean"
8890
+ },
8891
+ "non-interactive": {
8892
+ "description": "Run the command in non-interactive mode.",
8893
+ "name": "non-interactive",
8894
+ "noCacheDefault": true,
8895
+ "allowNo": false,
8896
+ "type": "boolean"
8897
+ }
8898
+ },
8899
+ "hasDynamicHelp": false,
8900
+ "hiddenAliases": [],
8901
+ "id": "observe:traces",
8902
+ "pluginAlias": "eas-cli",
8903
+ "pluginName": "eas-cli",
8904
+ "pluginType": "core",
8905
+ "strict": true,
8906
+ "enableJsonFlag": false,
8907
+ "ContextOptions": {
8908
+ "LoggedIn": {
8909
+ "loggedIn": {}
8910
+ },
8911
+ "MaybeLoggedIn": {
8912
+ "maybeLoggedIn": {}
8913
+ },
8914
+ "DynamicLoggedIn": {
8915
+ "getDynamicLoggedInAsync": {}
8916
+ },
8917
+ "SessionManagment": {
8918
+ "sessionManager": {}
8919
+ },
8920
+ "OptionalProjectConfig": {
8921
+ "optionalPrivateProjectConfig": {}
8922
+ },
8923
+ "ProjectDir": {
8924
+ "projectDir": {}
8925
+ },
8926
+ "DynamicProjectConfig": {
8927
+ "getDynamicPublicProjectConfigAsync": {},
8928
+ "getDynamicPrivateProjectConfigAsync": {}
8929
+ },
8930
+ "ProjectConfig": {
8931
+ "loggedIn": {},
8932
+ "privateProjectConfig": {}
8933
+ },
8934
+ "Analytics": {
8935
+ "analytics": {}
8936
+ },
8937
+ "Vcs": {
8938
+ "vcsClient": {}
8939
+ },
8940
+ "ServerSideEnvironmentVariables": {
8941
+ "getServerSideEnvironmentVariablesAsync": {}
8942
+ },
8943
+ "ProjectId": {
8944
+ "projectId": {}
8945
+ },
8946
+ "Experimentation": {
8947
+ "experimentation": {
8948
+ "clientByAnalytics": {}
8949
+ }
8950
+ }
8951
+ },
8952
+ "contextDefinition": {
8953
+ "projectId": {},
8954
+ "loggedIn": {}
8955
+ },
8956
+ "isESM": false,
8957
+ "relativePath": [
8958
+ "build",
8959
+ "commands",
8960
+ "observe",
8961
+ "traces.js"
8962
+ ]
8963
+ },
8614
8964
  "observe:versions": {
8615
8965
  "aliases": [],
8616
8966
  "args": {},
@@ -17750,5 +18100,5 @@
17750
18100
  ]
17751
18101
  }
17752
18102
  },
17753
- "version": "27.1.0"
18103
+ "version": "27.2.0"
17754
18104
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eas-cli",
3
- "version": "27.1.0",
3
+ "version": "27.2.0",
4
4
  "description": "EAS command line tool",
5
5
  "keywords": [
6
6
  "cli",
@@ -48,12 +48,12 @@
48
48
  "@expo/code-signing-certificates": "0.0.5",
49
49
  "@expo/config": "55.0.10",
50
50
  "@expo/config-plugins": "55.0.7",
51
- "@expo/eas-build-job": "27.1.0",
52
- "@expo/eas-json": "27.1.0",
51
+ "@expo/eas-build-job": "27.2.0",
52
+ "@expo/eas-json": "27.2.0",
53
53
  "@expo/env": "^1.0.0",
54
54
  "@expo/experimentation": "0.0.5",
55
55
  "@expo/json-file": "8.3.3",
56
- "@expo/logger": "27.1.0",
56
+ "@expo/logger": "27.2.0",
57
57
  "@expo/multipart-body-parser": "2.0.0",
58
58
  "@expo/osascript": "2.1.4",
59
59
  "@expo/package-manager": "1.9.10",
@@ -65,7 +65,7 @@
65
65
  "@expo/results": "1.0.0",
66
66
  "@expo/rudder-sdk-node": "1.1.1",
67
67
  "@expo/spawn-async": "1.7.2",
68
- "@expo/steps": "27.1.0",
68
+ "@expo/steps": "27.2.0",
69
69
  "@expo/timeago.js": "1.0.0",
70
70
  "@oclif/core": "^4.8.3",
71
71
  "@oclif/plugin-autocomplete": "^3.2.40",
@@ -271,5 +271,5 @@
271
271
  "engines": {
272
272
  "node": "^20.18.3 || >=22.0.0"
273
273
  },
274
- "gitHead": "88e23aaa09673a3f6c3a23634167b3054d2e6fce"
274
+ "gitHead": "92e1b01bd703c124ceda5e4ebfb149257d19f6e3"
275
275
  }
@@ -1,19 +0,0 @@
1
- import { Platform } from '@expo/eas-build-job';
2
- import { LazyExperimentationClient } from '../experimentation/LazyExperimentationClient';
3
- export declare const FREE_TIER_LIMIT_AGENT_GUIDANCE_EXPERIMENT_NAMESPACE = "cli-build-free-tier-limit-agent-guidance";
4
- export type FreeTierLimitAgentGuidanceVariant = 'control' | 'treatment';
5
- export type FreeTierLimitAgentGuidanceExperiment = {
6
- experimentation: LazyExperimentationClient;
7
- accountId: string;
8
- };
9
- export declare function getFreeTierLimitAgentGuidanceExperiment(ctx: {
10
- experimentation?: LazyExperimentationClient;
11
- accountId: string;
12
- }): FreeTierLimitAgentGuidanceExperiment | undefined;
13
- /**
14
- * Resolves the account's variant. Only runs driven by a coding agent are eligible. Other runs get
15
- * control before the client loads, so they make no config request and log no exposure.
16
- */
17
- export declare function resolveFreeTierLimitAgentGuidanceVariantAsync({ experimentation, accountId, }: FreeTierLimitAgentGuidanceExperiment): Promise<FreeTierLimitAgentGuidanceVariant>;
18
- export declare function formatFreeTierLimitAgentGuidance(platform: Platform): string;
19
- export declare function maybeAppendFreeTierLimitAgentGuidanceAsync(message: string, platform: Platform, experiment: FreeTierLimitAgentGuidanceExperiment | undefined): Promise<string>;
@@ -1,39 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.FREE_TIER_LIMIT_AGENT_GUIDANCE_EXPERIMENT_NAMESPACE = void 0;
4
- exports.getFreeTierLimitAgentGuidanceExperiment = getFreeTierLimitAgentGuidanceExperiment;
5
- exports.resolveFreeTierLimitAgentGuidanceVariantAsync = resolveFreeTierLimitAgentGuidanceVariantAsync;
6
- exports.formatFreeTierLimitAgentGuidance = formatFreeTierLimitAgentGuidance;
7
- exports.maybeAppendFreeTierLimitAgentGuidanceAsync = maybeAppendFreeTierLimitAgentGuidanceAsync;
8
- const agent_1 = require("../analytics/agent");
9
- const platform_1 = require("../platform");
10
- exports.FREE_TIER_LIMIT_AGENT_GUIDANCE_EXPERIMENT_NAMESPACE = 'cli-build-free-tier-limit-agent-guidance';
11
- function getFreeTierLimitAgentGuidanceExperiment(ctx) {
12
- return ctx.experimentation
13
- ? { experimentation: ctx.experimentation, accountId: ctx.accountId }
14
- : undefined;
15
- }
16
- /**
17
- * Resolves the account's variant. Only runs driven by a coding agent are eligible. Other runs get
18
- * control before the client loads, so they make no config request and log no exposure.
19
- */
20
- async function resolveFreeTierLimitAgentGuidanceVariantAsync({ experimentation, accountId, }) {
21
- if (!(0, agent_1.getAgentTelemetryContext)()) {
22
- return 'control';
23
- }
24
- const client = await experimentation.getClientAsync();
25
- return client
26
- .getAccountNamespace(exports.FREE_TIER_LIMIT_AGENT_GUIDANCE_EXPERIMENT_NAMESPACE, { accountId })
27
- .getParam('variant', 'control');
28
- }
29
- function formatFreeTierLimitAgentGuidance(platform) {
30
- const platformName = platform_1.requestedPlatformDisplayNames[platform];
31
- return `Fix: Human required: ${platformName} builds for this account are blocked until the Free plan resets. Upgrading costs money, so an account owner or admin decides.`;
32
- }
33
- async function maybeAppendFreeTierLimitAgentGuidanceAsync(message, platform, experiment) {
34
- if (!experiment ||
35
- (await resolveFreeTierLimitAgentGuidanceVariantAsync(experiment)) !== 'treatment') {
36
- return message;
37
- }
38
- return `${message}\n${formatFreeTierLimitAgentGuidance(platform)}`;
39
- }