diff --git a/.github/workflows/appintents-registration.yaml b/.github/workflows/appintents-registration.yaml new file mode 100644 index 00000000..9b0822e5 --- /dev/null +++ b/.github/workflows/appintents-registration.yaml @@ -0,0 +1,77 @@ +name: App Intents SDK and registration + +on: + pull_request: + paths: &paths + - 'sweetpad-cli/src/**' + - 'sweetpad-cli/fixtures/appintents/**' + - 'sweetpad-core/**' + - 'sweetpad-lib/src/**' + - 'sweetpad-lib/ci/bundle_comparison.py' + - 'Cargo.*' + - 'rust-toolchain.toml' + - '.github/workflows/appintents-registration.yaml' + push: + branches: [main] + paths: *paths + schedule: + - cron: '25 6 * * 1' + workflow_dispatch: + +permissions: + contents: read + +concurrency: + group: appintents-registration-${{ github.ref }} + cancel-in-progress: true + +jobs: + sdk: + name: Classify the public iOS SDK + runs-on: macos-26 + steps: + - uses: actions/checkout@v7 + - &select-xcode + name: Select the newest stable installed Xcode + uses: maxim-lobanov/setup-xcode@ed7a3b1fda3918c0306d1b724322adc0b8cc0a90 # v1 + with: + xcode-version: latest-stable + - run: xcodebuild -version + - run: python3 -B -I sweetpad-cli/fixtures/appintents/sdk_coverage.py --export-signatures "$RUNNER_TEMP/sdk-inventory" + - uses: actions/upload-artifact@v7 + if: ${{ !cancelled() }} + with: + name: appintents-sdk-inventory + path: ${{ runner.temp }}/sdk-inventory + if-no-files-found: error + + native: + name: Capture registration with Xcode + runs-on: macos-26 + steps: + - uses: actions/checkout@v7 + - *select-xcode + - uses: Swatinem/rust-cache@v2 + - run: cargo build --locked -p sweetpad-cli --bin sweetpad + - run: command -v xcodegen || brew install xcodegen + - run: python3 -B -I sweetpad-cli/fixtures/appintents/regen.py --export-registration "$RUNNER_TEMP/registrations" + - uses: actions/upload-artifact@v7 + with: + name: appintents-registrations + path: ${{ runner.temp }}/registrations + if-no-files-found: error + + linux: + name: Compare complete registrations on Linux + needs: native + runs-on: ubuntu-24.04 + steps: + - uses: actions/checkout@v7 + - uses: Swatinem/rust-cache@v2 + - uses: actions/download-artifact@v8 + with: + name: appintents-registrations + path: ${{ runner.temp }}/registrations + - run: cargo build --locked -p sweetpad-cli --bin sweetpad + - run: python3 -B -I sweetpad-cli/fixtures/appintents/verify_registration.py "$RUNNER_TEMP/registrations" + - run: python3 -B -m unittest discover -s sweetpad-cli/fixtures/appintents -p 'test_*.py' diff --git a/sweetpad-cli/fixtures/appintents/InputOptionsProbe.actions.json b/sweetpad-cli/fixtures/appintents/InputOptionsProbe.actions.json new file mode 100644 index 00000000..961d9861 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/InputOptionsProbe.actions.json @@ -0,0 +1,1286 @@ +{ + "InputOptionsProbeIntent": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "InputOptionsProbe.InputOptionsProbeIntent", + "identifier": "InputOptionsProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "17InputOptionsProbe0abC6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "17InputOptionsProbe0abC6IntentV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "allOff", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "All off" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringAutocorrect", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringCapitalizationType", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringSmartQuotes", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 4 + } + }, + "LNValueTypeMetadataKeyStringMultiline", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringSmartDashes", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "allOn", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "All on" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringSmartQuotes", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringAutocorrect", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringCapitalizationType", + { + "int": { + "wrapper": 3 + } + }, + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringSmartDashes", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringMultiline", + { + "int": { + "wrapper": 1 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "empty", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Empty" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "punct", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Punct" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringCapitalizationType", + { + "int": { + "wrapper": 1 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "url", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "URL" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 2 + } + }, + "LNValueTypeMetadataKeyStringCapitalizationType", + { + "int": { + "wrapper": 2 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "numberPad", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Number pad" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 3 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "quotes", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Smart quotes only" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringSmartQuotes", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "dashes", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Smart dashes only" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringSmartDashes", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "autocorrect", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Autocorrect only" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringAutocorrect", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 1, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "withDefault", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "With default" + }, + "typeSpecificMetadata": [ + "LNValueTypeSpecificMetadataKeyDefaultValue", + { + "string": { + "wrapper": "hi" + } + }, + "LNValueTypeMetadataKeyStringMultiline", + { + "int": { + "wrapper": 1 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "dialog", + "parameterDescription": { + "alternatives": [], + "key": "Described" + }, + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Options and dialog" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringAutocorrect", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 3 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "explicitDefaults", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Explicit defaults" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringMultiline", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 0 + } + }, + "LNValueTypeMetadataKeyStringCapitalizationType", + { + "int": { + "wrapper": 2 + } + }, + "LNValueTypeMetadataKeyStringSmartQuotes", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringSmartDashes", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringAutocorrect", + { + "int": { + "wrapper": 1 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "words", + "resolvableInputTypes": [], + "title": { + "alternatives": [], + "key": "Words" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringMultiline", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeMetadataKeyStringKeyboardType", + { + "int": { + "wrapper": 2 + } + } + ], + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "optionalWords", + "resolvableInputTypes": [], + "title": { + "alternatives": [], + "key": "Optional words" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringAutocorrect", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "distinctWords", + "resolvableInputTypes": [], + "title": { + "alternatives": [], + "key": "Distinct words" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringSmartQuotes", + { + "int": { + "wrapper": 1 + } + } + ], + "valueType": { + "array": { + "wrapper": { + "capabilities": 0, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "parameterSummary", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "User's summary" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Input options probe" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "ParameterTitleProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "InputOptionsProbe.ParameterTitleProbe", + "identifier": "ParameterTitleProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "17InputOptionsProbe014ParameterTitleC0V", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "17InputOptionsProbe014ParameterTitleC0V", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "ordinary", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "User's choice" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 1, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "parameterSummary", + "parameterDescription": { + "alternatives": [], + "key": "Extra detail" + }, + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Custom label" + }, + "typeSpecificMetadata": [ + "LNValueTypeMetadataKeyStringMultiline", + { + "int": { + "wrapper": 1 + } + }, + "LNValueTypeSpecificMetadataKeyDefaultValue", + { + "string": { + "wrapper": "ready" + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Parameter titles" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + } +} diff --git a/sweetpad-cli/fixtures/appintents/InputOptionsProbe.swift b/sweetpad-cli/fixtures/appintents/InputOptionsProbe.swift new file mode 100644 index 00000000..b906a9fb --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/InputOptionsProbe.swift @@ -0,0 +1,55 @@ +// Every String.IntentInputOptions argument, explicit and defaulted. +import AppIntents + +struct InputOptionsProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Input options probe" + static let openAppWhenRun: Bool = false + + @Parameter(title: "All off", inputOptions: String.IntentInputOptions(keyboardType: .default, capitalizationType: .none, multiline: false, autocorrect: false, smartQuotes: false, smartDashes: false)) + var allOff: String? + @Parameter(title: "All on", inputOptions: String.IntentInputOptions(keyboardType: .asciiCapable, capitalizationType: .allCharacters, multiline: true, autocorrect: true, smartQuotes: true, smartDashes: true)) + var allOn: String? + @Parameter(title: "Empty", inputOptions: String.IntentInputOptions()) + var empty: String? + @Parameter(title: "Punct", inputOptions: String.IntentInputOptions(keyboardType: .numbersAndPunctuation, capitalizationType: .words)) + var punct: String? + @Parameter(title: "URL", inputOptions: String.IntentInputOptions(keyboardType: .URL, capitalizationType: .sentences)) + var url: String? + @Parameter(title: "Number pad", inputOptions: String.IntentInputOptions(keyboardType: .numberPad)) + var numberPad: String? + @Parameter(title: "Smart quotes only", inputOptions: String.IntentInputOptions(smartQuotes: false)) + var quotes: String? + @Parameter(title: "Smart dashes only", inputOptions: String.IntentInputOptions(smartDashes: false)) + var dashes: String? + @Parameter(title: "Autocorrect only", inputOptions: String.IntentInputOptions(autocorrect: false)) + var autocorrect: String? + @Parameter(title: "With default", default: "hi", inputOptions: String.IntentInputOptions(multiline: true)) + var withDefault: String + @Parameter(title: "Options and dialog", description: "Described", inputOptions: String.IntentInputOptions(keyboardType: .numberPad, autocorrect: false), requestValueDialog: "Which?") + var dialog: String + + @Parameter(title: "Explicit defaults", inputOptions: String.IntentInputOptions(keyboardType: .asciiCapable, capitalizationType: .sentences, multiline: false, autocorrect: true, smartQuotes: true, smartDashes: true)) + var explicitDefaults: String? + + @Parameter(title: "Words", inputOptions: .init(keyboardType: .URL, multiline: true)) + var words: [String] + @Parameter(title: "Optional words", inputOptions: .init(autocorrect: false)) + var optionalWords: [String]? + @Parameter(title: "Distinct words", inputOptions: .init(smartQuotes: true)) + var distinctWords: Set + @Parameter(title: "User's summary", inputOptions: nil) + var parameterSummary: String? + + @MainActor + func perform() async throws -> some IntentResult { .result() } +} + +struct ParameterTitleProbe: AppIntent { + static let title: LocalizedStringResource = "Parameter titles" + + @Parameter(title: "User's choice", inputOptions: nil) var ordinary: String? + @Parameter(title: "Custom label", description: "Extra detail", default: "ready", inputOptions: .init(multiline: true)) + var parameterSummary: String + + func perform() async throws -> some IntentResult { .result() } +} diff --git a/sweetpad-cli/fixtures/appintents/InputOptionsProbe.swiftconstvalues b/sweetpad-cli/fixtures/appintents/InputOptionsProbe.swiftconstvalues new file mode 100644 index 00000000..d25f773d --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/InputOptionsProbe.swiftconstvalues @@ -0,0 +1,4247 @@ +[ + { + "allConformances": [ + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "17InputOptionsProbe0abC6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy17InputOptionsProbe0fghC0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "InputOptionsProbe.swift", + "kind": "struct", + "line": 4, + "mangledTypeName": "17InputOptionsProbe0abC6IntentV", + "properties": [ + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_allOff", + "line": 9, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "All off", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "default" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "none" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_allOn", + "line": 11, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "All on", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "asciiCapable" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "allCharacters" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_empty", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Empty", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_punct", + "line": 15, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Punct", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numbersAndPunctuation" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "words" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_url", + "line": 17, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "URL", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "URL" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "sentences" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_numberPad", + "line": 19, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Number pad", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numberPad" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_quotes", + "line": 21, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Smart quotes only", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_dashes", + "line": 23, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Smart dashes only", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_autocorrect", + "line": 25, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Autocorrect only", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_withDefault", + "line": 27, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "With default", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "hi", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_dialog", + "line": 29, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Options and dialog", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "value": "Described", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numberPad" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "value": "Which?", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_explicitDefaults", + "line": 32, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Explicit defaults", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "asciiCapable" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "sentences" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_words", + "line": 35, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Words", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional>", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "URL" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_optionalWords", + "line": 37, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Optional words", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional>", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_distinctWords", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Distinct words", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional>", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_parameterSummary", + "line": 41, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "User's summary", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 5, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Input options probe", + "valueKind": "RawLiteral" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "openAppWhenRun", + "line": 6, + "mangledTypeName": "n/a - deprecated", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "allOff", + "line": 9, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "All off", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "default" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "none" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 8, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "All off", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "default" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "none" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$allOff", + "line": 9, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "allOn", + "line": 11, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "All on", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "asciiCapable" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "allCharacters" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 10, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "All on", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "asciiCapable" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "allCharacters" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$allOn", + "line": 11, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "empty", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Empty", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 12, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Empty", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$empty", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "punct", + "line": 15, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Punct", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numbersAndPunctuation" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "words" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 14, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Punct", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numbersAndPunctuation" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "words" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$punct", + "line": 15, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "url", + "line": 17, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "URL", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "URL" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "sentences" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 16, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "URL", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "URL" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "sentences" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$url", + "line": 17, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "numberPad", + "line": 19, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Number pad", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numberPad" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 18, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Number pad", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numberPad" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$numberPad", + "line": 19, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "quotes", + "line": 21, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Smart quotes only", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 20, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Smart quotes only", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$quotes", + "line": 21, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "dashes", + "line": 23, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Smart dashes only", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 22, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Smart dashes only", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$dashes", + "line": 23, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "autocorrect", + "line": 25, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Autocorrect only", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 24, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Autocorrect only", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$autocorrect", + "line": 25, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "withDefault", + "line": 27, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "With default", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "hi", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 26, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "With default", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "hi", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$withDefault", + "line": 27, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "dialog", + "line": 29, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Options and dialog", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "value": "Described", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numberPad" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "value": "Which?", + "valueKind": "RawLiteral" + } + ], + "file": "InputOptionsProbe.swift", + "line": 28, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Options and dialog", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "value": "Described", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "numberPad" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "value": "Which?", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$dialog", + "line": 29, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "explicitDefaults", + "line": 32, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Explicit defaults", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "asciiCapable" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "sentences" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 31, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Explicit defaults", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "asciiCapable" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "value": { + "name": "sentences" + }, + "valueKind": "Enum" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$explicitDefaults", + "line": 32, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "words", + "line": 35, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Words", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "URL" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 34, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Array", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Words", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional>", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "value": { + "name": "URL" + }, + "valueKind": "Enum" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$words", + "line": 35, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "optionalWords", + "line": 37, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Optional words", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 36, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Optional words", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional>", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$optionalWords", + "line": 37, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "distinctWords", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Distinct words", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 38, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Set", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Distinct words", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional>", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$distinctWords", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "parameterSummary", + "line": 41, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "User's summary", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "file": "InputOptionsProbe.swift", + "line": 40, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "User's summary", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$parameterSummary", + "line": 41, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + } + ], + "typeName": "InputOptionsProbe.InputOptionsProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "InputOptionsProbe", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "17InputOptionsProbe014ParameterTitleC0V7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy17InputOptionsProbe014ParameterTitleH0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "InputOptionsProbe.swift", + "kind": "struct", + "line": 47, + "mangledTypeName": "17InputOptionsProbe014ParameterTitleC0V", + "properties": [ + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_ordinary", + "line": 50, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "User's choice", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_parameterSummary", + "line": 52, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Custom label", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "value": "Extra detail", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "ready", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 48, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Parameter titles", + "valueKind": "RawLiteral" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "ordinary", + "line": 50, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "User's choice", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "file": "InputOptionsProbe.swift", + "line": 50, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "User's choice", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$ordinary", + "line": 50, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "parameterSummary", + "line": 52, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Custom label", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "value": "Extra detail", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "ready", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + } + ], + "file": "InputOptionsProbe.swift", + "line": 51, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Custom label", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "value": "Extra detail", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "ready", + "valueKind": "RawLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "keyboardType", + "type": "Swift.String.IntentInputOptions.KeyboardType", + "valueKind": "Runtime" + }, + { + "label": "capitalizationType", + "type": "Swift.String.IntentInputOptions.CapitalizationType", + "valueKind": "Runtime" + }, + { + "label": "multiline", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "autocorrect", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartQuotes", + "type": "Swift.Bool", + "valueKind": "Runtime" + }, + { + "label": "smartDashes", + "type": "Swift.Bool", + "valueKind": "Runtime" + } + ], + "type": "Swift.String.IntentInputOptions" + }, + "valueKind": "InitCall" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "InputOptionsProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$parameterSummary", + "line": 52, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + } + ], + "typeName": "InputOptionsProbe.ParameterTitleProbe" + } +] diff --git a/sweetpad-cli/fixtures/appintents/OutputProbe.actions.json b/sweetpad-cli/fixtures/appintents/OutputProbe.actions.json new file mode 100644 index 00000000..b309804c --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/OutputProbe.actions.json @@ -0,0 +1,866 @@ +{ + "AllOutputsProbeIntent": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.AllOutputsProbeIntent", + "identifier": "AllOutputsProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe010AllOutputsB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe010AllOutputsB6IntentV", + "openAppWhenRun": false, + "outputFlags": 7, + "outputType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + }, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "All outputs" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "DialogOnlyProbeIntent": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.DialogOnlyProbeIntent", + "identifier": "DialogOnlyProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe010DialogOnlyB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe010DialogOnlyB6IntentV", + "openAppWhenRun": false, + "outputFlags": 4, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Dialog only" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "EmptySummaryTextProbeIntent": { + "actionConfiguration": { + "actionSummary": { + "wrapper": { + "otherParameterIdentifiers": [], + "summaryString": { + "formatString": "", + "parameterIdentifiers": [] + } + } + } + }, + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.EmptySummaryTextProbeIntent", + "identifier": "EmptySummaryTextProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe016EmptySummaryTextB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe016EmptySummaryTextB6IntentV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Empty summary text" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "NoSummaryTextProbeIntent": { + "actionConfiguration": { + "actionSummary": { + "wrapper": { + "otherParameterIdentifiers": [] + } + } + }, + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.NoSummaryTextProbeIntent", + "identifier": "NoSummaryTextProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe013NoSummaryTextB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe013NoSummaryTextB6IntentV", + "openAppWhenRun": false, + "outputFlags": 4, + "outputType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + }, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "No summary text" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "OpensProbeIntent": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.OpensProbeIntent", + "identifier": "OpensProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe05OpensB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe05OpensB6IntentV", + "openAppWhenRun": false, + "outputFlags": 1, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Opens" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "SnippetOnlyProbeIntent": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.SnippetOnlyProbeIntent", + "identifier": "SnippetOnlyProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe011SnippetOnlyB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe011SnippetOnlyB6IntentV", + "openAppWhenRun": false, + "outputFlags": 2, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Snippet only" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "SummaryBuilderProbeIntent": { + "actionConfiguration": { + "actionSummary": { + "wrapper": { + "otherParameterIdentifiers": [ + "third", + "first" + ], + "summaryString": { + "formatString": "Just text", + "parameterIdentifiers": [] + } + } + } + }, + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.SummaryBuilderProbeIntent", + "identifier": "SummaryBuilderProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe014SummaryBuilderB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe014SummaryBuilderB6IntentV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "first", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "First" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "second", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 7 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Second" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "capabilities": 1, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "third", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 1 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Third" + }, + "typeSpecificMetadata": [ + "LNValueTypeSpecificMetadataKeyDefaultValue", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 1 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Summary builder" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "SummaryParametersOnlyProbeIntent": { + "actionConfiguration": { + "actionSummary": { + "wrapper": { + "otherParameterIdentifiers": [ + "second", + "first" + ] + } + } + }, + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.SummaryParametersOnlyProbeIntent", + "identifier": "SummaryParametersOnlyProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe021SummaryParametersOnlyB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe021SummaryParametersOnlyB6IntentV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "first", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "First" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "second", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 7 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Second" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Summary parameters only" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "SummaryTwoProbeIntent": { + "actionConfiguration": { + "actionSummary": { + "wrapper": { + "otherParameterIdentifiers": [ + "third" + ], + "summaryString": { + "formatString": "Send ${second} to ${first}, then ${second} again", + "parameterIdentifiers": [ + "second", + "first", + "second" + ] + } + } + } + }, + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.SummaryTwoProbeIntent", + "identifier": "SummaryTwoProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe010SummaryTwoB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe010SummaryTwoB6IntentV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "first", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "First" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "second", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 7 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Second" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + }, + { + "capabilities": 1, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": false, + "name": "third", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 1 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Third" + }, + "typeSpecificMetadata": [ + "LNValueTypeSpecificMetadataKeyDefaultValue", + { + "int": { + "wrapper": 0 + } + } + ], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 1 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Summary two" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "ValueSnippetProbeIntent": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "OutputProbe.ValueSnippetProbeIntent", + "identifier": "ValueSnippetProbeIntent", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "11OutputProbe012ValueSnippetB6IntentV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "11OutputProbe012ValueSnippetB6IntentV", + "openAppWhenRun": false, + "outputFlags": 2, + "outputType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + }, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Value and snippet" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + } +} diff --git a/sweetpad-cli/fixtures/appintents/OutputProbe.swift b/sweetpad-cli/fixtures/appintents/OutputProbe.swift new file mode 100644 index 00000000..039b9f78 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/OutputProbe.swift @@ -0,0 +1,85 @@ +// Output flags and parameter summaries. +import AppIntents +import SwiftUI + +struct DialogOnlyProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Dialog only" + func perform() async throws -> some IntentResult & ProvidesDialog { .result(dialog: "Done") } +} + +struct SnippetOnlyProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Snippet only" + @MainActor + func perform() async throws -> some IntentResult & ShowsSnippetView { .result(view: Text("Done")) } +} + +struct ValueSnippetProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Value and snippet" + @MainActor + func perform() async throws -> some IntentResult & ReturnsValue & ShowsSnippetView { .result(value: "v", view: Text("Done")) } +} + +struct OpensProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Opens" + func perform() async throws -> some IntentResult & OpensIntent { .result(opensIntent: DialogOnlyProbeIntent()) } +} + +struct AllOutputsProbeIntent: AppIntent { + static let title: LocalizedStringResource = "All outputs" + @MainActor + func perform() async throws -> some IntentResult & ReturnsValue & ProvidesDialog & ShowsSnippetView & OpensIntent { + .result(value: "v", opensIntent: DialogOnlyProbeIntent(), dialog: "Done", view: Text("Done")) + } +} + +struct SummaryTwoProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Summary two" + @Parameter(title: "First") var first: String + @Parameter(title: "Second") var second: Int + @Parameter(title: "Third", default: false) var third: Bool + static var parameterSummary: some ParameterSummary { + Summary("Send \(\.$second) to \(\.$first), then \(\.$second) again") { \.$third } + } + func perform() async throws -> some IntentResult { .result() } +} + +struct SummaryBuilderProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Summary builder" + @Parameter(title: "First") var first: String + @Parameter(title: "Second") var second: Int + @Parameter(title: "Third", default: false) var third: Bool + static var parameterSummary: some ParameterSummary { + Summary("Just text") { + \.$third + \.$first + } + } + func perform() async throws -> some IntentResult { .result() } +} + +struct NoSummaryTextProbeIntent: AppIntent { + static let title: LocalizedStringResource = "No summary text" + static var parameterSummary: some ParameterSummary { Summary() } + func perform() async throws -> some IntentResult & ReturnsValue & ProvidesDialog { + .result(value: "ok", dialog: "Done") + } +} + +struct EmptySummaryTextProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Empty summary text" + static var parameterSummary: some ParameterSummary { Summary("") } + func perform() async throws -> some IntentResult { .result() } +} + +struct SummaryParametersOnlyProbeIntent: AppIntent { + static let title: LocalizedStringResource = "Summary parameters only" + @Parameter(title: "First") var first: String + @Parameter(title: "Second") var second: Int + static var parameterSummary: some ParameterSummary { + Summary { + \.$second + \.$first + } + } + func perform() async throws -> some IntentResult { .result() } +} diff --git a/sweetpad-cli/fixtures/appintents/OutputProbe.swiftconstvalues b/sweetpad-cli/fixtures/appintents/OutputProbe.swiftconstvalues new file mode 100644 index 00000000..2b75e2fa --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/OutputProbe.swiftconstvalues @@ -0,0 +1,2007 @@ +[ + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ProvidesDialog" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe010DialogOnlyB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ProvidesDialog", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11OutputProbe010DialogOnlygC0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 5, + "mangledTypeName": "11OutputProbe010DialogOnlyB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 6, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Dialog only", + "valueKind": "RawLiteral" + } + ], + "typeName": "OutputProbe.DialogOnlyProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe011SnippetOnlyB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11OutputProbe011SnippetOnlygC0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 10, + "mangledTypeName": "11OutputProbe011SnippetOnlyB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 11, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Snippet only", + "valueKind": "RawLiteral" + } + ], + "typeName": "OutputProbe.SnippetOnlyProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ReturnsValue", + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [ + { + "substitutedMangledTypeName": "SS", + "substitutedTypeName": "Swift.String", + "typeAliasName": "AppIntents.IntentResult.Value" + } + ], + "substitutedMangledTypeName": "11OutputProbe012ValueSnippetB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ReturnsValue & AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11OutputProbe012ValueSnippetgC0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 16, + "mangledTypeName": "11OutputProbe012ValueSnippetB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 17, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Value and snippet", + "valueKind": "RawLiteral" + } + ], + "typeName": "OutputProbe.ValueSnippetProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.OpensIntent" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe05OpensB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.OpensIntent", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11OutputProbe05OpensgC0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 22, + "mangledTypeName": "11OutputProbe05OpensB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 23, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Opens", + "valueKind": "RawLiteral" + } + ], + "typeName": "OutputProbe.OpensProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.OpensIntent", + "AppIntents.ProvidesDialog", + "AppIntents.ReturnsValue", + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [ + { + "substitutedMangledTypeName": "SS", + "substitutedTypeName": "Swift.String", + "typeAliasName": "AppIntents.IntentResult.Value" + } + ], + "substitutedMangledTypeName": "11OutputProbe010AllOutputsB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.OpensIntent & AppIntents.ProvidesDialog & AppIntents.ReturnsValue & AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11OutputProbe010AllOutputsgC0V_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 27, + "mangledTypeName": "11OutputProbe010AllOutputsB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 28, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "All outputs", + "valueKind": "RawLiteral" + } + ], + "typeName": "OutputProbe.AllOutputsProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe010SummaryTwoB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe010SummaryTwoB6IntentV09parameterC0QrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 35, + "mangledTypeName": "11OutputProbe010SummaryTwoB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_first", + "line": 37, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_second", + "line": 38, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_third", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Third", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "displayName", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 36, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Summary two", + "valueKind": "RawLiteral" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "first", + "line": 37, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 37, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$first", + "line": 37, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "second", + "line": 38, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 38, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Int", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$second", + "line": 38, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "third", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Third", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 39, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Bool", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Third", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "displayName", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$third", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 40, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": { + "segments": [ + { + "value": "Send ", + "valueKind": "RawLiteral" + }, + { + "value": { + "components": [ + { + "label": "$second", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$second", + "rootType": "OutputProbe.SummaryTwoProbeIntent" + }, + "valueKind": "KeyPath" + }, + { + "value": " to ", + "valueKind": "RawLiteral" + }, + { + "value": { + "components": [ + { + "label": "$first", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$first", + "rootType": "OutputProbe.SummaryTwoProbeIntent" + }, + "valueKind": "KeyPath" + }, + { + "value": ", then ", + "valueKind": "RawLiteral" + }, + { + "value": { + "components": [ + { + "label": "$second", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$second", + "rootType": "OutputProbe.SummaryTwoProbeIntent" + }, + "valueKind": "KeyPath" + }, + { + "value": " again", + "valueKind": "RawLiteral" + } + ] + }, + "valueKind": "InterpolatedStringLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "", + "type": "() -> Swift.Array>", + "value": { + "members": [ + { + "element": { + "value": { + "components": [ + { + "label": "$third", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$third", + "rootType": "OutputProbe.SummaryTwoProbeIntent" + }, + "valueKind": "KeyPath" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + } + ], + "typeName": "OutputProbe.SummaryTwoProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe014SummaryBuilderB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe014SummaryBuilderB6IntentV09parameterC0QrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 46, + "mangledTypeName": "11OutputProbe014SummaryBuilderB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_first", + "line": 48, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_second", + "line": 49, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_third", + "line": 50, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Third", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "displayName", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 47, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Summary builder", + "valueKind": "RawLiteral" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "first", + "line": 48, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 48, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$first", + "line": 48, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "second", + "line": 49, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 49, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Int", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$second", + "line": 49, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "third", + "line": 50, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Third", + "valueKind": "RawLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "false", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 50, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Bool", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Third", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "value": "false", + "valueKind": "RawLiteral" + }, + { + "label": "displayName", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$third", + "line": 50, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 51, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "Just text", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "", + "type": "() -> Swift.Array>", + "value": { + "members": [ + { + "element": { + "value": { + "components": [ + { + "label": "$third", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$third", + "rootType": "OutputProbe.SummaryBuilderProbeIntent" + }, + "valueKind": "KeyPath" + }, + "kind": "buildExpression" + }, + { + "element": { + "value": { + "components": [ + { + "label": "$first", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$first", + "rootType": "OutputProbe.SummaryBuilderProbeIntent" + }, + "valueKind": "KeyPath" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + } + ], + "typeName": "OutputProbe.SummaryBuilderProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ProvidesDialog", + "AppIntents.ReturnsValue" + ], + "opaqueTypeSameTypeRequirements": [ + { + "substitutedMangledTypeName": "SS", + "substitutedTypeName": "Swift.String", + "typeAliasName": "AppIntents.IntentResult.Value" + } + ], + "substitutedMangledTypeName": "11OutputProbe013NoSummaryTextB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ProvidesDialog & AppIntents.ReturnsValue", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe013NoSummaryTextB6IntentV09parameterD0QrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 60, + "mangledTypeName": "11OutputProbe013NoSummaryTextB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 61, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "No summary text", + "valueKind": "RawLiteral" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 62, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + } + ], + "typeName": "OutputProbe.NoSummaryTextProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe016EmptySummaryTextB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe016EmptySummaryTextB6IntentV09parameterD0QrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 68, + "mangledTypeName": "11OutputProbe016EmptySummaryTextB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 69, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Empty summary text", + "valueKind": "RawLiteral" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 70, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + } + ], + "typeName": "OutputProbe.EmptySummaryTextProbeIntent" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "OutputProbe", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe021SummaryParametersOnlyB6IntentV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11OutputProbe021SummaryParametersOnlyB6IntentV09parameterC0QrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "OutputProbe.swift", + "kind": "struct", + "line": 74, + "mangledTypeName": "11OutputProbe021SummaryParametersOnlyB6IntentV", + "properties": [ + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_first", + "line": 76, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_second", + "line": 77, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 75, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Summary parameters only", + "valueKind": "RawLiteral" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "first", + "line": 76, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 76, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "First", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$first", + "line": 76, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "second", + "line": 77, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + } + ], + "file": "OutputProbe.swift", + "line": 77, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Int", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Second", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$second", + "line": 77, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "OutputProbe.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 78, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "() -> Swift.Array>", + "value": { + "members": [ + { + "element": { + "value": { + "components": [ + { + "label": "$second", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$second", + "rootType": "OutputProbe.SummaryParametersOnlyProbeIntent" + }, + "valueKind": "KeyPath" + }, + "kind": "buildExpression" + }, + { + "element": { + "value": { + "components": [ + { + "label": "$first", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$first", + "rootType": "OutputProbe.SummaryParametersOnlyProbeIntent" + }, + "valueKind": "KeyPath" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + } + ], + "typeName": "OutputProbe.SummaryParametersOnlyProbeIntent" + } +] diff --git a/sweetpad-cli/fixtures/appintents/README.md b/sweetpad-cli/fixtures/appintents/README.md index a1f2de58..ebdc0ed8 100644 --- a/sweetpad-cli/fixtures/appintents/README.md +++ b/sweetpad-cli/fixtures/appintents/README.md @@ -1,7 +1,7 @@ # App Intents compiler captures The Swift files are synthetic probes owned by this repository. -`regen.py` builds both probes with Xcode through the local sweetpad binary. +`regen.py` builds the probes with Xcode through the local sweetpad binary. It requires macOS, Xcode, and XcodeGen. ```sh @@ -9,15 +9,63 @@ cargo build -p sweetpad-cli --bin sweetpad DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer python3 -I sweetpad-cli/fixtures/appintents/regen.py ``` -The current captures use Xcode 27.2 (`27B52`). +The checked-in Swift compiler captures use Xcode 27.2 (`27B52`). The generator normalizes source paths to file names. -The tests normalize the generator identity and the order of resolver sets. +The tests normalize the generator identity, the order of resolver sets, +and the order of `typeSpecificMetadata` pairs, which Xcode writes in hash order. The language-model test compares decoded phrases and negative examples. It ignores native phrase order and generation timestamps. Registration covers basic intents, primitive parameters, enums, entities, -queries, widget configuration, authentication policies, and App Shortcuts. -Assistant schemas, explicit supported modes, custom parameter options, -and dependency metadata currently stop extraction with an error. -Localized shortcut phrase models and availability-specific metadata need more coverage. -These captures establish format compatibility, not device registration or Siri behavior. +queries, widget configuration, authentication policies, App Shortcuts, +`String.IntentInputOptions`, output flags, and plain parameter summaries. +The input options probe covers scalar strings, arrays, and sets. The summary +probes cover omitted text, an explicit empty string, interpolation, and a +trailing list of parameters. The `*.actions.json` files hold the probe actions. +Assistant schemas, explicit supported modes, other custom parameter options, +conditional summaries, summaries with a localization table, and dependency +metadata currently stop extraction with an error. +Localized shortcut phrase models and availability beyond the platform annotations +in the snippet probe need more coverage. Device registration and Siri interaction +require separate runtime tests. + +## SDK upgrade checks + +The iOS 27.2 checklist links each parameter option, result protocol, and summary +form to its evidence. It also lists the two result compositions involving +`OpensIntent`. The iOS 26.5 and 27.2 inventories record the public overloads +within each family. Xcode 26.6 uses an earlier enum and entity schema and infers +an instance parameter named `parameterSummary` from its name and type. Xcode +27.2 emits the explicit wrapper options for that property. +[SDK coverage and remaining gaps](sdk-27.2.md) + +On a Mac with XcodeGen, run the following from the repository root. Use an empty +capture directory for each Xcode version. Set `DEVELOPER_DIR` to select Xcode. + +```sh +cargo build --locked -p sweetpad-cli --bin sweetpad +python3 -B -I sweetpad-cli/fixtures/appintents/sdk_coverage.py +python3 -B -I sweetpad-cli/fixtures/appintents/regen.py --export-registration .build/intent-captures +``` + +Copy the capture directory to Linux, build the CLI with the same Cargo command, +and run the replay. CI transfers the synthetic compiler inputs and registrations +between its macOS and Linux jobs. + +```sh +python3 -B -I sweetpad-cli/fixtures/appintents/verify_registration.py .build/intent-captures +``` + +The replay compares every field in `extract.actionsdata` and `version.json` +for each supported probe. It checks the two generator identities separately +and preserves the pairing of keys and values in unordered metadata. It also +checks native controls and the named diagnostics for unsupported declarations. +The SDK-specific fingerprints cover both documents for all seven native probes, +including the negative cases. The replay checks the Xcode build identifier +literally before computing fingerprints that can be compared across builds. + +On an SDK upgrade, inspect new declarations, overloads and registration changes. +Add evidence to the versioned checklist, regenerate the affected fixtures, then +run `sdk_coverage.py --update-signatures` and replay the fresh captures with +`verify_registration.py CAPTURES --update-registrations` to record the reviewed +baselines. The workflow performs read-only checks on PRs and weekly. diff --git a/sweetpad-cli/fixtures/appintents/ResultProtocols.actionsdata b/sweetpad-cli/fixtures/appintents/ResultProtocols.actionsdata new file mode 100644 index 00000000..69ff1f5d --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/ResultProtocols.actionsdata @@ -0,0 +1,721 @@ +{ + "actions": { + "ConfirmProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.ConfirmProbe", + "identifier": "ConfirmProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols12ConfirmProbeV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols12ConfirmProbeV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "text", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Text" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Confirm" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "ConfirmationSnippet": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameIOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameMACOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameTVOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameVISIONOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameWATCHOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.ConfirmationSnippet", + "identifier": "ConfirmationSnippet", + "isAuthPolExplicit": false, + "isDiscoverable": false, + "mangledTypeName": "15ResultProtocols19ConfirmationSnippetV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols19ConfirmationSnippetV", + "openAppWhenRun": false, + "outputFlags": 2, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [ + "com.apple.link.systemProtocol.Snippet", + { + "empty": {} + } + ], + "systemProtocolMetadataV2": [ + "com.apple.link.systemProtocol.Snippet", + { + "empty": {} + } + ], + "systemProtocols": [ + "com.apple.link.systemProtocol.Snippet" + ], + "title": { + "alternatives": [], + "key": "Confirmation snippet" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": false + } + }, + "ConnectionProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.ConnectionProbe", + "identifier": "ConnectionProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols15ConnectionProbeV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols15ConnectionProbeV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "automatic", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Default" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 1, + "isInput": false, + "isOptional": true, + "name": "never", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Never" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 2, + "isInput": true, + "isOptional": true, + "name": "previous", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Previous" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Connection behavior" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "DiscoverableSnippet": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameIOS": { + "deprecatedVersion": "27.0", + "introducedVersion": "26.0", + "obsoletedVersion": "30.0" + }, + "LNPlatformNameTVOS": { + "obsoletedVersion": "*" + }, + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.DiscoverableSnippet", + "identifier": "DiscoverableSnippet", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols19DiscoverableSnippetV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols19DiscoverableSnippetV", + "openAppWhenRun": false, + "outputFlags": 2, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [ + "com.apple.link.systemProtocol.Snippet", + { + "empty": {} + } + ], + "systemProtocolMetadataV2": [ + "com.apple.link.systemProtocol.Snippet", + { + "empty": {} + } + ], + "systemProtocols": [ + "com.apple.link.systemProtocol.Snippet" + ], + "title": { + "alternatives": [], + "key": "Discoverable snippet" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "InteractiveResultProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameIOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.InteractiveResultProbe", + "identifier": "InteractiveResultProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols011InteractiveA5ProbeV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols011InteractiveA5ProbeV", + "openAppWhenRun": false, + "outputFlags": 32, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Show confirmation" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "OpensWithDialogProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.OpensWithDialogProbe", + "identifier": "OpensWithDialogProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols20OpensWithDialogProbeV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols20OpensWithDialogProbeV", + "openAppWhenRun": false, + "outputFlags": 5, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Open with dialog" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "OpensWithViewProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.OpensWithViewProbe", + "identifier": "OpensWithViewProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols18OpensWithViewProbeV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols18OpensWithViewProbeV", + "openAppWhenRun": false, + "outputFlags": 3, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Open with view" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "PromptProbe": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.PromptProbe", + "identifier": "PromptProbe", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols11PromptProbeV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols11PromptProbeV", + "openAppWhenRun": false, + "outputFlags": 0, + "parameters": [ + { + "capabilities": 0, + "dynamicOptionsSupport": 0, + "inputConnectionBehavior": 0, + "isInput": false, + "isOptional": true, + "name": "text", + "resolvableInputTypes": [ + { + "kindValue": 0, + "valueType": { + "array": { + "wrapper": { + "capabilities": 3, + "memberValueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + }, + { + "kindValue": 0, + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 2 + } + } + } + } + ], + "title": { + "alternatives": [], + "key": "Text" + }, + "typeSpecificMetadata": [], + "valueType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + } + } + ], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [], + "systemProtocolMetadataV2": [], + "systemProtocols": [], + "title": { + "alternatives": [], + "key": "Confirm" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + }, + "ValueSnippet": { + "assistantDefinedSchemaTraits": [], + "assistantDefinedSchemas": [], + "authenticationPolicy": 0, + "availabilityAnnotations": { + "LNPlatformNameIOS": { + "introducedVersion": "26.0" + }, + "LNPlatformNameWildcard": { + "introducedVersion": "*" + } + }, + "effectiveBundleIdentifiers": [], + "fullyQualifiedTypeName": "ResultProtocols.ValueSnippet", + "identifier": "ValueSnippet", + "isAuthPolExplicit": false, + "isDiscoverable": true, + "mangledTypeName": "15ResultProtocols12ValueSnippetV", + "mangledTypeNameByBundleIdentifier": {}, + "mangledTypeNameByBundleIdentifierV2": {}, + "mangledTypeNameV2": "15ResultProtocols12ValueSnippetV", + "openAppWhenRun": false, + "outputFlags": 2, + "outputType": { + "primitive": { + "wrapper": { + "typeIdentifier": 0 + } + } + }, + "parameters": [], + "presentationStyle": 0, + "requiredCapabilities": [], + "supportedModes": 1, + "systemProtocolMetadata": [ + "com.apple.link.systemProtocol.Snippet", + { + "empty": {} + } + ], + "systemProtocolMetadataV2": [ + "com.apple.link.systemProtocol.Snippet", + { + "empty": {} + } + ], + "systemProtocols": [ + "com.apple.link.systemProtocol.Snippet" + ], + "title": { + "alternatives": [], + "key": "Snippet with a value" + }, + "typeSpecificMetadata": [], + "visibilityMetadata": { + "assistantOnly": false, + "isDiscoverable": true + } + } + }, + "assistantEntities": [], + "assistantIntentNegativePhrases": [], + "assistantIntents": [], + "autoShortcuts": [], + "entities": {}, + "enums": [], + "generator": { + "name": "xcode-tools", + "version": "27B52" + }, + "negativePhrases": [], + "queries": {}, + "shortcutTileColor": 14, + "version": 1 +} diff --git a/sweetpad-cli/fixtures/appintents/ResultProtocols.swift b/sweetpad-cli/fixtures/appintents/ResultProtocols.swift new file mode 100644 index 00000000..69593f2e --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/ResultProtocols.swift @@ -0,0 +1,75 @@ +import AppIntents +import SwiftUI + +struct ConfirmProbe: AppIntent { + static let title: LocalizedStringResource = "Confirm" + @Parameter(title: "Text") var text: String? + func perform() async throws -> some IntentResult { .result() } +} + +struct PromptProbe: AppIntent { + // Keep the two actions identical except for type identity and the prompt. + static let title: LocalizedStringResource = "Confirm" + @Parameter(title: "Text", requestValueDialog: "Which text?") var text: String? + func perform() async throws -> some IntentResult { .result() } +} + +@available(iOS 26.0, macOS 26.0, tvOS 26.0, watchOS 26.0, visionOS 26.0, macCatalyst 26.0, *) +struct ConfirmationSnippet: SnippetIntent { + static let title: LocalizedStringResource = "Confirmation snippet" + @MainActor + func perform() async throws -> some IntentResult & ShowsSnippetView { + .result(view: Button("Confirm", intent: ConfirmProbe())) + } +} + +@available(iOS, introduced: 26.0, deprecated: 27.0, obsoleted: 30.0) +@available(tvOS, unavailable) +struct DiscoverableSnippet: SnippetIntent { + static let title: LocalizedStringResource = "Discoverable snippet" + static let isDiscoverable = true + @MainActor + func perform() async throws -> some IntentResult & ShowsSnippetView { + .result(view: Text("Visible")) + } +} + +@available(iOS 26.0, *) +struct ValueSnippet: SnippetIntent { + static let title: LocalizedStringResource = "Snippet with a value" + @MainActor + func perform() async throws -> some IntentResult & ReturnsValue & ShowsSnippetView { + .result(value: "Confirmed", view: Text("Confirmed")) + } +} + +@available(iOS 26.0, *) +struct InteractiveResultProbe: AppIntent { + static let title: LocalizedStringResource = "Show confirmation" + func perform() async throws -> some IntentResult & ShowsSnippetIntent { + .result(snippetIntent: ConfirmationSnippet()) + } +} + +struct OpensWithViewProbe: AppIntent { + static let title: LocalizedStringResource = "Open with view" + @MainActor + func perform() async throws -> some IntentResult & OpensIntent & ShowsSnippetView { + .result(opensIntent: ConfirmProbe(), view: Text("Opening")) + } +} + +struct OpensWithDialogProbe: AppIntent { + static let title: LocalizedStringResource = "Open with dialog" + func perform() async throws -> some IntentResult & OpensIntent & ProvidesDialog { + .result(opensIntent: ConfirmProbe(), dialog: "Opening") + } +} + +struct ConnectionProbe: AppIntent { + static let title: LocalizedStringResource = "Connection behavior" + @Parameter(title: "Default", inputConnectionBehavior: .default) var automatic: String? + @Parameter(title: "Never", inputConnectionBehavior: .never) var never: String? + @Parameter(title: "Previous", inputConnectionBehavior: .connectToPreviousIntentResult) var previous: String? + func perform() async throws -> some IntentResult { .result() } +} diff --git a/sweetpad-cli/fixtures/appintents/ResultProtocols.swiftconstvalues b/sweetpad-cli/fixtures/appintents/ResultProtocols.swiftconstvalues new file mode 100644 index 00000000..dc9092fb --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/ResultProtocols.swiftconstvalues @@ -0,0 +1,1392 @@ +[ + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols12ConfirmProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols12ConfirmProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 4, + "mangledTypeName": "15ResultProtocols12ConfirmProbeV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_text", + "line": 6, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Text", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 5, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Confirm", + "valueKind": "RawLiteral" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "text", + "line": 6, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Text", + "valueKind": "RawLiteral" + } + ], + "file": "ResultProtocols.swift", + "line": 6, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Text", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$text", + "line": 6, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + } + ], + "typeName": "ResultProtocols.ConfirmProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols11PromptProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols11PromptProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 10, + "mangledTypeName": "15ResultProtocols11PromptProbeV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_text", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Text", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "value": "Which text?", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 12, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Confirm", + "valueKind": "RawLiteral" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "text", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Text", + "valueKind": "RawLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "value": "Which text?", + "valueKind": "RawLiteral" + } + ], + "file": "ResultProtocols.swift", + "line": 13, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Text", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "value": "Which text?", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$text", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + } + ], + "typeName": "ResultProtocols.PromptProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.SnippetIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols19ConfirmationSnippetV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols19ConfirmationSnippetV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "availabilityAttributes": [ + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "macCatalyst" + }, + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "visionOS" + }, + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "watchOS" + }, + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "tvOS" + }, + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "macOS" + }, + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "iOS" + } + ], + "conformances": [ + "AppIntents.SnippetIntent", + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 18, + "mangledTypeName": "15ResultProtocols19ConfirmationSnippetV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 19, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Confirmation snippet", + "valueKind": "RawLiteral" + } + ], + "typeName": "ResultProtocols.ConfirmationSnippet" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.SnippetIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols19DiscoverableSnippetV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols19DiscoverableSnippetV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "availabilityAttributes": [ + { + "isDeprecated": false, + "isUnavailable": true, + "platform": "tvOS" + }, + { + "deprecatedVersion": "27.0", + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "obsoletedVersion": "30.0", + "platform": "iOS" + } + ], + "conformances": [ + "AppIntents.SnippetIntent", + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 28, + "mangledTypeName": "15ResultProtocols19DiscoverableSnippetV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 29, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Discoverable snippet", + "valueKind": "RawLiteral" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "isDiscoverable", + "line": 30, + "mangledTypeName": "n/a - deprecated", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + } + ], + "typeName": "ResultProtocols.DiscoverableSnippet" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.SnippetIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ReturnsValue", + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [ + { + "substitutedMangledTypeName": "SS", + "substitutedTypeName": "Swift.String", + "typeAliasName": "AppIntents.IntentResult.Value" + } + ], + "substitutedMangledTypeName": "15ResultProtocols12ValueSnippetV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ReturnsValue & AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols12ValueSnippetV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "availabilityAttributes": [ + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "iOS" + } + ], + "conformances": [ + "AppIntents.SnippetIntent", + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 38, + "mangledTypeName": "15ResultProtocols12ValueSnippetV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 39, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Snippet with a value", + "valueKind": "RawLiteral" + } + ], + "typeName": "ResultProtocols.ValueSnippet" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ShowsSnippetIntent" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols011InteractiveA5ProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.ShowsSnippetIntent", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols011InteractiveF5ProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "availabilityAttributes": [ + { + "introducedVersion": "26.0", + "isDeprecated": false, + "isUnavailable": false, + "platform": "iOS" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 47, + "mangledTypeName": "15ResultProtocols011InteractiveA5ProbeV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 48, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Show confirmation", + "valueKind": "RawLiteral" + } + ], + "typeName": "ResultProtocols.InteractiveResultProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.OpensIntent", + "AppIntents.ShowsSnippetView" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols18OpensWithViewProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.OpensIntent & AppIntents.ShowsSnippetView", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols18OpensWithViewProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 54, + "mangledTypeName": "15ResultProtocols18OpensWithViewProbeV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 55, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Open with view", + "valueKind": "RawLiteral" + } + ], + "typeName": "ResultProtocols.OpensWithViewProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.OpensIntent", + "AppIntents.ProvidesDialog" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols20OpensWithDialogProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.OpensIntent & AppIntents.ProvidesDialog", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols20OpensWithDialogProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 62, + "mangledTypeName": "15ResultProtocols20OpensWithDialogProbeV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 63, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Open with dialog", + "valueKind": "RawLiteral" + } + ], + "typeName": "ResultProtocols.OpensWithDialogProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "ResultProtocols", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "15ResultProtocols15ConnectionProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy15ResultProtocols15ConnectionProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "ResultProtocols.swift", + "kind": "struct", + "line": 69, + "mangledTypeName": "15ResultProtocols15ConnectionProbeV", + "properties": [ + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_automatic", + "line": 71, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Default", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "default" + }, + "valueKind": "Enum" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_never", + "line": 72, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Never", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "never" + }, + "valueKind": "Enum" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_previous", + "line": 73, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Previous", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "connectToPreviousIntentResult" + }, + "valueKind": "Enum" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 70, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Connection behavior", + "valueKind": "RawLiteral" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "automatic", + "line": 71, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Default", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "default" + }, + "valueKind": "Enum" + } + ], + "file": "ResultProtocols.swift", + "line": 71, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Default", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "default" + }, + "valueKind": "Enum" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$automatic", + "line": 71, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "never", + "line": 72, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Never", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "never" + }, + "valueKind": "Enum" + } + ], + "file": "ResultProtocols.swift", + "line": 72, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Never", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "never" + }, + "valueKind": "Enum" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$never", + "line": 72, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "previous", + "line": 73, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Previous", + "valueKind": "RawLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "connectToPreviousIntentResult" + }, + "valueKind": "Enum" + } + ], + "file": "ResultProtocols.swift", + "line": 73, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Optional", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Previous", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "value": { + "name": "connectToPreviousIntentResult" + }, + "valueKind": "Enum" + } + ], + "type": "AppIntents.IntentParameter>" + }, + "valueKind": "InitCall" + }, + { + "file": "ResultProtocols.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$previous", + "line": 73, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter>", + "valueKind": "Runtime" + } + ], + "typeName": "ResultProtocols.ConnectionProbe" + } +] diff --git a/sweetpad-cli/fixtures/appintents/Unsupported.swift b/sweetpad-cli/fixtures/appintents/Unsupported.swift new file mode 100644 index 00000000..4b0913a2 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/Unsupported.swift @@ -0,0 +1,44 @@ +import AppIntents + +struct WhenProbe: AppIntent { + static let title: LocalizedStringResource = "Conditional" + @Parameter(title: "Flag") var flag: Bool + static var parameterSummary: some ParameterSummary { + When(\.$flag, .equalTo, true) { Summary("On") } otherwise: { Summary("Off") } + } + func perform() async throws -> some IntentResult { .result() } +} + +struct SwitchProbe: AppIntent { + static let title: LocalizedStringResource = "Alternatives" + @Parameter(title: "Number") var number: Int + static var parameterSummary: some ParameterSummary { + Switch(\.$number) { + Case(1) { Summary("One") } + DefaultCase { Summary("Other") } + } + } + func perform() async throws -> some IntentResult { .result() } +} + +struct TableProbe: AppIntent { + static let title: LocalizedStringResource = "Localization table" + static var parameterSummary: some ParameterSummary { Summary("From table", table: "Probe") } + func perform() async throws -> some IntentResult { .result() } +} + +struct RangeProbe: AppIntent { + static let title: LocalizedStringResource = "Range" + @Parameter(title: "Count", inclusiveRange: (1, 5)) var count: Int + func perform() async throws -> some IntentResult { .result() } +} + +struct Choices: DynamicOptionsProvider { + func results() async throws -> [String] { ["First", "Second"] } +} + +struct OptionsProviderProbe: AppIntent { + static let title: LocalizedStringResource = "Choices" + @Parameter(title: "Choice", optionsProvider: Choices()) var choice: String + func perform() async throws -> some IntentResult { .result() } +} diff --git a/sweetpad-cli/fixtures/appintents/Unsupported.swiftconstvalues b/sweetpad-cli/fixtures/appintents/Unsupported.swiftconstvalues new file mode 100644 index 00000000..44f10021 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/Unsupported.swiftconstvalues @@ -0,0 +1,1209 @@ +[ + { + "allConformances": [ + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported9WhenProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported9WhenProbeV16parameterSummaryQrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "Unsupported.swift", + "kind": "struct", + "line": 3, + "mangledTypeName": "11Unsupported9WhenProbeV", + "properties": [ + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_flag", + "line": 5, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Flag", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "displayName", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 4, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Conditional", + "valueKind": "RawLiteral" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "flag", + "line": 5, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Flag", + "valueKind": "RawLiteral" + } + ], + "file": "Unsupported.swift", + "line": 5, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Bool", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Flag", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "displayName", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$flag", + "line": 5, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 6, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "Swift.KeyPath>", + "value": { + "components": [ + { + "label": "$flag", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$flag", + "rootType": "Unsupported.WhenProbe" + }, + "valueKind": "KeyPath" + }, + { + "label": "", + "type": "AppIntents.EquatableComparisonOperator", + "value": { + "name": "equalTo" + }, + "valueKind": "Enum" + }, + { + "label": "", + "type": "Swift.Bool", + "value": "true", + "valueKind": "RawLiteral" + }, + { + "label": "", + "type": "() -> AppIntents.IntentParameterSummary", + "value": { + "members": [ + { + "element": { + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "On", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + }, + { + "label": "otherwise", + "type": "() -> AppIntents.IntentParameterSummary", + "value": { + "members": [ + { + "element": { + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "Off", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.ParameterSummaryWhenCondition, AppIntents.IntentParameterSummary>" + }, + "valueKind": "InitCall" + } + ], + "typeName": "Unsupported.WhenProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported11SwitchProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported11SwitchProbeV16parameterSummaryQrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "Unsupported.swift", + "kind": "struct", + "line": 12, + "mangledTypeName": "11Unsupported11SwitchProbeV", + "properties": [ + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_number", + "line": 14, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Number", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 13, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Alternatives", + "valueKind": "RawLiteral" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "number", + "line": 14, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Number", + "valueKind": "RawLiteral" + } + ], + "file": "Unsupported.swift", + "line": 14, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Int", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Number", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$number", + "line": 14, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 15, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "Swift.KeyPath>", + "value": { + "components": [ + { + "label": "$number", + "type": "AppIntents.IntentParameter" + } + ], + "path": "$number", + "rootType": "Unsupported.SwitchProbe" + }, + "valueKind": "KeyPath" + }, + { + "label": "", + "type": "() -> AppIntents.ParameterSummaryTupleCaseCondition>, AppIntents.ParameterSummaryDefaultCaseCondition>)>", + "value": { + "members": [ + { + "element": { + "value": { + "arguments": [ + { + "label": "", + "type": "Swift.Int", + "value": "1", + "valueKind": "RawLiteral" + }, + { + "label": "", + "type": "() -> AppIntents.IntentParameterSummary", + "value": { + "members": [ + { + "element": { + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "One", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.ParameterSummaryCaseCondition>" + }, + "valueKind": "InitCall" + }, + "kind": "buildExpression" + }, + { + "element": { + "value": { + "arguments": [ + { + "label": "", + "type": "() -> AppIntents.IntentParameterSummary", + "value": { + "members": [ + { + "element": { + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "Other", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.ParameterSummaryDefaultCaseCondition>" + }, + "valueKind": "InitCall" + }, + "kind": "buildExpression" + } + ], + "type": "" + }, + "valueKind": "Builder" + } + ], + "type": "AppIntents.ParameterSummarySwitchCondition>, AppIntents.ParameterSummaryDefaultCaseCondition>)>>" + }, + "valueKind": "InitCall" + } + ], + "typeName": "Unsupported.SwitchProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.SendableMetatype" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported10TableProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported10TableProbeV16parameterSummaryQrvpZQOy_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype", + "Swift.BitwiseCopyable" + ], + "file": "Unsupported.swift", + "kind": "struct", + "line": 24, + "mangledTypeName": "11Unsupported10TableProbeV", + "properties": [ + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 25, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Localization table", + "valueKind": "RawLiteral" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "true", + "label": "parameterSummary", + "line": 26, + "mangledTypeName": "n/a - deprecated", + "type": "some AppIntents.ParameterSummary", + "value": { + "arguments": [ + { + "label": "", + "type": "AppIntents.ParameterSummaryString", + "value": "From table", + "valueKind": "RawLiteral" + }, + { + "label": "table", + "type": "Swift.Optional", + "value": "Probe", + "valueKind": "RawLiteral" + } + ], + "type": "AppIntents.IntentParameterSummary" + }, + "valueKind": "InitCall" + } + ], + "typeName": "Unsupported.TableProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported10RangeProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11Unsupported10RangeProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "Unsupported.swift", + "kind": "struct", + "line": 30, + "mangledTypeName": "11Unsupported10RangeProbeV", + "properties": [ + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_count", + "line": 32, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Count", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "value": [ + { + "type": "Swift.Int", + "value": "1", + "valueKind": "RawLiteral" + }, + { + "type": "Swift.Int", + "value": "5", + "valueKind": "RawLiteral" + } + ], + "valueKind": "Tuple" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 31, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Range", + "valueKind": "RawLiteral" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "count", + "line": 32, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Count", + "valueKind": "RawLiteral" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "value": [ + { + "type": "Swift.Int", + "value": "1", + "valueKind": "RawLiteral" + }, + { + "type": "Swift.Int", + "value": "5", + "valueKind": "RawLiteral" + } + ], + "valueKind": "Tuple" + } + ], + "file": "Unsupported.swift", + "line": 32, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.Int", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Count", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "default", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "controlStyle", + "type": "AppIntents.IntentParameter.IntControlStyle", + "valueKind": "Runtime" + }, + { + "label": "inclusiveRange", + "type": "Swift.Optional<(lowerBound: Swift.Int, upperBound: Swift.Int)>", + "value": [ + { + "type": "Swift.Int", + "value": "1", + "valueKind": "RawLiteral" + }, + { + "type": "Swift.Int", + "value": "5", + "valueKind": "RawLiteral" + } + ], + "valueKind": "Tuple" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$count", + "line": 32, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + } + ], + "typeName": "Unsupported.RangeProbe" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.DynamicOptionsProvider" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.BitwiseCopyable" + } + ], + "associatedTypeAliases": [ + { + "substitutedMangledTypeName": "SaySSG", + "substitutedTypeName": "Swift.Array", + "typeAliasName": "Result" + }, + { + "substitutedMangledTypeName": "SS", + "substitutedTypeName": "Swift.String", + "typeAliasName": "DefaultValue" + } + ], + "conformances": [ + "AppIntents.DynamicOptionsProvider", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.BitwiseCopyable" + ], + "file": "Unsupported.swift", + "kind": "struct", + "line": 36, + "mangledTypeName": "11Unsupported7ChoicesV", + "properties": [], + "typeName": "Unsupported.Choices" + }, + { + "allConformances": [ + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.AppIntent" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents.PersistentlyIdentifiable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "AppIntents._SupportsAppDependencies" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.Sendable" + }, + { + "conformanceDefiningModule": "Unsupported", + "protocolName": "Swift.SendableMetatype" + } + ], + "associatedTypeAliases": [ + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.IntentResult" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "11Unsupported20OptionsProviderProbeV7performQryYaKFQOy_Qo_", + "substitutedTypeName": "some AppIntents.IntentResult", + "typeAliasName": "PerformResult" + }, + { + "opaqueTypeProtocolRequirements": [ + "AppIntents.ParameterSummary" + ], + "opaqueTypeSameTypeRequirements": [], + "substitutedMangledTypeName": "10AppIntents0A6IntentPAAE16parameterSummaryQrvpZQOy11Unsupported20OptionsProviderProbeV_Qo_", + "substitutedTypeName": "some AppIntents.ParameterSummary", + "typeAliasName": "SummaryContent" + } + ], + "conformances": [ + "AppIntents.AppIntent", + "AppIntents.PersistentlyIdentifiable", + "AppIntents._SupportsAppDependencies", + "Swift.Sendable", + "Swift.SendableMetatype" + ], + "file": "Unsupported.swift", + "kind": "struct", + "line": 40, + "mangledTypeName": "11Unsupported20OptionsProviderProbeV", + "properties": [ + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "false", + "label": "_choice", + "line": 42, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Choice", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + }, + { + "label": "optionsProvider", + "type": "Unsupported.Choices", + "value": { + "arguments": [], + "type": "Unsupported.Choices" + }, + "valueKind": "InitCall" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "false", + "isStatic": "true", + "label": "title", + "line": 41, + "mangledTypeName": "n/a - deprecated", + "type": "Foundation.LocalizedStringResource", + "value": "Choices", + "valueKind": "RawLiteral" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "choice", + "line": 42, + "mangledTypeName": "n/a - deprecated", + "propertyWrappers": [ + { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Choice", + "valueKind": "RawLiteral" + }, + { + "label": "optionsProvider", + "type": "Unsupported.Choices", + "value": { + "arguments": [], + "type": "Unsupported.Choices" + }, + "valueKind": "InitCall" + } + ], + "file": "Unsupported.swift", + "line": 42, + "type": "AppIntents.IntentParameter" + } + ], + "type": "Swift.String", + "value": { + "arguments": [ + { + "label": "title", + "type": "Foundation.LocalizedStringResource", + "value": "Choice", + "valueKind": "RawLiteral" + }, + { + "label": "description", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputOptions", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "requestValueDialog", + "type": "Swift.Optional", + "valueKind": "NilLiteral" + }, + { + "label": "inputConnectionBehavior", + "type": "AppIntents.InputConnectionBehavior", + "valueKind": "Runtime" + }, + { + "label": "optionsProvider", + "type": "Unsupported.Choices", + "value": { + "arguments": [], + "type": "Unsupported.Choices" + }, + "valueKind": "InitCall" + } + ], + "type": "AppIntents.IntentParameter" + }, + "valueKind": "InitCall" + }, + { + "file": "Unsupported.swift", + "isComputed": "true", + "isStatic": "false", + "label": "$choice", + "line": 42, + "mangledTypeName": "n/a - deprecated", + "type": "AppIntents.IntentParameter", + "valueKind": "Runtime" + } + ], + "typeName": "Unsupported.OptionsProviderProbe" + } +] diff --git a/sweetpad-cli/fixtures/appintents/regen.py b/sweetpad-cli/fixtures/appintents/regen.py index e1e0295b..db23c1fc 100644 --- a/sweetpad-cli/fixtures/appintents/regen.py +++ b/sweetpad-cli/fixtures/appintents/regen.py @@ -4,9 +4,10 @@ DEVELOPER_DIR=/Applications/Xcode.app/Contents/Developer python3 -I sweetpad-cli/fixtures/appintents/regen.py -Only source paths and JSON formatting are normalized. Rust tests normalize the -generator and the order of the native resolver sets. The SSU test compares its -semantic contents because native training adds a timestamp and reorders phrases. +The captures normalize source paths and JSON formatting. Rust tests also +normalize the generator identity, resolver sets, and metadata key/value order. +The SSU test compares phrases because native training adds a timestamp and +reorders phrases. """ import ctypes @@ -18,6 +19,16 @@ import tempfile HERE = Path(__file__).resolve().parent +PROBES = { + # Swift source name, module name and checked-in registration. + "DataApp": ("DataApp", "extract.actionsdata"), + "Types": ("MetadataProbe", "Types.actionsdata"), + "Files": ("FileProbe", "Files.actionsdata"), + "InputOptionsProbe": ("InputOptionsProbe", "InputOptionsProbe.actions.json"), + "OutputProbe": ("OutputProbe", "OutputProbe.actions.json"), + "ResultProtocols": ("ResultProtocols", "ResultProtocols.actionsdata"), + "Unsupported": ("Unsupported", None), +} def capture(*args): return subprocess.check_output(args, text=True).strip() @@ -55,16 +66,24 @@ def decompress(path): def main(): parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument("--only", choices=["DataApp", "Types", "Files"]) - selected = parser.parse_args().only + parser.add_argument("--only", choices=PROBES) + parser.add_argument("--export-registration", type=Path, + help="export fresh complete registrations and compiler inputs for Linux replay, without updating fixtures") + args = parser.parse_args() developer = Path(os.environ.get("DEVELOPER_DIR") or capture("xcode-select", "-p")) sweetpad = HERE.parents[2] / "target/debug/sweetpad" + if args.export_registration: + args.export_registration.mkdir(parents=True, exist_ok=True) + save_json(args.export_registration / "sdk.json", { + "version": capture("xcrun", "--sdk", "iphoneos", "--show-sdk-version"), + "xcode": capture("xcodebuild", "-version"), + }) outputs = {} with tempfile.TemporaryDirectory(prefix="sweetpad-appintents-oracle-") as tmp: work = Path(tmp) (work / "Host.swift").write_text('import SwiftUI\n@main struct ProbeApp: App { var body: some Scene { WindowGroup { Text("Metadata") } } }\n') spec = {"name": "AppIntentsOracle", "options": {"deploymentTarget": {"iOS": "18.0"}}, "targets": {}} - for source, module in [("DataApp", "DataApp"), ("Types", "MetadataProbe"), ("Files", "FileProbe")]: + for source, (module, _) in PROBES.items(): spec["targets"][module] = {"type": "application", "platform": "iOS", "sources": [{"path": str(HERE / f"{source}.swift")}, {"path": "Host.swift"}], "settings": {"base": {"GENERATE_INFOPLIST_FILE": "YES", "SWIFT_VERSION": "6.0", "SWIFT_EMIT_LOC_STRINGS": "YES", @@ -72,26 +91,46 @@ def main(): save_json(work / "project.json", spec) subprocess.run(["xcodegen", "generate", "--spec", str(work / "project.json"), "--project", str(work)], check=True) derived = work / "DerivedData" - for source, module, expected in [("DataApp", "DataApp", "extract.actionsdata"), - ("Types", "MetadataProbe", "Types.actionsdata"), - ("Files", "FileProbe", "Files.actionsdata")]: - if selected and source != selected: + for source, (module, expected) in PROBES.items(): + if args.only and source != args.only: continue command = [str(sweetpad), "build", "--developer-dir", str(developer), "--project", str(work / "AppIntentsOracle.xcodeproj"), "--scheme", module, "--destination", "generic/platform=iOS Simulator", "--json", "--non-interactive", "--", "-derivedDataPath", str(derived), "ARCHS=arm64", "ONLY_ACTIVE_ARCH=YES", "CODE_SIGNING_ALLOWED=NO"] - result = subprocess.run(command, capture_output=True, text=True, check=True) + result = subprocess.run(command, capture_output=True, text=True) + if result.returncode: + raise RuntimeError(result.stdout + result.stderr) report = json.loads(result.stdout) if not report.get("data", {}).get("built"): raise RuntimeError(result.stdout + result.stderr) objects = derived / f"Build/Intermediates.noindex/AppIntentsOracle.build/Debug-iphonesimulator/{module}.build" constants = objects / f"Objects-normal/arm64/{source}.swiftconstvalues" metadata = Path(report["data"]["productPath"]) / "Metadata.appintents" + if args.export_registration: + dest = args.export_registration / source + dest.mkdir(parents=True, exist_ok=True) + for path in sorted(constants.parent.glob("*.swiftconstvalues")): + values = json.loads(path.read_text()) + normalize_paths(values) + save_json(dest / path.name, values) + for name in ("extract.actionsdata", "version.json"): + save_json(dest / name, json.loads((metadata / name).read_text())) + continue values = json.loads(constants.read_text()) normalize_paths(values) outputs[f"{source}.swiftconstvalues"] = json.dumps(values, indent=2, sort_keys=True).encode() + b"\n" - outputs[expected] = (metadata / "extract.actionsdata").read_bytes() + if expected is None: + continue + if expected.endswith(".actions.json"): + # The probe's actions only: the metadata under test. + actions = json.loads((metadata / "extract.actionsdata").read_text())["actions"] + outputs[expected] = json.dumps(actions, indent=2, sort_keys=True).encode() + b"\n" + elif source == "ResultProtocols": + registration = json.loads((metadata / "extract.actionsdata").read_text()) + outputs[expected] = json.dumps(registration, indent=2, sort_keys=True).encode() + b"\n" + else: + outputs[expected] = (metadata / "extract.actionsdata").read_bytes() if source == "DataApp": strings = json.loads((objects / "Objects-normal/arm64/ExtractedAppShortcutsMetadata.stringsdata").read_text()) normalize_paths(strings) diff --git a/sweetpad-cli/fixtures/appintents/sdk-26.5-registration.json b/sweetpad-cli/fixtures/appintents/sdk-26.5-registration.json new file mode 100644 index 00000000..25ff036c --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/sdk-26.5-registration.json @@ -0,0 +1,9 @@ +{ + "DataApp": "7f318f64a21c5d08627b77769f5e9d37175f57134c74bda874c3ad36ec8b31e3", + "Files": "f8d5a59f90f9c0ce959c208496e7f8281a1680506e4648ac03e88b038271a1fd", + "InputOptionsProbe": "39a8f61d84c2c4bec791edcfca08c1c15f18a59ccf46451df78856ec6af2bca2", + "OutputProbe": "0105fce6e104ed8d3cd4d3589da6e78ef8aa058c411af58799d220904129275f", + "ResultProtocols": "9ac97a3d41e44fa5aa42f43254b379a32dab2a4c35c35837446d44985728d1f6", + "Types": "47242b0cb83ce0979585bca443ee9f0217227fe26fdd938808965e5ba0d49217", + "Unsupported": "124982ec537a9f3a653826f9caa6755cce5482224b6b49a11fcc7732602e5bd5" +} diff --git a/sweetpad-cli/fixtures/appintents/sdk-26.5-signatures.txt b/sweetpad-cli/fixtures/appintents/sdk-26.5-signatures.txt new file mode 100644 index 00000000..d129d8b1 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/sdk-26.5-signatures.txt @@ -0,0 +1,186 @@ +AppIntent.Case 1 b4f76f250e2cf635f7cc +AppIntent.DefaultCase 1 1f6a1d01b9013c97bd20 +AppIntent.Summary 1 978ad4d68943ed67440a +AppIntent.Switch 1 6e1cf32d83d70cf34338 +AppIntent.When 1 9de98ab70f7e758526c6 +InputConnectionBehavior.connectToPreviousIntentResult 1 9d1218efe5d49b7f9764 +InputConnectionBehavior.default 1 179d9f495c48e4265c15 +InputConnectionBehavior.never 1 70c011f5073d927382f5 +IntentParameter.init(description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 863851b712681629a852 +IntentParameter.init(description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 7d59e317f203e661c32f +IntentParameter.init(description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 2 68edafca1e433737fbd9 +IntentParameter.init(description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 2 92e0641a3d4847c8db21 +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 1 8f8f9de218a81b2aefab +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 8a90ed94794afbb2f55f +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 f9a3a2b883005d657c7c +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 1 65cfa4a35c2c6a5839f9 +IntentParameter.init(description:default:displayName:requestValueDialog:inputConnectionBehavior:) 1 958575caa4f75ab18d82 +IntentParameter.init(description:default:displayName:requestValueDialog:inputConnectionBehavior:resolvers:) 1 bc473a6fb29294243c8e +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:) 1 5f0aecb4d70334d4a6e6 +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 4ef8cf7a6c61d7f8513d +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 3ebab780e4e386012e3f +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:resolvers:) 1 6969e69eb93458f26792 +IntentParameter.init(description:default:inputOptions:requestValueDialog:inputConnectionBehavior:) 1 dd8a2ad83dc4d7239340 +IntentParameter.init(description:default:inputOptions:requestValueDialog:inputConnectionBehavior:resolvers:) 1 9b2139384fce55509ba3 +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:) 2 cfee9b2d080069af01c9 +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 3a26fb994213d0bd875d +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 1a030c1a40e9b26f5bef +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:resolvers:) 2 fa8ccbbdea4a8604f596 +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:) 1 ab4822c5f2b8686e523f +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 71f78d7759f227e42154 +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 3a0d825388e3f18fb860 +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:resolvers:) 1 c4d72dca4334b97b2c38 +IntentParameter.init(description:default:mode:size:inputConnectionBehavior:) 2 9606b760740212eb86b0 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:) 6 b017c1e5fabf1c755939 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:) 3 99fe4b4a1224e5c7b751 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 3 2bf57b402c44d030641f +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:resolvers:) 6 5c3fc6203eddfdac4d13 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 1 193440b54c029cd65dc5 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 b727d73dfc6ee2250b3b +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 55a1383ec37b28ceebba +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 1 a7536eb7796c666c2b2e +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 1 f37b392070c8e8d88df9 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:) 2 533512ef3a382606a79a +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:optionsProvider:) 2 d3d84e36e23bde919460 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:resolvers:) 2 d0699cea7da42846a618 +IntentParameter.init(description:default:size:inputConnectionBehavior:) 2 feb8b6774228c5732c8c +IntentParameter.init(description:default:size:inputConnectionBehavior:query:) 2 0f3ffad24d377e82cd69 +IntentParameter.init(description:default:size:inputConnectionBehavior:resolvers:) 2 3949e343c4aa9dda5e70 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:) 1 5f1538fcf6056a9da2de +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0da8da0cdb2595cdb0fc +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 6afb27fcb0ace5f9921f +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:resolvers:) 1 d5366670df162c736b44 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 1 fd262caf7492b5a0a176 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 2b11b216b54bf888f406 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 7216dd15adb70cbab958 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 1 61cda66e728c1122c62d +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 1 b0f1ebdb0575e2deb47a +IntentParameter.init(description:default:supportedContentTypes:size:inputConnectionBehavior:) 2 84b0a5fb10e6f1a8bd95 +IntentParameter.init(description:default:supportedContentTypes:size:inputConnectionBehavior:query:) 2 0ca9198e0343a89c7673 +IntentParameter.init(description:default:supportedContentTypes:size:inputConnectionBehavior:resolvers:) 2 0b278d35d3244f8d0286 +IntentParameter.init(description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 2603f3a5f06203ef82c1 +IntentParameter.init(description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 4c5d935a6e3321bf7118 +IntentParameter.init(description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 f2e3dba87621847efac5 +IntentParameter.init(description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 b5cf573e29e0c3c70b84 +IntentParameter.init(description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 669834084d7469ea096c +IntentParameter.init(description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 3cc25c8337acd0930219 +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:) 1 d8d67effcfca90f9f210 +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:optionsProvider:) 24 0e3f9dcbc14fc08d6144 +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 aa92566c15c06a6ea7fa +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:resolvers:optionsProvider:) 22 3f1538d8c7fca41392c0 +IntentParameter.init(title:description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 3cb1617dac91badf5b3d +IntentParameter.init(title:description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 ac1830dfa2cf700ff97f +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 1 03c92b82d219f3c225c3 +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 53b7a2ed6833003fd1be +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 83491c58b6112f63ac87 +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 1 ed70891fb846d63081b0 +IntentParameter.init(title:description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 2 ab2ae59bc60b7fcc884d +IntentParameter.init(title:description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 2 47e525d473b3698179df +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 1 5c76e176db59a75d1a69 +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 935be12126d17c3a8a1b +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 17a752f903c602e80535 +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 1 cc327ef1686bbecc7660 +IntentParameter.init(title:description:default:displayName:requestValueDialog:inputConnectionBehavior:) 1 dd5325f281e5a9603095 +IntentParameter.init(title:description:default:displayName:requestValueDialog:inputConnectionBehavior:resolvers:) 1 18a3e2dc58ef74ba321c +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:) 1 af528ab32bcd109814ec +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0b68381b49390e50f547 +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 2b9ef5d5a1913214dea4 +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:resolvers:) 1 692a18d7f99d830550db +IntentParameter.init(title:description:default:inputOptions:requestValueDialog:inputConnectionBehavior:) 1 f9f8502e012efc129e1d +IntentParameter.init(title:description:default:inputOptions:requestValueDialog:inputConnectionBehavior:resolvers:) 1 f00c19aad8e5f8241761 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:) 2 82a58905986c143893d3 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 249b37dab6ca997d63a7 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 326092382f2132837f44 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:resolvers:) 2 6856d19340cbf67968c9 +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:) 1 729021a8dc09d8531dba +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0118baaa9f54a28fa0ab +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 1c058917389a77628d4e +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:resolvers:) 1 36e35de99c438160176c +IntentParameter.init(title:description:default:mode:size:inputConnectionBehavior:) 2 80c51af4fc5c996c77ba +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:) 6 4d80174c77ae97672ccb +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:) 3 8ae03a83911cd83ae842 +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 3 2c6da57d42232541b5f4 +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:resolvers:) 6 eccf3402a7ccf6743966 +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 2 cc838ca4d7166bf8f903 +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 a3711784c55be30a000e +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 054130980f1ad9c4395a +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 2 100fcbeb55e8cf0a5d4d +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 2 bc1f037a2a0bc9d93c42 +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:) 3 b1d07d2300174667d28e +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:optionsProvider:) 3 43313df38df08b9bffda +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:resolvers:) 3 665a9fd92238e4d9646a +IntentParameter.init(title:description:default:size:inputConnectionBehavior:) 4 f56df51cd5b1d871ea76 +IntentParameter.init(title:description:default:size:inputConnectionBehavior:query:) 4 6977ed8bbf53e7771917 +IntentParameter.init(title:description:default:size:inputConnectionBehavior:resolvers:) 4 480d85e66d8e8d2d2d1e +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:) 1 bedad8229286c3208977 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 316be046a6841a2905bd +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 47f7b033d3ede84aea7a +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:resolvers:) 1 2624e75638edf08aad73 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 1 12cd57d858463c106896 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 6cb749707a0a98081bf9 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 21f9512620a086410955 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 1 daffc919925ef20873b4 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 1 f0dceea1af63c9f87d29 +IntentParameter.init(title:description:default:supportedContentTypes:size:inputConnectionBehavior:) 2 78961f9e6c5ac74cf335 +IntentParameter.init(title:description:default:supportedContentTypes:size:inputConnectionBehavior:query:) 2 3cc5541e0dd27f9389e4 +IntentParameter.init(title:description:default:supportedContentTypes:size:inputConnectionBehavior:resolvers:) 2 04914705161d3f31adfd +IntentParameter.init(title:description:default:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:) 1 65bd863cf25e1224c2d0 +IntentParameter.init(title:description:default:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:resolvers:) 1 74ebee58ad7aed762aa9 +IntentParameter.init(title:description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 47f2e8958734dc98277c +IntentParameter.init(title:description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 eb40f170ac838f0f957f +IntentParameter.init(title:description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 135990affce753cd6d03 +IntentParameter.init(title:description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 27097da7194aec17a3a4 +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:) 1 fe8c5e73d0422708b020 +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 cea410c500ef446e830c +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 120742739551cdb6e080 +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:resolvers:) 1 c974c6b79238373cd2c5 +IntentParameter.init(title:description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0e3e394aac8944aea562 +IntentParameter.init(title:description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 2f0df3650641a22403b1 +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:) 2 fd4b38381cf91776743d +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 4342e800f00bd25e6469 +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 34a886e703faa36adb7c +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:resolvers:) 2 1db3b441cb09c09d272b +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:) 1 3e4b5c86d9d39b20338d +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 5a558347af09669790c7 +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 f5221e98dc79673261e6 +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:resolvers:) 1 a2b8763e25d51d54c1d6 +IntentParameter.init(title:description:mode:size:inputConnectionBehavior:) 2 0e0f67f6b8290c016775 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:) 2 86516c16e4db4108eb40 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:optionsProvider:) 25 c365b477759cf6f596f4 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 3 ee20421be0beef821212 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:resolvers:) 1 dc092b715750fadd9c5b +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:resolvers:optionsProvider:) 22 0a0f702892dc7c8e6998 +IntentParameter.init(title:description:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 25b8c975bb771df6ce32 +IntentParameter.init(title:description:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 b7f931407e83d4ffe14d +IntentParameter.init(title:description:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 1aea5d96871ec344615e +IntentParameter.init(title:description:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 79c2d958ad9748789aad +IntentParameterSummary 1 26611ee68ce4807dee2f +IntentParameterSummary.init() 1 52fcc33203b1ec4b8a93 +IntentParameterSummary.init(_:) 1 0e52ee76abad3bf62b2e +IntentParameterSummary.init(_:table:) 1 6c0952b2d1fb7adb5d4f +IntentParameterSummary.init(_:table:_:) 1 dfafc501e85e71946d86 +IntentResult 1 754b16b376d46158316a +OpensIntent 1 21a18e81872dfc09f689 +ParameterSummaryCaseCondition.init(_:_:) 2 cc65af4ff5789da5f1bb +ParameterSummaryDefaultCaseCondition.init(_:) 1 f8948d6ce1d4a0a31669 +ParameterSummarySwitchCondition 1 e13a88633b86888a73ee +ParameterSummarySwitchCondition.init(_:_:) 2 a35c9b18075908c8dc92 +ParameterSummaryWhenCondition 1 7e8997af13835538cb75 +ParameterSummaryWhenCondition.init(_:_:_:_:otherwise:) 5 8006158238753aab4680 +ParameterSummaryWhenCondition.init(_:_:_:otherwise:) 1 cbfcc38db173f95a4a68 +ParameterSummaryWhenCondition.init(_:identifier:_:_:otherwise:) 8 36e6bc0f4864d65976fc +ParameterSummaryWhenCondition.init(widgetFamily:_:_:otherwise:) 2 5d2fc6d2f31f9a9799af +ProvidesDialog 1 c112caab121e9982aff1 +ReturnsValue 1 fb33a467bf848b431710 +ShowsSnippetIntent 1 68d5cab1f7e455e98191 +ShowsSnippetView 1 e0fd292e808556b64592 +String.IntentInputOptions.CapitalizationType.allCharacters 1 29c73a46d23e4ce7c29b +String.IntentInputOptions.CapitalizationType.none 1 d0bea49bcc70c9f1e1fa +String.IntentInputOptions.CapitalizationType.sentences 1 f037770ae521084e2f44 +String.IntentInputOptions.CapitalizationType.words 1 727de8915b1625117eb4 +String.IntentInputOptions.KeyboardType.URL 1 664a8a3929ab7199cb5d +String.IntentInputOptions.KeyboardType.asciiCapable 1 f7e03210e48fc45c4066 +String.IntentInputOptions.KeyboardType.default 1 3cc116426e36998403cc +String.IntentInputOptions.KeyboardType.numberPad 1 bce8aceec1a52035f92a +String.IntentInputOptions.KeyboardType.numbersAndPunctuation 1 37b54f17cf0f684e220d +String.IntentInputOptions.init(keyboardType:capitalizationType:multiline:autocorrect:smartQuotes:smartDashes:) 1 78f049d3621739c3c532 diff --git a/sweetpad-cli/fixtures/appintents/sdk-27.2-registration.json b/sweetpad-cli/fixtures/appintents/sdk-27.2-registration.json new file mode 100644 index 00000000..a5776d72 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/sdk-27.2-registration.json @@ -0,0 +1,9 @@ +{ + "DataApp": "7f318f64a21c5d08627b77769f5e9d37175f57134c74bda874c3ad36ec8b31e3", + "Files": "f8d5a59f90f9c0ce959c208496e7f8281a1680506e4648ac03e88b038271a1fd", + "InputOptionsProbe": "dfc7dcdb9af3d653d825ab3c5e0f3cceae4240557e3f3ca2bdeab36fc865daaa", + "OutputProbe": "0105fce6e104ed8d3cd4d3589da6e78ef8aa058c411af58799d220904129275f", + "ResultProtocols": "9ac97a3d41e44fa5aa42f43254b379a32dab2a4c35c35837446d44985728d1f6", + "Types": "e92867a7c5431b25fc6ff7fc3793ac035a2b799b781aafe47a7f04da97923932", + "Unsupported": "124982ec537a9f3a653826f9caa6755cce5482224b6b49a11fcc7732602e5bd5" +} diff --git a/sweetpad-cli/fixtures/appintents/sdk-27.2-signatures.txt b/sweetpad-cli/fixtures/appintents/sdk-27.2-signatures.txt new file mode 100644 index 00000000..614d87b9 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/sdk-27.2-signatures.txt @@ -0,0 +1,195 @@ +AppIntent.Case 1 b4f76f250e2cf635f7cc +AppIntent.DefaultCase 1 1f6a1d01b9013c97bd20 +AppIntent.Summary 1 978ad4d68943ed67440a +AppIntent.Switch 1 6e1cf32d83d70cf34338 +AppIntent.When 1 9de98ab70f7e758526c6 +InputConnectionBehavior.connectToPreviousIntentResult 1 9d1218efe5d49b7f9764 +InputConnectionBehavior.default 1 179d9f495c48e4265c15 +InputConnectionBehavior.never 1 70c011f5073d927382f5 +IntentParameter.init(description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 863851b712681629a852 +IntentParameter.init(description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 7d59e317f203e661c32f +IntentParameter.init(description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 2 68edafca1e433737fbd9 +IntentParameter.init(description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 2 92e0641a3d4847c8db21 +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 1 8f8f9de218a81b2aefab +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 8a90ed94794afbb2f55f +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 f9a3a2b883005d657c7c +IntentParameter.init(description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 1 65cfa4a35c2c6a5839f9 +IntentParameter.init(description:default:defaultUnit:requestValueDialog:inputConnectionBehavior:) 1 2932919e48b8f033faa2 +IntentParameter.init(description:default:defaultUnit:requestValueDialog:inputConnectionBehavior:resolvers:) 1 398f59991951420a8425 +IntentParameter.init(description:default:displayName:requestValueDialog:inputConnectionBehavior:) 1 958575caa4f75ab18d82 +IntentParameter.init(description:default:displayName:requestValueDialog:inputConnectionBehavior:resolvers:) 1 bc473a6fb29294243c8e +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:) 1 5f0aecb4d70334d4a6e6 +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 4ef8cf7a6c61d7f8513d +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 3ebab780e4e386012e3f +IntentParameter.init(description:default:displayStyle:requestValueDialog:inputConnectionBehavior:resolvers:) 1 6969e69eb93458f26792 +IntentParameter.init(description:default:inputOptions:requestValueDialog:inputConnectionBehavior:) 1 dd8a2ad83dc4d7239340 +IntentParameter.init(description:default:inputOptions:requestValueDialog:inputConnectionBehavior:resolvers:) 1 9b2139384fce55509ba3 +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:) 2 cfee9b2d080069af01c9 +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 3a26fb994213d0bd875d +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 1a030c1a40e9b26f5bef +IntentParameter.init(description:default:kind:requestValueDialog:inputConnectionBehavior:resolvers:) 2 fa8ccbbdea4a8604f596 +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:) 1 ab4822c5f2b8686e523f +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 71f78d7759f227e42154 +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 3a0d825388e3f18fb860 +IntentParameter.init(description:default:mode:requestValueDialog:inputConnectionBehavior:resolvers:) 1 c4d72dca4334b97b2c38 +IntentParameter.init(description:default:mode:size:inputConnectionBehavior:) 2 9606b760740212eb86b0 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:) 7 8d601bd52db3a08ca000 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:) 4 e7f29d557bf852f28087 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 4 90ccbe23da5200b33818 +IntentParameter.init(description:default:requestValueDialog:inputConnectionBehavior:resolvers:) 7 3d365e8771ab72290bff +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 1 193440b54c029cd65dc5 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 b727d73dfc6ee2250b3b +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 55a1383ec37b28ceebba +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 1 a7536eb7796c666c2b2e +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 1 f37b392070c8e8d88df9 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:) 2 533512ef3a382606a79a +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:optionsProvider:) 2 d3d84e36e23bde919460 +IntentParameter.init(description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:resolvers:) 2 d0699cea7da42846a618 +IntentParameter.init(description:default:size:inputConnectionBehavior:) 6 7291d4e296942acea2f7 +IntentParameter.init(description:default:size:inputConnectionBehavior:query:) 2 0f3ffad24d377e82cd69 +IntentParameter.init(description:default:size:inputConnectionBehavior:resolvers:) 2 3949e343c4aa9dda5e70 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:) 1 f6ea450a656a7e97975b +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 22b8b2a91ce674df157d +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 fcc9a0949faceaf4938c +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:resolvers:) 1 dc1ab8943d2b7c1fd455 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 1 9a0b9643cefea2ad6e18 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 601bc168a4cf05e7253c +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 4953237ea74825ebf1cc +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 1 8ae52faf70bc36b474b5 +IntentParameter.init(description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 1 bf994177358945c46a19 +IntentParameter.init(description:default:supportedContentTypes:size:inputConnectionBehavior:) 2 42a8fc0b8bbaa7ee5b30 +IntentParameter.init(description:default:supportedContentTypes:size:inputConnectionBehavior:query:) 2 4d2e0296a65b9c8581dd +IntentParameter.init(description:default:supportedContentTypes:size:inputConnectionBehavior:resolvers:) 2 647218823826d541caa7 +IntentParameter.init(description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 9166cad4226a1e8a71de +IntentParameter.init(description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 810022846394fef49f46 +IntentParameter.init(description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 2603f3a5f06203ef82c1 +IntentParameter.init(description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 4c5d935a6e3321bf7118 +IntentParameter.init(description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 f2e3dba87621847efac5 +IntentParameter.init(description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 b5cf573e29e0c3c70b84 +IntentParameter.init(description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 669834084d7469ea096c +IntentParameter.init(description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 3cc25c8337acd0930219 +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:) 3 30d3df19bf3458548602 +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:optionsProvider:) 26 e4463b44e69680e93b3d +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 4 d94f12ce4a651a282c4b +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:resolvers:) 2 704b4c6198318323e797 +IntentParameter.init(description:requestValueDialog:inputConnectionBehavior:resolvers:optionsProvider:) 22 3f1538d8c7fca41392c0 +IntentParameter.init(title:description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 3cb1617dac91badf5b3d +IntentParameter.init(title:description:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 ac1830dfa2cf700ff97f +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 1 03c92b82d219f3c225c3 +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 53b7a2ed6833003fd1be +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 83491c58b6112f63ac87 +IntentParameter.init(title:description:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 1 ed70891fb846d63081b0 +IntentParameter.init(title:description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 2 ab2ae59bc60b7fcc884d +IntentParameter.init(title:description:default:controlStyle:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 2 47e525d473b3698179df +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:) 1 5c76e176db59a75d1a69 +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 935be12126d17c3a8a1b +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 17a752f903c602e80535 +IntentParameter.init(title:description:default:currencyCodes:inclusiveRange:requestValueDialog:inputConnectionBehavior:resolvers:) 1 cc327ef1686bbecc7660 +IntentParameter.init(title:description:default:defaultUnit:requestValueDialog:inputConnectionBehavior:) 1 14354b526fc265c26d65 +IntentParameter.init(title:description:default:defaultUnit:requestValueDialog:inputConnectionBehavior:resolvers:) 1 1090dd7691942b48ea96 +IntentParameter.init(title:description:default:displayName:requestValueDialog:inputConnectionBehavior:) 1 dd5325f281e5a9603095 +IntentParameter.init(title:description:default:displayName:requestValueDialog:inputConnectionBehavior:resolvers:) 1 18a3e2dc58ef74ba321c +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:) 1 af528ab32bcd109814ec +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0b68381b49390e50f547 +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 2b9ef5d5a1913214dea4 +IntentParameter.init(title:description:default:displayStyle:requestValueDialog:inputConnectionBehavior:resolvers:) 1 692a18d7f99d830550db +IntentParameter.init(title:description:default:inputOptions:requestValueDialog:inputConnectionBehavior:) 1 f9f8502e012efc129e1d +IntentParameter.init(title:description:default:inputOptions:requestValueDialog:inputConnectionBehavior:resolvers:) 1 f00c19aad8e5f8241761 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:) 2 82a58905986c143893d3 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 249b37dab6ca997d63a7 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 326092382f2132837f44 +IntentParameter.init(title:description:default:kind:requestValueDialog:inputConnectionBehavior:resolvers:) 2 6856d19340cbf67968c9 +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:) 1 729021a8dc09d8531dba +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0118baaa9f54a28fa0ab +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 1c058917389a77628d4e +IntentParameter.init(title:description:default:mode:requestValueDialog:inputConnectionBehavior:resolvers:) 1 36e35de99c438160176c +IntentParameter.init(title:description:default:mode:size:inputConnectionBehavior:) 2 80c51af4fc5c996c77ba +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:) 7 e737e0554889244d6c4d +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:) 4 165b1644f1b2a4ab9329 +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 4 cbfa4be0c36870cd0a38 +IntentParameter.init(title:description:default:requestValueDialog:inputConnectionBehavior:resolvers:) 7 7d79ef9f4f617f942d70 +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 3 da25a664c1fd81901fed +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 a3711784c55be30a000e +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 054130980f1ad9c4395a +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 2 100fcbeb55e8cf0a5d4d +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 2 bc1f037a2a0bc9d93c42 +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:) 3 b1d07d2300174667d28e +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:optionsProvider:) 3 43313df38df08b9bffda +IntentParameter.init(title:description:default:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:supportedValues:resolvers:) 3 665a9fd92238e4d9646a +IntentParameter.init(title:description:default:size:inputConnectionBehavior:) 8 705c748cce61f2fe972d +IntentParameter.init(title:description:default:size:inputConnectionBehavior:query:) 4 6977ed8bbf53e7771917 +IntentParameter.init(title:description:default:size:inputConnectionBehavior:resolvers:) 4 480d85e66d8e8d2d2d1e +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:) 1 ef51d0d1669802be8fd3 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 18374a13db7551929bcd +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 93a84e673ef4160c85a6 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:inputConnectionBehavior:resolvers:) 1 ca96eea7fae5d9822df7 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:) 1 22a01dc3fea82832d149 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 3ab2dd6d21539e692a82 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 be0d6708da29cc4fb217 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:query:) 1 9380661696ef10c10ce9 +IntentParameter.init(title:description:default:supportedContentTypes:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:resolvers:) 1 df9a59c25cbd87cd72aa +IntentParameter.init(title:description:default:supportedContentTypes:size:inputConnectionBehavior:) 2 bc401bf1baacb10f3486 +IntentParameter.init(title:description:default:supportedContentTypes:size:inputConnectionBehavior:query:) 2 38192772987e1504b632 +IntentParameter.init(title:description:default:supportedContentTypes:size:inputConnectionBehavior:resolvers:) 2 e00340741f68d7280a9d +IntentParameter.init(title:description:default:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:) 1 65bd863cf25e1224c2d0 +IntentParameter.init(title:description:default:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:resolvers:) 1 74ebee58ad7aed762aa9 +IntentParameter.init(title:description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 176e35aaed4447597dbf +IntentParameter.init(title:description:defaultUnit:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 15ded0a64e50e9501bd5 +IntentParameter.init(title:description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 47f2e8958734dc98277c +IntentParameter.init(title:description:defaultValue:defaultUnit:defaultUnitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 eb40f170ac838f0f957f +IntentParameter.init(title:description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:) 22 135990affce753cd6d03 +IntentParameter.init(title:description:defaultValue:unit:unitAdjustForLocale:supportsNegativeNumbers:requestValueDialog:inputConnectionBehavior:resolvers:) 22 27097da7194aec17a3a4 +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:) 1 fe8c5e73d0422708b020 +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 cea410c500ef446e830c +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 120742739551cdb6e080 +IntentParameter.init(title:description:displayStyle:requestValueDialog:inputConnectionBehavior:resolvers:) 1 c974c6b79238373cd2c5 +IntentParameter.init(title:description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 0e3e394aac8944aea562 +IntentParameter.init(title:description:inputOptions:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 2f0df3650641a22403b1 +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:) 2 fd4b38381cf91776743d +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:) 2 4342e800f00bd25e6469 +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 2 34a886e703faa36adb7c +IntentParameter.init(title:description:kind:requestValueDialog:inputConnectionBehavior:resolvers:) 2 1db3b441cb09c09d272b +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:) 1 3e4b5c86d9d39b20338d +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 5a558347af09669790c7 +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 f5221e98dc79673261e6 +IntentParameter.init(title:description:mode:requestValueDialog:inputConnectionBehavior:resolvers:) 1 a2b8763e25d51d54c1d6 +IntentParameter.init(title:description:mode:size:inputConnectionBehavior:) 2 0e0f67f6b8290c016775 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:) 4 92d31e8113a91cdc4471 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:optionsProvider:) 27 b4798bab17ae98c0009f +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 5 88d0fe8af291976ee0a7 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:resolvers:) 3 4da66c7dc80cc4afb294 +IntentParameter.init(title:description:requestValueDialog:inputConnectionBehavior:resolvers:optionsProvider:) 22 0a0f702892dc7c8e6998 +IntentParameter.init(title:description:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:) 1 25b8c975bb771df6ce32 +IntentParameter.init(title:description:requestValueDialog:requestDisambiguationDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 b7f931407e83d4ffe14d +IntentParameter.init(title:description:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:optionsProvider:) 1 1aea5d96871ec344615e +IntentParameter.init(title:description:supportedTypeIdentifiers:requestValueDialog:inputConnectionBehavior:optionsProvider:resolvers:) 1 79c2d958ad9748789aad +IntentParameterSummary 1 26611ee68ce4807dee2f +IntentParameterSummary.init() 1 52fcc33203b1ec4b8a93 +IntentParameterSummary.init(_:) 1 0e52ee76abad3bf62b2e +IntentParameterSummary.init(_:table:) 1 6c0952b2d1fb7adb5d4f +IntentParameterSummary.init(_:table:_:) 1 dfafc501e85e71946d86 +IntentResult 1 754b16b376d46158316a +OpensIntent 1 21a18e81872dfc09f689 +ParameterSummaryCaseCondition.init(_:_:) 2 cc65af4ff5789da5f1bb +ParameterSummaryDefaultCaseCondition.init(_:) 1 f8948d6ce1d4a0a31669 +ParameterSummarySwitchCondition 1 e13a88633b86888a73ee +ParameterSummarySwitchCondition.init(_:_:) 3 91f211c6b0b010d27d8b +ParameterSummaryWhenCondition 1 7e8997af13835538cb75 +ParameterSummaryWhenCondition.init(_:_:_:_:otherwise:) 8 7a9168c8fd296a907932 +ParameterSummaryWhenCondition.init(_:_:_:otherwise:) 1 cbfcc38db173f95a4a68 +ParameterSummaryWhenCondition.init(_:identifier:_:_:otherwise:) 8 36e6bc0f4864d65976fc +ParameterSummaryWhenCondition.init(widgetFamily:_:_:otherwise:) 2 5d2fc6d2f31f9a9799af +ProvidesDialog 1 c112caab121e9982aff1 +ReturnsValue 1 fb33a467bf848b431710 +ShowsSnippetIntent 1 68d5cab1f7e455e98191 +ShowsSnippetView 1 e0fd292e808556b64592 +String.IntentInputOptions.CapitalizationType.allCharacters 1 29c73a46d23e4ce7c29b +String.IntentInputOptions.CapitalizationType.none 1 d0bea49bcc70c9f1e1fa +String.IntentInputOptions.CapitalizationType.sentences 1 f037770ae521084e2f44 +String.IntentInputOptions.CapitalizationType.words 1 727de8915b1625117eb4 +String.IntentInputOptions.KeyboardType.URL 1 664a8a3929ab7199cb5d +String.IntentInputOptions.KeyboardType.asciiCapable 1 f7e03210e48fc45c4066 +String.IntentInputOptions.KeyboardType.default 1 3cc116426e36998403cc +String.IntentInputOptions.KeyboardType.numberPad 1 bce8aceec1a52035f92a +String.IntentInputOptions.KeyboardType.numbersAndPunctuation 1 37b54f17cf0f684e220d +String.IntentInputOptions.init(keyboardType:capitalizationType:multiline:autocorrect:smartQuotes:smartDashes:) 1 78f049d3621739c3c532 diff --git a/sweetpad-cli/fixtures/appintents/sdk-27.2.md b/sweetpad-cli/fixtures/appintents/sdk-27.2.md new file mode 100644 index 00000000..213f469f --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/sdk-27.2.md @@ -0,0 +1,102 @@ +# iOS App Intents SDK coverage + +Xcode 27.2 (27B52) and Xcode 26.6 (17F113) expose the same 63 checklist entries. The inventory covers public `IntentParameter` initializer labels across value types, string input settings and connection cases, protocols refining `IntentResult`, and the App Intent summary builders. Each match applies to the Swift types and constant expressions in the linked probe. + +| Xcode | iOS SDK | Public declarations including overloads | Native registration | +| --- | --- | ---: | --- | +| 26.6 (17F113) | 26.5 | [542 declarations](sdk-26.5-signatures.txt) | [Seven probe fingerprints](sdk-26.5-registration.json) | +| 27.2 (27B52) | 27.2 | [587 declarations](sdk-27.2-signatures.txt) | [Seven probe fingerprints](sdk-27.2-registration.json) | + +CI compares the installed SDK’s public symbol graph, including overlays, with the most recent reviewed snapshot at or below that SDK version. It checks additions, removals and changes to overloads, including declarations that reuse existing labels. The registration check also compares fresh Xcode output to Linux and to the native fingerprints in the table. [SDK check](sdk_coverage.py) · [Registration check](verify_registration.py) + +## Parameter initializer options + +| Declaration | Classification | Evidence | +| --- | --- | --- | +| `parameter.controlStyle` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.currencyCodes` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.default` | Match | [TypesIntent](Types.swift#L25) · [Types.actionsdata](Types.actionsdata) | +| `parameter.defaultUnit` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.defaultUnitAdjustForLocale` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.defaultValue` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.description` | Match | [FileInputIntent](Files.swift#L5) · [Files.actionsdata](Files.actionsdata) | +| `parameter.displayName` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.displayStyle` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.inclusiveRange` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) · [RangeProbe](Unsupported.swift#L30) | +| `parameter.inputConnectionBehavior` | Match | [ConnectionProbe](ResultProtocols.swift#L69) · [Xcode registration](ResultProtocols.actionsdata#L164) | +| `parameter.inputOptions` | Match | [allOff](InputOptionsProbe.swift#L9) · [Xcode parameter](InputOptionsProbe.actions.json#L29) | +| `parameter.kind` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.mode` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.optionsProvider` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) · [OptionsProviderProbe](Unsupported.swift#L40) | +| `parameter.query` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.requestDisambiguationDialog` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.requestValueDialog` | No effect | [PromptProbe](ResultProtocols.swift#L10) · [Xcode registration](ResultProtocols.actionsdata#L550) · [native control comparison](verify_registration.py#L61) | +| `parameter.resolvers` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.size` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.supportedContentTypes` | Match | [FileInputIntent](Files.swift#L5) · [Files.actionsdata](Files.actionsdata) | +| `parameter.supportedTypeIdentifiers` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.supportedValues` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.supportsNegativeNumbers` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.title` | Match | [TypesIntent](Types.swift#L25) · [Types.actionsdata](Types.actionsdata) | +| `parameter.unit` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | +| `parameter.unitAdjustForLocale` | Diagnostic | [per-option extractor diagnostic](verify_registration.py#L98) | + +## Connection behavior + +| Declaration | Classification | Evidence | +| --- | --- | --- | +| `connection.connectToPreviousIntentResult` | Match | [ConnectionProbe](ResultProtocols.swift#L69) · [Xcode registration](ResultProtocols.actionsdata#L164) | +| `connection.default` | Match | [ConnectionProbe](ResultProtocols.swift#L69) · [Xcode registration](ResultProtocols.actionsdata#L164) | +| `connection.never` | Match | [ConnectionProbe](ResultProtocols.swift#L69) · [Xcode registration](ResultProtocols.actionsdata#L164) | + +## String input options + +| Declaration | Classification | Evidence | +| --- | --- | --- | +| `inputOptions.CapitalizationType.allCharacters` | Match | [allOn](InputOptionsProbe.swift#L11) · [Xcode parameter](InputOptionsProbe.actions.json#L125) | +| `inputOptions.CapitalizationType.none` | Match | [allOff](InputOptionsProbe.swift#L9) · [Xcode parameter](InputOptionsProbe.actions.json#L29) | +| `inputOptions.CapitalizationType.sentences` | Match | [url](InputOptionsProbe.swift#L17) · [Xcode parameter](InputOptionsProbe.actions.json#L352) | +| `inputOptions.CapitalizationType.words` | Match | [punct](InputOptionsProbe.swift#L15) · [Xcode parameter](InputOptionsProbe.actions.json#L280) | +| `inputOptions.KeyboardType.URL` | Match | [url](InputOptionsProbe.swift#L17) · [Xcode parameter](InputOptionsProbe.actions.json#L352) | +| `inputOptions.KeyboardType.asciiCapable` | Match | [allOn](InputOptionsProbe.swift#L11) · [Xcode parameter](InputOptionsProbe.actions.json#L125) | +| `inputOptions.KeyboardType.default` | Match | [allOff](InputOptionsProbe.swift#L9) · [Xcode parameter](InputOptionsProbe.actions.json#L29) | +| `inputOptions.KeyboardType.numberPad` | Match | [numberPad](InputOptionsProbe.swift#L19) · [Xcode parameter](InputOptionsProbe.actions.json#L424) | +| `inputOptions.KeyboardType.numbersAndPunctuation` | Match | [punct](InputOptionsProbe.swift#L15) · [Xcode parameter](InputOptionsProbe.actions.json#L280) | +| `inputOptions.autocorrect` | Match | [autocorrect](InputOptionsProbe.swift#L25) · [Xcode parameter](InputOptionsProbe.actions.json#L622) | +| `inputOptions.capitalizationType` | Match | [allOn](InputOptionsProbe.swift#L11) · [Xcode parameter](InputOptionsProbe.actions.json#L125) | +| `inputOptions.keyboardType` | Match | [allOff](InputOptionsProbe.swift#L9) · [Xcode parameter](InputOptionsProbe.actions.json#L29) | +| `inputOptions.multiline` | Match | [allOn](InputOptionsProbe.swift#L11) · [Xcode parameter](InputOptionsProbe.actions.json#L125) | +| `inputOptions.smartDashes` | Match | [dashes](InputOptionsProbe.swift#L23) · [Xcode parameter](InputOptionsProbe.actions.json#L556) | +| `inputOptions.smartQuotes` | Match | [quotes](InputOptionsProbe.swift#L21) · [Xcode parameter](InputOptionsProbe.actions.json#L490) | + +## Result protocols and compositions + +| Declaration | Classification | Evidence | +| --- | --- | --- | +| `result.IntentResult` | Match | [ConfirmProbe](ResultProtocols.swift#L4) · [Xcode registration](ResultProtocols.actionsdata#L3) | +| `result.OpensIntent` | Match | [OpensProbeIntent](OutputProbe.swift#L22) · [Xcode action](OutputProbe.actions.json#L182) | +| `result.OpensIntent+ProvidesDialog` | Match | [OpensWithDialogProbe](ResultProtocols.swift#L62) · [Xcode registration](ResultProtocols.actionsdata#L476) | +| `result.OpensIntent+ShowsSnippetView` | Match | [OpensWithViewProbe](ResultProtocols.swift#L54) · [Xcode registration](ResultProtocols.actionsdata#L513) | +| `result.ProvidesDialog` | Match | [DialogOnlyProbeIntent](OutputProbe.swift#L5) · [Xcode action](OutputProbe.actions.json#L46) | +| `result.ReturnsValue` | Match | [Greet](DataApp.swift#L3) · [extract.actionsdata](extract.actionsdata) | +| `result.ShowsSnippetIntent` | Match | [InteractiveResultProbe](ResultProtocols.swift#L47) · [Xcode registration](ResultProtocols.actionsdata#L436) · [ConfirmationSnippet](ResultProtocols.swift#L18) | +| `result.ShowsSnippetView` | Match | [SnippetOnlyProbeIntent](OutputProbe.swift#L10) · [Xcode action](OutputProbe.actions.json#L219) | + +## Parameter summaries + +| Declaration | Classification | Evidence | +| --- | --- | --- | +| `summary.Case` | Diagnostic | [SwitchProbe](Unsupported.swift#L12) · [extractor diagnostic](verify_registration.py#L70) | +| `summary.DefaultCase` | Diagnostic | [SwitchProbe](Unsupported.swift#L12) · [extractor diagnostic](verify_registration.py#L70) | +| `summary.Summary` | Match | [SummaryTwoProbeIntent](OutputProbe.swift#L35) · [Xcode action](OutputProbe.actions.json#L617) | +| `summary.Summary()` | Match | [NoSummaryTextProbeIntent](OutputProbe.swift#L60) · [Xcode action](OutputProbe.actions.json#L131) | +| `summary.Summary(_:)` | Match | [SummaryParametersOnlyProbeIntent](OutputProbe.swift#L74) · [Xcode action](OutputProbe.actions.json#L458) | +| `summary.Summary(_:table:)` | Match | [EmptySummaryTextProbeIntent](OutputProbe.swift#L68) · [Xcode action](OutputProbe.actions.json#L83) | +| `summary.Summary(_:table:_:)` | Match | [SummaryTwoProbeIntent](OutputProbe.swift#L35) · [Xcode action](OutputProbe.actions.json#L617) | +| `summary.Switch` | Diagnostic | [SwitchProbe](Unsupported.swift#L12) · [extractor diagnostic](verify_registration.py#L70) | +| `summary.When` | Diagnostic | [WhenProbe](Unsupported.swift#L3) · [extractor diagnostic](verify_registration.py#L70) | +| `summary.table` | Diagnostic | [TableProbe](Unsupported.swift#L24) · [extractor diagnostic](verify_registration.py#L70) | + +An explicit non-nil localization table is covered by `summary.table`. The two plain summary initializers accepting a table match with its default nil value. The conditional probe exercises both branches of `When` and includes `Case` and `DefaultCase` in a single `Switch`; the extractor rejects the enclosing condition. + +For the 20 unsupported parameter labels, the test adds each label to a valid compiler capture and requires a named error at the public extractor entry point. Range and dynamic options also have native Swift probes. Supported type identifiers for file contents and the constant input options are limited to the values in their probes. Siri presentation, runtime prompts and interaction with a rendered snippet are outside this registration comparison. diff --git a/sweetpad-cli/fixtures/appintents/sdk_coverage.py b/sweetpad-cli/fixtures/appintents/sdk_coverage.py new file mode 100644 index 00000000..7e72d81c --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/sdk_coverage.py @@ -0,0 +1,158 @@ +#!/usr/bin/env python3 +"""Check the selected iOS SDK against the versioned registration checklist.""" + +import argparse +from collections import defaultdict +import difflib +import hashlib +import json +from pathlib import Path +import re +import subprocess +import tempfile + +HERE = Path(__file__).resolve().parent +BASELINE = "27.2" +CHECKLIST = HERE / f"sdk-{BASELINE}.md" +EXAMPLES = {"result.OpensIntent+ProvidesDialog", "result.OpensIntent+ShowsSnippetView", "summary.table"} + + +def checklist(): + rows = {} + for line in CHECKLIST.read_text().splitlines(): + if not line.startswith("| `"): + continue + name, status, evidence = [c.strip() for c in line.strip("|").split("|")] + name = name.strip("`") + links = re.findall(r"\[[^\]]+\]\(([^)]+)\)", evidence) + if (name in rows or status not in {"Match", "Diagnostic", "No effect"} or not links + or not all((HERE / link.split("#")[0]).is_file() for link in links)): + raise ValueError(f"Invalid or duplicate checklist entry: {line}") + rows[name] = status + return rows + + +def inventory(graphs): + symbols = {} + edges = [] + for graph in graphs: + for symbol in graph["symbols"]: + symbols[symbol["identifier"]["precise"]] = symbol + edges.extend((r["source"], r["target"]) for r in graph["relationships"] + if r["kind"] in {"conformsTo", "inheritsFrom"}) + roots = {s["pathComponents"][0]: uid for uid, s in symbols.items() + if len(s["pathComponents"]) == 1 and s["kind"]["identifier"] == "swift.protocol"} + + def descendants(name): + found = {roots[name]} + while True: + more = {src for src, dst in edges if dst in found} - found + if not more: + return found + found.update(more) + + result_types = descendants("IntentResult") + summaries = descendants("ParameterSummary") - {roots["ParameterSummary"]} + aliases = {} + keys = set(EXAMPLES) + declarations = defaultdict(set) + + def record(s): + path = ".".join(s["pathComponents"]) + signature = "".join(f["spelling"] for f in s["declarationFragments"]) + declarations[path].add(s["identifier"]["precise"] + " " + signature) + + for s in symbols.values(): + p = s["pathComponents"] + if p[:-1] != ["AppIntent"] or s["kind"]["identifier"] != "swift.typealias": + continue + # The first type after '=' is the alias target, before generic constraints. + target = next((f for f in s["declarationFragments"] if f["kind"] == "typeIdentifier"), None) + if target and (target.get("preciseIdentifier") in summaries or "ParameterSummary" in target["spelling"]): + aliases[target["spelling"]] = p[-1] + keys.add("summary." + p[-1]) + record(s) + + for uid, s in symbols.items(): + kind, p = s["kind"]["identifier"], s["pathComponents"] + owner, name = p[:-1], p[-1] + if kind == "swift.protocol" and uid in result_types: + keys.add("result." + name) + elif kind == "swift.init" and owner in (["IntentParameter"], ["String", "IntentInputOptions"]): + family = "parameter" if owner == ["IntentParameter"] else "inputOptions" + keys.update(f"{family}.{label}" for label in re.findall(r"(\w+):", name)) + elif kind == "swift.enum.case" and owner == ["InputConnectionBehavior"]: + keys.add("connection." + name) + elif kind == "swift.enum.case" and owner[:2] == ["String", "IntentInputOptions"]: + keys.add(".".join(["inputOptions", *p[2:]])) + elif len(owner) == 1 and owner[0] in aliases and kind == "swift.init": + if aliases[owner[0]] == "Summary": + keys.add("summary.Summary" + name.removeprefix("init")) + elif uid in summaries and kind in {"swift.struct", "swift.enum", "swift.class", "swift.protocol"}: + keys.add("summary." + aliases.get(name, name)) + else: + continue + record(s) + return keys, declarations + + +def version_number(version): + return tuple(map(int, version.split("."))) + + +def reviewed_baseline(version, suffix, directory): + versions = {version_number(f.name.split("-")[1]): f for f in directory.glob(f"sdk-*-{suffix}")} + current = version_number(version) + candidates = [v for v in versions if v <= current] + primary = version_number(BASELINE) + if not candidates or (current >= primary and primary not in versions): + raise ValueError(f"No reviewed {suffix} baseline for iOS {version}") + return versions[max(candidates)] + + +def check(keys, declarations, version, update=False, directory=HERE, export=None): + rows = checklist() + newer = version_number(version) >= version_number(BASELINE) + # Older SDKs can legitimately expose a subset of the most recent checklist. + errors = [f"Unclassified SDK declaration: {k}" for k in sorted(keys - rows.keys())] + if newer: + errors += [f"Checklist declaration missing from SDK: {k}" for k in sorted(rows.keys() - keys)] + lines = [] + for name, overloads in sorted(declarations.items()): + digest = hashlib.sha256("\n".join(sorted(overloads)).encode()).hexdigest()[:20] + lines.append(f"{name}\t{len(overloads)}\t{digest}\n") + name = f"sdk-{version}-signatures.txt" + if export: + export.mkdir(parents=True, exist_ok=True) + (export / name).write_text("".join(lines)) + if errors: + raise ValueError("\n".join(errors)) + if update: + (directory / name).write_text("".join(lines)) + else: + baseline = reviewed_baseline(version, "signatures.txt", directory) + previous = baseline.read_text().splitlines(keepends=True) + if previous != lines: + diff = difflib.unified_diff(previous, lines, fromfile=baseline.name, tofile=f"iOS {version} SDK") + raise ValueError("SDK overloads changed. Review the named declarations and their evidence.\n" + "".join(diff)) + print(f"iOS {version}: {len(keys)} classified entries, {sum(map(len, declarations.values()))} declarations") + + +def main(): + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("--update-signatures", action="store_true", help="record reviewed overloads for the selected SDK") + parser.add_argument("--export-signatures", type=Path, help="export this SDK's declaration inventory for review") + args = parser.parse_args() + sdk = subprocess.check_output(["xcrun", "--sdk", "iphoneos", "--show-sdk-path"], text=True).strip() + version = subprocess.check_output(["xcrun", "--sdk", "iphoneos", "--show-sdk-version"], text=True).strip() + with tempfile.TemporaryDirectory(prefix="sweetpad-intents-sdk-") as tmp: + path = Path(tmp) + subprocess.run(["xcrun", "--sdk", "iphoneos", "swift-symbolgraph-extract", "-module-name", "AppIntents", + "-target", f"arm64-apple-ios{version}", "-sdk", sdk, "-minimum-access-level", "public", + "-output-dir", str(path)], check=True) + keys, declarations = inventory(json.loads(f.read_text()) for f in sorted(path.glob("*.symbols.json"))) + check(keys, declarations, version, args.update_signatures, export=args.export_signatures) + + +if __name__ == "__main__": + main() diff --git a/sweetpad-cli/fixtures/appintents/test_sdk_coverage.py b/sweetpad-cli/fixtures/appintents/test_sdk_coverage.py new file mode 100644 index 00000000..75a8bc60 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/test_sdk_coverage.py @@ -0,0 +1,83 @@ +import json +from pathlib import Path +import tempfile +import unittest +from unittest.mock import patch + +import sdk_coverage as sdk +from verify_registration import equal, normalize_registration, registration_fingerprints + + +def symbol(name, kind, uid=None): + path = name.split(".") + return {"identifier": {"precise": uid or name}, "pathComponents": path, + "kind": {"identifier": "swift." + kind}, + "declarationFragments": [{"kind": "identifier", "spelling": path[-1]}]} + + +class SDKCoverageTests(unittest.TestCase): + def test_new_parameter_result_and_summary_are_unclassified(self): + symbols = [symbol("IntentResult", "protocol"), symbol("ParameterSummary", "protocol"), + symbol("KnownResult", "protocol"), symbol("FutureResult", "protocol"), + symbol("NewSummary", "struct"), symbol("IntentParameter.init(title:future:)", "init")] + edges = [("KnownResult", "IntentResult"), ("FutureResult", "KnownResult"), ("NewSummary", "ParameterSummary")] + keys, declarations = sdk.inventory([{"symbols": symbols, "relationships": [ + {"kind": "conformsTo", "source": src, "target": dst} for src, dst in edges]}]) + unknown = {"parameter.future", "result.FutureResult", "summary.NewSummary"} + self.assertTrue(unknown <= keys) + with patch.object(sdk, "checklist", return_value=dict.fromkeys(keys - unknown, "Match")): + with self.assertRaises(ValueError) as failed: + sdk.check(keys, declarations, sdk.BASELINE) + for name in unknown: + self.assertIn("Unclassified SDK declaration: " + name, str(failed.exception)) + + def test_new_overload_with_previously_classified_labels_fails(self): + name = "IntentParameter.init(title:)" + with tempfile.TemporaryDirectory() as tmp: + with patch.object(sdk, "checklist", return_value={"parameter.title": "Match"}): + keys = {"parameter.title"} + sdk.check(keys, {name: {"one"}}, "26.5", update=True, directory=Path(tmp)) + with self.assertRaisesRegex(ValueError, "SDK overloads changed"): + sdk.check(keys, {name: {"one", "two"}}, "26.6", directory=Path(tmp)) + + def test_unreviewed_sdk_requires_a_baseline(self): + with tempfile.TemporaryDirectory() as tmp: + with self.assertRaisesRegex(ValueError, "No reviewed"): + sdk.reviewed_baseline("26.5", "signatures.txt", Path(tmp)) + (Path(tmp) / "sdk-26.5-signatures.txt").touch() + with self.assertRaisesRegex(ValueError, "No reviewed"): + sdk.reviewed_baseline(sdk.BASELINE, "signatures.txt", Path(tmp)) + + def test_native_registration_change_is_detected_even_if_linux_matches(self): + native = json.loads((sdk.HERE / "ResultProtocols.actionsdata").read_text()) + expected = json.loads((sdk.HERE / "sdk-27.2-registration.json").read_text())["ResultProtocols"] + with tempfile.TemporaryDirectory() as tmp, patch.dict("verify_registration.PROBES", {"ResultProtocols": None}, clear=True): + probe = Path(tmp) / "ResultProtocols" + probe.mkdir() + version = probe / "version.json" + registration = probe / "extract.actionsdata" + version.write_text(json.dumps({"version": "3.0", "toolsVersion": "next-build"})) + registration.write_text(json.dumps(native)) + self.assertEqual(registration_fingerprints(probe.parent, "next-build")["ResultProtocols"], expected) + native["newRegistryField"] = True + registration.write_text(json.dumps(native)) + self.assertNotEqual(registration_fingerprints(probe.parent, "next-build")["ResultProtocols"], expected) + with self.assertRaisesRegex(ValueError, "toolsVersion"): + registration_fingerprints(probe.parent, "wrong-build") + + def test_complete_registration_detects_flags_and_other_schema_changes(self): + native = json.loads((sdk.HERE / "ResultProtocols.actionsdata").read_text()) + actual = json.loads(json.dumps(native)) + actual["generator"] = {"name": "sweetpad", "version": "test"} + equal("generator identity", normalize_registration(native), normalize_registration(actual)) + actual["actions"]["InteractiveResultProbe"]["outputFlags"] = 0 + actual["actions"]["ConfirmationSnippet"]["generator"] = {"unexpected": True} + actual["newRegistrationField"] = [] + with self.assertRaises(ValueError) as failed: + equal("registration", normalize_registration(native), normalize_registration(actual)) + for path in ["/InteractiveResultProbe/outputFlags", "/ConfirmationSnippet/generator", "/newRegistrationField"]: + self.assertIn(path, str(failed.exception)) + + +if __name__ == "__main__": + unittest.main() diff --git a/sweetpad-cli/fixtures/appintents/verify_registration.py b/sweetpad-cli/fixtures/appintents/verify_registration.py new file mode 100644 index 00000000..0474efb6 --- /dev/null +++ b/sweetpad-cli/fixtures/appintents/verify_registration.py @@ -0,0 +1,180 @@ +#!/usr/bin/env python3 +"""Replay fresh Xcode probe registrations and verify the SDK checklist's diagnostics.""" + +import argparse +from copy import deepcopy +import hashlib +import json +from pathlib import Path +import subprocess +import sys +import tempfile + +HERE = Path(__file__).resolve().parent +sys.path.insert(0, str(HERE)) +sys.path.insert(0, str(HERE.parents[2] / "sweetpad-lib/ci")) +from bundle_comparison import differences, normalize_registration +from regen import PROBES +from sdk_coverage import BASELINE, checklist, reviewed_baseline, version_number + + +def read(path): + return json.loads(path.read_text()) + + +def equal(label, expected, actual): + delta = differences(expected, actual) + if delta: + raise ValueError(f"{label}: {len(delta)} differences\n" + json.dumps(delta[:12], indent=2)) + + +def extract(binary, work, constants, module, version, expected_error=None): + work.mkdir() + listing = work / "inputs" + listing.write_text("".join(str(path.resolve()) + "\n" for path in constants)) + result = subprocess.run(["appintentsmetadataprocessor", "--compile-time-extraction", "--module-name", module, + "--bundle-identifier", "dev.sweetpad." + module, "--xcode-version", version, + "--output", str(work), "--swift-const-vals-list", str(listing)], + executable=binary, capture_output=True, text=True) + metadata = work / "Metadata.appintents" + if expected_error is None: + if result.returncode: + raise ValueError(f"{module}: {result.stderr}") + elif result.returncode != 1 or expected_error not in result.stderr or metadata.exists(): + raise ValueError(f"{work.name}: expected '{expected_error}' and no registration, " + f"got exit {result.returncode}: {result.stderr}") + return metadata + + +def compare_capture(capture, work, binary, module): + version = read(capture / "version.json") + native = read(capture / "extract.actionsdata") + output = extract(binary, work, sorted(capture.glob("*.swiftconstvalues")), module, version["toolsVersion"]) + actual = read(output / "extract.actionsdata") + if native["generator"]["name"] != "xcode-tools" or actual["generator"]["name"] != "sweetpad": + raise ValueError(f"{module}: unexpected registration generators") + equal(module + "/extract.actionsdata", normalize_registration(native), normalize_registration(actual)) + equal(module + "/version.json", version, read(output / "version.json")) + return len(native["actions"]) + + +def verify_no_effect(registration): + actions = registration["actions"] + # Only type identity differs between these two native Swift declarations. + identity = {"identifier", "fullyQualifiedTypeName", "mangledTypeName", "mangledTypeNameV2"} + pair = [{k: v for k, v in actions[name].items() if k not in identity} + for name in ("ConfirmProbe", "PromptProbe")] + equal("native requestValueDialog control", *map(normalize_registration, pair)) + + +def verify_diagnostics(captures, work, binary): + case_errors = { + "WhenProbe": "unsupported parameterSummary 'AppIntents.ParameterSummaryWhenCondition", + "SwitchProbe": "unsupported parameterSummary 'AppIntents.ParameterSummarySwitchCondition", + "TableProbe": "unsupported parameterSummary argument 'table'", + "RangeProbe": "unsupported App Intents parameter option 'inclusiveRange'", + "OptionsProviderProbe": "unsupported App Intents parameter option 'optionsProvider'", + } + native = captures / "Unsupported" + version = read(native / "version.json")["toolsVersion"] + types = read(native / "Unsupported.swiftconstvalues") + equal("native diagnostic probes", sorted(case_errors), sorted(read(native / "extract.actionsdata")["actions"])) + # A failing declaration stops the processor. Isolate them so a prior error cannot mask the next one. + def run_case(tag, declarations, error): + path = work / (tag + ".swiftconstvalues") + path.write_text(json.dumps(declarations)) + extract(binary, work / tag, [path], "Unsupported", version, error) + + for name, message in case_errors.items(): + intent = next(t for t in types if t["typeName"] == "Unsupported." + name) + run_case(name, [intent], message) + + # Exercise the argument-label guard separately from Swift overload resolution. + # Each row classified Diagnostic must still reject that exact option. + options = [k.removeprefix("parameter.") for k, status in checklist().items() + if k.startswith("parameter.") and status == "Diagnostic"] + base = next(t for t in read(captures / "ResultProtocols/ResultProtocols.swiftconstvalues") + if t["typeName"].endswith(".ConfirmProbe")) + for label in options: + intent = deepcopy(base) + param = next(p for p in intent["properties"] if p["label"] == "text") + param["propertyWrappers"][0]["arguments"].append({"label": label, "valueKind": "RawLiteral", "value": "1"}) + run_case(label, [intent], f"unsupported App Intents parameter option '{label}'") + return len(case_errors), len(options) + + +def registration_fingerprints(captures, build): + fingerprints = {} + for source in PROBES: + capture = captures / source + version = read(capture / "version.json") + equal(f"{source}/toolsVersion", build, version.get("toolsVersion")) + # Compare the build identifier literally in the replay. Allow its value + # to advance when comparing native captures from different Xcode builds. + version["toolsVersion"] = "" + documents = { + "version.json": version, + "extract.actionsdata": normalize_registration(read(capture / "extract.actionsdata")), + } + content = json.dumps(documents, sort_keys=True, separators=(",", ":")).encode() + fingerprints[source] = hashlib.sha256(content).hexdigest() + return fingerprints + + +def verify(captures, binary, update=False): + toolchain = read(captures / "sdk.json") + sdk = toolchain["version"] + compare_baseline = version_number(sdk) >= version_number(BASELINE) + build = toolchain["xcode"].splitlines()[-1].removeprefix("Build version ") + with tempfile.TemporaryDirectory(prefix="sweetpad-intents-replay-") as tmp: + work = Path(tmp) + total = 0 + failures = [] + for source, (module, expected) in PROBES.items(): + if expected is None: + continue + if compare_baseline: + native = read(captures / source / "extract.actionsdata") + baseline = read(HERE / expected) + if expected.endswith(".actions.json"): + native, baseline = {"actions": native["actions"]}, {"actions": baseline} + try: + equal(source + "/Xcode baseline", normalize_registration(baseline), normalize_registration(native)) + except ValueError as error: + failures.append(str(error)) + try: + count = compare_capture(captures / source, work / source, binary, module) + except (ValueError, OSError) as error: + failures.append(str(error)) + continue + total += count + print(f"{source}: {count} actions; complete registration and version match") + try: + verify_no_effect(read(captures / "ResultProtocols/extract.actionsdata")) + except ValueError as error: + failures.append(str(error)) + try: + native, labels = verify_diagnostics(captures, work, binary) + except ValueError as error: + failures.append(str(error)) + try: + fingerprints = registration_fingerprints(captures, build) + if not update: + baseline = reviewed_baseline(sdk, "registration.json", HERE) + equal(f"Native registration changed since {baseline.name}", read(baseline), fingerprints) + except ValueError as error: + failures.append(str(error)) + if failures: + raise ValueError("\n\n".join(failures)) + if update: + (HERE / f"sdk-{sdk}-registration.json").write_text(json.dumps(fingerprints, indent=2, sort_keys=True) + "\n") + print(f"{total} actions matched; {native} native diagnostic probes and {labels} option diagnostics passed") + + +if __name__ == "__main__": + parser = argparse.ArgumentParser(description=__doc__) + parser.add_argument("captures", type=Path) + parser.add_argument("--sweetpad", type=Path, default=HERE.parents[2] / "target/debug/sweetpad") + parser.add_argument("--update-registrations", action="store_true", help="record reviewed native registration fingerprints") + args = parser.parse_args() + verify(args.captures, args.sweetpad.resolve(), args.update_registrations) diff --git a/sweetpad-cli/src/cli/appintents/metadata.rs b/sweetpad-cli/src/cli/appintents/metadata.rs index f8f0dff1..ab240c97 100644 --- a/sweetpad-cli/src/cli/appintents/metadata.rs +++ b/sweetpad-cli/src/cli/appintents/metadata.rs @@ -1,6 +1,7 @@ //! The registration schema, checked against Xcode's constant-value captures. use serde_json::{Value, json}; +use std::fmt::Write as _; mod parameters; mod representations; @@ -34,6 +35,32 @@ fn identifier(value: &Value) -> &str { fn availability() -> Value { json!({"LNPlatformNameWildcard":{"introducedVersion":"*"}}) } +fn action_availability(value: &Value) -> Value { + let mut annotations = availability(); + for attribute in array(&value["availabilityAttributes"]) { + let platform = match text(&attribute["platform"]) { + "iOS" => "LNPlatformNameIOS", + "macOS" => "LNPlatformNameMACOS", + "tvOS" => "LNPlatformNameTVOS", + "watchOS" => "LNPlatformNameWATCHOS", + "visionOS" => "LNPlatformNameVISIONOS", + // Xcode has no separate registration entry for macCatalyst. + _ => continue, + }; + for key in ["introducedVersion", "deprecatedVersion", "obsoletedVersion"] { + if let Some(version) = attribute[key].as_str() { + annotations[platform][key] = json!(version); + } + } + if attribute["isDeprecated"] == true { + annotations[platform]["deprecatedVersion"] = json!("*"); + } + if attribute["isUnavailable"] == true { + annotations[platform]["obsoletedVersion"] = json!("*"); + } + } + annotations +} fn visibility() -> Value { json!({"assistantOnly":false,"isDiscoverable":true}) } @@ -83,7 +110,18 @@ fn argument<'a>(value: &'a Value, label: &str) -> Option<&'a Value> { .find(|a| a["label"] == label) } -pub(super) fn extract(types: &[Value]) -> Result { +#[derive(Clone, Copy, PartialEq, Eq)] +enum RegistrationFormat { + Xcode26, + Current, +} + +pub(super) fn extract(types: &[Value], xcode_build: &str) -> Result { + // Swift Build supplies XCODE_PRODUCT_BUILD_VERSION. Xcode 26 uses the 17-series builds. + let format = match xcode_build.as_bytes() { + [b'1', b'7', b'A'..=b'Z', ..] => RegistrationFormat::Xcode26, + _ => RegistrationFormat::Current, + }; if types .iter() .filter(|t| conforms(t, "AppShortcutsProvider")) @@ -113,10 +151,10 @@ pub(super) fn extract(types: &[Value]) -> Result { result["enums"] .as_array_mut() .unwrap() - .push(enumeration(value)?); + .push(enumeration(value, format)?); } if conforms(value, "AppEntity") { - let mut entity = entity(value)?; + let mut entity = entity(value, format)?; entity["properties"] = json!(representations::entity_properties( &entity["properties"], types @@ -127,7 +165,7 @@ pub(super) fn extract(types: &[Value]) -> Result { result["queries"][id] = query(value, types)?; } if conforms(value, "AppIntent") || conforms(value, "WidgetConfigurationIntent") { - result["actions"][id] = action(value, types)?; + result["actions"][id] = action(value, types, format)?; } if conforms(value, "AppShortcutsProvider") { result["autoShortcutProviderMangledName"] = value["mangledTypeName"].clone(); @@ -152,11 +190,14 @@ pub(super) fn strings_data(types: &[Value], metadata: &Value) -> Option { Some(json!({"source":property["file"],"tables":{"AppShortcuts":entries},"version":2})) } -fn action(value: &Value, types: &[Value]) -> Result { +fn action(value: &Value, types: &[Value], format: RegistrationFormat) -> Result { let id = identifier(value); let widget = conforms(value, "WidgetConfigurationIntent"); + let snippet = conforms(value, "SnippetIntent"); let open = boolean(value, "openAppWhenRun", false)?; - let discoverable = boolean(value, "isDiscoverable", true)?; + let (flags, output) = action_result(value, types)?; + // Native registration hides a snippet without an output value unless the author opts in. + let discoverable = boolean(value, "isDiscoverable", !snippet || output.is_some())?; let authentication = if let Some(policy) = property(value, "authenticationPolicy") { match text(&policy["value"]["name"]) { "alwaysAllowed" => 0, @@ -181,25 +222,33 @@ fn action(value: &Value, types: &[Value]) -> Result { )?; let mut action = json!({ "assistantDefinedSchemaTraits":[],"assistantDefinedSchemas":[],"authenticationPolicy":authentication, - "availabilityAnnotations":availability(),"effectiveBundleIdentifiers":[], + "availabilityAnnotations":action_availability(value),"effectiveBundleIdentifiers":[], "fullyQualifiedTypeName":value["typeName"],"identifier":id,"isAuthPolExplicit":property(value,"authenticationPolicy").is_some(), - "isDiscoverable":discoverable&&!widget,"mangledTypeName":value["mangledTypeName"], + "mangledTypeName":value["mangledTypeName"], "mangledTypeNameByBundleIdentifier":{},"mangledTypeNameByBundleIdentifierV2":{}, "mangledTypeNameV2":value["mangledTypeName"],"openAppWhenRun":open, - "outputFlags":if widget {8}else{0},"parameters":[],"presentationStyle":0, + "isDiscoverable":discoverable && !widget,"outputFlags":flags | if widget {8} else {0},"parameters":[],"presentationStyle":0, "requiredCapabilities":[],"supportedModes":if open {2}else{1}, "systemProtocolMetadata":[],"systemProtocolMetadataV2":[],"systemProtocols":[], "title":localized(&title),"typeSpecificMetadata":[],"visibilityMetadata":visibility(), }); - if !discoverable { - action["visibilityMetadata"]["isDiscoverable"] = json!(false); - } - if widget { - let protocol = "com.apple.link.systemProtocol.WidgetConfiguration"; - action["systemProtocolMetadata"] = json!([protocol,{"empty":{}}]); - action["systemProtocolMetadataV2"] = action["systemProtocolMetadata"].clone(); - action["systemProtocols"] = json!([protocol]); + action["visibilityMetadata"]["isDiscoverable"] = json!(discoverable); + for (applies, protocol) in [ + (widget, "com.apple.link.systemProtocol.WidgetConfiguration"), + (snippet, "com.apple.link.systemProtocol.Snippet"), + ] { + if applies { + action["systemProtocolMetadata"] + .as_array_mut() + .unwrap() + .extend([json!(protocol), json!({"empty":{}})]); + action["systemProtocols"] + .as_array_mut() + .unwrap() + .push(json!(protocol)); + } } + action["systemProtocolMetadataV2"] = action["systemProtocolMetadata"].clone(); if let Some(description) = property(value, "description") { action["descriptionMetadata"] = json!({"descriptionText":localized(&literal(description)?),"searchKeywords":[]}); @@ -212,30 +261,118 @@ fn action(value: &Value, types: &[Value]) -> Result { action["parameters"] .as_array_mut() .unwrap() - .push(parameters::parameter(parameter, types)?); + .push(parameters::parameter(parameter, types, format)?); + } + if let Some(summary) = action_summary(value, id)? { + action["actionConfiguration"] = summary; } + if let Some(output) = output { + action["outputType"] = output; + } + Ok(action) +} + +fn action_result(value: &Value, types: &[Value]) -> Result<(u8, Option), String> { + let id = identifier(value); + let mut flags = 0; + let mut output = None; for alias in array(&value["associatedTypeAliases"]) .iter() .filter(|a| a["typeAliasName"] == "PerformResult") { - let mut flags = action["outputFlags"].as_u64().unwrap(); for requirement in array(&alias["opaqueTypeProtocolRequirements"]) { match text(requirement) { - "AppIntents.ProvidesDialog" => flags |= 2, - "AppIntents.ShowsSnippetView" => flags |= 4, + "AppIntents.OpensIntent" => flags |= 1, + "AppIntents.ShowsSnippetView" => flags |= 2, + "AppIntents.ProvidesDialog" => flags |= 4, + "AppIntents.ShowsSnippetIntent" => flags |= 32, + "AppIntents.IntentResult" | "AppIntents.ReturnsValue" => {} + name if name.starts_with("AppIntents.") => { + return Err(format!( + "unsupported App Intents result protocol '{name}' in intent '{id}'" + )); + } _ => {} } } - action["outputFlags"] = json!(flags); for requirement in array(&alias["opaqueTypeSameTypeRequirements"]) .iter() .filter(|r| r["typeAliasName"] == "AppIntents.IntentResult.Value") { - action["outputType"] = - parameters::value_type(text(&requirement["substitutedTypeName"]), types)?; + output = Some(parameters::value_type( + text(&requirement["substitutedTypeName"]), + types, + )?); } } - Ok(action) + Ok((flags, output)) +} + +/// `parameterSummary` as a plain `Summary`: constant text with parameter key paths, +/// plus the parameters its trailing builder lists. Conditional summaries +/// (`When`, `Switch`) and localization tables are not supported yet. +fn action_summary(value: &Value, id: &str) -> Result, String> { + let Some(summary) = properties(value) + .iter() + .find(|p| p["label"] == "parameterSummary" && p["isStatic"] == "true") + else { + return Ok(None); + }; + let unsupported = |what: &str| format!("unsupported parameterSummary {what} in intent '{id}'"); + if summary["valueKind"] != "InitCall" + || !text(&summary["value"]["type"]).starts_with("AppIntents.IntentParameterSummary<") + { + return Err(unsupported(&format!( + "'{}'", + text(&summary["value"]["type"]) + ))); + } + let mut format = None; + let mut inline = Vec::new(); + let mut other = Vec::new(); + for argument in array(&summary["value"]["arguments"]) { + match (text(&argument["label"]), text(&argument["valueKind"])) { + ("", "RawLiteral") => format = Some(text(&argument["value"]).to_owned()), + ("", "InterpolatedStringLiteral") => { + let mut string = String::new(); + for segment in array(&argument["value"]["segments"]) { + if segment["valueKind"] == "RawLiteral" { + string.push_str(text(&segment["value"])); + } else { + let name = summary_parameter(segment).ok_or_else(|| unsupported("text"))?; + let _ = write!(string, "${{{name}}}"); + inline.push(name); + } + } + format = Some(string); + } + ("", "Builder") => { + for member in array(&argument["value"]["members"]) { + other.push( + summary_parameter(&member["element"]) + .filter(|_| member["kind"] == "buildExpression") + .ok_or_else(|| unsupported("parameter list"))?, + ); + } + } + ("table", "NilLiteral") => {} + (label, _) => return Err(unsupported(&format!("argument '{label}'"))), + } + } + let mut wrapper = json!({"otherParameterIdentifiers":other}); + if let Some(format) = format { + wrapper["summaryString"] = json!({"formatString":format,"parameterIdentifiers":inline}); + } + Ok(Some(json!({"actionSummary":{"wrapper":wrapper}}))) +} + +/// A `\.$name` key path to one of the intent's parameters. +fn summary_parameter(value: &Value) -> Option<&str> { + let components = array(&value["value"]["components"]); + if value["valueKind"] != "KeyPath" || components.len() != 1 { + return None; + } + text(&components[0]["label"]).strip_prefix('$') } fn shortcuts(provider: &Value) -> Result { @@ -327,7 +464,7 @@ mod tests { .unwrap(); policy["value"]["name"] = json!("futureAuthenticationPolicy"); assert!( - extract(&types) + extract(&types, "27B52") .unwrap_err() .contains("unsupported authenticationPolicy") ); @@ -338,7 +475,7 @@ mod tests { "../../../fixtures/appintents/DataApp.swiftconstvalues" )) .unwrap(); - let actual = strings_data(&types, &extract(&types).unwrap()).unwrap(); + let actual = strings_data(&types, &extract(&types, "27B52").unwrap()).unwrap(); let expected: Value = serde_json::from_str(include_str!( "../../../fixtures/appintents/Shortcuts.stringsdata" )) @@ -346,19 +483,31 @@ mod tests { assert_eq!(actual, expected); } fn normalize(value: &mut Value) { + if let Some(generator) = value.get_mut("generator").and_then(Value::as_object_mut) { + generator.remove("name"); + generator.remove("version"); + } + normalize_collections(value); + } + fn normalize_collections(value: &mut Value) { match value { Value::Object(object) => { for (key, v) in object { - if key == "generator" { - *v = json!({"name":"normalized"}); - } else if key == "resolvableInputTypes" { + if key == "resolvableInputTypes" { v.as_array_mut().unwrap().sort_by_key(Value::to_string); + } else if key == "typeSpecificMetadata" { + // A flat key/value list that Xcode writes in hash order. + let values = v.as_array_mut().unwrap(); + let mut pairs: Vec> = + values.chunks(2).map(<[Value]>::to_vec).collect(); + pairs.sort_by_key(|pair| pair[0].to_string()); + *values = pairs.concat(); } else { - normalize(v); + normalize_collections(v); } } } - Value::Array(values) => values.iter_mut().for_each(normalize), + Value::Array(values) => values.iter_mut().for_each(normalize_collections), _ => {} } } @@ -369,10 +518,14 @@ mod tests { ("DataApp.swiftconstvalues", "extract.actionsdata"), ("Types.swiftconstvalues", "Types.actionsdata"), ("Files.swiftconstvalues", "Files.actionsdata"), + ( + "ResultProtocols.swiftconstvalues", + "ResultProtocols.actionsdata", + ), ] { let types: Vec = serde_json::from_slice(&std::fs::read(dir.join(input)).unwrap()).unwrap(); - let mut actual = extract(&types).unwrap(); + let mut actual = extract(&types, "27B52").unwrap(); let mut expected: Value = serde_json::from_slice(&std::fs::read(dir.join(expected)).unwrap()).unwrap(); normalize(&mut actual); @@ -380,4 +533,164 @@ mod tests { assert_eq!(actual, expected, "{input}"); } } + #[test] + fn xcode_26_registration_uses_the_older_enum_and_entity_schema() { + let types: Vec = serde_json::from_str(include_str!( + "../../../fixtures/appintents/Types.swiftconstvalues" + )) + .unwrap(); + let registration = extract(&types, "17F113").unwrap(); + let entity = ®istration["entities"]["SampleEntity"]; + assert!(entity.get("entitySyncMetadata").is_none()); + assert!(entity.get("typeSpecificMetadata").is_none()); + assert!( + registration["enums"][0] + .get("systemProtocolMetadata") + .is_none() + ); + } + #[test] + fn xcode_26_infers_the_instance_parameter_named_parameter_summary() { + let types: Vec = serde_json::from_str(include_str!( + "../../../fixtures/appintents/InputOptionsProbe.swiftconstvalues" + )) + .unwrap(); + let actions = &extract(&types, "17F113").unwrap()["actions"]; + let parameters = &actions["ParameterTitleProbe"]["parameters"]; + assert_eq!(parameters[0]["title"], localized("User's choice")); + let summary = ¶meters[1]; + assert_eq!(summary["name"], "parameterSummary"); + assert_eq!(summary["title"], localized("Parameter Summary")); + assert_eq!(summary["isOptional"], false); + assert_eq!(summary["capabilities"], 0); + assert!(summary.get("parameterDescription").is_none()); + assert_eq!(summary["typeSpecificMetadata"], json!([])); + } + #[test] + fn probe_actions_match_xcode() { + let dir = Path::new(env!("CARGO_MANIFEST_DIR")).join("fixtures/appintents"); + for probe in ["InputOptionsProbe", "OutputProbe"] { + let read = |name: String| -> Value { + serde_json::from_slice(&std::fs::read(dir.join(name)).unwrap()).unwrap() + }; + let types: Vec = + serde_json::from_value(read(format!("{probe}.swiftconstvalues"))).unwrap(); + let mut actual = extract(&types, "27B52").unwrap()["actions"].take(); + let mut expected = read(format!("{probe}.actions.json")); + normalize(&mut actual); + normalize(&mut expected); + assert_eq!(actual, expected, "{probe}"); + } + } + #[test] + fn unsupported_swift_declarations_report_the_rejected_option_or_summary() { + let types: Vec = serde_json::from_str(include_str!( + "../../../fixtures/appintents/Unsupported.swiftconstvalues" + )) + .unwrap(); + for (name, diagnostic) in [ + ( + "WhenProbe", + "unsupported parameterSummary 'AppIntents.ParameterSummaryWhenCondition", + ), + ( + "SwitchProbe", + "unsupported parameterSummary 'AppIntents.ParameterSummarySwitchCondition", + ), + ( + "TableProbe", + "unsupported parameterSummary argument 'table'", + ), + ( + "RangeProbe", + "unsupported App Intents parameter option 'inclusiveRange'", + ), + ( + "OptionsProviderProbe", + "unsupported App Intents parameter option 'optionsProvider'", + ), + ] { + let intent = types.iter().find(|t| identifier(t) == name).unwrap(); + let error = extract(std::slice::from_ref(intent), "27B52").unwrap_err(); + assert!(error.contains(diagnostic), "{name}: {error}"); + } + } + #[test] + fn unknown_sdk_result_protocols_report_the_protocol_and_intent() { + let mut types: Vec = serde_json::from_str(include_str!( + "../../../fixtures/appintents/ResultProtocols.swiftconstvalues" + )) + .unwrap(); + let intent = types + .iter_mut() + .find(|t| identifier(t) == "InteractiveResultProbe") + .unwrap(); + let result = intent["associatedTypeAliases"] + .as_array_mut() + .unwrap() + .iter_mut() + .find(|a| a["typeAliasName"] == "PerformResult") + .unwrap(); + result["opaqueTypeProtocolRequirements"] = json!(["AppIntents.FutureResult"]); + assert_eq!( + extract(&types, "27B52").unwrap_err(), + "unsupported App Intents result protocol 'AppIntents.FutureResult' in intent 'InteractiveResultProbe'" + ); + } + #[test] + fn input_options_reject_what_they_cannot_encode() { + fn options(types: &mut [Value]) -> &mut Value { + let intent = types + .iter_mut() + .find(|t| text(&t["typeName"]).ends_with(".InputOptionsProbeIntent")) + .unwrap(); + let property = intent["properties"] + .as_array_mut() + .unwrap() + .iter_mut() + .find(|p| p["label"] == "allOn") + .unwrap(); + property["propertyWrappers"][0]["arguments"] + .as_array_mut() + .unwrap() + .iter_mut() + .find(|a| a["label"] == "inputOptions") + .unwrap() + } + let base: Vec = serde_json::from_str(include_str!( + "../../../fixtures/appintents/InputOptionsProbe.swiftconstvalues" + )) + .unwrap(); + let mut types = base.clone(); + options(&mut types)["value"]["arguments"][0]["value"]["name"] = json!("futureKeyboard"); + assert!( + extract(&types, "27B52") + .unwrap_err() + .contains("keyboardType 'futureKeyboard'") + ); + let mut types = base.clone(); + *options(&mut types) = json!({"label":"inputOptions","valueKind":"Runtime"}); + assert!( + extract(&types, "27B52") + .unwrap_err() + .contains("constant String.IntentInputOptions") + ); + let mut types = base; + options(&mut types)["value"]["arguments"][2]["valueKind"] = json!("Runtime"); + let metadata = + extract(&types, "27B52").unwrap()["actions"]["InputOptionsProbeIntent"]["parameters"] + .as_array() + .unwrap() + .iter() + .find(|p| p["name"] == "allOn") + .unwrap()["typeSpecificMetadata"] + .clone(); + assert!(!metadata.to_string().contains("StringMultiline")); + options(&mut types)["value"]["arguments"][2]["label"] = json!("futureOption"); + assert!( + extract(&types, "27B52") + .unwrap_err() + .contains("unsupported inputOptions argument 'futureOption'") + ); + } } diff --git a/sweetpad-cli/src/cli/appintents/metadata/parameters.rs b/sweetpad-cli/src/cli/appintents/metadata/parameters.rs index 59f596dd..4c77d4fd 100644 --- a/sweetpad-cli/src/cli/appintents/metadata/parameters.rs +++ b/sweetpad-cli/src/cli/appintents/metadata/parameters.rs @@ -1,4 +1,7 @@ -use super::{Value, argument, array, conforms, identifier, json, literal, localized, text}; +use super::{ + RegistrationFormat, Value, argument, array, conforms, identifier, json, literal, localized, + text, +}; pub(super) fn optional(name: &str) -> (&str, bool) { name.strip_prefix("Swift.Optional<") @@ -9,19 +12,19 @@ pub(super) fn optional(name: &str) -> (&str, bool) { fn primitive(id: u64) -> Value { json!({"primitive":{"wrapper":{"typeIdentifier":id}}}) } -fn array_type(member: Value) -> Value { - let mut value = json!({"array":{"wrapper":{"capabilities":3}}}); +fn array_type(member: Value, capabilities: u8) -> Value { + let mut value = json!({"array":{"wrapper":{"capabilities":capabilities}}}); value["array"]["wrapper"]["memberValueType"] = member; value } pub(super) fn value_type(name: &str, types: &[Value]) -> Result { let (name, _) = optional(name); - if let Some(member) = name - .strip_prefix("Swift.Array<") - .and_then(|n| n.strip_suffix('>')) - { - return value_type(member, types).map(array_type); + // Both use the array representation, with distinct native capability masks. + for (prefix, capabilities) in [("Swift.Array<", 3), ("Swift.Set<", 0)] { + if let Some(member) = name.strip_prefix(prefix).and_then(|n| n.strip_suffix('>')) { + return Ok(array_type(value_type(member, types)?, capabilities)); + } } let id = match name { "Swift.String" => Some(0), @@ -52,7 +55,11 @@ pub(super) fn value_type(name: &str, types: &[Value]) -> Result { Err(format!("unsupported App Intents value type '{name}'")) } -pub(super) fn parameter(value: &Value, types: &[Value]) -> Result { +pub(super) fn parameter( + value: &Value, + types: &[Value], + format: RegistrationFormat, +) -> Result { let wrapper = array(&value["propertyWrappers"]) .iter() .find(|w| text(&w["type"]).ends_with(".IntentParameter")) @@ -67,6 +74,7 @@ pub(super) fn parameter(value: &Value, types: &[Value]) -> Result | "requestValueDialog" | "supportedContentTypes" | "inputConnectionBehavior" + | "inputOptions" ) }) { return Err(format!( @@ -74,21 +82,23 @@ pub(super) fn parameter(value: &Value, types: &[Value]) -> Result text(&argument["label"]) )); } - let title = arguments - .iter() - .find(|a| a["label"] == "title") - .or_else(|| argument(value, "title")) - .ok_or("parameter has no constant title")?; + let (arguments, title, default) = + if format == RegistrationFormat::Xcode26 && value["label"] == "parameterSummary" { + // Xcode 26 infers this instance parameter from its name and type. Its + // wrapper options are lost when the name matches the AppIntent requirement. + (&[][..], "Parameter Summary".to_owned(), None) + } else { + let title = arguments + .iter() + .find(|a| a["label"] == "title") + .or_else(|| argument(value, "title")) + .ok_or("parameter has no constant title")?; + let default = argument(value, "default").filter(|v| v["valueKind"] != "NilLiteral"); + (arguments, literal(title)?, default) + }; let (name, is_optional) = optional(text(&value["type"])); let kind = value_type(name, types)?; - let connection = arguments - .iter() - .find(|a| a["label"] == "inputConnectionBehavior"); - let connection = match connection.map(|v| text(&v["value"]["name"])) { - None => 0, - Some("connectToPreviousIntentResult") => 2, - Some(name) => return Err(format!("unsupported inputConnectionBehavior '{name}'")), - }; + let connection = input_connection_behavior(arguments)?; if let Some(dialog) = arguments .iter() .find(|a| a["label"] == "requestValueDialog" && a["valueKind"] != "NilLiteral") @@ -97,12 +107,11 @@ pub(super) fn parameter(value: &Value, types: &[Value]) -> Result // Native registration contains no dialog field for this option. literal(dialog)?; } - let default = argument(value, "default").filter(|v| v["valueKind"] != "NilLiteral"); let mut parameter = json!({ "capabilities":u8::from(default.is_some()),"dynamicOptionsSupport":u8::from(kind.get("entity").is_some()), - "inputConnectionBehavior":connection,"isInput":connection != 0,"isOptional":is_optional, + "inputConnectionBehavior":connection,"isInput":connection == 2,"isOptional":is_optional, "name":value["label"],"resolvableInputTypes":resolvers(&kind), - "title":localized(&literal(title)?),"typeSpecificMetadata":[],"valueType":kind, + "title":localized(&title),"typeSpecificMetadata":[],"valueType":kind, }); if let Some(default) = default { parameter["typeSpecificMetadata"] = json!([ @@ -116,6 +125,7 @@ pub(super) fn parameter(value: &Value, types: &[Value]) -> Result { parameter["parameterDescription"] = localized(&literal(description)?); } + input_options(arguments, &mut parameter)?; if let Some(content_types) = arguments .iter() .find(|a| a["label"] == "supportedContentTypes") @@ -154,6 +164,86 @@ pub(super) fn parameter(value: &Value, types: &[Value]) -> Result Ok(parameter) } +fn input_connection_behavior(arguments: &[Value]) -> Result { + let behavior = arguments + .iter() + .find(|a| a["label"] == "inputConnectionBehavior"); + match behavior.map(|v| text(&v["value"]["name"])) { + None | Some("default") => Ok(0), + Some("never") => Ok(1), + Some("connectToPreviousIntentResult") => Ok(2), + Some(name) => Err(format!("unsupported inputConnectionBehavior '{name}'")), + } +} + +/// `String.IntentInputOptions`, in the order of each option's metadata value. +const KEYBOARD_TYPES: [&str; 5] = [ + "asciiCapable", + "numbersAndPunctuation", + "URL", + "numberPad", + "default", +]; +const CAPITALIZATION_TYPES: [&str; 4] = ["none", "words", "sentences", "allCharacters"]; + +/// Xcode writes one key per `String.IntentInputOptions` argument the source passes. +/// Arguments left at their defaults are captured as `Runtime` and omitted. +fn input_options(arguments: &[Value], parameter: &mut Value) -> Result<(), String> { + let Some(options) = arguments + .iter() + .find(|a| a["label"] == "inputOptions" && a["valueKind"] != "NilLiteral") + else { + return Ok(()); + }; + let kind = ¶meter["valueType"]; + let member = kind + .pointer("/array/wrapper/memberValueType") + .unwrap_or(kind); + if member["primitive"]["wrapper"]["typeIdentifier"] != 0 { + return Err("inputOptions requires a String parameter".into()); + } + if options["valueKind"] != "InitCall" + || options["value"]["type"] != "Swift.String.IntentInputOptions" + { + return Err("inputOptions must be a constant String.IntentInputOptions initializer".into()); + } + let mut metadata = Vec::new(); + for option in array(&options["value"]["arguments"]) { + let label = text(&option["label"]); + let (key, cases): (&str, &[&str]) = match label { + "keyboardType" => ("KeyboardType", &KEYBOARD_TYPES), + "capitalizationType" => ("CapitalizationType", &CAPITALIZATION_TYPES), + "multiline" => ("Multiline", &["false", "true"]), + "autocorrect" => ("Autocorrect", &["false", "true"]), + "smartQuotes" => ("SmartQuotes", &["false", "true"]), + "smartDashes" => ("SmartDashes", &["false", "true"]), + _ => return Err(format!("unsupported inputOptions argument '{label}'")), + }; + if option["valueKind"] == "Runtime" { + continue; + } + let (expected, name) = if label.ends_with("Type") { + ("Enum", text(&option["value"]["name"])) + } else { + ("RawLiteral", text(&option["value"])) + }; + let value = cases + .iter() + .position(|c| *c == name) + .filter(|_| option["valueKind"] == expected) + .ok_or_else(|| format!("unsupported inputOptions {label} '{name}'"))?; + metadata.extend([ + json!(format!("LNValueTypeMetadataKeyString{key}")), + json!({"int":{"wrapper":value}}), + ]); + } + parameter["typeSpecificMetadata"] + .as_array_mut() + .unwrap() + .extend(metadata); + Ok(()) +} + fn resolvers(kind: &Value) -> Vec { let ids: &[u64] = match kind["primitive"]["wrapper"]["typeIdentifier"].as_u64() { Some(0) => &[2, 0], @@ -168,7 +258,7 @@ fn resolvers(kind: &Value) -> Vec { .map(|id| json!({"kindValue":0,"valueType":primitive(*id)})) .collect(); if kind["primitive"]["wrapper"]["typeIdentifier"] == 0 { - types.push(json!({"kindValue":0,"valueType":array_type(primitive(2))})); + types.push(json!({"kindValue":0,"valueType":array_type(primitive(2), 3)})); } types } diff --git a/sweetpad-cli/src/cli/appintents/metadata/representations.rs b/sweetpad-cli/src/cli/appintents/metadata/representations.rs index 4cfc5169..6cdfd067 100644 --- a/sweetpad-cli/src/cli/appintents/metadata/representations.rs +++ b/sweetpad-cli/src/cli/appintents/metadata/representations.rs @@ -1,6 +1,6 @@ use super::{ - Value, argument, array, availability, conforms, identifier, json, literal, localized, - parameters, properties, property, text, visibility, + RegistrationFormat, Value, argument, array, availability, conforms, identifier, json, literal, + localized, parameters, properties, property, text, visibility, }; fn alias<'a>(value: &'a Value, name: &str) -> Option<&'a str> { @@ -32,7 +32,7 @@ fn display(value: &Value) -> Result { Ok(result) } -pub(super) fn enumeration(value: &Value) -> Result { +pub(super) fn enumeration(value: &Value, format: RegistrationFormat) -> Result { let cases = property(value, "caseDisplayRepresentations") .ok_or("AppEnum has no constant caseDisplayRepresentations")?; if cases["valueKind"] != "Dictionary" { @@ -57,28 +57,36 @@ pub(super) fn enumeration(value: &Value) -> Result { property(value, "typeDisplayRepresentation") .ok_or("AppEnum has no typeDisplayRepresentation")?, )?; - Ok(json!({ + let mut result = json!({ "assistantDefinedSchemas":[],"availabilityAnnotations":availability(),"cases":entries, "displayTypeName":localized(&title),"effectiveBundleIdentifiers":[], "fullyQualifiedTypeName":value["typeName"],"identifier":identifier(value),"isSystem":false, "mangledTypeName":value["mangledTypeName"],"mangledTypeNameByBundleIdentifier":{}, - "systemProtocolMetadata":[],"visibilityMetadata":visibility(), - })) + "visibilityMetadata":visibility(), + }); + if format == RegistrationFormat::Current { + result["systemProtocolMetadata"] = json!([]); + } + Ok(result) } -pub(super) fn entity(value: &Value) -> Result { +pub(super) fn entity(value: &Value, format: RegistrationFormat) -> Result { let title = literal( property(value, "typeDisplayRepresentation") .ok_or("AppEntity has no typeDisplayRepresentation")?, )?; let mut result = json!({ "assistantDefinedSchemas":[],"availabilityAnnotations":availability(),"displayTypeName":localized(&title), - "effectiveBundleIdentifiers":[],"entitySyncMetadata":{"entitySyncType":0}, + "effectiveBundleIdentifiers":[], "fullyQualifiedTypeName":value["typeName"],"mangledTypeName":value["mangledTypeName"], "mangledTypeNameByBundleIdentifier":{},"properties":[],"requiredCapabilities":[], "systemProtocolMetadata":[],"systemProtocolMetadataV2":[],"transient":false, - "typeName":identifier(value),"typeSpecificMetadata":[],"visibilityMetadata":visibility(), + "typeName":identifier(value),"visibilityMetadata":visibility(), }); + if format == RegistrationFormat::Current { + result["entitySyncMetadata"] = json!({"entitySyncType":0}); + result["typeSpecificMetadata"] = json!([]); + } if let Some(query) = alias(value, "DefaultQuery") { result["defaultQueryIdentifier"] = json!(query); } diff --git a/sweetpad-cli/src/cli/appintents/mod.rs b/sweetpad-cli/src/cli/appintents/mod.rs index fdd233f7..cac47d30 100644 --- a/sweetpad-cli/src/cli/appintents/mod.rs +++ b/sweetpad-cli/src/cli/appintents/mod.rs @@ -163,7 +163,7 @@ fn run(args: &Args) -> Result<(), String> { } } let types: Vec = types.into_values().collect(); - let metadata = metadata::extract(&types)?; + let metadata = metadata::extract(&types, &args.version)?; for path in &args.strings { if let Some(value) = metadata::strings_data(&types, &metadata) { write_json(path, &value)?; diff --git a/sweetpad-lib/ci/bundle_comparison.py b/sweetpad-lib/ci/bundle_comparison.py index 2ffa2ba3..1c11b88f 100644 --- a/sweetpad-lib/ci/bundle_comparison.py +++ b/sweetpad-lib/ci/bundle_comparison.py @@ -44,14 +44,21 @@ def normalize_plist(value): return value -def normalize_registration(value): +def normalize_registration(value, *, root=True): if isinstance(value, dict): - result = {k: normalize_registration(v) for k, v in value.items() if k != "generator"} + result = {k: normalize_registration(v, root=False) for k, v in value.items()} + if root and isinstance(result.get("generator"), dict): + result["generator"] = {k: v for k, v in result["generator"].items() if k not in {"name", "version"}} if "resolvableInputTypes" in result: result["resolvableInputTypes"].sort(key=lambda v: json.dumps(v, sort_keys=True)) + metadata = result.get("typeSpecificMetadata") + if isinstance(metadata, list) and len(metadata) % 2 == 0: + # Xcode serializes its dictionary as alternating keys and values in hash order. + pairs = sorted(zip(metadata[::2], metadata[1::2]), key=lambda pair: json.dumps(pair[0], sort_keys=True)) + result["typeSpecificMetadata"] = [item for pair in pairs for item in pair] return result if isinstance(value, list): - return [normalize_registration(v) for v in value] + return [normalize_registration(v, root=False) for v in value] return value diff --git a/sweetpad-lib/ci/test_linux_project_checks.py b/sweetpad-lib/ci/test_linux_project_checks.py index 4bb327a5..1d54916e 100644 --- a/sweetpad-lib/ci/test_linux_project_checks.py +++ b/sweetpad-lib/ci/test_linux_project_checks.py @@ -62,6 +62,24 @@ def test_failed_export_keeps_previous_product(self): class ComparisonTests(unittest.TestCase): + def test_registration_compares_input_options_by_key(self): + with tempfile.TemporaryDirectory() as tmp: + native, linux = self.bundles(Path(tmp), {"CFBundleIdentifier": "example"}) + off, on = {"int": {"wrapper": 0}}, {"int": {"wrapper": 1}} + quotes, dashes = "LNValueTypeMetadataKeyStringSmartQuotes", "LNValueTypeMetadataKeyStringSmartDashes" + + def write_options(bundle, pairs): + metadata = bundle / "Metadata.appintents" + metadata.mkdir(exist_ok=True) + action = {"parameters": [{"name": "text", "typeSpecificMetadata": pairs}]} + (metadata / "extract.actionsdata").write_text(json.dumps({"actions": {"Input": action}})) + + write_options(native, [quotes, on, dashes, off]) + write_options(linux, [dashes, off, quotes, on]) + self.assertTrue(checks.compare(native, linux)["passed"]) + write_options(linux, [dashes, on, quotes, off]) + self.assertIn("appIntents", {f["kind"] for f in checks.compare(native, linux)["findings"]}) + def shortcut_models(self, native, linux): source = checks.REPO / "sweetpad-cli/fixtures/appintents/DataApp.nlu" data = source.read_bytes()