@commandable/mcp 0.0.1 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -4
- package/dist/cli/index.d.ts.map +1 -1
- package/dist/cli/index.js +82 -5
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +74 -51
- package/dist/cli/setup.js.map +1 -1
- package/dist/config/configApply.d.ts +16 -0
- package/dist/config/configApply.d.ts.map +1 -0
- package/dist/config/configApply.js +74 -0
- package/dist/config/configApply.js.map +1 -0
- package/dist/config/configLoader.d.ts +9 -0
- package/dist/config/configLoader.d.ts.map +1 -0
- package/dist/config/configLoader.js +75 -0
- package/dist/config/configLoader.js.map +1 -0
- package/dist/config/configSchema.d.ts +29 -0
- package/dist/config/configSchema.d.ts.map +1 -0
- package/dist/config/configSchema.js +17 -0
- package/dist/config/configSchema.js.map +1 -0
- package/dist/db/client.d.ts.map +1 -1
- package/dist/db/client.js +8 -1
- package/dist/db/client.js.map +1 -1
- package/dist/db/integrationStore.d.ts.map +1 -1
- package/dist/db/integrationStore.js +3 -0
- package/dist/db/integrationStore.js.map +1 -1
- package/dist/db/migrate.d.ts.map +1 -1
- package/dist/db/migrate.js +2 -0
- package/dist/db/migrate.js.map +1 -1
- package/dist/db/schema.d.ts +36 -0
- package/dist/db/schema.d.ts.map +1 -1
- package/dist/db/schema.js +2 -0
- package/dist/db/schema.js.map +1 -1
- package/dist/index.d.ts +5 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +5 -1
- package/dist/index.js.map +1 -1
- package/dist/integrations/actionsFactory.js +1 -1
- package/dist/integrations/actionsFactory.js.map +1 -1
- package/dist/integrations/catalog.d.ts +3 -4
- package/dist/integrations/catalog.d.ts.map +1 -1
- package/dist/integrations/catalog.js +2 -37
- package/dist/integrations/catalog.js.map +1 -1
- package/dist/integrations/dataLoader.d.ts +2 -46
- package/dist/integrations/dataLoader.d.ts.map +1 -1
- package/dist/integrations/dataLoader.js +1 -125
- package/dist/integrations/dataLoader.js.map +1 -1
- package/dist/integrations/providerRegistry.d.ts.map +1 -1
- package/dist/integrations/providerRegistry.js +10 -6
- package/dist/integrations/providerRegistry.js.map +1 -1
- package/dist/integrations/proxy.d.ts.map +1 -1
- package/dist/integrations/proxy.js +24 -27
- package/dist/integrations/proxy.js.map +1 -1
- package/dist/mcp/auth.d.ts +18 -0
- package/dist/mcp/auth.d.ts.map +1 -0
- package/dist/mcp/auth.js +45 -0
- package/dist/mcp/auth.js.map +1 -0
- package/dist/mcp/handlers.d.ts +12 -0
- package/dist/mcp/handlers.d.ts.map +1 -0
- package/dist/mcp/handlers.js +39 -0
- package/dist/mcp/handlers.js.map +1 -0
- package/dist/mcp/server.d.ts.map +1 -1
- package/dist/mcp/server.js +2 -38
- package/dist/mcp/server.js.map +1 -1
- package/dist/types.d.ts +1 -7
- package/dist/types.d.ts.map +1 -1
- package/package.json +10 -7
- package/integration-data/README.md +0 -52
- package/integration-data/airtable/credentials.json +0 -20
- package/integration-data/airtable/credentials_hint.md +0 -4
- package/integration-data/airtable/handlers/create_record.js +0 -12
- package/integration-data/airtable/handlers/delete_record.js +0 -7
- package/integration-data/airtable/handlers/get_record.js +0 -4
- package/integration-data/airtable/handlers/get_table_schema.js +0 -6
- package/integration-data/airtable/handlers/list_bases.js +0 -4
- package/integration-data/airtable/handlers/list_records.js +0 -25
- package/integration-data/airtable/handlers/list_table_fields.js +0 -6
- package/integration-data/airtable/handlers/list_tables.js +0 -4
- package/integration-data/airtable/handlers/list_views.js +0 -6
- package/integration-data/airtable/handlers/search_records.js +0 -6
- package/integration-data/airtable/handlers/update_record.js +0 -11
- package/integration-data/airtable/manifest.json +0 -83
- package/integration-data/airtable/schemas/create_record.json +0 -12
- package/integration-data/airtable/schemas/delete_record.json +0 -11
- package/integration-data/airtable/schemas/empty.json +0 -6
- package/integration-data/airtable/schemas/get_record.json +0 -11
- package/integration-data/airtable/schemas/id_base.json +0 -9
- package/integration-data/airtable/schemas/id_base_table.json +0 -10
- package/integration-data/airtable/schemas/list_records.json +0 -26
- package/integration-data/airtable/schemas/search_records.json +0 -12
- package/integration-data/airtable/schemas/update_record.json +0 -13
- package/integration-data/github/credentials.json +0 -20
- package/integration-data/github/credentials_hint.md +0 -7
- package/integration-data/github/handlers/add_labels_to_issue.js +0 -12
- package/integration-data/github/handlers/close_issue.js +0 -5
- package/integration-data/github/handlers/comment_on_issue.js +0 -5
- package/integration-data/github/handlers/create_branch.js +0 -33
- package/integration-data/github/handlers/create_commit.js +0 -91
- package/integration-data/github/handlers/create_issue.js +0 -10
- package/integration-data/github/handlers/create_or_update_file.js +0 -21
- package/integration-data/github/handlers/create_pull_request.js +0 -16
- package/integration-data/github/handlers/create_repo.js +0 -11
- package/integration-data/github/handlers/delete_repo.js +0 -6
- package/integration-data/github/handlers/get_issue.js +0 -4
- package/integration-data/github/handlers/get_repo.js +0 -4
- package/integration-data/github/handlers/list_branches.js +0 -4
- package/integration-data/github/handlers/list_commits.js +0 -12
- package/integration-data/github/handlers/list_issues.js +0 -12
- package/integration-data/github/handlers/list_pull_requests.js +0 -8
- package/integration-data/github/handlers/list_repos_install.js +0 -4
- package/integration-data/github/handlers/list_repos_user.js +0 -4
- package/integration-data/github/handlers/merge_pull_request.js +0 -14
- package/integration-data/github/handlers/update_issue.js +0 -15
- package/integration-data/github/manifest.json +0 -26
- package/integration-data/github/schemas/add_labels_to_issue.json +0 -12
- package/integration-data/github/schemas/close_issue.json +0 -10
- package/integration-data/github/schemas/comment_on_issue.json +0 -11
- package/integration-data/github/schemas/create_branch.json +0 -12
- package/integration-data/github/schemas/create_commit.json +0 -25
- package/integration-data/github/schemas/create_issue.json +0 -13
- package/integration-data/github/schemas/create_or_update_file.json +0 -15
- package/integration-data/github/schemas/create_pull_request.json +0 -15
- package/integration-data/github/schemas/create_repo.json +0 -12
- package/integration-data/github/schemas/delete_repo.json +0 -10
- package/integration-data/github/schemas/empty.json +0 -5
- package/integration-data/github/schemas/get_issue.json +0 -10
- package/integration-data/github/schemas/get_repo.json +0 -9
- package/integration-data/github/schemas/list_commits.json +0 -12
- package/integration-data/github/schemas/list_issues.json +0 -12
- package/integration-data/github/schemas/list_pull_requests.json +0 -10
- package/integration-data/github/schemas/merge_pull_request.json +0 -14
- package/integration-data/github/schemas/owner_repo.json +0 -9
- package/integration-data/github/schemas/update_issue.json +0 -15
- package/integration-data/google-calendar/credentials.json +0 -36
- package/integration-data/google-calendar/credentials_hint.md +0 -9
- package/integration-data/google-calendar/handlers/create_event.js +0 -6
- package/integration-data/google-calendar/handlers/delete_acl.js +0 -6
- package/integration-data/google-calendar/handlers/delete_event.js +0 -7
- package/integration-data/google-calendar/handlers/freebusy_query.js +0 -4
- package/integration-data/google-calendar/handlers/get_acl.js +0 -5
- package/integration-data/google-calendar/handlers/get_calendar.js +0 -4
- package/integration-data/google-calendar/handlers/get_event.js +0 -5
- package/integration-data/google-calendar/handlers/insert_acl.js +0 -6
- package/integration-data/google-calendar/handlers/list_acl.js +0 -5
- package/integration-data/google-calendar/handlers/list_calendars.js +0 -4
- package/integration-data/google-calendar/handlers/list_colors.js +0 -4
- package/integration-data/google-calendar/handlers/list_events.js +0 -21
- package/integration-data/google-calendar/handlers/list_settings.js +0 -4
- package/integration-data/google-calendar/handlers/move_event.js +0 -6
- package/integration-data/google-calendar/handlers/patch_event.js +0 -5
- package/integration-data/google-calendar/handlers/quick_add.js +0 -6
- package/integration-data/google-calendar/handlers/update_acl.js +0 -7
- package/integration-data/google-calendar/handlers/update_event.js +0 -5
- package/integration-data/google-calendar/manifest.json +0 -26
- package/integration-data/google-calendar/schemas/create_event.json +0 -34
- package/integration-data/google-calendar/schemas/delete_acl.json +0 -9
- package/integration-data/google-calendar/schemas/empty.json +0 -1
- package/integration-data/google-calendar/schemas/freebusy_query.json +0 -13
- package/integration-data/google-calendar/schemas/get_acl.json +0 -9
- package/integration-data/google-calendar/schemas/id_calendar.json +0 -8
- package/integration-data/google-calendar/schemas/id_calendar_event.json +0 -9
- package/integration-data/google-calendar/schemas/insert_acl.json +0 -18
- package/integration-data/google-calendar/schemas/list_events.json +0 -15
- package/integration-data/google-calendar/schemas/move_event.json +0 -10
- package/integration-data/google-calendar/schemas/patch_event.json +0 -10
- package/integration-data/google-calendar/schemas/quick_add.json +0 -9
- package/integration-data/google-calendar/schemas/update_acl.json +0 -10
- package/integration-data/google-calendar/schemas/update_event.json +0 -10
- package/integration-data/google-docs/credentials.json +0 -36
- package/integration-data/google-docs/credentials_hint.md +0 -9
- package/integration-data/google-docs/handlers/append_text.js +0 -12
- package/integration-data/google-docs/handlers/batch_update.js +0 -13
- package/integration-data/google-docs/handlers/create_document.js +0 -9
- package/integration-data/google-docs/handlers/delete_first_match.js +0 -50
- package/integration-data/google-docs/handlers/get_document.js +0 -12
- package/integration-data/google-docs/handlers/get_document_structured.js +0 -6
- package/integration-data/google-docs/handlers/get_document_text.js +0 -17
- package/integration-data/google-docs/handlers/insert_inline_image_after_first_match.js +0 -41
- package/integration-data/google-docs/handlers/insert_page_break_after_first_match.js +0 -49
- package/integration-data/google-docs/handlers/insert_table_after_first_match.js +0 -49
- package/integration-data/google-docs/handlers/insert_text_after_first_match.js +0 -51
- package/integration-data/google-docs/handlers/replace_all_text.js +0 -8
- package/integration-data/google-docs/handlers/style_first_match.js +0 -42
- package/integration-data/google-docs/handlers/update_document_style.js +0 -8
- package/integration-data/google-docs/handlers/update_paragraph_style_for_first_match.js +0 -48
- package/integration-data/google-docs/manifest.json +0 -58
- package/integration-data/google-docs/schemas/append_text.json +0 -10
- package/integration-data/google-docs/schemas/apply_text_style.json +0 -13
- package/integration-data/google-docs/schemas/batch_update.json +0 -16
- package/integration-data/google-docs/schemas/create_document.json +0 -8
- package/integration-data/google-docs/schemas/delete_content_range.json +0 -11
- package/integration-data/google-docs/schemas/delete_first_match.json +0 -10
- package/integration-data/google-docs/schemas/get_document.json +0 -11
- package/integration-data/google-docs/schemas/get_document_structured.json +0 -9
- package/integration-data/google-docs/schemas/get_document_text.json +0 -9
- package/integration-data/google-docs/schemas/insert_inline_image.json +0 -12
- package/integration-data/google-docs/schemas/insert_inline_image_after_first_match.json +0 -13
- package/integration-data/google-docs/schemas/insert_page_break.json +0 -10
- package/integration-data/google-docs/schemas/insert_page_break_after_first_match.json +0 -11
- package/integration-data/google-docs/schemas/insert_table.json +0 -12
- package/integration-data/google-docs/schemas/insert_table_after_first_match.json +0 -13
- package/integration-data/google-docs/schemas/insert_text_after_first_match.json +0 -12
- package/integration-data/google-docs/schemas/insert_text_at.json +0 -11
- package/integration-data/google-docs/schemas/replace_all_text.json +0 -12
- package/integration-data/google-docs/schemas/style_first_match.json +0 -12
- package/integration-data/google-docs/schemas/update_document_style.json +0 -11
- package/integration-data/google-docs/schemas/update_paragraph_style.json +0 -13
- package/integration-data/google-docs/schemas/update_paragraph_style_for_first_match.json +0 -12
- package/integration-data/google-sheet/credentials.json +0 -36
- package/integration-data/google-sheet/credentials_hint.md +0 -9
- package/integration-data/google-sheet/handlers/append_values.js +0 -18
- package/integration-data/google-sheet/handlers/batch_clear_values.js +0 -6
- package/integration-data/google-sheet/handlers/batch_clear_values_by_data_filter.js +0 -6
- package/integration-data/google-sheet/handlers/batch_get_values.js +0 -16
- package/integration-data/google-sheet/handlers/batch_update.js +0 -14
- package/integration-data/google-sheet/handlers/batch_update_values.js +0 -16
- package/integration-data/google-sheet/handlers/batch_update_values_by_data_filter.js +0 -16
- package/integration-data/google-sheet/handlers/clear_values.js +0 -6
- package/integration-data/google-sheet/handlers/copy_to_spreadsheet.js +0 -6
- package/integration-data/google-sheet/handlers/create_spreadsheet.js +0 -5
- package/integration-data/google-sheet/handlers/get_developer_metadata.js +0 -6
- package/integration-data/google-sheet/handlers/get_spreadsheet.js +0 -12
- package/integration-data/google-sheet/handlers/get_spreadsheet_by_data_filter.js +0 -10
- package/integration-data/google-sheet/handlers/get_values.js +0 -14
- package/integration-data/google-sheet/handlers/get_values_by_data_filter.js +0 -14
- package/integration-data/google-sheet/handlers/search_developer_metadata.js +0 -7
- package/integration-data/google-sheet/handlers/update_values.js +0 -16
- package/integration-data/google-sheet/manifest.json +0 -125
- package/integration-data/google-sheet/schemas/append_values.json +0 -16
- package/integration-data/google-sheet/schemas/batch_clear_values.json +0 -10
- package/integration-data/google-sheet/schemas/batch_clear_values_by_data_filter.json +0 -10
- package/integration-data/google-sheet/schemas/batch_get_values.json +0 -13
- package/integration-data/google-sheet/schemas/batch_update.json +0 -13
- package/integration-data/google-sheet/schemas/batch_update_values.json +0 -25
- package/integration-data/google-sheet/schemas/batch_update_values_by_data_filter.json +0 -25
- package/integration-data/google-sheet/schemas/clear_values.json +0 -10
- package/integration-data/google-sheet/schemas/copy_to_spreadsheet.json +0 -11
- package/integration-data/google-sheet/schemas/create_spreadsheet.json +0 -11
- package/integration-data/google-sheet/schemas/get_developer_metadata.json +0 -10
- package/integration-data/google-sheet/schemas/get_spreadsheet.json +0 -15
- package/integration-data/google-sheet/schemas/get_spreadsheet_by_data_filter.json +0 -11
- package/integration-data/google-sheet/schemas/get_values.json +0 -13
- package/integration-data/google-sheet/schemas/get_values_by_data_filter.json +0 -17
- package/integration-data/google-sheet/schemas/search_developer_metadata.json +0 -14
- package/integration-data/google-sheet/schemas/update_values.json +0 -15
- package/integration-data/google-slides/credentials.json +0 -36
- package/integration-data/google-slides/credentials_hint.md +0 -9
- package/integration-data/google-slides/handlers/append_text_to_title_of_first_slide.js +0 -17
- package/integration-data/google-slides/handlers/batch_update.js +0 -15
- package/integration-data/google-slides/handlers/create_presentation.js +0 -8
- package/integration-data/google-slides/handlers/create_slide_after_first_match.js +0 -20
- package/integration-data/google-slides/handlers/get_page_thumbnail.js +0 -12
- package/integration-data/google-slides/handlers/get_presentation.js +0 -6
- package/integration-data/google-slides/handlers/insert_image_after_first_match.js +0 -19
- package/integration-data/google-slides/handlers/insert_shape_after_first_match.js +0 -21
- package/integration-data/google-slides/handlers/replace_text_first_match.js +0 -9
- package/integration-data/google-slides/handlers/set_background_color_for_slide_index.js +0 -15
- package/integration-data/google-slides/handlers/style_text_first_match.js +0 -48
- package/integration-data/google-slides/manifest.json +0 -41
- package/integration-data/google-slides/schemas/append_text_to_title_of_first_slide.json +0 -11
- package/integration-data/google-slides/schemas/batch_update.json +0 -13
- package/integration-data/google-slides/schemas/create_presentation.json +0 -8
- package/integration-data/google-slides/schemas/create_slide_after_first_match.json +0 -11
- package/integration-data/google-slides/schemas/get_page_thumbnail.json +0 -12
- package/integration-data/google-slides/schemas/get_presentation.json +0 -9
- package/integration-data/google-slides/schemas/insert_image_after_first_match.json +0 -13
- package/integration-data/google-slides/schemas/insert_shape_after_first_match.json +0 -13
- package/integration-data/google-slides/schemas/replace_text_first_match.json +0 -12
- package/integration-data/google-slides/schemas/set_background_color_for_slide_index.json +0 -11
- package/integration-data/google-slides/schemas/style_text_first_match.json +0 -12
- package/integration-data/new_integration_prompt.md +0 -41
- package/integration-data/notion/credentials.json +0 -21
- package/integration-data/notion/credentials_hint.md +0 -5
- package/integration-data/notion/handlers/append_block_children.js +0 -7
- package/integration-data/notion/handlers/create_comment.js +0 -10
- package/integration-data/notion/handlers/create_database.js +0 -11
- package/integration-data/notion/handlers/create_page.js +0 -13
- package/integration-data/notion/handlers/delete_block.js +0 -8
- package/integration-data/notion/handlers/get_me.js +0 -4
- package/integration-data/notion/handlers/list_block_children.js +0 -10
- package/integration-data/notion/handlers/list_comments.js +0 -14
- package/integration-data/notion/handlers/list_users.js +0 -10
- package/integration-data/notion/handlers/query_database.js +0 -10
- package/integration-data/notion/handlers/retrieve_block.js +0 -4
- package/integration-data/notion/handlers/retrieve_database.js +0 -4
- package/integration-data/notion/handlers/retrieve_page.js +0 -4
- package/integration-data/notion/handlers/retrieve_page_property_item.js +0 -10
- package/integration-data/notion/handlers/retrieve_user.js +0 -4
- package/integration-data/notion/handlers/search.js +0 -11
- package/integration-data/notion/handlers/update_block.js +0 -7
- package/integration-data/notion/handlers/update_database.js +0 -10
- package/integration-data/notion/handlers/update_page_properties.js +0 -10
- package/integration-data/notion/manifest.json +0 -139
- package/integration-data/notion/prompt.md +0 -26
- package/integration-data/notion/schemas/append_block_children.json +0 -10
- package/integration-data/notion/schemas/create_comment.json +0 -18
- package/integration-data/notion/schemas/create_database.json +0 -18
- package/integration-data/notion/schemas/create_page.json +0 -22
- package/integration-data/notion/schemas/delete_block.json +0 -9
- package/integration-data/notion/schemas/empty.json +0 -6
- package/integration-data/notion/schemas/id_block.json +0 -9
- package/integration-data/notion/schemas/id_database.json +0 -9
- package/integration-data/notion/schemas/id_page.json +0 -9
- package/integration-data/notion/schemas/id_user.json +0 -9
- package/integration-data/notion/schemas/list_block_children.json +0 -11
- package/integration-data/notion/schemas/list_comments.json +0 -15
- package/integration-data/notion/schemas/list_users.json +0 -9
- package/integration-data/notion/schemas/query_database.json +0 -13
- package/integration-data/notion/schemas/retrieve_page_property_item.json +0 -12
- package/integration-data/notion/schemas/search.json +0 -27
- package/integration-data/notion/schemas/update_block.json +0 -10
- package/integration-data/notion/schemas/update_database.json +0 -13
- package/integration-data/notion/schemas/update_page_properties.json +0 -13
- package/integration-data/trello/credentials.json +0 -26
- package/integration-data/trello/credentials_hint.md +0 -4
- package/integration-data/trello/handlers/add_checklist_to_card.js +0 -5
- package/integration-data/trello/handlers/add_member_to_card.js +0 -5
- package/integration-data/trello/handlers/archive_list.js +0 -5
- package/integration-data/trello/handlers/create_card.js +0 -13
- package/integration-data/trello/handlers/create_list.js +0 -7
- package/integration-data/trello/handlers/delete_card.js +0 -9
- package/integration-data/trello/handlers/get_board.js +0 -4
- package/integration-data/trello/handlers/get_board_cards.js +0 -4
- package/integration-data/trello/handlers/get_board_custom_fields.js +0 -4
- package/integration-data/trello/handlers/get_board_labels.js +0 -4
- package/integration-data/trello/handlers/get_board_lists.js +0 -4
- package/integration-data/trello/handlers/get_board_members.js +0 -4
- package/integration-data/trello/handlers/get_board_memberships.js +0 -4
- package/integration-data/trello/handlers/get_card.js +0 -4
- package/integration-data/trello/handlers/get_card_actions.js +0 -4
- package/integration-data/trello/handlers/get_card_attachments.js +0 -4
- package/integration-data/trello/handlers/get_card_checklists.js +0 -4
- package/integration-data/trello/handlers/get_card_custom_field_items.js +0 -4
- package/integration-data/trello/handlers/get_card_members.js +0 -4
- package/integration-data/trello/handlers/get_list.js +0 -4
- package/integration-data/trello/handlers/get_list_cards.js +0 -4
- package/integration-data/trello/handlers/get_member.js +0 -4
- package/integration-data/trello/handlers/get_member_boards.js +0 -4
- package/integration-data/trello/handlers/get_member_organizations.js +0 -4
- package/integration-data/trello/handlers/get_organization.js +0 -4
- package/integration-data/trello/handlers/get_organization_boards.js +0 -4
- package/integration-data/trello/handlers/move_card_to_list.js +0 -5
- package/integration-data/trello/handlers/remove_member_from_card.js +0 -9
- package/integration-data/trello/handlers/search.js +0 -5
- package/integration-data/trello/handlers/update_card.js +0 -19
- package/integration-data/trello/handlers/update_list.js +0 -11
- package/integration-data/trello/manifest.json +0 -231
- package/integration-data/trello/schemas/add_checklist_to_card.json +0 -10
- package/integration-data/trello/schemas/add_member_to_card.json +0 -10
- package/integration-data/trello/schemas/archive_list.json +0 -9
- package/integration-data/trello/schemas/create_card.json +0 -13
- package/integration-data/trello/schemas/create_list.json +0 -11
- package/integration-data/trello/schemas/delete_card.json +0 -9
- package/integration-data/trello/schemas/display_trello_cards.json +0 -45
- package/integration-data/trello/schemas/empty.json +0 -5
- package/integration-data/trello/schemas/get_member.json +0 -5
- package/integration-data/trello/schemas/id_board.json +0 -8
- package/integration-data/trello/schemas/id_card.json +0 -8
- package/integration-data/trello/schemas/id_list.json +0 -8
- package/integration-data/trello/schemas/id_org.json +0 -8
- package/integration-data/trello/schemas/move_card_to_list.json +0 -10
- package/integration-data/trello/schemas/remove_member_from_card.json +0 -10
- package/integration-data/trello/schemas/search.json +0 -8
- package/integration-data/trello/schemas/update_card.json +0 -16
- package/integration-data/trello/schemas/update_list.json +0 -12
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
Integration Data
|
|
2
|
-
================
|
|
3
|
-
|
|
4
|
-
Purpose
|
|
5
|
-
-------
|
|
6
|
-
|
|
7
|
-
This directory contains per-integration metadata and tool templates to inject standard read/write capabilities into tasks.
|
|
8
|
-
|
|
9
|
-
Structure
|
|
10
|
-
---------
|
|
11
|
-
|
|
12
|
-
Each integration lives under its own folder, e.g. `lib/integration-data/trello/`, with:
|
|
13
|
-
|
|
14
|
-
- `manifest.json`: declarative index of tools and files
|
|
15
|
-
- `schemas/*.json`: JSON Schemas for tool inputs
|
|
16
|
-
- `handlers/*.js`: JavaScript handlers executed in the sandbox; use `integration.fetch()`
|
|
17
|
-
- `prompt.md` (optional): extra prompt notes shown to the LLM
|
|
18
|
-
- `openapi.json` (optional): reference spec; not used at runtime
|
|
19
|
-
|
|
20
|
-
Manifest format
|
|
21
|
-
---------------
|
|
22
|
-
|
|
23
|
-
```
|
|
24
|
-
{
|
|
25
|
-
"name": string,
|
|
26
|
-
"version": string,
|
|
27
|
-
"baseUrl"?: string,
|
|
28
|
-
"tools": {
|
|
29
|
-
"read": [ToolRef],
|
|
30
|
-
"write": [ToolRef]
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
ToolRef := {
|
|
35
|
-
"name": string,
|
|
36
|
-
"description": string,
|
|
37
|
-
"inputSchema": string, // path to JSON schema file
|
|
38
|
-
"handler": string // path to JS handler file
|
|
39
|
-
}
|
|
40
|
-
```
|
|
41
|
-
|
|
42
|
-
Handler pattern
|
|
43
|
-
---------------
|
|
44
|
-
|
|
45
|
-
Handlers use the `integration.fetch(path, options?)` pattern rather than binding to a concrete integration id. At runtime, the host binds the task's selected integration instance as `integration` in the sandbox.
|
|
46
|
-
|
|
47
|
-
Notes
|
|
48
|
-
-----
|
|
49
|
-
|
|
50
|
-
- Keep schemas strict and aligned with handler expectations.
|
|
51
|
-
- Read tools MUST be side-effect free (GET only). Write tools include POST/PUT/DELETE.
|
|
52
|
-
- Prefer small, composable tools that mirror API resources.
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"token": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"title": "Personal Access Token",
|
|
8
|
-
"description": "Airtable personal access token."
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"required": ["token"],
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
},
|
|
14
|
-
"injection": {
|
|
15
|
-
"headers": {
|
|
16
|
-
"Authorization": "Bearer {{token}}"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const path = `/${input.baseId}/${input.tableId}`
|
|
3
|
-
const body = {
|
|
4
|
-
records: [
|
|
5
|
-
{ fields: input.fields },
|
|
6
|
-
],
|
|
7
|
-
typecast: !!input.typecast,
|
|
8
|
-
}
|
|
9
|
-
const res = await integration.fetch(path, { method: 'POST', body })
|
|
10
|
-
const data = await res.json()
|
|
11
|
-
return data
|
|
12
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const path = `/${input.baseId}/${input.tableId}`
|
|
3
|
-
const params = new URLSearchParams()
|
|
4
|
-
params.set('records[]', input.recordId)
|
|
5
|
-
const res = await integration.fetch(`${path}?${params.toString()}`, { method: 'DELETE' })
|
|
6
|
-
return await res.json()
|
|
7
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const params = new URLSearchParams()
|
|
3
|
-
if (input.view)
|
|
4
|
-
params.set('view', input.view)
|
|
5
|
-
if (input.maxRecords)
|
|
6
|
-
params.set('maxRecords', String(input.maxRecords))
|
|
7
|
-
if (input.pageSize)
|
|
8
|
-
params.set('pageSize', String(input.pageSize))
|
|
9
|
-
if (input.filterByFormula)
|
|
10
|
-
params.set('filterByFormula', input.filterByFormula)
|
|
11
|
-
if (input.sort && Array.isArray(input.sort)) {
|
|
12
|
-
input.sort.forEach((s, i) => {
|
|
13
|
-
if (s && typeof s === 'object') {
|
|
14
|
-
if (s.field)
|
|
15
|
-
params.set(`sort[${i}][field]`, String(s.field))
|
|
16
|
-
if (s.direction)
|
|
17
|
-
params.set(`sort[${i}][direction]`, String(s.direction))
|
|
18
|
-
}
|
|
19
|
-
})
|
|
20
|
-
}
|
|
21
|
-
const qs = params.toString()
|
|
22
|
-
const path = `/${input.baseId}/${input.tableId}${qs ? `?${qs}` : ''}`
|
|
23
|
-
const res = await integration.fetch(path)
|
|
24
|
-
return await res.json()
|
|
25
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const path = `/${input.baseId}/${input.tableId}`
|
|
3
|
-
const body = {
|
|
4
|
-
records: [
|
|
5
|
-
{ id: input.recordId, fields: input.fields },
|
|
6
|
-
],
|
|
7
|
-
typecast: !!input.typecast,
|
|
8
|
-
}
|
|
9
|
-
const res = await integration.fetch(path, { method: 'PATCH', body })
|
|
10
|
-
return await res.json()
|
|
11
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "airtable",
|
|
3
|
-
"version": "0.1.0",
|
|
4
|
-
"tools": [
|
|
5
|
-
{
|
|
6
|
-
"name": "list_bases",
|
|
7
|
-
"description": "List bases available to the authenticated user.",
|
|
8
|
-
"inputSchema": "schemas/empty.json",
|
|
9
|
-
"handler": "handlers/list_bases.js",
|
|
10
|
-
"scope": "read"
|
|
11
|
-
},
|
|
12
|
-
{
|
|
13
|
-
"name": "list_tables",
|
|
14
|
-
"description": "List tables in a base (metadata).",
|
|
15
|
-
"inputSchema": "schemas/id_base.json",
|
|
16
|
-
"handler": "handlers/list_tables.js",
|
|
17
|
-
"scope": "read"
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"name": "get_table_schema",
|
|
21
|
-
"description": "Fetch a table's schema (fields, views) by tableId via metadata.",
|
|
22
|
-
"inputSchema": "schemas/id_base_table.json",
|
|
23
|
-
"handler": "handlers/get_table_schema.js",
|
|
24
|
-
"scope": "read"
|
|
25
|
-
},
|
|
26
|
-
{
|
|
27
|
-
"name": "list_table_fields",
|
|
28
|
-
"description": "List fields for a table (metadata).",
|
|
29
|
-
"inputSchema": "schemas/id_base_table.json",
|
|
30
|
-
"handler": "handlers/list_table_fields.js",
|
|
31
|
-
"scope": "read"
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"name": "list_views",
|
|
35
|
-
"description": "List views for a table (metadata).",
|
|
36
|
-
"inputSchema": "schemas/id_base_table.json",
|
|
37
|
-
"handler": "handlers/list_views.js",
|
|
38
|
-
"scope": "read"
|
|
39
|
-
},
|
|
40
|
-
{
|
|
41
|
-
"name": "list_records",
|
|
42
|
-
"description": "List records from a table with optional filters.",
|
|
43
|
-
"inputSchema": "schemas/list_records.json",
|
|
44
|
-
"handler": "handlers/list_records.js",
|
|
45
|
-
"scope": "read"
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
"name": "get_record",
|
|
49
|
-
"description": "Fetch a single record by recordId.",
|
|
50
|
-
"inputSchema": "schemas/get_record.json",
|
|
51
|
-
"handler": "handlers/get_record.js",
|
|
52
|
-
"scope": "read"
|
|
53
|
-
},
|
|
54
|
-
{
|
|
55
|
-
"name": "search_records",
|
|
56
|
-
"description": "Search records in a table using a field and value (filterByFormula).",
|
|
57
|
-
"inputSchema": "schemas/search_records.json",
|
|
58
|
-
"handler": "handlers/search_records.js",
|
|
59
|
-
"scope": "read"
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"name": "create_record",
|
|
63
|
-
"description": "Create a record in a table.",
|
|
64
|
-
"inputSchema": "schemas/create_record.json",
|
|
65
|
-
"handler": "handlers/create_record.js",
|
|
66
|
-
"scope": "write"
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
"name": "update_record",
|
|
70
|
-
"description": "Update a record in a table.",
|
|
71
|
-
"inputSchema": "schemas/update_record.json",
|
|
72
|
-
"handler": "handlers/update_record.js",
|
|
73
|
-
"scope": "write"
|
|
74
|
-
},
|
|
75
|
-
{
|
|
76
|
-
"name": "delete_record",
|
|
77
|
-
"description": "Delete a record from a table.",
|
|
78
|
-
"inputSchema": "schemas/delete_record.json",
|
|
79
|
-
"handler": "handlers/delete_record.js",
|
|
80
|
-
"scope": "write"
|
|
81
|
-
}
|
|
82
|
-
]
|
|
83
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"baseId": { "type": "string", "description": "Airtable base ID" },
|
|
6
|
-
"tableId": { "type": "string", "description": "Airtable table ID or name" },
|
|
7
|
-
"fields": { "type": "object", "description": "Field values for the new record" },
|
|
8
|
-
"typecast": { "type": "boolean", "description": "Coerce values to field types" }
|
|
9
|
-
},
|
|
10
|
-
"required": ["baseId", "tableId", "fields"],
|
|
11
|
-
"additionalProperties": false
|
|
12
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"baseId": { "type": "string" },
|
|
6
|
-
"tableId": { "type": "string" },
|
|
7
|
-
"recordId": { "type": "string" }
|
|
8
|
-
},
|
|
9
|
-
"required": ["baseId", "tableId", "recordId"],
|
|
10
|
-
"additionalProperties": false
|
|
11
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["baseId", "tableId", "recordId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"baseId": { "type": "string" },
|
|
7
|
-
"tableId": { "type": "string" },
|
|
8
|
-
"recordId": { "type": "string" }
|
|
9
|
-
},
|
|
10
|
-
"additionalProperties": false
|
|
11
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["baseId", "tableId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"baseId": { "type": "string", "description": "Airtable base ID" },
|
|
7
|
-
"tableId": { "type": "string", "description": "Airtable table ID (tbl...)" }
|
|
8
|
-
},
|
|
9
|
-
"additionalProperties": false
|
|
10
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["baseId", "tableId"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"baseId": { "type": "string" },
|
|
7
|
-
"tableId": { "type": "string" },
|
|
8
|
-
"view": { "type": "string", "description": "Optional view name or ID" },
|
|
9
|
-
"maxRecords": { "type": "integer", "minimum": 1 },
|
|
10
|
-
"pageSize": { "type": "integer", "minimum": 1 },
|
|
11
|
-
"filterByFormula": { "type": "string" },
|
|
12
|
-
"sort": {
|
|
13
|
-
"type": "array",
|
|
14
|
-
"items": {
|
|
15
|
-
"type": "object",
|
|
16
|
-
"required": ["field"],
|
|
17
|
-
"properties": {
|
|
18
|
-
"field": { "type": "string" },
|
|
19
|
-
"direction": { "type": "string", "enum": ["asc", "desc"] }
|
|
20
|
-
},
|
|
21
|
-
"additionalProperties": false
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"additionalProperties": false
|
|
26
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"required": ["baseId", "tableId", "field", "value"],
|
|
5
|
-
"properties": {
|
|
6
|
-
"baseId": { "type": "string" },
|
|
7
|
-
"tableId": { "type": "string" },
|
|
8
|
-
"field": { "type": "string", "description": "Field name to match" },
|
|
9
|
-
"value": { "type": "string", "description": "Value to search for" }
|
|
10
|
-
},
|
|
11
|
-
"additionalProperties": false
|
|
12
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"baseId": { "type": "string" },
|
|
6
|
-
"tableId": { "type": "string" },
|
|
7
|
-
"recordId": { "type": "string" },
|
|
8
|
-
"fields": { "type": "object" },
|
|
9
|
-
"typecast": { "type": "boolean" }
|
|
10
|
-
},
|
|
11
|
-
"required": ["baseId", "tableId", "recordId", "fields"],
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"schema": {
|
|
3
|
-
"type": "object",
|
|
4
|
-
"properties": {
|
|
5
|
-
"token": {
|
|
6
|
-
"type": "string",
|
|
7
|
-
"title": "Personal Access Token",
|
|
8
|
-
"description": "GitHub personal access token (classic or fine-grained) with appropriate scopes."
|
|
9
|
-
}
|
|
10
|
-
},
|
|
11
|
-
"required": ["token"],
|
|
12
|
-
"additionalProperties": false
|
|
13
|
-
},
|
|
14
|
-
"injection": {
|
|
15
|
-
"headers": {
|
|
16
|
-
"Authorization": "Bearer {{token}}"
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
Create a GitHub personal access token and paste it here.
|
|
2
|
-
|
|
3
|
-
- Fine-grained PAT: Settings → Developer settings → Personal access tokens → Fine-grained tokens
|
|
4
|
-
- Classic PAT: Settings → Developer settings → Personal access tokens → Tokens (classic)
|
|
5
|
-
|
|
6
|
-
Minimum scopes depend on the tools you use (repo read/write, issues, pull requests, etc.).
|
|
7
|
-
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
// First, get the SHA of the branch to create from
|
|
3
|
-
let fromRef = input.from_branch || 'main'
|
|
4
|
-
|
|
5
|
-
// Try to get the ref, fallback to master if main doesn't exist
|
|
6
|
-
let refRes
|
|
7
|
-
try {
|
|
8
|
-
refRes = await integration.fetch(`/repos/${input.owner}/${input.repo}/git/refs/heads/${fromRef}`)
|
|
9
|
-
} catch (e) {
|
|
10
|
-
if (fromRef === 'main') {
|
|
11
|
-
fromRef = 'master'
|
|
12
|
-
refRes = await integration.fetch(`/repos/${input.owner}/${input.repo}/git/refs/heads/${fromRef}`)
|
|
13
|
-
} else {
|
|
14
|
-
throw e
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
const refData = await refRes.json()
|
|
19
|
-
const sha = refData.object.sha
|
|
20
|
-
|
|
21
|
-
// Create the new branch
|
|
22
|
-
const body = {
|
|
23
|
-
ref: `refs/heads/${input.branch}`,
|
|
24
|
-
sha: sha,
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
const res = await integration.fetch(`/repos/${input.owner}/${input.repo}/git/refs`, {
|
|
28
|
-
method: 'POST',
|
|
29
|
-
body
|
|
30
|
-
})
|
|
31
|
-
return await res.json()
|
|
32
|
-
}
|
|
33
|
-
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const { owner, repo, branch, message, files } = input
|
|
3
|
-
|
|
4
|
-
// 1. Get the current commit SHA for the branch
|
|
5
|
-
const refRes = await integration.fetch(`/repos/${owner}/${repo}/git/refs/heads/${branch}`)
|
|
6
|
-
const refData = await refRes.json()
|
|
7
|
-
const currentCommitSha = refData.object.sha
|
|
8
|
-
|
|
9
|
-
// 2. Get the current commit to get its tree
|
|
10
|
-
const commitRes = await integration.fetch(`/repos/${owner}/${repo}/git/commits/${currentCommitSha}`)
|
|
11
|
-
const commitData = await commitRes.json()
|
|
12
|
-
const currentTreeSha = commitData.tree.sha
|
|
13
|
-
|
|
14
|
-
// 3. Create blobs for each file with content
|
|
15
|
-
const tree = []
|
|
16
|
-
for (const file of files) {
|
|
17
|
-
if (file.content !== undefined && file.content !== null) {
|
|
18
|
-
// Create a blob for this file
|
|
19
|
-
const contentBase64 = typeof Buffer !== 'undefined'
|
|
20
|
-
? Buffer.from(file.content).toString('base64')
|
|
21
|
-
: btoa(unescape(encodeURIComponent(file.content)))
|
|
22
|
-
|
|
23
|
-
const blobRes = await integration.fetch(`/repos/${owner}/${repo}/git/blobs`, {
|
|
24
|
-
method: 'POST',
|
|
25
|
-
body: {
|
|
26
|
-
content: contentBase64,
|
|
27
|
-
encoding: 'base64',
|
|
28
|
-
},
|
|
29
|
-
})
|
|
30
|
-
const blobData = await blobRes.json()
|
|
31
|
-
|
|
32
|
-
tree.push({
|
|
33
|
-
path: file.path,
|
|
34
|
-
mode: file.mode || '100644',
|
|
35
|
-
type: 'blob',
|
|
36
|
-
sha: blobData.sha,
|
|
37
|
-
})
|
|
38
|
-
} else {
|
|
39
|
-
// File deletion (null sha means delete)
|
|
40
|
-
tree.push({
|
|
41
|
-
path: file.path,
|
|
42
|
-
mode: '100644',
|
|
43
|
-
type: 'blob',
|
|
44
|
-
sha: null,
|
|
45
|
-
})
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
// 4. Create a new tree
|
|
50
|
-
const treeRes = await integration.fetch(`/repos/${owner}/${repo}/git/trees`, {
|
|
51
|
-
method: 'POST',
|
|
52
|
-
body: {
|
|
53
|
-
base_tree: currentTreeSha,
|
|
54
|
-
tree: tree,
|
|
55
|
-
},
|
|
56
|
-
})
|
|
57
|
-
const treeData = await treeRes.json()
|
|
58
|
-
|
|
59
|
-
// 5. Create the commit
|
|
60
|
-
const newCommitRes = await integration.fetch(`/repos/${owner}/${repo}/git/commits`, {
|
|
61
|
-
method: 'POST',
|
|
62
|
-
body: {
|
|
63
|
-
message: message,
|
|
64
|
-
tree: treeData.sha,
|
|
65
|
-
parents: [currentCommitSha],
|
|
66
|
-
},
|
|
67
|
-
})
|
|
68
|
-
const newCommitData = await newCommitRes.json()
|
|
69
|
-
|
|
70
|
-
// 6. Update the branch reference
|
|
71
|
-
const updateRefRes = await integration.fetch(`/repos/${owner}/${repo}/git/refs/heads/${branch}`, {
|
|
72
|
-
method: 'PATCH',
|
|
73
|
-
body: {
|
|
74
|
-
sha: newCommitData.sha,
|
|
75
|
-
},
|
|
76
|
-
})
|
|
77
|
-
await updateRefRes.json()
|
|
78
|
-
|
|
79
|
-
return {
|
|
80
|
-
commit: {
|
|
81
|
-
sha: newCommitData.sha,
|
|
82
|
-
url: newCommitData.html_url,
|
|
83
|
-
message: newCommitData.message,
|
|
84
|
-
},
|
|
85
|
-
tree: {
|
|
86
|
-
sha: treeData.sha,
|
|
87
|
-
},
|
|
88
|
-
files: files.map(f => ({ path: f.path })),
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const body = {
|
|
3
|
-
title: input.title,
|
|
4
|
-
body: input.body,
|
|
5
|
-
assignees: input.assignees,
|
|
6
|
-
labels: input.labels,
|
|
7
|
-
}
|
|
8
|
-
const res = await integration.fetch(`/repos/${input.owner}/${input.repo}/issues`, { method: 'POST', body })
|
|
9
|
-
return await res.json()
|
|
10
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
// GitHub API expects content to be base64 encoded
|
|
3
|
-
// Use btoa with proper UTF-8 encoding for browser/Node.js compatibility
|
|
4
|
-
const contentBase64 = typeof Buffer !== 'undefined'
|
|
5
|
-
? Buffer.from(input.content).toString('base64')
|
|
6
|
-
: btoa(unescape(encodeURIComponent(input.content)))
|
|
7
|
-
|
|
8
|
-
const body = {
|
|
9
|
-
message: input.message,
|
|
10
|
-
content: contentBase64,
|
|
11
|
-
branch: input.branch,
|
|
12
|
-
sha: input.sha,
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
const res = await integration.fetch(`/repos/${input.owner}/${input.repo}/contents/${input.path}`, {
|
|
16
|
-
method: 'PUT',
|
|
17
|
-
body
|
|
18
|
-
})
|
|
19
|
-
return await res.json()
|
|
20
|
-
}
|
|
21
|
-
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const body = {
|
|
3
|
-
title: input.title,
|
|
4
|
-
body: input.body,
|
|
5
|
-
head: input.head,
|
|
6
|
-
base: input.base,
|
|
7
|
-
draft: input.draft,
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
const res = await integration.fetch(`/repos/${input.owner}/${input.repo}/pulls`, {
|
|
11
|
-
method: 'POST',
|
|
12
|
-
body
|
|
13
|
-
})
|
|
14
|
-
return await res.json()
|
|
15
|
-
}
|
|
16
|
-
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
async (input) => {
|
|
2
|
-
const body = {
|
|
3
|
-
name: input.name,
|
|
4
|
-
description: input.description,
|
|
5
|
-
private: input.private,
|
|
6
|
-
auto_init: input.auto_init,
|
|
7
|
-
}
|
|
8
|
-
const res = await integration.fetch('/user/repos', { method: 'POST', body })
|
|
9
|
-
return await res.json()
|
|
10
|
-
}
|
|
11
|
-
|