Skip to content
代码片段 群组 项目
该项目从 https://github.com/project-chip/zap 镜像。 拉取镜像更新于
  1. 2月 23, 2023
    • Timotej Ecimovic's avatar
      Deal with ordering in the endpoint-config generated structs. (#945) · d8f65035
      Timotej Ecimovic 创作于
      * Extract the reporting into an array before laying out into a struct init line.
      * Add a unit test for reporting generation.
      * Allow parametrized reordering of reporting configuration struct elements.
      * Parametrize the attribute list struct item ordering.
      * Parametrize min/max struct order for the reporting helper.
      * Another ordering issue.
      未验证
      d8f65035
    • Bharat Raju's avatar
      Fix backwards compatibility for recent zap changes (#944) · 99ad196f
      Bharat Raju 创作于
      - Throwing a warning in the notifications page of the zap UI instead of throwing an error in template-engine such that we backwards compatibility can be maintained
      - Changes to helper.js files have been made to fall back to old way of implementation in the case of global.resource([key]) not finding the data required
      - Github: ZAP#941
      未验证
      99ad196f
  2. 2月 18, 2023
    • Bharat Raju's avatar
      Fixing helpers/queries when dealing with mfg specific options (#939) · bf4f0e0c
      Bharat Raju 创作于
      - Fixing the count of mfg specific attributes such that it accounts for mfg specific attributes from mfg specific clusters
      - Fixing the attribute_mask helper such that it creates a separation between zigbee and matter when creating the mask
      - Fixing the attribute generation such that they have the mfg specific flag correctly
      - Commenting a test for now to unblock zap builds
      - JIRA: ZAPP-1077
      未验证
      bf4f0e0c
  3. 2月 16, 2023
  4. 2月 15, 2023
    • Bharat Raju's avatar
      Minor cleanup for zap's attribute token helpers (#929) · 9c027484
      Bharat Raju 创作于
      - Extending all_user_cluster_generated_attributes to account for an attribute being a string or not
      - Bumping the feature level pointer
      - Cleaning up another query to get endpoint Id properly
      - Adding the comma termination option for strings as well
      - Updating existing helpers with more options
      - Updating format_zcl_string_as_characters_for_generated_defaults to have isOctet and isCommaTerminated options
      - Add in option to if_compare to check if one strings exists within another
      - Update the zap-token version 2 zapt file and tests
      - JIRA: ZAPP-1036
      未验证
      9c027484
  5. 2月 11, 2023
    • Bharat Raju's avatar
      Create token helpers for generating the token files using ZAP (#919) · 65836715
      Bharat Raju 创作于
      - Updated helper-tokens with token_attributes, token_attribute_clusters and token_attribute_endpoints helpers which can be used by the generation templates.
      - Deprecated tokens_context and token_next helpers which were giving incomplete and wrong generation results
      - Updated some existing block helpers in helper-zcl with token information to help with generation
      - Added the queries for token helpers in query-attribute and query-cluster files
      - Updated dbMapping with endpointTypeClusterExtended and endpointTypeAttributeExtended such that map functions can be used in a generic way
      - Adding tests for token helpers
      - JIRA: ZAPP-1036
      未验证
      65836715
    • Timotej Ecimovic's avatar
      Fix a problem where custom XML in a .zap file would not load properly. (#924) · b9404999
      Timotej Ecimovic 创作于
      * Add a test file for this case
      * Properly handle the custom package ID regardless of whether it has been loaded or not before.
      未验证
      b9404999
  6. 2月 10, 2023
  7. 2月 04, 2023
    • Evgeny Margolis's avatar
      Added code to enable EventList support for Matter (#914) · fd7e0bfb
      Evgeny Margolis 创作于
      * Added code to enable EventList support for Matter.
      
       - Added new method to extract events from database: selectEndpointClusterEvents()
       - Added new helper functions to construct list (array) of supported event IDs:
         chip_endpoint_generated_event_count()
         chip_endpoint_generated_event_list()
       - Added eventList and eventCount entries to the EmberAfCluster struct
         in the generated endpoint_config.h file
      
      The EventList data is treated similar to CommandList data.
      
      The assumption is that events are always server --> client.
      
      * Removed Unused eventMfgCodes variable in the collectAttributes() function
      
      * Removed casting for generatedEvents in endpoint-config.zapt file
      
      * Updated selectEndpointClusterEvents() function to use existing mapping method dbMapping.map.event
      
      * Updated selectEndpointClusterEvents() to select all supported event types.
      
      * removed unsupported select field in selectEndpointClusterEvents()
  8. 2月 01, 2023
  9. 1月 10, 2023
  10. 12月 10, 2022
  11. 11月 29, 2022
  12. 11月 23, 2022
    • Timotej Ecimovic's avatar
      Add unit test for category matching. (#831) · 6a1948ef
      Timotej Ecimovic 创作于
      0. Add two zap files with intentionally wrong package paths, but correct categories.
      1. Add a test that loads both matter and zigbee metadata.
      2. Load a matter zap file and a zigbee zap file, and test that correct packages are attached.
      未验证
      6a1948ef
  13. 11月 22, 2022
  14. 11月 16, 2022
    • Timotej Ecimovic's avatar
      Automatic loading of packages from zap files. (#806) · 63cd640a
      Timotej Ecimovic 创作于
      * Remove a bunch of useless logic for loading validator.
      
      * Clean up some mess of package loading, removing session where it is not needed.
      
      * Update negative case.
      
      * Fix the devserver execution for cypress.
      
      * Make packageMatch a non-boolean option.
      
      * Implement autoloading properly.
      
      * Add a package matching mode which simply ignores the packages in zap file, used in unit tests.
      
      * Clean up a unit test.
      
      * Fix the matter test file to no longer point to zigbee.
      
      * Simplify the analyze script.
      
      * Update the template loader to not try to reload package options.
      
      * Update docs.
      
      * Clean up a comment.
      
      * Remove unused argument.
      未验证
      63cd640a
  15. 11月 11, 2022
  16. 10月 15, 2022
  17. 10月 08, 2022
    • Bharat Dandu's avatar
      Adding generic helpers with less hardcoding such that they can be used across... · 4f70b203
      Bharat Dandu 创作于
      Adding generic helpers with less hardcoding such that they can be used across different kinds of templates
      
      - Adding selectStructsWithClusterAssociation which takes the logic src-electron/generator/matter/chip-tool/templates/helper.js#structs_with_cluster_name to the backend(sql query). structs_with_clusters helper uses this instead of exports.structs_with_cluster_name
      - Updating cleanseLabelAsKebabCase so that it can be used instead of asDelimitedCommand
      - endpoint type was being treated as signed integer due to parsing logic in zcl-silabs-loader.js. Added a separate condition for this
      - Added generation tests for all the new helpers with an additional matter generation template
      - Adding the groupByStructName option to structs_with_clusters to avoid duplicate rows
      - Cleaning up the loader
      - Cleaning up the helpers in helper-zcl
      - For zcl data types, taking into account the signed attribute in the xml for numbers. If not mentioned then accounting for known exceptions such as single and double data types
      Throwing an error in as_type_max/min_value when language option is not specified
      Github: ZAP#679
      4f70b203
  18. 9月 27, 2022
    • Bharat Dandu's avatar
      Changes to resolve the custom xml generation/loading issue with zap's cli generation. · 94ddaa95
      Bharat Dandu 创作于
      - This solves the issue of zap generation when the saved zap file already has the custom xml reference and then generation is performed on it using cli
      - Loading the main/standard gen template and zcl xml packages before the custom xml packages such that custom xml and clusters extensions within custom xml are loaded properly
      - Fixing a query in query-package.js
      - Adding tests for the above behavior by creating a zap file which has a reference to a custom xml. Testing generation of zap file and adding more tests for xml removal and generating again
      - JIRA: ZAPP-971
      94ddaa95
  19. 9月 15, 2022
    • Jing T's avatar
      fix Nexus asset query issue. (#724) · 2132026f
      Jing T 创作于
      * fix Nexus asset query issue.
      
      was not constructing continuationToken URL correctly.
      
      * ignore temp artifact files.
      
      * unit test for download-artifact
      
      * update cached download-artifact.js
      
      * ignore download-artifact test from zap unit tests.
      
      * download-artifact: add unit test / delegate to Github if specified branch is not cached on Nexus
      
      intended for internal jenkins PRs that specifies a non-cached ZAP branch
      on Nexus
      未验证
      2132026f
  20. 9月 13, 2022
  21. 9月 02, 2022
  22. 8月 29, 2022
    • Bharat Dandu's avatar
      Fixing the endianness issue for floats, negative values and strings · 9671c39b
      Bharat Dandu 创作于
      - Handling the negative default values and float values for attributes correctly in terms of endianness(little/big)
      - Testing as_generated_default_macro helper for negative and float values
      - Adding valid hex values for testing
      - Moving the util functions into type.js and resolving the endian issue for both zap-config and helper-endpoint templates
      - renaming the functions since we use get for helpers
      - Switching to DataView and ArrayBuffer to resolve the endianess for float and negative values
      - Making changes to as_generated_default_macro helper which now handles endianness conversion for float, negative and string values
      - Doing the same as above for longTypeDefaultValue.
      - Cleaning up endian formatting code using dataView and other minor cleanup
      - Reading from the right index when reading big endian formats in convertIntToBigEndian.
      - When attribute size is greater than 4 then using an array buffer of size 8 such that there are no array offset issues when tackling negative integers
      - CLeaning up typos
      - Adding more tests
      - Switching to BigInt for numbers outside the 4 byte range
      - Cleaning up Code generation for long string attributes
      - In helper-zcl#format_zcl_string_as_characters_for_generated_defaults, Accounting for 2 byte strings length and formatting it to little endian.
      - In zcl-loader-silabs, making sure that max length for long strings is set properly when not mentioned correctly in the xml
      - Adding tests for the changes in helpers.test.js
      - Github: ZAP#509
      9671c39b
  23. 8月 18, 2022
  24. 8月 17, 2022
    • Timotej Ecimovic's avatar
      Use glob patterns for sdk.json (#672) · f039607d
      Timotej Ecimovic 创作于
      * Install glob package at toplevel.
      
      * Separate file parsing from the file processing.
      
      * Add globbing to the sdk.json
      
      * Increase feature level.
      
      * Increase required feature level in the test.
      
      * Add the regen SDK apack action.
      
      * Add index and directory name as possible replacements to globbing pattern generation.
      
      * Give cleaner alias names to matter, so that we can change that on SDK as well.
      未验证
      f039607d
  25. 8月 16, 2022
    • Bharat Dandu's avatar
      Switching to use templateUtil.ensureZclPackageIds instead of... · f738a4fd
      Bharat Dandu 创作于
      Switching to use templateUtil.ensureZclPackageIds instead of templateUtil.ensureZclPackageId to handle the custom xml generation which is not being accounted for currently when loading custom xml from the UI
      
      Updating helper-endpointconfig, types and zcl-util to use packageIds instead of packageId to handle custom xml
      
      - Updating one of the helper tests to have packageIds as well just like the packageId
      
      Switching to packageIds in a session to resolve the custom xml addition use case
      
      - Switching to packageIds in query-data-type-discriminator.js, zcl-loader.js to make sure we have the data type discriminators defined from standard xml for the custom xml
      - Adding known packages to queries related to query-loader, zcl-loader-silabs to handle custom xml additions
      
      Switching to packageIds and formatting the sql queries
      
      Switching to packageIds for enums, bitmaps and structs such that custom xml additions are accounted for and removing cache for query-atomic because past testing in the local machine showed not using cache was faster.
      
      Adding tests for custom xml generation
      
      Updating api doc
      
      Cleaning up function descriptions and fixing the test failures related to automaticallyCreateFields being called for undefined
      Github: ZAPP#622
      
      Switching to use ensureZclPackageIds instead of ensureZclPackageId for handling custom xml correctly in matter
      
      Cleaning up docs and typos
      
      Using dbApi.toInClause for the SQL IN clauses such that the queries don't break when we internationalize to different languages
      
      Gihub: ZAP#622
      f738a4fd
  26. 8月 12, 2022
    • Timotej Ecimovic's avatar
      Clean up CI for cypress (#661) · 62a7b013
      Timotej Ecimovic 创作于
      * Remove some pointles wording from the test file.
      
      * Upgrade cypress ubuntu to 22.04
      
      * Add windows to cypress matrix.
      
      * Change matrices for everything, because ubuntu 18 is becoming obsolete.
      
      * Can not use windows until the scripts are fixed. Stupid.
      
      * Condition Linux commands to linux.
      
      * Add back the windows runners.
      
      * Remove windows from OS matrix.
      未验证
      62a7b013
  27. 8月 11, 2022
  28. 8月 07, 2022
    • Timotej Ecimovic's avatar
      Matter cleanup (#641) · bff8d9eb
      Timotej Ecimovic 创作于
      This commit enables use of binary zap build for the Matter SDK. It bring the Matter JS code into the zap, cleans it up, and adds few new mechanisms to the templates.json files to support the Matter handling of yaml tests and test maintenance.
      
      It also adds categorization and aliasing of helpers, so that only a subset can be loaded.
      
      Furthermore, the handlebars instance is now no longer global, but it is created per-generation, and populated with the right subset of helpers.
      
      Individual commits:
      
      * Import: 07/29/2022
      * Lint cleanup.
      * Cleanup and alias few helpers.
      * Add more directories to import.
      * Use common aliases.
      * Cleaning up imports.
      * Import: add more files.
      * Further imports cleanup.
      * .js -> .ts
      * Add category for Matter helpers.
      * Comment, so I stop being confused.
      * Add missing import of dbenum.
      * Add the unit test for the helper loading via aliases.
      * Fix the unit test.
      * Cleanup the helpers api retrieval.
      * Include a missing js file.
      * Fix the api loading and testing.
      * Skip automatic loading of categorized or aliased helpers.
      * Add mechanism to auto-load helper categories and aliases.
      * Make category functionality from gen-templates.json work correctly.
      * Fix the bizarre mechanism of importing simulated clusters.
      * Shortcut the package loading in case of only one available.
      * Add more yaml files.
      * Remove pointless directory read.
      * Add the copying of the yaml files to copy script.
      * Skip the meta symbol.
      * Add the tests.
      * Import: 8/2/2022
      * Fix two small problems that accumulated into major problems.
      * Fix various Matter issues.
      * Remove stray require.
      * Clean up the initialization API.
      * Clean up the weird initialization of PICS.yaml.
      * Remove a console.log
      * Cleanup and alias another helper package.
      * Add mechanism to share resource paths from gen-templates.json.
      * Apply externalized resources to be able to remove all the yaml files.
      * Remove yaml copying. Will not need this again.
      * Import: 8/4/2022
      * Detect open handles.
      * Remove a useless test.
      * Temporarily lower the coverage requirements, before we bring in Matter unit tests.
      * Configure Matter code to stop doing ASI and instead put semicolons in the code.
      * Move the tests out into JSON files.
      * Move all the tests into ciTests json, deal with a more complex include+disable case.
      * Properly read relative path for the tests.json files.
      * Remove all tests code for matter.
      * Remove unneeded JSON files that moved to SDK.
      * Regen api baselines and remove references to test helpers.
      * Stray rebase problem.
      * Run cypress only once.
      未验证
      bff8d9eb
  29. 8月 02, 2022
  30. 7月 29, 2022
  31. 7月 27, 2022
    • Timotej Ecimovic's avatar
      SDK-wide regen via sdk.json file (#614) · 1e9a813d
      Timotej Ecimovic 创作于
      * Remove the wrapping of arguments in the generate scripts.
      * Log gen execution to json file.
      * Add gen log parser and uncomment the gen.log creation.
      * Add skeleton of the regenerateSdk feature.
      * Load ZCL packages.
      * Load generation templates.
      * Stop complaining about electron versions all the time.
      * Add test SDK file and add a test entry point.
      未验证
      1e9a813d
  32. 7月 26, 2022
    • Boris Zbarsky's avatar
      Fix default values for long strings. (#632) · e652a5df
      Boris Zbarsky 创作于
      Long strings store their length in 2 bytes at the front of the string, with the
      bytes being a little-endian representation of the string length.
      
      But the endpoint config output was spitting out the length as big-endian, not
      little-endian.  This caused things to be pretty confused and led to buffer
      overruns trying to read data that was not there.
      未验证
      e652a5df
    • Timotej Ecimovic's avatar
      Add ability to have multiple instances of the handlebars engine. (#627) · 2ad1fe5f
      Timotej Ecimovic 创作于
      0. Add basic helper categorization.
      1. Externalize handlebars instance.
      2. Desingletonize the handlebars instance.
      3. All handlebars instances are now taken from single location.
      未验证
      2ad1fe5f
    • Boris Zbarsky's avatar
      Fix FabricIndex handling in structs and events. (#628) · ea78da2e
      Boris Zbarsky 创作于
      1) Remove struct_is_fabric_scoped and event_is_fabric_scoped now that we have
         isFabricScoped/isFabricSensitive on those objects.  Add the relevant XML
         attributes instead of trying to guess based on fields.
      2) Remove event_fabric_idx_field and struct_fabric_idx_field, since we are no
         longer guessing based on fields.
      3) Synthesize the relevant struct item or event field with the right name, type,
         field id, per spec, if the struct is fabric-scoped or the event is
         fabric-sensitive.
      
      This is a hard requirement for implementing Leave events properly for Matter:
      those have a fabric_idx field but are _not_ fabric-scoped.
      未验证
      ea78da2e
加载中