@providerprotocol/agents 0.0.2 → 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.
Files changed (74) hide show
  1. package/LICENSE +21 -0
  2. package/dist/checkpoint/index.d.ts +43 -0
  3. package/dist/checkpoint/index.js +73 -0
  4. package/dist/checkpoint/index.js.map +1 -0
  5. package/{src/execution/loop.ts → dist/chunk-4ESYN66B.js} +54 -162
  6. package/dist/chunk-4ESYN66B.js.map +1 -0
  7. package/dist/chunk-EKRXMSDX.js +8 -0
  8. package/dist/chunk-EKRXMSDX.js.map +1 -0
  9. package/dist/chunk-T47B3VAF.js +427 -0
  10. package/dist/chunk-T47B3VAF.js.map +1 -0
  11. package/dist/execution/index.d.ts +105 -0
  12. package/dist/execution/index.js +679 -0
  13. package/dist/execution/index.js.map +1 -0
  14. package/dist/index-qsPwbY86.d.ts +65 -0
  15. package/dist/index.d.ts +101 -0
  16. package/dist/index.js +218 -0
  17. package/dist/index.js.map +1 -0
  18. package/dist/middleware/index.d.ts +23 -0
  19. package/dist/middleware/index.js +82 -0
  20. package/dist/middleware/index.js.map +1 -0
  21. package/dist/thread-tree/index.d.ts +115 -0
  22. package/dist/thread-tree/index.js +4 -0
  23. package/dist/thread-tree/index.js.map +1 -0
  24. package/dist/types-2Vsthzyu.d.ts +163 -0
  25. package/dist/types-BiyEVOnf.d.ts +65 -0
  26. package/dist/types-D1egxttz.d.ts +270 -0
  27. package/dist/types-DChRdQoX.d.ts +98 -0
  28. package/package.json +41 -9
  29. package/.claude/settings.local.json +0 -29
  30. package/AGENTS.md +0 -681
  31. package/CLAUDE.md +0 -681
  32. package/bun.lock +0 -472
  33. package/eslint.config.js +0 -75
  34. package/index.ts +0 -1
  35. package/llms.md +0 -796
  36. package/specs/UAP-1.0.md +0 -2355
  37. package/src/agent/index.ts +0 -384
  38. package/src/agent/types.ts +0 -91
  39. package/src/checkpoint/file.ts +0 -126
  40. package/src/checkpoint/index.ts +0 -40
  41. package/src/checkpoint/types.ts +0 -95
  42. package/src/execution/index.ts +0 -37
  43. package/src/execution/plan.ts +0 -497
  44. package/src/execution/react.ts +0 -340
  45. package/src/execution/tool-ordering.ts +0 -186
  46. package/src/execution/types.ts +0 -315
  47. package/src/index.ts +0 -80
  48. package/src/middleware/index.ts +0 -7
  49. package/src/middleware/logging.ts +0 -123
  50. package/src/middleware/types.ts +0 -69
  51. package/src/state/index.ts +0 -301
  52. package/src/state/types.ts +0 -173
  53. package/src/thread-tree/index.ts +0 -249
  54. package/src/thread-tree/types.ts +0 -29
  55. package/src/utils/uuid.ts +0 -7
  56. package/tests/live/agent-anthropic.test.ts +0 -288
  57. package/tests/live/agent-strategy-hooks.test.ts +0 -268
  58. package/tests/live/checkpoint.test.ts +0 -243
  59. package/tests/live/execution-strategies.test.ts +0 -255
  60. package/tests/live/plan-strategy.test.ts +0 -160
  61. package/tests/live/subagent-events.live.test.ts +0 -249
  62. package/tests/live/thread-tree.test.ts +0 -186
  63. package/tests/unit/agent.test.ts +0 -703
  64. package/tests/unit/checkpoint.test.ts +0 -232
  65. package/tests/unit/execution/equivalence.test.ts +0 -402
  66. package/tests/unit/execution/loop.test.ts +0 -437
  67. package/tests/unit/execution/plan.test.ts +0 -590
  68. package/tests/unit/execution/react.test.ts +0 -604
  69. package/tests/unit/execution/subagent-events.test.ts +0 -235
  70. package/tests/unit/execution/tool-ordering.test.ts +0 -310
  71. package/tests/unit/middleware/logging.test.ts +0 -276
  72. package/tests/unit/state.test.ts +0 -573
  73. package/tests/unit/thread-tree.test.ts +0 -249
  74. package/tsconfig.json +0 -29
package/eslint.config.js DELETED
@@ -1,75 +0,0 @@
1
- import eslint from '@eslint/js';
2
- import tseslint from '@typescript-eslint/eslint-plugin';
3
- import tsparser from '@typescript-eslint/parser';
4
- import importPlugin from 'eslint-plugin-import';
5
-
6
- export default [
7
- eslint.configs.recommended,
8
- {
9
- files: ['src/**/*.ts', 'tests/**/*.ts', 'examples/**/*.ts', 'examples/**/*.tsx'],
10
- languageOptions: {
11
- parser: tsparser,
12
- parserOptions: {
13
- project: './tsconfig.json',
14
- ecmaVersion: 'latest',
15
- sourceType: 'module',
16
- ecmaFeatures: {
17
- jsx: true,
18
- },
19
- },
20
- globals: {
21
- console: 'readonly',
22
- process: 'readonly',
23
- setTimeout: 'readonly',
24
- clearTimeout: 'readonly',
25
- AbortSignal: 'readonly',
26
- AbortController: 'readonly',
27
- React: 'readonly',
28
- Bun: 'readonly',
29
- Buffer: 'readonly',
30
- },
31
- },
32
- plugins: {
33
- '@typescript-eslint': tseslint,
34
- import: importPlugin,
35
- },
36
- rules: {
37
- // TypeScript strict rules
38
- '@typescript-eslint/no-explicit-any': 'error',
39
- '@typescript-eslint/explicit-function-return-type': 'off',
40
- '@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
41
- '@typescript-eslint/no-non-null-assertion': 'error',
42
-
43
- // AirBnB style rules
44
- 'no-console': 'off',
45
- 'import/prefer-default-export': 'off',
46
- 'import/extensions': 'off',
47
- 'no-use-before-define': 'off',
48
- '@typescript-eslint/no-use-before-define': ['error', { functions: false }],
49
- 'no-shadow': 'off',
50
- '@typescript-eslint/no-shadow': 'error',
51
- 'no-unused-vars': 'off',
52
- 'max-classes-per-file': 'off',
53
- 'class-methods-use-this': 'off',
54
- 'no-continue': 'off',
55
- 'no-await-in-loop': 'off',
56
- 'no-restricted-syntax': 'off',
57
- 'no-plusplus': 'off',
58
-
59
- // General best practices
60
- 'prefer-const': 'error',
61
- 'no-var': 'error',
62
- 'object-shorthand': 'error',
63
- 'prefer-template': 'error',
64
- 'prefer-spread': 'error',
65
- 'prefer-rest-params': 'error',
66
- 'no-param-reassign': ['error', { props: false }],
67
-
68
- // Allow ANSI escape codes in regex for terminal output
69
- 'no-control-regex': 'off',
70
- },
71
- },
72
- {
73
- ignores: ['node_modules/**', 'dist/**', '*.js'],
74
- },
75
- ];
package/index.ts DELETED
@@ -1 +0,0 @@
1
- console.log("Hello via Bun!");