@seeka-labs/cli-apps 3.8.5 → 3.8.7
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/dist/ai-context/internal/examples/v1/activecampaign/_ai-summary.md +17 -34
- package/dist/ai-context/internal/examples/v1/complianz/_ai-summary.md +28 -22
- package/dist/ai-context/internal/examples/v1/ivvy/_ai-summary.md +20 -20
- package/dist/ai-context/internal/examples/v1/me-and-u-connect/_ai-summary.md +18 -28
- package/dist/ai-context/internal/examples/v1/me-and-u-manage/_ai-summary.md +14 -20
- package/dist/ai-context/internal/examples/v1/nowbookit/_ai-summary.md +28 -30
- package/dist/ai-context/internal/examples/v1/sevenrooms/_ai-summary.md +23 -23
- package/dist/ai-context/internal/examples/v1/tradable-bits/_ai-summary.md +31 -24
- package/dist/ai-context/internal/examples/v1/transcend/_ai-summary.md +17 -34
- package/dist/ai-context/internal/examples/v2/calendly/_ai-summary.md +19 -23
- package/dist/ai-context/internal/examples/v2/clarity/_ai-summary.md +24 -13
- package/dist/ai-context/internal/examples/v2/google-bigquery/_ai-summary.md +26 -13
- package/dist/ai-context/internal/examples/v2/klaviyo-events/_ai-summary.md +17 -22
- package/dist/ai-context/internal/examples/v2/navitas/_ai-summary.md +24 -12
- package/dist/ai-context/internal/examples/v2/trustarc/_ai-summary.md +19 -14
- package/dist/ai-context/internal/examples/v2/typeform/_ai-summary.md +45 -20
- package/dist/ai-context/internal/examples/v2/webhook/_ai-summary.md +30 -17
- package/dist/ai-context/internal/examples/v2/yeastar/_ai-summary.md +14 -16
- package/dist/ai-context/internal/examples/v3/google-ads/_ai-summary.md +19 -14
- package/dist/index.cjs +10 -9
- package/dist/index.cjs.map +2 -2
- package/dist/init-template/app/browser/package.json +1 -1
- package/dist/init-template/app/lib/package.json +1 -1
- package/dist/init-template/app/server-azurefunc/package.json +1 -1
- package/dist/init-template/app/ui/package.json +1 -1
- package/package.json +2 -2
- package/dist/ai-context/internal/architecture/v1-structure.md +0 -192
- package/dist/ai-context/internal/architecture/v2-structure.md +0 -261
- package/dist/ai-context/internal/architecture/v3-structure.md +0 -386
- package/dist/ai-context/internal/examples/v1/_index.md +0 -53
- package/dist/ai-context/internal/examples/v2/_index.md +0 -66
- package/dist/ai-context/internal/examples/v3/_index.md +0 -105
|
@@ -1,27 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
# AI Summary: Yeastar App
|
|
1
|
+
# AI Summary for Yeastar App
|
|
3
2
|
|
|
4
3
|
## Purpose and Functionality
|
|
5
|
-
The Yeastar app is designed to integrate with Yeastar PBX systems
|
|
4
|
+
The Yeastar app is designed to integrate with Yeastar PBX systems to track phone calls and call events. It is particularly useful for businesses that need to monitor telephony activities and integrate this data with Customer Relationship Management (CRM) systems. The app processes various webhook events related to app installations and call activities, providing a seamless connection between Yeastar PBX and the Seeka platform.
|
|
6
5
|
|
|
7
6
|
## Key Implementation Patterns
|
|
8
|
-
- **Monorepo Structure**: The app uses a monorepo setup
|
|
9
|
-
- **Azure Functions**: The server
|
|
10
|
-
- **Webhook Handling**: The app processes
|
|
11
|
-
- **Logging**:
|
|
7
|
+
- **Monorepo Structure**: The app uses a monorepo setup with Yarn workspaces, organizing the code into separate components for the library, server, and UI.
|
|
8
|
+
- **Azure Functions**: The server component is built using Azure Functions, enabling serverless execution of webhook handlers.
|
|
9
|
+
- **Webhook Handling**: The app processes different types of webhook events, such as app installation, uninstallation, and activity acceptance, using a centralized handler function.
|
|
10
|
+
- **Logging**: Winston is used for logging, providing detailed logs for webhook processing and error handling.
|
|
12
11
|
|
|
13
12
|
## External APIs/Services Integrated
|
|
14
|
-
- **Yeastar PBX**: The app integrates with Yeastar PBX systems to track and manage
|
|
15
|
-
- **
|
|
13
|
+
- **Yeastar PBX**: The app integrates with Yeastar PBX systems to track and manage call events.
|
|
14
|
+
- **Seeka SDK**: Utilizes the Seeka SDK for handling webhook payloads and ensuring secure communication through signature validation.
|
|
16
15
|
|
|
17
16
|
## Important Data Transformations
|
|
18
|
-
- **Webhook Payload
|
|
19
|
-
- **
|
|
17
|
+
- **Webhook Payload Parsing**: The app parses incoming webhook payloads to extract necessary data for processing different event types.
|
|
18
|
+
- **Installation State Management**: It manages the state of app installations, ensuring that only known installations are processed.
|
|
20
19
|
|
|
21
20
|
## Notable Code Patterns
|
|
22
|
-
- **Webhook Signature Validation**:
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
21
|
+
- **Webhook Signature Validation**: Ensures security by validating webhook signatures using a secret key.
|
|
22
|
+
- **Error Handling**: Implements robust error handling with detailed logging to capture exceptions and provide meaningful error messages.
|
|
23
|
+
- **Version Management**: Uses Yarn scripts for automated version bumping and deployment, ensuring consistent version control across the app.
|
|
25
24
|
|
|
26
|
-
This summary provides
|
|
27
|
-
```
|
|
25
|
+
This summary provides a high-level understanding of the Yeastar app's architecture and implementation, highlighting key patterns and integrations that can be referenced for similar telephony and CRM integration projects.
|
|
@@ -2,27 +2,32 @@
|
|
|
2
2
|
# AI Summary: Google Ads Conversion Tracking App
|
|
3
3
|
|
|
4
4
|
## Purpose and Functionality
|
|
5
|
-
The `google-ads` app is designed to facilitate
|
|
5
|
+
The `google-ads` app is designed to facilitate conversion tracking and offline conversion imports for Google Ads. It receives activity data from Seeka and pushes these conversions to Google Ads using the Google Ads API. This app is particularly useful for advertisers looking to track and import offline conversions into their Google Ads accounts.
|
|
6
6
|
|
|
7
7
|
## Key Implementation Patterns
|
|
8
|
-
- **Monorepo Structure**: The app
|
|
9
|
-
- **Azure Functions**: The
|
|
10
|
-
- **
|
|
11
|
-
- **
|
|
8
|
+
- **Monorepo Structure**: The app is organized into multiple workspaces, each handling different components such as the server, browser, and UI.
|
|
9
|
+
- **Azure Functions**: The app is deployed as an Azure Function, leveraging serverless architecture for handling webhooks and other server-side operations.
|
|
10
|
+
- **Concurrent Development**: Uses `concurrently` to run multiple processes in parallel, such as server, browser plugin, and UI development.
|
|
11
|
+
- **Webhook Handling**: Implements robust webhook handling for various event types like installation, uninstallation, and activity acceptance.
|
|
12
12
|
|
|
13
13
|
## External APIs/Services Integrated
|
|
14
|
-
- **Google Ads API**: The
|
|
15
|
-
- **Azure
|
|
16
|
-
- **Seeka SDK**: Utilizes Seeka's SDK for handling webhook payloads and managing app installations.
|
|
14
|
+
- **Google Ads API**: The core functionality revolves around interacting with the Google Ads API to track and import conversion data.
|
|
15
|
+
- **Azure Functions**: Deployment and execution of server-side logic are managed through Azure Functions, providing scalability and ease of integration with other Azure services.
|
|
17
16
|
|
|
18
17
|
## Important Data Transformations
|
|
19
18
|
- **Activity to Conversion Mapping**: The app transforms Seeka activity data into Google Ads conversion actions using defined mappings (`SeekaActivityToGoogleConversionActionMapping`).
|
|
20
|
-
- **Webhook Payload Processing**:
|
|
19
|
+
- **Webhook Payload Processing**: Processes and validates incoming webhook payloads to ensure data integrity and security before performing operations.
|
|
21
20
|
|
|
22
21
|
## Notable Code Patterns
|
|
23
|
-
- **
|
|
24
|
-
- **
|
|
25
|
-
- **Environment Configuration
|
|
22
|
+
- **TypeScript Interfaces and Types**: Extensive use of TypeScript interfaces and types for defining data structures, ensuring type safety and clarity.
|
|
23
|
+
- **Logger Integration**: Utilizes `winston` for logging, providing detailed logs for debugging and monitoring.
|
|
24
|
+
- **Environment Configuration**: Uses environment variables and GitHub secrets for configuration, allowing for secure and flexible deployment setups.
|
|
25
|
+
- **Validation**: Implements a validation function (`validateInstallationSettings`) to ensure installation settings are correct, although it is noted to be a placeholder for future enhancement with Zod.
|
|
26
26
|
|
|
27
|
-
|
|
28
|
-
|
|
27
|
+
## Reusable Code Patterns
|
|
28
|
+
- **Webhook Signature Validation**: The pattern for validating webhook signatures can be reused in other applications requiring secure webhook handling.
|
|
29
|
+
- **Concurrent Task Execution**: The use of `concurrently` for running multiple development tasks in parallel is a reusable pattern for improving development efficiency.
|
|
30
|
+
- **Azure Function Deployment**: The deployment setup using GitHub Actions and Azure Functions can be adapted for other serverless applications.
|
|
31
|
+
|
|
32
|
+
This summary provides a comprehensive overview of the app's architecture and implementation, highlighting key patterns and integrations that can be leveraged in similar projects.
|
|
33
|
+
```
|
package/dist/index.cjs
CHANGED
|
@@ -39932,7 +39932,7 @@ var os2 = __toESM(require("os"), 1);
|
|
|
39932
39932
|
var path6 = __toESM(require("path"), 1);
|
|
39933
39933
|
|
|
39934
39934
|
// package.json
|
|
39935
|
-
var version = "3.8.
|
|
39935
|
+
var version = "3.8.7";
|
|
39936
39936
|
|
|
39937
39937
|
// src/helpers/index.ts
|
|
39938
39938
|
var fs2 = __toESM(require("fs"), 1);
|
|
@@ -48739,13 +48739,14 @@ var getAppInitConfig = (baseDir) => {
|
|
|
48739
48739
|
};
|
|
48740
48740
|
var DEFAULT_PUBLIC_CONTEXT_URL = "https://saseekaaueaprodpub.blob.core.windows.net/sdk-apps/ai-context/public/ai-context-latest.zip";
|
|
48741
48741
|
var getContextPackageUrl = (baseDir, initialPackageUrl) => {
|
|
48742
|
-
if (
|
|
48743
|
-
|
|
48744
|
-
|
|
48745
|
-
|
|
48746
|
-
|
|
48742
|
+
if (initialPackageUrl) {
|
|
48743
|
+
return initialPackageUrl;
|
|
48744
|
+
}
|
|
48745
|
+
const initConfig = getAppInitConfig(baseDir);
|
|
48746
|
+
if (initConfig?.contextPackageUrl) {
|
|
48747
|
+
return initConfig.contextPackageUrl;
|
|
48747
48748
|
}
|
|
48748
|
-
return
|
|
48749
|
+
return DEFAULT_PUBLIC_CONTEXT_URL;
|
|
48749
48750
|
};
|
|
48750
48751
|
|
|
48751
48752
|
// src/commands/ai/context/index.ts
|
|
@@ -48774,7 +48775,7 @@ async function extractZipToDirectory(zipBuffer, destDir) {
|
|
|
48774
48775
|
var aiContextCommand = async (options = {}) => {
|
|
48775
48776
|
const targetDir = options.targetDir || process.cwd();
|
|
48776
48777
|
const contextDestDir = path5.join(targetDir, ".seeka", "ai", "context");
|
|
48777
|
-
const contextUrl = getContextPackageUrl(
|
|
48778
|
+
const contextUrl = getContextPackageUrl(targetDir, options.contextPackageUrl);
|
|
48778
48779
|
console.log("Seeka AI Context");
|
|
48779
48780
|
console.log("================");
|
|
48780
48781
|
console.log("");
|
|
@@ -52549,7 +52550,7 @@ var buildProgram = () => {
|
|
|
52549
52550
|
// appSettings: options.appSettings ? map(stringArrayToMap(options.appSettings), (k, v) => { return { name: k } }) : [],
|
|
52550
52551
|
npmUsername: options.npmUsername,
|
|
52551
52552
|
npmPassword: options.npmPassword,
|
|
52552
|
-
contextPackageUrl: options.contextPackageUrl
|
|
52553
|
+
contextPackageUrl: getContextPackageUrl(void 0, options.contextPackageUrl)
|
|
52553
52554
|
};
|
|
52554
52555
|
await initCommandV2(initOptions);
|
|
52555
52556
|
}).showHelpAfterError(true);
|