@salesforce/afv-skills 1.13.0 → 1.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/skills/applying-slds/SKILL.md +322 -0
- package/skills/applying-slds/checklists.md +83 -0
- package/skills/applying-slds/examples.md +283 -0
- package/skills/applying-slds/guidance/README.md +83 -0
- package/skills/applying-slds/guidance/blueprints-index.md +213 -0
- package/skills/applying-slds/guidance/icons-guidance.md +186 -0
- package/skills/applying-slds/guidance/overviews/borders.md +236 -0
- package/skills/applying-slds/guidance/overviews/color.md +266 -0
- package/skills/applying-slds/guidance/overviews/display-density.md +366 -0
- package/skills/applying-slds/guidance/overviews/icons.md +240 -0
- package/skills/applying-slds/guidance/overviews/illustrations.md +235 -0
- package/skills/applying-slds/guidance/overviews/shadows.md +176 -0
- package/skills/applying-slds/guidance/overviews/spacing.md +216 -0
- package/skills/applying-slds/guidance/overviews/typography.md +323 -0
- package/skills/applying-slds/guidance/overviews/utilities.md +542 -0
- package/skills/applying-slds/guidance/slds-development-guide.md +288 -0
- package/skills/applying-slds/guidance/styling-hooks/borders.md +202 -0
- package/skills/applying-slds/guidance/styling-hooks/color/expressive-palette-hooks.md +153 -0
- package/skills/applying-slds/guidance/styling-hooks/color/index.md +171 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/accent-hooks.md +204 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/feedback-hooks.md +768 -0
- package/skills/applying-slds/guidance/styling-hooks/color/semantic/surface-hooks.md +337 -0
- package/skills/applying-slds/guidance/styling-hooks/color/system-hooks.md +132 -0
- package/skills/applying-slds/guidance/styling-hooks/index.md +327 -0
- package/skills/applying-slds/guidance/styling-hooks/shadows.md +238 -0
- package/skills/applying-slds/guidance/styling-hooks/spacing.md +254 -0
- package/skills/applying-slds/guidance/styling-hooks/typography.md +448 -0
- package/skills/applying-slds/guidance/utilities/alignment.md +119 -0
- package/skills/applying-slds/guidance/utilities/borders.md +131 -0
- package/skills/applying-slds/guidance/utilities/box.md +125 -0
- package/skills/applying-slds/guidance/utilities/color.md +165 -0
- package/skills/applying-slds/guidance/utilities/dark-mode.md +111 -0
- package/skills/applying-slds/guidance/utilities/description-list.md +168 -0
- package/skills/applying-slds/guidance/utilities/floats.md +117 -0
- package/skills/applying-slds/guidance/utilities/grid.md +264 -0
- package/skills/applying-slds/guidance/utilities/horizontal-list.md +110 -0
- package/skills/applying-slds/guidance/utilities/hyphenation.md +84 -0
- package/skills/applying-slds/guidance/utilities/index.md +205 -0
- package/skills/applying-slds/guidance/utilities/interactions.md +89 -0
- package/skills/applying-slds/guidance/utilities/layout.md +109 -0
- package/skills/applying-slds/guidance/utilities/line-clamp.md +131 -0
- package/skills/applying-slds/guidance/utilities/margin.md +155 -0
- package/skills/applying-slds/guidance/utilities/media-object.md +161 -0
- package/skills/applying-slds/guidance/utilities/name-value-list.md +152 -0
- package/skills/applying-slds/guidance/utilities/padding.md +155 -0
- package/skills/applying-slds/guidance/utilities/position.md +177 -0
- package/skills/applying-slds/guidance/utilities/print.md +114 -0
- package/skills/applying-slds/guidance/utilities/scrollable.md +126 -0
- package/skills/applying-slds/guidance/utilities/sizing.md +190 -0
- package/skills/applying-slds/guidance/utilities/themes.md +121 -0
- package/skills/applying-slds/guidance/utilities/truncate.md +127 -0
- package/skills/applying-slds/guidance/utilities/typography.md +166 -0
- package/skills/applying-slds/guidance/utilities/vertical-list.md +166 -0
- package/skills/applying-slds/guidance/utilities/visibility.md +228 -0
- package/skills/applying-slds/metadata/README.md +84 -0
- package/skills/applying-slds/metadata/blueprints/components/accordion.yaml +304 -0
- package/skills/applying-slds/metadata/blueprints/components/activity-timeline.yaml +92 -0
- package/skills/applying-slds/metadata/blueprints/components/alert.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/app-launcher.yaml +94 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar-group.yaml +81 -0
- package/skills/applying-slds/metadata/blueprints/components/avatar.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/badges.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/brand-band.yaml +198 -0
- package/skills/applying-slds/metadata/blueprints/components/breadcrumbs.yaml +95 -0
- package/skills/applying-slds/metadata/blueprints/components/builder-header.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/button-groups.yaml +82 -0
- package/skills/applying-slds/metadata/blueprints/components/button-icons.yaml +295 -0
- package/skills/applying-slds/metadata/blueprints/components/buttons.yaml +230 -0
- package/skills/applying-slds/metadata/blueprints/components/cards.yaml +124 -0
- package/skills/applying-slds/metadata/blueprints/components/carousel.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/chat.yaml +179 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button-group.yaml +192 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-button.yaml +204 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox-toggle.yaml +177 -0
- package/skills/applying-slds/metadata/blueprints/components/checkbox.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/color-picker.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/combobox.yaml +136 -0
- package/skills/applying-slds/metadata/blueprints/components/counter.yaml +147 -0
- package/skills/applying-slds/metadata/blueprints/components/data-tables.yaml +157 -0
- package/skills/applying-slds/metadata/blueprints/components/datepickers.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/datetime-picker.yaml +155 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-composer.yaml +201 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-form-footer.yaml +161 -0
- package/skills/applying-slds/metadata/blueprints/components/docked-utility-bar.yaml +175 -0
- package/skills/applying-slds/metadata/blueprints/components/drop-zone.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/dueling-picklist.yaml +196 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-icons.yaml +128 -0
- package/skills/applying-slds/metadata/blueprints/components/dynamic-menu.yaml +141 -0
- package/skills/applying-slds/metadata/blueprints/components/expandable-section.yaml +115 -0
- package/skills/applying-slds/metadata/blueprints/components/expression.yaml +143 -0
- package/skills/applying-slds/metadata/blueprints/components/feeds.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/file-selector.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/files.yaml +119 -0
- package/skills/applying-slds/metadata/blueprints/components/form-element.yaml +145 -0
- package/skills/applying-slds/metadata/blueprints/components/global-header.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/global-navigation.yaml +100 -0
- package/skills/applying-slds/metadata/blueprints/components/icons.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/illustration.yaml +205 -0
- package/skills/applying-slds/metadata/blueprints/components/input.yaml +151 -0
- package/skills/applying-slds/metadata/blueprints/components/list-builder.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/lookups.yaml +132 -0
- package/skills/applying-slds/metadata/blueprints/components/map.yaml +118 -0
- package/skills/applying-slds/metadata/blueprints/components/menus.yaml +134 -0
- package/skills/applying-slds/metadata/blueprints/components/modals.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/notifications.yaml +88 -0
- package/skills/applying-slds/metadata/blueprints/components/page-headers.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/panels.yaml +149 -0
- package/skills/applying-slds/metadata/blueprints/components/path.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/picklist.yaml +125 -0
- package/skills/applying-slds/metadata/blueprints/components/pills.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/popovers.yaml +120 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-bar.yaml +110 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-indicator.yaml +133 -0
- package/skills/applying-slds/metadata/blueprints/components/progress-ring.yaml +102 -0
- package/skills/applying-slds/metadata/blueprints/components/prompt.yaml +126 -0
- package/skills/applying-slds/metadata/blueprints/components/publishers.yaml +178 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-button-group.yaml +172 -0
- package/skills/applying-slds/metadata/blueprints/components/radio-group.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/rich-text-editor.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-notifications.yaml +188 -0
- package/skills/applying-slds/metadata/blueprints/components/scoped-tabs.yaml +97 -0
- package/skills/applying-slds/metadata/blueprints/components/select.yaml +127 -0
- package/skills/applying-slds/metadata/blueprints/components/setup-assistant.yaml +152 -0
- package/skills/applying-slds/metadata/blueprints/components/slider.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/spinners.yaml +135 -0
- package/skills/applying-slds/metadata/blueprints/components/split-view.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/summary-detail.yaml +103 -0
- package/skills/applying-slds/metadata/blueprints/components/tabs.yaml +138 -0
- package/skills/applying-slds/metadata/blueprints/components/textarea.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/tiles.yaml +108 -0
- package/skills/applying-slds/metadata/blueprints/components/timepicker.yaml +111 -0
- package/skills/applying-slds/metadata/blueprints/components/toast.yaml +154 -0
- package/skills/applying-slds/metadata/blueprints/components/tooltips.yaml +107 -0
- package/skills/applying-slds/metadata/blueprints/components/tree-grid.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trees.yaml +116 -0
- package/skills/applying-slds/metadata/blueprints/components/trial-bar.yaml +112 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-navigation.yaml +130 -0
- package/skills/applying-slds/metadata/blueprints/components/vertical-tabs.yaml +140 -0
- package/skills/applying-slds/metadata/blueprints/components/visual-picker.yaml +150 -0
- package/skills/applying-slds/metadata/blueprints/components/welcome-mat.yaml +136 -0
- package/skills/applying-slds/metadata/hooks-index.json +6272 -0
- package/skills/applying-slds/metadata/icon-metadata.json +38466 -0
- package/skills/applying-slds/metadata/utilities-index.json +21912 -0
- package/skills/applying-slds/references/component-selection.md +112 -0
- package/skills/applying-slds/references/icons-decision-guide.md +124 -0
- package/skills/applying-slds/references/styling-decision-guide.md +228 -0
- package/skills/applying-slds/references/utilities-quick-ref.md +125 -0
- package/skills/applying-slds/scripts/search-blueprints.cjs +117 -0
- package/skills/applying-slds/scripts/search-hooks.cjs +139 -0
- package/skills/applying-slds/scripts/search-icons.cjs +174 -0
- package/skills/applying-slds/scripts/search-utilities.cjs +161 -0
- package/skills/building-ui-bundle-app/SKILL.md +33 -8
- package/skills/generating-custom-application/SKILL.md +1 -1
- package/skills/generating-custom-lightning-type/SKILL.md +17 -39
- package/skills/generating-custom-lightning-type/assets/primitive-types-and-constraints.md +41 -0
- package/skills/generating-custom-lightning-type/references/widget-rendition.md +124 -0
- package/skills/generating-ui-bundle-custom-app/SKILL.md +93 -0
- package/skills/generating-ui-bundle-custom-app/docs/configure-metadata-custom-application.md +70 -0
- package/skills/generating-ui-bundle-metadata/SKILL.md +39 -1
- package/skills/investigating-agentforce-architecture/README.md +156 -0
- package/skills/investigating-agentforce-architecture/SKILL.md +230 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_sobject.yaml +16 -0
- package/skills/investigating-agentforce-architecture/assets/cli/describe_tooling_sobject.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/list_metadata_genaiprompttemplate.yaml +17 -0
- package/skills/investigating-agentforce-architecture/assets/cli/org_display.yaml +15 -0
- package/skills/investigating-agentforce-architecture/assets/cli/retrieve_genai_plugin.yaml +18 -0
- package/skills/investigating-agentforce-architecture/assets/cli/show_access_token.yaml +27 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/action_tree.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/data_flow.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/dependency_graph.mmd +19 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/invocation_sequence.mmd +20 -0
- package/skills/investigating-agentforce-architecture/assets/mermaid/planner_state.mmd +18 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/apex_class_bodies_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_definition_details.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/bot_version_lookup.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_by_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_ids_by_names.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_definition_view_by_durable_ids.soql +4 -0
- package/skills/investigating-agentforce-architecture/assets/soql/flow_metadata_by_id.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/functions_by_plugins.soql +5 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_attrs_by_parent_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_bundle_functions.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/planner_definition_by_agent_chain.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_functions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugin_instructions_by_plugin_ids.soql +3 -0
- package/skills/investigating-agentforce-architecture/assets/soql/plugins_by_planner.soql +4 -0
- package/skills/investigating-agentforce-architecture/references/architecture_sections.md +243 -0
- package/skills/investigating-agentforce-architecture/references/contract.json +244 -0
- package/skills/investigating-agentforce-architecture/references/soql_fields.md +512 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/__init__.py +1 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/fs_guard.py +329 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/paths.py +110 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-architecture/scripts/_shared/sql.py +10 -0
- package/skills/investigating-agentforce-architecture/scripts/cache_check.py +234 -0
- package/skills/investigating-agentforce-architecture/scripts/config.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/fetch_soql.py +689 -0
- package/skills/investigating-agentforce-architecture/scripts/finalize.py +295 -0
- package/skills/investigating-agentforce-architecture/scripts/main.py +2835 -0
- package/skills/investigating-agentforce-architecture/scripts/metadata_listing.py +265 -0
- package/skills/investigating-agentforce-architecture/scripts/parallel_retrieve.py +69 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_bundle.py +215 -0
- package/skills/investigating-agentforce-architecture/scripts/parse_wave.py +845 -0
- package/skills/investigating-agentforce-architecture/scripts/probe_channels.py +302 -0
- package/skills/investigating-agentforce-architecture/scripts/render_architecture.py +1043 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_bot.py +255 -0
- package/skills/investigating-agentforce-architecture/scripts/resolve_invocation_target.py +130 -0
- package/skills/investigating-agentforce-architecture/scripts/rest_client.py +763 -0
- package/skills/investigating-agentforce-architecture/scripts/retrieve_planner.py +13 -0
- package/skills/investigating-agentforce-architecture/scripts/sf_cli.py +242 -0
- package/skills/investigating-agentforce-architecture/scripts/soql_loader.py +253 -0
- package/skills/investigating-agentforce-architecture/scripts/summarize_tree.py +143 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/_bootstrap.py +23 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/fixtures/genai_payloads.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check.py +307 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_cache_check_main.py +283 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_config.py +115 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_end_to_end_fixture.py +651 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_finalize.py +278 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_flow_children_inflation.py +582 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_fs_guard.py +113 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_iterative_wave_b.py +478 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_main_pipeline.py +3359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parallel_retrieve.py +131 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_bundle.py +400 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave.py +644 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_classifiers.py +224 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_helpers.py +380 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_parse_wave_main.py +397 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_per_branch_visited.py +244 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_channels.py +359 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_probe_cli_recipes.py +185 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_render_architecture.py +810 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_bot.py +203 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_creds.py +157 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_resolve_invocation_target.py +145 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_rest_client.py +1253 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_runtime_override.py +100 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_sf_cli.py +261 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_signature_stamping.py +466 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_soql_loader.py +501 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_summarize_tree.py +241 -0
- package/skills/investigating-agentforce-architecture/scripts/tests/test_write_emit_ctx.py +480 -0
- package/skills/investigating-agentforce-architecture/tools/emit_env.py +157 -0
- package/skills/investigating-agentforce-architecture/tools/emit_result.py +262 -0
- package/skills/investigating-agentforce-architecture/tools/sanitize.py +33 -0
- package/skills/investigating-agentforce-architecture/tools/write_emit_ctx.py +332 -0
- package/skills/investigating-agentforce-d360/README.md +123 -0
- package/skills/investigating-agentforce-d360/SKILL.md +163 -0
- package/skills/investigating-agentforce-d360/assets/dc/app_generation.sql +51 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_category.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/content_quality.sql +41 -0
- package/skills/investigating-agentforce-d360/assets/dc/discover_sessions.sql +36 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback.sql +47 -0
- package/skills/investigating-agentforce-d360/assets/dc/feedback_details.sql +38 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_records.sql +45 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_llm.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_metadata.sql +44 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_request_tags.sql +42 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_requests.sql +89 -0
- package/skills/investigating-agentforce-d360/assets/dc/gateway_responses.sql +43 -0
- package/skills/investigating-agentforce-d360/assets/dc/generations.sql +52 -0
- package/skills/investigating-agentforce-d360/assets/dc/interactions.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messages.sql +53 -0
- package/skills/investigating-agentforce-d360/assets/dc/messaging_session.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/moment_interactions.sql +34 -0
- package/skills/investigating-agentforce-d360/assets/dc/moments.sql +39 -0
- package/skills/investigating-agentforce-d360/assets/dc/participants.sql +48 -0
- package/skills/investigating-agentforce-d360/assets/dc/sessions.sql +78 -0
- package/skills/investigating-agentforce-d360/assets/dc/steps.sql +64 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_associations.sql +46 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definition_associations.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/tag_definitions.sql +50 -0
- package/skills/investigating-agentforce-d360/assets/dc/tags.sql +37 -0
- package/skills/investigating-agentforce-d360/assets/dc/telemetry_spans.sql +55 -0
- package/skills/investigating-agentforce-d360/references/artifacts.md +50 -0
- package/skills/investigating-agentforce-d360/references/dc_dmo_fields.md +823 -0
- package/skills/investigating-agentforce-d360/references/dc_pipeline_contract.md +608 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/__init__.py +2 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/cli_override.py +98 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/fs_guard.py +334 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/paths.py +155 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/runtime.py +59 -0
- package/skills/investigating-agentforce-d360/scripts/_shared/sql.py +14 -0
- package/skills/investigating-agentforce-d360/scripts/assemble_dc.py +1624 -0
- package/skills/investigating-agentforce-d360/scripts/config.py +45 -0
- package/skills/investigating-agentforce-d360/scripts/dc.py +188 -0
- package/skills/investigating-agentforce-d360/scripts/discover_sessions.py +556 -0
- package/skills/investigating-agentforce-d360/scripts/fetch_dc.py +1045 -0
- package/skills/investigating-agentforce-d360/scripts/render_dc.py +1750 -0
- package/skills/investigating-agentforce-d360/scripts/resolve_session.py +264 -0
- package/skills/investigating-agentforce-d360/scripts/storage.py +92 -0
- package/skills/investigating-agentforce-d360/scripts/tests/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/_bootstrap.py +15 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/__init__.py +0 -0
- package/skills/investigating-agentforce-d360/scripts/tests/fixtures/synthetic_session.py +424 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_bootstrap_and_mode.py +115 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_gateway_direct_integration.py +158 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_helpers.py +287 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_assemble_dc_integration.py +247 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_dc_and_resolve_session.py +433 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions.py +458 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_discover_sessions_grep_ci.py +193 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_helpers.py +266 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_identity.py +528 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_main.py +251 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall.py +229 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_fetch_dc_waterfall_full.py +283 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_identity_coherence.py +327 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_branches.py +256 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_gateway_direct.py +130 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_helpers.py +291 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_integration.py +220 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_planner_llm_calls.py +284 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_render_dc_show_prompts_gating.py +215 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_from_disk.py +100 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_resolve_session_main.py +149 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_runtime_override.py +104 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape.py +95 -0
- package/skills/investigating-agentforce-d360/scripts/tests/test_session_shape_dropped_by_stdm.py +85 -0
- package/skills/managing-managed-event-subscription/SKILL.md +152 -0
- package/skills/managing-managed-event-subscription/assets/managed-event-subscription-template.xml +20 -0
- package/skills/managing-managed-event-subscription/references/delete-guide.md +57 -0
- package/skills/managing-managed-event-subscription/references/topic-name-formats.md +26 -0
- package/skills/managing-managed-event-subscription/references/update-constraints.md +30 -0
- package/skills/reviewing-lwc-mobile-offline/SKILL.md +168 -0
- package/skills/reviewing-lwc-mobile-offline/references/grounding.md +7 -0
- package/skills/reviewing-lwc-mobile-offline/references/inline-graphql.md +43 -0
- package/skills/reviewing-lwc-mobile-offline/references/komaci-eslint.md +125 -0
- package/skills/reviewing-lwc-mobile-offline/references/lwc-if.md +78 -0
- package/skills/reviewing-lwc-mobile-offline/scripts/komaci.config.mjs +18 -0
- package/skills/reviewing-lwc-mobile-offline/scripts/package.json +10 -0
- package/skills/reviewing-lwc-mobile-offline/scripts/run-komaci.sh +69 -0
- package/skills/uplifting-components-to-slds2/SKILL.md +3 -2
- package/skills/uplifting-components-to-slds2/references/color-hooks-decision-guide.md +30 -9
- package/skills/uplifting-components-to-slds2/references/examples.md +24 -6
- package/skills/using-mobile-native-capabilities/SKILL.md +182 -0
- package/skills/using-mobile-native-capabilities/references/app-review.md +68 -0
- package/skills/using-mobile-native-capabilities/references/ar-space-capture.md +125 -0
- package/skills/using-mobile-native-capabilities/references/barcode-scanner.md +219 -0
- package/skills/using-mobile-native-capabilities/references/base-capability.md +22 -0
- package/skills/using-mobile-native-capabilities/references/biometrics.md +90 -0
- package/skills/using-mobile-native-capabilities/references/calendar.md +213 -0
- package/skills/using-mobile-native-capabilities/references/contacts.md +232 -0
- package/skills/using-mobile-native-capabilities/references/document-scanner.md +342 -0
- package/skills/using-mobile-native-capabilities/references/geofencing.md +123 -0
- package/skills/using-mobile-native-capabilities/references/location.md +158 -0
- package/skills/using-mobile-native-capabilities/references/mobile-capabilities.md +30 -0
- package/skills/using-mobile-native-capabilities/references/nfc.md +181 -0
- package/skills/using-mobile-native-capabilities/references/payments.md +95 -0
- package/skills/validating-slds/SKILL.md +262 -0
- package/skills/validating-slds/references/quality-checks.md +308 -0
- package/skills/validating-slds/references/report-format.md +302 -0
- package/skills/validating-slds/scripts/analyze-quality.cjs +521 -0
|
@@ -0,0 +1,295 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Finalize: write DATA_DIR + CACHE_DIR atomically, build manifest.
|
|
3
|
+
|
|
4
|
+
Replaces old agent Phase 7. Steps:
|
|
5
|
+
1. Load $WORK_DIR/declared_action_tree.json.
|
|
6
|
+
2. Compute _partial = !(planner_ok && _pending_fetches empty); strip _visited.
|
|
7
|
+
3. Stage DATA_DIR at $DATA_DIR.tmp: copy tree as {api}_{ver}_metadata_tree.json.
|
|
8
|
+
4. rmtree final DATA_DIR; rename .tmp → DATA_DIR.
|
|
9
|
+
5. Stage CACHE_DIR at $CACHE_DIR.tmp: copy metadata/<wave> dirs + sidecars.
|
|
10
|
+
6. Write manifest.json.
|
|
11
|
+
7. rmtree final CACHE_DIR; rename .tmp → CACHE_DIR.
|
|
12
|
+
8. Seed .gitignore on data_root + cache_root parents.
|
|
13
|
+
9. Write $WORK_DIR/.built_at.txt (ISO-Z UTC).
|
|
14
|
+
|
|
15
|
+
the previously-emitted `{api}_{ver}_metadata_tree.summary.md` is
|
|
16
|
+
dropped from the output contract — it was a redundant summary of the tree
|
|
17
|
+
JSON. Consumers should read the JSON directly.
|
|
18
|
+
|
|
19
|
+
Usage:
|
|
20
|
+
python3 finalize.py
|
|
21
|
+
|
|
22
|
+
Inputs (env):
|
|
23
|
+
WORK_DIR required
|
|
24
|
+
CACHE_DIR required
|
|
25
|
+
DATA_DIR required
|
|
26
|
+
PLANNER_NAME optional — empty → tree marked partial
|
|
27
|
+
AGENT_API_NAME, AGENT_VERSION — used for filenames
|
|
28
|
+
|
|
29
|
+
Outputs:
|
|
30
|
+
$DATA_DIR/{api}_{ver}_metadata_tree.json
|
|
31
|
+
$DATA_DIR/last_built_at.txt
|
|
32
|
+
$CACHE_DIR/manifest.json + metadata/<wave>/... + parsed sidecars
|
|
33
|
+
$WORK_DIR/.built_at.txt
|
|
34
|
+
exit 0 success, 1 on any write failure → caller emits STATUS=WRITE_FAILED
|
|
35
|
+
"""
|
|
36
|
+
import datetime
|
|
37
|
+
import json
|
|
38
|
+
import os
|
|
39
|
+
import pathlib
|
|
40
|
+
import shutil
|
|
41
|
+
import sys
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
def sort_tree_in_place(root: dict) -> None:
|
|
45
|
+
"""Sort `root.children` and each TOPIC's children alphabetically.
|
|
46
|
+
|
|
47
|
+
Ordering rules (2026-05-05, schema 3.1):
|
|
48
|
+
- `BOT_DEFINITION.children`: TOPIC nodes first (by `api_name`
|
|
49
|
+
case-insensitive), then non-topic plannerActions (by kind, then
|
|
50
|
+
`api_name`). This preserves the "planner-level actions as a
|
|
51
|
+
distinct trailing group" convention for readers who scan the
|
|
52
|
+
rendered tree top-down.
|
|
53
|
+
- Each TOPIC's children: alphabetical by `api_name`
|
|
54
|
+
case-insensitive.
|
|
55
|
+
- FLOW children are NOT sorted — flow-actionCall / subflow order
|
|
56
|
+
is the flow author's execution sequence, not a set.
|
|
57
|
+
- GEN_AI_FUNCTION / APEX / PROMPT_TEMPLATE / STANDARD_ACTION leaves
|
|
58
|
+
don't have children that warrant sorting.
|
|
59
|
+
|
|
60
|
+
Applied as a final pass after tree assembly and before the
|
|
61
|
+
authoritative JSON write, so ordering is pinned at the single
|
|
62
|
+
source of truth — the renderer doesn't re-sort.
|
|
63
|
+
"""
|
|
64
|
+
if not isinstance(root, dict):
|
|
65
|
+
return
|
|
66
|
+
children = root.get("children") or []
|
|
67
|
+
if not children:
|
|
68
|
+
return
|
|
69
|
+
|
|
70
|
+
def _root_sort_key(node: dict) -> tuple:
|
|
71
|
+
kind = node.get("kind") or ""
|
|
72
|
+
api = (node.get("api_name") or "").casefold()
|
|
73
|
+
# TOPIC first (tier 0), everything else second (tier 1). Within
|
|
74
|
+
# each tier, stable by kind + api_name case-insensitive.
|
|
75
|
+
tier = 0 if kind == "TOPIC" else 1
|
|
76
|
+
return (tier, kind, api)
|
|
77
|
+
|
|
78
|
+
root["children"] = sorted(children, key=_root_sort_key)
|
|
79
|
+
|
|
80
|
+
for child in root["children"]:
|
|
81
|
+
if child.get("kind") == "TOPIC":
|
|
82
|
+
child_children = child.get("children") or []
|
|
83
|
+
child["children"] = sorted(
|
|
84
|
+
child_children,
|
|
85
|
+
key=lambda n: (n.get("api_name") or "").casefold(),
|
|
86
|
+
)
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
def main() -> int:
|
|
90
|
+
try:
|
|
91
|
+
work_dir = pathlib.Path(os.environ["WORK_DIR"])
|
|
92
|
+
cache_dir = pathlib.Path(os.environ["CACHE_DIR"])
|
|
93
|
+
data_dir = pathlib.Path(os.environ["DATA_DIR"])
|
|
94
|
+
agent_api_name = os.environ["AGENT_API_NAME"]
|
|
95
|
+
agent_version = os.environ["AGENT_VERSION"]
|
|
96
|
+
except KeyError as e:
|
|
97
|
+
sys.stderr.write(f"finalize.py: missing env {e}\n")
|
|
98
|
+
return 1
|
|
99
|
+
|
|
100
|
+
planner_name = os.environ.get("PLANNER_NAME", "")
|
|
101
|
+
tree_path = work_dir / "declared_action_tree.json"
|
|
102
|
+
|
|
103
|
+
try:
|
|
104
|
+
tree = json.loads(tree_path.read_text())
|
|
105
|
+
except (OSError, json.JSONDecodeError) as e:
|
|
106
|
+
sys.stderr.write(f"finalize.py: cannot read {tree_path}: {e}\n")
|
|
107
|
+
return 1
|
|
108
|
+
|
|
109
|
+
# Compute _partial. _pending_fetches drains as wave-B BFS resolves
|
|
110
|
+
# refs; failures (HTTP 4xx, iteration-cap exhaustion, managed-flow
|
|
111
|
+
# filter mismatch) move OUT of _pending_fetches and into _unresolved.
|
|
112
|
+
# If we only check _pending_fetches we'd silently call a run with
|
|
113
|
+
# _unresolved entries "converged" — STATUS=OK with hidden failures.
|
|
114
|
+
# Both buckets must be empty for a clean run.
|
|
115
|
+
planner_ok = bool(planner_name)
|
|
116
|
+
pending_total = sum(len(v) for v in (tree.get("_pending_fetches") or {}).values())
|
|
117
|
+
unresolved_count = len(tree.get("_unresolved") or [])
|
|
118
|
+
waves_converged = pending_total == 0 and unresolved_count == 0
|
|
119
|
+
tree["_partial"] = not (planner_ok and waves_converged)
|
|
120
|
+
|
|
121
|
+
# Bug F fix: parse_wave + main set _partial_reason from
|
|
122
|
+
# _pending_fetches only (legacy predicate). When _pending is empty
|
|
123
|
+
# but _unresolved is non-empty, those writers set reason=None. The
|
|
124
|
+
# promotion above flips _partial=True from the unresolved bucket, so
|
|
125
|
+
# the reason needs a matching promotion or PARTIAL_REASON= ends up
|
|
126
|
+
# blank in the RESULT block.
|
|
127
|
+
if tree["_partial"] and not tree.get("_partial_reason"):
|
|
128
|
+
if not planner_ok:
|
|
129
|
+
tree["_partial_reason"] = "no-planner"
|
|
130
|
+
elif unresolved_count > 0:
|
|
131
|
+
tree["_partial_reason"] = "unresolved-refs"
|
|
132
|
+
else:
|
|
133
|
+
tree["_partial_reason"] = "pending-refs"
|
|
134
|
+
|
|
135
|
+
# Strip _visited (internal state — not part of the durable artifact)
|
|
136
|
+
tree.pop("_visited", None)
|
|
137
|
+
|
|
138
|
+
# Pin deterministic child ordering as the last assembly step before
|
|
139
|
+
# the authoritative write — see `sort_tree_in_place` docstring for
|
|
140
|
+
# the ordering rules. Downstream readers (render_architecture,
|
|
141
|
+
# summarize_tree, third-party tooling) therefore see a single
|
|
142
|
+
# canonical order from disk; they don't re-sort.
|
|
143
|
+
sort_tree_in_place(tree.get("root") or {})
|
|
144
|
+
|
|
145
|
+
# Rewrite the authoritative tree before copying it anywhere else
|
|
146
|
+
try:
|
|
147
|
+
tmp = tree_path.with_suffix(tree_path.suffix + ".tmp")
|
|
148
|
+
tmp.write_text(json.dumps(tree, indent=2))
|
|
149
|
+
os.replace(tmp, tree_path)
|
|
150
|
+
except OSError as e:
|
|
151
|
+
sys.stderr.write(f"finalize.py: cannot rewrite tree: {e}\n")
|
|
152
|
+
return 1
|
|
153
|
+
|
|
154
|
+
built_at = datetime.datetime.now(datetime.timezone.utc).isoformat().replace("+00:00", "Z")
|
|
155
|
+
a = tree.get("agent", {}) or {}
|
|
156
|
+
tree_base = f"{agent_api_name}_{agent_version}_metadata_tree"
|
|
157
|
+
|
|
158
|
+
# --- DATA_DIR staging ---
|
|
159
|
+
# summary.md dropped from the output contract; DATA_DIR now
|
|
160
|
+
# holds only the tree JSON + last_built_at.txt (+ whatever the caller
|
|
161
|
+
# writes alongside, e.g. architecture.md from render_architecture).
|
|
162
|
+
#
|
|
163
|
+
# The prior pattern was `rmtree(data_dir); data_tmp.rename(data_dir)` —
|
|
164
|
+
# destructive of any co-tenant content under `<agent>__<ver>/`. We
|
|
165
|
+
# now iterate staging's children and overwrite each one into data_dir
|
|
166
|
+
# individually, leaving unrelated siblings intact. See
|
|
167
|
+
# `main.py:_swap_dir_atomic` for the production path with the same
|
|
168
|
+
# invariant.
|
|
169
|
+
data_tmp = data_dir.with_suffix(".tmp")
|
|
170
|
+
try:
|
|
171
|
+
if data_tmp.exists():
|
|
172
|
+
shutil.rmtree(data_tmp)
|
|
173
|
+
data_tmp.mkdir(parents=True)
|
|
174
|
+
shutil.copy(tree_path, data_tmp / f"{tree_base}.json")
|
|
175
|
+
|
|
176
|
+
(data_tmp / "last_built_at.txt").write_text(built_at + "\n")
|
|
177
|
+
|
|
178
|
+
data_dir.mkdir(parents=True, exist_ok=True)
|
|
179
|
+
for staged in list(data_tmp.iterdir()):
|
|
180
|
+
target = data_dir / staged.name
|
|
181
|
+
if target.exists() or target.is_symlink():
|
|
182
|
+
if target.is_dir() and not target.is_symlink():
|
|
183
|
+
shutil.rmtree(target)
|
|
184
|
+
else:
|
|
185
|
+
target.unlink()
|
|
186
|
+
shutil.move(str(staged), str(target))
|
|
187
|
+
shutil.rmtree(data_tmp, ignore_errors=True)
|
|
188
|
+
except OSError as e:
|
|
189
|
+
sys.stderr.write(f"finalize.py: DATA_DIR write failed: {e}\n")
|
|
190
|
+
try:
|
|
191
|
+
if data_tmp.exists():
|
|
192
|
+
shutil.rmtree(data_tmp)
|
|
193
|
+
except OSError:
|
|
194
|
+
pass
|
|
195
|
+
return 1
|
|
196
|
+
|
|
197
|
+
# --- CACHE_DIR staging ---
|
|
198
|
+
cache_tmp = cache_dir.with_suffix(".tmp")
|
|
199
|
+
try:
|
|
200
|
+
if cache_tmp.exists():
|
|
201
|
+
shutil.rmtree(cache_tmp)
|
|
202
|
+
cache_tmp.mkdir(parents=True)
|
|
203
|
+
|
|
204
|
+
# Mirror sf_meta/<wave>/ into metadata/<wave>/ verbatim so cache has:
|
|
205
|
+
# retrieve.json (sf CLI output — critical for debugging silent
|
|
206
|
+
# retrieves that produced zero members)
|
|
207
|
+
# unpackaged/ (parsed XML tree)
|
|
208
|
+
# unpackaged.zip is intentionally skipped — it's byte-for-byte the
|
|
209
|
+
# same as unpackaged/ and doubles cache size on every run.
|
|
210
|
+
meta_dir = cache_tmp / "metadata"
|
|
211
|
+
meta_dir.mkdir()
|
|
212
|
+
sf_meta = work_dir / "sf_meta"
|
|
213
|
+
if sf_meta.exists():
|
|
214
|
+
for wave_dir in sorted(sf_meta.iterdir()):
|
|
215
|
+
if not wave_dir.is_dir():
|
|
216
|
+
continue
|
|
217
|
+
dst = meta_dir / wave_dir.name
|
|
218
|
+
dst.mkdir(parents=True, exist_ok=True)
|
|
219
|
+
for item in wave_dir.iterdir():
|
|
220
|
+
if item.name == "unpackaged.zip":
|
|
221
|
+
continue # redundant with unpackaged/
|
|
222
|
+
if item.is_dir():
|
|
223
|
+
shutil.copytree(item, dst / item.name, dirs_exist_ok=True)
|
|
224
|
+
else:
|
|
225
|
+
shutil.copy(item, dst / item.name)
|
|
226
|
+
|
|
227
|
+
# Copy every WORK_DIR top-level artifact except:
|
|
228
|
+
# - .emit_ctx.json (per-run shell state, irrelevant to cache)
|
|
229
|
+
# - .built_at.txt (recorded in manifest.built_at_utc)
|
|
230
|
+
# - sf_meta/ (handled above)
|
|
231
|
+
# This catches declared_action_tree.json, _bundle_parsed.json,
|
|
232
|
+
# _agent_generation.txt, _bot_definition.json, _bot_versions.json,
|
|
233
|
+
# and anything future scripts write as top-level sidecars.
|
|
234
|
+
SKIP_NAMES = {".emit_ctx.json", ".built_at.txt", "sf_meta"}
|
|
235
|
+
for item in work_dir.iterdir():
|
|
236
|
+
if item.name in SKIP_NAMES:
|
|
237
|
+
continue
|
|
238
|
+
if item.name.endswith(".tmp"):
|
|
239
|
+
continue # atomic-write staging from some other script
|
|
240
|
+
if item.is_dir():
|
|
241
|
+
shutil.copytree(item, cache_tmp / item.name, dirs_exist_ok=True)
|
|
242
|
+
elif item.is_file():
|
|
243
|
+
shutil.copy(item, cache_tmp / item.name)
|
|
244
|
+
|
|
245
|
+
manifest = {
|
|
246
|
+
"built_at_utc": built_at,
|
|
247
|
+
"schema_version": tree.get("_schema_version", "2.4"),
|
|
248
|
+
"agent": a,
|
|
249
|
+
"node_count": tree.get("node_count", 0),
|
|
250
|
+
"depth": tree.get("depth", 0),
|
|
251
|
+
"kind_counts": tree.get("_kind_counts", {}),
|
|
252
|
+
"ttl_days": 7,
|
|
253
|
+
"data_path": str(data_dir / f"{tree_base}.json"),
|
|
254
|
+
"partial": tree.get("_partial", False),
|
|
255
|
+
"unresolved_count": len(tree.get("_unresolved", []) or []),
|
|
256
|
+
}
|
|
257
|
+
(cache_tmp / "manifest.json").write_text(json.dumps(manifest, indent=2))
|
|
258
|
+
|
|
259
|
+
if cache_dir.exists():
|
|
260
|
+
shutil.rmtree(cache_dir)
|
|
261
|
+
cache_tmp.rename(cache_dir)
|
|
262
|
+
except OSError as e:
|
|
263
|
+
sys.stderr.write(f"finalize.py: CACHE_DIR write failed: {e}\n")
|
|
264
|
+
try:
|
|
265
|
+
if cache_tmp.exists():
|
|
266
|
+
shutil.rmtree(cache_tmp)
|
|
267
|
+
except OSError:
|
|
268
|
+
pass
|
|
269
|
+
return 1
|
|
270
|
+
|
|
271
|
+
# --- .gitignore seeding on parent dirs (data_root + cache_root) ---
|
|
272
|
+
for root in (cache_dir.parent.parent, data_dir.parent.parent):
|
|
273
|
+
try:
|
|
274
|
+
gi = root / ".gitignore"
|
|
275
|
+
if not gi.exists():
|
|
276
|
+
root.mkdir(parents=True, exist_ok=True)
|
|
277
|
+
gi.write_text("*\n")
|
|
278
|
+
except OSError:
|
|
279
|
+
pass
|
|
280
|
+
|
|
281
|
+
# --- .built_at.txt for emit ctx ---
|
|
282
|
+
try:
|
|
283
|
+
(work_dir / ".built_at.txt").write_text(built_at + "\n")
|
|
284
|
+
except OSError as e:
|
|
285
|
+
sys.stderr.write(f"finalize.py: .built_at.txt write failed: {e}\n")
|
|
286
|
+
# Non-fatal — finalize succeeded; emit can recompute
|
|
287
|
+
|
|
288
|
+
print(f"[finalize] built_at: {built_at}")
|
|
289
|
+
print(f"[finalize] data written: {data_dir}/{tree_base}.json")
|
|
290
|
+
print(f"[finalize] cache written: {cache_dir}")
|
|
291
|
+
return 0
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
if __name__ == "__main__":
|
|
295
|
+
sys.exit(main())
|